[jQuery] Re: Custom sorter/parser for tablesorter

2008-11-10 Thread Rodent of Unusual Size
On Nov 11, 12:29 am, Mike Nichols <[EMAIL PROTECTED]> wrote: > I submitted a patch a long time ago to do this that implemented a > natural sorting algorithm for this but it would never get applied and > I couldn't get a response..I assumed the project was light or dead. > I can send you the patche

[jQuery] Re: Which Event to use with Sortables and connectWith?

2008-11-10 Thread briandichiara
This is what I have right now, which has been revised a bit, but i'm sure there's a smarter way: function sortAction(e,ui,a){ var proceed = true; var el_id = $(ui.item).attr('id'); id = el_id.replace("ele-",""); var params = "action=update_menu_item&jsa="+a+"&item_

[jQuery] Re: Trouble with "this"

2008-11-10 Thread Michael Geary
To elaborate a bit, "this" is special, but it's not magic. Whenever you call a function in JavaScript, it's always called as a method of some object, and this is a reference to that object. When you call foo.bar(), you are calling a function as a method of the foo object, so this == foo. Java

[jQuery] Re: Trouble with "this"

2008-11-10 Thread Michael Geary
You can use something like that bind function, but you don't really need it. In most cases it's simpler to use a closure. That's the basis of the good solution that Brian gave you, although there was a critical error in the code, a missing "var" on the "obj = this;" statement. Let's correct tha

[jQuery] Re: Taconite - remove surrogate div

2008-11-10 Thread Bob Schellink
Hi Mike, Thanks for your feedback. Your solution does work in the scenario I described where only one link is used. However it is possible to return multiple elements for example: hello hi To provide some context, I am integrating taconite into a component framework and do not ha

[jQuery] Re: UI Tabs and a submit button

2008-11-10 Thread Steffan A. Cline
on 11/9/08 10:31 PM, Steffan Cline at [EMAIL PROTECTED] wrote: > > Is it possible to place a submit button on the same line as a row of tabs > using the ui tabs? > > | tab1 | tab2 | tab3 | tab4 | (submit button) > |---

[jQuery] Re: Custom sorter/parser for tablesorter

2008-11-10 Thread Mike Nichols
I submitted a patch a long time ago to do this that implemented a natural sorting algorithm for this but it would never get applied and I couldn't get a response..I assumed the project was light or dead. I can send you the patched .js i had if you like. On Nov 10, 9:56 pm, Rodent of Unusual Size

[jQuery] Re: Cycle Plugin: Multiple pagers

2008-11-10 Thread ppblaauw
Hi, Mike Thanks for putting me in the right direction with your suggestion. With some adjustments of the code in the example I can make a second numberpager, imagepager or a custom pager (text with images) now. If you are interested, here is a link to my demo site where I showcase the Dynamic di

[jQuery] Re: how to combine multiple filters in select?

2008-11-10 Thread Hector Virgen
I believe you can put both of those in the selector, one following the other: var odd_visible_rows = $('table tbody tr:visible:odd'); -Hector On Mon, Nov 10, 2008 at 8:20 PM, Jake <[EMAIL PROTECTED]> wrote: > > eg. to select all the table rows in tbody that is both visible and > odd. how to pu

[jQuery] Re: would compressing & merging multiple jquery & plugin's violate any license?

2008-11-10 Thread Daniel Freiman
http://docs.jquery.com/Licensing Jquery is released under the MIT license. In other words, do what ever you want. - Daniel Freiman Required disclaimer: I am not a lawyer. On Mon, Nov 10, 2008 at 5:55 PM, henry <[EMAIL PROTECTED]> wrote: > > would compressing & merging multiple jquery & plugin

[jQuery] Re: would compressing & merging multiple jquery & plugin's violate any license?

2008-11-10 Thread Daniel Freiman
Actually, it may depend on the license of the plugin, but from jquery's side you're fine. On Mon, Nov 10, 2008 at 10:18 PM, Daniel Freiman <[EMAIL PROTECTED]>wrote: > http://docs.jquery.com/Licensing > > Jquery is released under the MIT license. In other words, do what ever you > want. > > - Dan

[jQuery] how to combine multiple filters in select?

2008-11-10 Thread Jake
eg. to select all the table rows in tbody that is both visible and odd. how to put tr:visible and tr:odd together?

[jQuery] Custom sorter/parser for tablesorter

2008-11-10 Thread Rodent of Unusual Size
I'm just discovering jQuery and finding it really interesting. Usual sort of 'learn by doing' thing. I've been playing with the tablesorter plugin, but I've run into a wall. Particularly since I'm far from expert in Javascript. :-) I want to be able to sort a table on a column containing integr

