[jQuery] Re: Dynamically Populating Select Box

2007-10-31 Thread Snooze
Now I have the following code: (function($){ $.fn.selectCombo = function(url, target){ return this.each(function(){ var targetlabel = target.replace(/#/, ''); targetlabel = "[EMAIL PROTECTED]'" + targetlabel + "']"; $(this).change(function() { $.getJSON(url,{q: $(this).val()}, function(j){ var o

[jQuery] Re: Dynamically Populating Select Box

2007-10-31 Thread Snooze
amp; critset(cat) & "'}, " end if critset.movenext loop critset.close set critset = nothing oConn.close set oConn = nothing json = left(json,len(json)-2) response.write("[" & json & "]") %> And this is how I include it in the page: $(function(){ $(&

[jQuery] Re: Dynamically Populating Select Box

2007-10-30 Thread Snooze
e correct options, either from the asp providing the page source, or > from some other ajax call. > > On Oct 30, 3:05 pm, Snooze <[EMAIL PROTECTED]> wrote: > > > > > I am trying to make a select box that with populate depending on what > > is selected in the select b

[jQuery] Dynamically Populating Select Box

2007-10-30 Thread Snooze
I am trying to make a select box that with populate depending on what is selected in the select box before it. Both of these select boxes need to draw information from the sql database (I have to use ASP to get this information). I've been looking at some tutorials but am overall very confused as

[jQuery] Getting Value from Radio Button

2007-10-30 Thread Snooze
I have a radio button defined as: And the following jQuery code: $('.comp').click(function(){ alert(reqsearch.compare.value); }); There value it returns is undefined. How do I get it to return "equal"?

[jQuery] Delaying the Hide Effect

2007-10-25 Thread Snooze
Hi, I have hidden text that appears whenever someone hovers over an image in my table. And I want it to disappear 5 seconds after they stop hovering over the image. Right now I have: $(document).ready(function(){ $('div.hidden').hide(); $('img.hidden').mouseover(function() {

[jQuery] Re: Displaying Additional Information

2007-10-25 Thread Snooze
Thanks for all the help. I got it to work. I tried the $(this).next trick before but for some reason it didn't work (I had the hidden text in a separate td). Now it works how I want it except for one small problem. I decided to change the click to a hover so I now have: $(document).ready(functio

[jQuery] Displaying Additional Information

2007-10-24 Thread Snooze
I am pretty new to jQuery so I'm trying to learn. I have a bunch of information in a table. One of the columns has an image in every cell, I want additional information to show up when a user clicks on the image. I have been able to get it to where additional information shows up for every image n