[jQuery] Re: Trouble with "this"

2008-11-10 Thread Hector Virgen
Maybe what I am looking for is something similar to this: http://www.prototypejs.org/api/function/bind -Hector On Mon, Nov 10, 2008 at 7:45 PM, Hector Virgen <[EMAIL PROTECTED]> wrote: > Thank you for the replies. I thought I knew Javascript until just recently > when I started using jQuery, an

[jQuery] Re: Trouble with "this"

2008-11-10 Thread Hector Virgen
Thank you for the replies. I thought I knew Javascript until just recently when I started using jQuery, and things started to behave differently than I'm used to. So let me see if I understand this... var MyClass = function(selector) { this.hello = 'Hello World!';} So, "this" is equal to "win

[jQuery] Hi Start JQuery in Drupal D5

2008-11-10 Thread bharani kumar
Hi Dears I want to call jquery in drupal, Can one guide me , how to implement JQuery in Drupal, Thanks Here find the attachment, i attached the sample module , in that i want to add the Jquery, Thanks -- உங்கள் நண்பன் பரணி Regards B.S.Bharanikumar POST YOUR OPINION http://bharanikumariy

[jQuery] Re: Which Event to use with Sortables and connectWith?

2008-11-10 Thread MorningZ
> 1. this has turned out to be a whole lot of difficult to manage code > 2. sometimes it will fire 4 events on 1 action Care to post any of said code to help others help you? On Nov 10, 8:24 pm, briandichiara <[EMAIL PROTECTED]> wrote: > I am having trouble figuring out the difference between

[jQuery] Re: Trouble with "this"

2008-11-10 Thread RobG
On Nov 11, 11:17 am, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > I'm having trouble using "this" in my objects when the method is triggered > by an event. The value of a function's this keyword is *always* set by the call, so use the call to set it to the value you want. > Here's my basic te

[jQuery] Techniques for rendering overlapping markup

2008-11-10 Thread blackant
This isn't jQuery-specific, but I'm building a jQuery plugin with an unusual requirement that has me pulling my hair out. In a nutshell, multiple users are able to highlight text in their own "copy" of the document. For example, the saved markup for two users might look like: The quick brown

[jQuery] Re: Trouble with "this"

2008-11-10 Thread briandichiara
In the case you are trying to use it, the first instance of "this" is referring to the root function object. this.hello is an item inside that object. when you create the other 2 functions, "this" no longer means what it did originally. If you want to pass the information of "this", you need to re

[jQuery] Which Event to use with Sortables and connectWith?

2008-11-10 Thread briandichiara
I am having trouble figuring out the difference between all of these events and need to know the best one to use. I'm using 2 lists and the ability to drag back and forth between them using connectWith. When an item goes from the left list to the right list, I have a receive function that simply m

[jQuery] Re: Trouble with "this"

2008-11-10 Thread Hector Virgen
Here's the link to the test page: http://www.virgentech.com/sandbox/this.html -Hector On Mon, Nov 10, 2008 at 5:17 PM, Hector Virgen <[EMAIL PROTECTED]> wrote: > I'm having trouble using "this" in my objects when the method is triggered > by an event. > > Here's my basic test class. The lines t

[jQuery] Trouble with "this"

2008-11-10 Thread Hector Virgen
I'm having trouble using "this" in my objects when the method is triggered by an event. Here's my basic test class. The lines that do not work as expected are in red. var MyClass = function(selector) { this.hello = 'Hello World!'; var onClick = function() { alert('onclick: this = ' + this); // <

[jQuery] Re: jQuery Uploader Flash player 10 fix

2008-11-10 Thread Jörg Battermann
yay! :) On Nov 10, 10:20 am, "Gilles (Webunity)" <[EMAIL PROTECTED]> wrote: > Going to squash the latest bugs today, if i got my VPC up and running > so i can use visual studio to debug IE6. Got my SharePoint > certification last week so that week was crazy ;) > > On Nov 9, 4:12 pm, Crazy-Achmet

[jQuery] Re: Anyone know how to find the topmost elements of a specific type?

2008-11-10 Thread Hector Virgen
Oops, it's actually $('#container ul:first-child') Here's a nifty page of CSS3 selectors: http://www.w3.org/TR/2001/CR-css3-selectors-2003/#selectors -Hector On Mon, Nov 10, 2008 at 5:06 PM, Hector Virgen <[EMAIL PROTECTED]> wrote: > $('#container ul:first') should give you the first UL in

[jQuery] Re: Anyone know how to find the topmost elements of a specific type?

2008-11-10 Thread Hector Virgen
$('#container ul:first') should give you the first UL in the container -Hector On Mon, Nov 10, 2008 at 4:50 PM, Mark Gibson <[EMAIL PROTECTED]> wrote: > > Anyone know how I can find the topmost elements of a certain type, eg. > > Say I have several lists on a page, which in turn contain sub- >

[jQuery] Anyone know how to find the topmost elements of a specific type?

2008-11-10 Thread Mark Gibson
Anyone know how I can find the topmost elements of a certain type, eg. Say I have several lists on a page, which in turn contain sub- lists, and so on. Is there a selector I can use to find all the topmost elements. I've been raking my brains over this, and can't see a way with css style selec

[jQuery] Re: Taconite - remove surrogate div

2008-11-10 Thread Mike Alsup
> In order to do this taconite places the CDATA content inside a div > element. However after the command is executed the div is left in the DOM. > > So after a bit of back and forth between browser and server we end up > with a large hierarchy of divs. Hi Bob, Could you test this function to se

[jQuery] Re: blockUI / jqModal - unload issues

2008-11-10 Thread Mike Alsup
> But THIS DOES NOT WORK: > > $(document).ready(function() { > >     $(window).unload(function() { >         $.blockUI({ message: $('#question'), css: { width: > '275px'} }); >     }); > > }); > > Any advice or suggestions are much appreciated. The unload event does not give you an opportunity to

[jQuery] Re: JQuery licensing questions

2008-11-10 Thread John Resig
Yes, that is perfectly fine on the MIT license. --John On Mon, Nov 10, 2008 at 6:45 PM, acesfull9 <[EMAIL PROTECTED]> wrote: > > > I am working on a web application project that utilizes jquery. I would like > to be able to license the system I created to local businesses for a fee. > Is this

[jQuery] JQuery licensing questions

2008-11-10 Thread acesfull9
I am working on a web application project that utilizes jquery. I would like to be able to license the system I created to local businesses for a fee. Is this possible to do with jquery under either the MIT or GPL licenses? A license of the system will be purchased and the customer will host i

[jQuery] Re: how to output element in string

2008-11-10 Thread ratik
jQuery.fn.outerHTML = function() { //this function are taken from http://brandonaaron.net/jquery/snippets/outerHTML/example.html return $('').append( this.eq(0).clone() ).html(); }; jQuery('#link').click(function(){alert($(this).outerHTML());return false;}) On Nov 11, 12:44 am,

[jQuery] Re: Delaying a .css until an animation on a different div is done?

2008-11-10 Thread Karl Rudd
Take a look at the documentation for the "Effects" functions: http://docs.jquery.com/Effects You'll see that they all take a "callback" function as an argument. The callback function is fired after the animation/effect is finished. Karl Rudd On Tue, Nov 11, 2008 at 1:23 AM, CodingCyborg <[

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-10 Thread Microbe
Demand # 1 :o) On Nov 11, 8:57 am, heysatan <[EMAIL PROTECTED]> wrote: > Hi Sean, > > I built this breadcrumb animation.  Due to time limitations at the end > of the project I wasn't able to make it into a plugin (I built a lot > of other plugins for this project), but I'd like to when I get a

[jQuery] Re: please check website before launch

2008-11-10 Thread Alexandre Plennevaux
Friends, That's it, i tried to integrate your comments, and now the website is launched. Thank you to john and every one of the jquery team for making such a great library. Special thanks to the jquery community for providing me with such useful feedback ! the website: http://lisapram.com/ my

[jQuery] blockUI / jqModal - unload issues

2008-11-10 Thread manwood
I am trying to use either BlockUI or jqModal to display a modal dialog when the page unloads but it just won't work (in IE7). Using jqModal THIS WORKS (attaching to an tag): $().ready(function() { $('#confirm').jqm({ overlay: 88, modal: true, trigger: false }); $('#navigationBlock a')

[jQuery] Re: Tablesorter advice required - row level filtering based on inputs?

2008-11-10 Thread Hector Virgen
Here's a link to my 'textFilter' plugin. It should do what you need, and works on other types of elements like lists. I hope this helps. This is my first jQuery plugin so if you have any suggestions let me know :) http://www.virgentech.com/js/virgentech/plugins/jquery.textfilter.js Usage should b

[jQuery] would compressing & merging multiple jquery & plugin's violate any license?

2008-11-10 Thread henry
would compressing & merging multiple jquery & plugin's into 1 JS file violate any license?

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-10 Thread heysatan
Hi Sean, I built this breadcrumb animation. Due to time limitations at the end of the project I wasn't able to make it into a plugin (I built a lot of other plugins for this project), but I'd like to when I get a chance. I really solved a problem for us because our category and page titles are

[jQuery] Re: Am I using 'this' too often?

2008-11-10 Thread George
Thanks for the link http://docs.jquery.com/UI/Developer_Guide You are absolutely right about understanding. Our professor of math was saying "First you have to use it, then you will understand it". I found it to be very true. I had been using JQuery for some time... It's just I am working on a

[jQuery] Re: resizable floating text area?

2008-11-10 Thread nmiddleweek
that worked, thanks Rik! On Nov 10, 1:35 pm, "Rik Lomas" <[EMAIL PROTECTED]> wrote: > I believe you can use the CSS 'resize' property: > > http://www.w3.org/TR/css3-ui/#resize0 > > textarea { resize: none; } > > Rik > > 2008/11/10 nmiddleweek <[EMAIL PROTECTED]>: > > > > > > > Hello, > > > Does

[jQuery] Re: text link to fire Jeditable

2008-11-10 Thread Mika Tuupola
On Nov 10, 2008, at 9:02 PM, RyOnLife wrote: Hello, I am using Jeditable. Currently firing the plugin when the editable div is double clicked. I'd also like to add a text link outside of the editable div, and when clicked, it would make the div editable. Just want to give my users a visual cue

[jQuery] Jquery Ajax load()

2008-11-10 Thread adwivedi
Hi, I am using the command, $("#divId").load('url'); my development is in J2EE(JSP). The problem is the content loaded by this command is not accessible to other jquery scripts. like if i have cascading dropdowns. the user selects first dropdown, based on its value the other dropdown gets loaded.

[jQuery] Re: [validate] group Options question

2008-11-10 Thread Jörn Zaefferer
Grouping is currently supported only via plugin options, so thats the way to go. Without seeing your code I can't see whats wrong with it. Jörn On Mon, Nov 10, 2008 at 8:52 PM, <[EMAIL PROTECTED]> wrote: > I'm trying to apply group options to four fields that need to be treated as > if they are

[jQuery] how to output element in string

2008-11-10 Thread cc96ai
my link after remove the target attribute $("#link").removeAttr("target"); I want to get the string is my link but how could I ? I don't think jquery have toString() function, any idea ?

[jQuery] Re: AJAX Callbacks - How to show Ajax request status using a loading image?

2008-11-10 Thread Isaak Malik
Place this part of code outside your function and inside the jQuery on-DOM-ready function: $(function() { $('#content1').ajaxSend(function(e,r,s) { $(this).html('Loading data, please wait...'); } }); Note that your functions must not be inside the on-DOM-ready function. So your fin

[jQuery] JQuery Effects order ??

2008-11-10 Thread cecil
I am trying to create something of a shuffle effect. I grab some data consisting of firstname and lastname from an xml file. then i randomly select one, assign it to a span, fade it in and fade it back out. I do this for a few names to give the effect of shuffling through the list of names. it w

[jQuery] Re: [validate] Repeated error tags

2008-11-10 Thread La_PaRCa
Thanks a lot, I managed to solve the problem. Turns out my form was inside a and somehow that was messing up the error tags. What I did was move the table INSIDE the form and now its working alright. Thanks. On Nov 10, 10:58 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Does the input have

[jQuery] Re: mcDropDown: any click event fire the drop down animation

2008-11-10 Thread CED
Its including the UI Effects that breaks mcdropdown in combination with code from jrails I posted earlier. Christiain On Nov 8, 12:39 pm, "Dan Switzer" <[EMAIL PROTECTED]> wrote: > I'm not sure why this would be happening, unless something in the UI library > is triggering the document.click for

[jQuery] prob my function msgcolor

2008-11-10 Thread gtraxx
Hello I currently work on a feature for messages my system framework. I just can not create options. (function($){ var settings; $.fn.MsgColor = function(options){ var settings = { startWidth = function(){this.width(0)},

[jQuery] Taconite - remove surrogate div

2008-11-10 Thread Bob Schellink
Hi all, The taconite plugin provides the ability to wrap results in CDATA tags which allows one to return special characters such as '&' and '<'. Example command: In order to do this taconite places the CDATA content inside a div element. However after the command is executed the div i

[jQuery] NEWS: jQuery Tweetworks Group

2008-11-10 Thread Rey Bango
In an effort to continually provide new methods for jQuery developers to reach each other, the jQuery team has created a new TweetWorks jQuery group to allow those users with Twitter a method of communicating with each other: http://tweetworks.com/groups/view/jQuery Rey... jQuery Project

[jQuery] Nested Sortables with 2 Lists

2008-11-10 Thread briandichiara
I'm trying to make a Menu builder and having trouble finding a plugin to do what I need. On the left is the current menu. It's a nested list. On the right is a list of pages not appearing in the menu. I need 1. The ability to sort the menu on the left in a nested manner, so items can contain sub-

[jQuery] Re: Am I using 'this' too often?

2008-11-10 Thread Balazs Endresz
The thing with the other libraries is that jQuery mainly promotes writing a simple functional plugin, beacause in many cases object- oriented code is really not necessary. Of course in other cases it is, like when building a widget: http://docs.jquery.com/UI/Developer_Guide So I think if you want

[jQuery] [validate] group Options question

2008-11-10 Thread christine . panus
I'm trying to apply group options to four fields that need to be treated as if they are one single piece of data.  All the samples seem to show using className to apply the validation, but I'm setting up my validation rules in the validation call which does not appear to be the recommended method.

[jQuery] Re: AJAX Callbacks - How to show Ajax request status using a loading image?

2008-11-10 Thread Shannon
Hello Isaak, Thank you for your kind reply. I tried this code: function showUser(str) { $('#content1').load("select.php?q="+str); $('#content1').ajaxSend(function(e,r,s) { $(this).html('Loading data, please wait...'); } } but it caused the AJAX request to stop working. When I remove

[jQuery] Re: AJAX Callbacks - How to show Ajax request status using a loading image?

2008-11-10 Thread Isaak Malik
Hey there, You're using it partially in the wrong way. 1st: function showUser(str) { $('#content1').load("select.php?q="+str); } No syntax mistake in the code above! But the bad part is this: $().ajaxSend(function(r,s){ $("#content1").load("Loading data, please wait..."); }); Which

[jQuery] scrolling menu items...

2008-11-10 Thread PaulC
Hello, I've got this working but its "hard coded". the menu on right hand side of this site: http://sugarsnap.previewurl.net needs to scroll through each item as the user clicks the arrows. This is working but only because I've put fixed heights to scroll - shich is buggy cross browser. the co

[jQuery] AJAX Callbacks - How to show Ajax request status using a loading image?

2008-11-10 Thread Shannon
Hi everyone, I am a newbie in jquery and have been stuck on this all morning. I am using the following function to perform an AJAX request which loads in the specified DIV: function showUser(str) { $('#content1').load("select.php?q="+str); } This works fine but I tried to add a loading gif (y

[jQuery] text link to fire Jeditable

2008-11-10 Thread RyOnLife
Hello, I am using Jeditable. Currently firing the plugin when the editable div is double clicked. I'd also like to add a text link outside of the editable div, and when clicked, it would make the div editable. Just want to give my users a visual cue for those that aren't yet aware of the ability t

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
It is definately the onAfter that FF doesn't like in this scenario.

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
On Nov 10, 12:52 pm, OutOfTouch <[EMAIL PROTECTED]> wrote: > On Nov 10, 11:50 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > > > The only code you would have to write is > > > some php method to take in a parameter to give you the images data > > > array for the selected value in the dropdown. > >

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
On Nov 10, 11:50 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > The only code you would have to write is > > some php method to take in a parameter to give you the images data > > array for the selected value in the dropdown. > > http://jquery.malsup.com/cycle/sets.html > > 1) Starts with an empty

[jQuery] Re: Jquery Cycle Plugin Problem

2008-11-10 Thread Mike Alsup
> But if you could test in a pentium, the cpu ups to 90-100% and the > memory will increase until the pc will block. I had tested in 2 > different pc ( more than 15 minutes but it´s a problem if you have the > window open). Yes, as I mentioned, JavaScript animation is very CPU intensive. If you'

[jQuery] Re: Jquery Cycle Plugin Problem

2008-11-10 Thread Jorge
On 7 nov, 19:00, Mike Alsup <[EMAIL PROTECTED]> wrote: > > There is a problem with pc memmory when the plugin is working ( Tested > > in a few pcs). At Least you need a 2 core duo for a not problem > > experiencie, but try in a pentium  4 with 1gb of ram... and you will > > Khnow. > > Open the tas

[jQuery] Re: Am I using 'this' too often?

2008-11-10 Thread George
I see your point... I had discovered recently the lack of JavaScript knowledge. And since I mostly doing web development I realized that I am missing out a lot. Unfortunately the object oriented approach JavaScript using is different from other object oriented languages I know (C++, C#, Java) So

[jQuery] Re: Keeping track of the current clicked link

2008-11-10 Thread Paul Mills
Hi, I'm not sure why you are trying to override the click event - because when you click on a menu item I'd expect a new page to load? If you want to stop the new page loading, then you need to cancel the default event for the tag by adding return false, $(document).ready(function() {

[jQuery] Re: Am I using 'this' too often?

2008-11-10 Thread Balazs Endresz
The plugin authoring page won't help you much building a "class" in javascript. If you want to use the this keyword less you can use private variables: http://javascript.crockford.com/private.html and there are some more great sources here: http://www.crockford.com/javascript/ But transforming a

[jQuery] Re: JSON parser?

2008-11-10 Thread Gus
I'm evaluating a JSON string that is stored on the client side (in a hidden field). I use this string just as a search filter, so I think eval is OK in this scenario too. But, as I've been using jQuery a lot recently, I thought I could leverage some JSON parsing in my code. Thanks weepy, good hint

[jQuery] Re: Cycle plugin + position:absolute

2008-11-10 Thread Mike Alsup
> I'm trying out the malsup's cycle plugin and really like it. It seems > to interfere with my formatting though. My demo is > athttp://vocabforbreakfast.railsplayground.net/jqfade/. > > How can I center the div with the images when the cycle plugin sets > the position property to absolute? Cycl

[jQuery] Re: OnBeforeUnload and jQuery

2008-11-10 Thread manwood
Thanks Karl. I can see the potential issues with providing a hook at the point a user tries to leave a page. I will try your other suggestion though. Thanks. On 10 Nov, 01:22, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Unfortunately you have to use the "built in" window.onbeforeunload method. > > Y

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread Mike Alsup
> The only code you would have to write is > some php method to take in a parameter to give you the images data > array for the selected value in the dropdown. http://jquery.malsup.com/cycle/sets.html 1) Starts with an empty slideshow 2) Binds change event on element 3) Loads slideshow data bas

[jQuery] Re: Am I using 'this' too often?

2008-11-10 Thread Olivier Percebois-Garve
Well, using the pattern for plugin creation will make your life easier, and "this" will make more sense. Reading your code, it feels like you are using the structuration promoted by another library On Mon, Nov 10, 2008 at 6:29 PM, George <[EMAIL PROTECTED]> wrote: > > I had looked there probably

[jQuery] Re: JSON parser?

2008-11-10 Thread Gus
Really? I thought it had because jQuery evaluates JSON internally (e.g.: getJSON method). On Nov 10, 2:42 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > Does jQuery comes with a built-in JSON parser? > > I need a FROM JSON function as an alternative to using eval. > > No it does not.  I recommend

[jQuery] Applying Body height to inner element using dimension

2008-11-10 Thread squaredeye
I've been toying with a way to add the height of the body (full height of the web page including scroll area) to an internal wrapper. My goal is to achieve a 100% height of an inner div. Any ideas? Matthew

[jQuery] Re: form submit without page refresh

2008-11-10 Thread bharani kumar
I thing confusing you, I tel what i want ? I want to submit form without page refresh, Is there any best link other then wha u given last, One more thing am having some script, But am expecting help is, i want to implement into drupal,,, 2008/11/10 Sam Sherlock <[EMAIL PROTECTED]> > I thi

[jQuery] Re: form submit without page refresh

2008-11-10 Thread Sam Sherlock
you could change the example to work with another data type if you don't have json php ext - its included in php 5.2+ (something like that) so either 1. upgrade php - or use a php class for json 2. make the json as a basic print "{'myName': $myName}" 3. use another data type xml for exa

[jQuery] Re: JSON parser?

2008-11-10 Thread weepy
User : http://code.google.com/p/jquery-json/ On 10 Nov, 17:19, Mike Alsup <[EMAIL PROTECTED]> wrote: > > Is there a problem with using the eval function? > > > I'm curious why you would need an alternative that would add overhead. > > Security is the main problem.  If you trust the source comple

[jQuery] Re: Am I using 'this' too often?

2008-11-10 Thread George
I had looked there probably 10 times :) Are you implying that I need to convert my code to being Plug-In? Other than that I do not see how this page http://docs.jquery.com/Plugins/Authoring answers my question... Sorry, but please spell it out for me. The Plug-In would be the next step for me..

[jQuery] Sliding effect not working

2008-11-10 Thread briandichiara
What could be the problem here? I am using the easing plugin to have a panel slide up out of sight, or down into sight and it was working before, but now it's not. The panel just quickly goes to the desired position with no effects. Would other elements on the page affect this? I am using the late

[jQuery] Re: JSON parser?

2008-11-10 Thread Mike Alsup
> Is there a problem with using the eval function? > > I'm curious why you would need an alternative that would add overhead. Security is the main problem. If you trust the source completely then eval is fine. Parser's like Doug's json2 also let you pass in a replacement function so you can mas

[jQuery] Re: Finding an input's label

2008-11-10 Thread Pete
Thanks, MorningZ. Tidied up your quote nesting and it worked a treat. Bit of a braindead moment for me... I sometimes forget how painfully simple and elegant jQuery is. :)

[jQuery] Re: JSON parser?

2008-11-10 Thread Jeffrey Kretz
I just answered my own question. Are you trying to parse JSON provided from another source? I.e. not one of your own server pages? JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Monday, November 10, 2008 9:05 AM To: jQuery

[jQuery] Re: Am I using 'this' too often?

2008-11-10 Thread Olivier Percebois-Garve
you may want to have a look here http://docs.jquery.com/Plugins/Authoring On Mon, Nov 10, 2008 at 5:20 PM, George <[EMAIL PROTECTED]> wrote: > > Being newbie in JavaScript I am trying to code my own helper object > that does pagination. > So here is a snippet of my code. > > MyData.prototype = {

[jQuery] Re: JSON parser?

2008-11-10 Thread Jeffrey Kretz
Is there a problem with using the eval function? I'm curious why you would need an alternative that would add overhead. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Monday, November 10, 2008 9:05 AM To: jQuery (English) S

[jQuery] Re: TableSorter Pagination: Move pagination to top

2008-11-10 Thread ripcurlksm
no I am not using drupal, its a page I made using PHP and MySQL bharanikumariyerphp wrote: > > hi , r u working in Drupal > > On Mon, Nov 10, 2008 at 1:20 PM, ripcurlksm <[EMAIL PROTECTED]> > wrote: > >> >> >> ... still working on this.. it appears that the pagination div is >> relatively >

[jQuery] Finding an input's label

2008-11-10 Thread Pete
What's the easiest way to find an input's label? I'm trying to evaluate this along the lines of the following, but this doesn't work: $('label[for=this.attr("id")]').attr('class', 'error'); Any help appreciated.

[jQuery] Re: JSON parser?

2008-11-10 Thread Mike Alsup
> Really? I thought it had because jQuery evaluates JSON internally > (e.g.: getJSON method). Correct, it 'evals' json, it does not parse it. From the httpData function: if ( type == "json" ) data = eval("(" + data + ")");

[jQuery] Re: mouseover text for select option

2008-11-10 Thread Karl Swedberg
Hi hschulz, Here is a message I posted a while back in response to a similar question: Maybe someone else is aware of a workaround to this limitation of IE, but I haven't found one. ... If you take a look at the MSDN reference page for onmouseover [1], you'll see that is not included i

[jQuery] Re: form submit without page refresh

2008-11-10 Thread Sam Sherlock
working example with json 2 files first index.html http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en-US" lang="en-US"> malsup jquery form to php http://www.malsup.com/jquery/jquery-1.2.6.js";> http://www.malsup.c

[jQuery] Event Capture Architecture

2008-11-10 Thread saqib
I am developing an application in which I have to define click events for many elements( the list may go up to hundreds). So what would be the best way to capture these event Either using a * bind( $('*') ); and in click function get the id of target element and code accordingly

[jQuery] Re: Cycle Plugin: Multiple pagers

2008-11-10 Thread Mike Alsup
> Is it possible to use multiple pagers for one slideshow. > Eg. a pager above the slides and a pager below the slides. > One pager could be a number pager and the other an image pager or both > the same. You could create a 2nd pager using code like that shown in this demo: http://www.malsup.com

[jQuery] Re: form submit without page refresh

2008-11-10 Thread bharani kumar
How to approach other for this problem,(With Drupal) 2008/11/10 bharani kumar <[EMAIL PROTECTED]> > I Got > > : *Fatal error*: Call to undefined function json_encode() in *C:\Program > Files\xampp\htdocs\source\ajaxformsubmit\sample2\test.php* on line *7* > > > One more thing the form is redirect

[jQuery] Re: JSON parser?

2008-11-10 Thread Mike Alsup
> Does jQuery comes with a built-in JSON parser? > I need a FROM JSON function as an alternative to using eval. No it does not. I recommend Doug Crockford's json2.js script: http://www.json.org/js.html

[jQuery] [validate] Repeated error tags

2008-11-10 Thread La_PaRCa
I have the following problem: If I try to submit a for multiple times, and the same field is invalid, each time I will get a new error tag and the old one doesnt clear. So after a while I will have multiple error tags with the same message for a given field. Any ideas how I could fix this or wha

[jQuery] JSON parser?

2008-11-10 Thread Gus
Hi, Does jQuery comes with a built-in JSON parser? I need a FROM JSON function as an alternative to using eval. Thanks,

[jQuery] 2 forms with SimpleModal

2008-11-10 Thread Xtophe
Hi, I've a small question. My page containes a list of articles. For each article, I've some options. One of this option is "send to a friend" and an other one is "more information". Each option use the SimpleModal form. 1) I've a problem : how can I associate a different form for each button

[jQuery] Issue with jquery(selector, context) and Chrome

2008-11-10 Thread Paul DelRe
I'm using the Forms plugin to do an ajax submit which then grabs a div with a table to display on the page. The response callback function is as follows: function(response){ var results = jQuery("div#results", response).html(); if(results == null){ // To handle

[jQuery] Re: How to load only one image at a time using JQuery Cycle Plugin?

2008-11-10 Thread OutOfTouch
On Nov 10, 10:02 am, Mike Alsup <[EMAIL PROTECTED]> wrote: > > Have you been able to reproduce a similar error using php and FF? > > Maybe you could try with an empty container like me and load the > > slides with some data from the server, very similar to your add6 > > example. > > You need to m

[jQuery] problem when mousing onto object option list (relatedTarget?)

2008-11-10 Thread clorentzen
Hi -- I'm working on a site with a nav area that exposes panels/menus when a parent is hovered over -- using hover(). Some of these panels contain forms, including objects. When I click a select in one of these nav menus, and then mouse over the options, it causes the containing menu panel to d

  1   2   >