[jQuery] Re: empty() is very slow

2009-08-28 Thread Josh Powell
Change the onclick event handler into a jQuery .live() event and you'll be fine for sure. On Aug 26, 1:57 pm, oleOhle mohleme...@googlemail.com wrote: OK, thanks everybody! I think I understand. Actually my second attempt could easily be rewritten to match exactly what jQuery does. It really

[jQuery] Re: open external web page inside the tab

2009-08-28 Thread Leonard Martin
What do you get? What were you expecting? Using $().load() to call in HTML will load only the raw HTML code so you won't get any images, or styles. If you actually want google to look and work like google then you'll probably need to load it in an iframe. On Aug 28, 9:12 am, ts

[jQuery] Re: open external web page inside the tab

2009-08-28 Thread ts
nope.. nothing.. it is just empty in that tab. the reason why i'm doing this is actually when i'm doing the rails apps, i want the tab to to perform certain things by the controller. and i dont know how to load the view inside the tab since it only take in raw HTML. On Aug 28, 4:24 pm, Leonard

[jQuery] open external web page inside the tab

2009-08-28 Thread ts
I have the following code, basically i want to load first page of google into my ajax tab 1. But i dont get what i'm expecting. Any idea? == !DOCTYPE html html head meta

[jQuery] Re: Help getting started with JSON (and PHP)

2009-08-28 Thread Leonard Martin
Depending on your version of PHP, the module may come installed as standard so you'll just need to uncomment the line from your php.ini and restart (http://uk2.php.net/manual/en/json.installation.php). Although I'd make sure that wherever you're hosting the app in the end will have the module

[jQuery] Too much recursion

2009-08-28 Thread FCCS
Hello, I'm trying to build a simple fadeIn - fadeOut loop on a div, but I get an infinite recursion the way I do it : // + Code function visibleFadeIn() { jQuery('#visible').fadeIn(2000, visibleFadeOut()); } function visibleFadeOut() { jQuery('#visible').fadeOut(2000,

[jQuery] Date Text Entry Plugin?

2009-08-28 Thread Grant McLean
Hi All I'm looking for a jQuery plugin for date entry. I *don't* want a date picker since they really only work well for dates that are close to today's date. My app requires the entry of dates from years ago (eg: Date of Birth) and that doesn't work well with any date picker I've tried. Also

[jQuery] $.ajax and $.getJSON in not working in mozilla

2009-08-28 Thread dalvir
hi.. I'm using $.getJSON to get data from WCF service in the form om json. this is working fine in IE7 but in mozilla it returns nothing. My code is $.getJSON(http://localhost:3162/VirtualService/Settings.svc/ GetAllCountries, function(data) { alert(data); }); this code

[jQuery] Limit nextAll

2009-08-28 Thread Jaggi
Basically i'm going through a table, i've used closest to get the parent element which is a tr then i can use next() to get the next one or nextAll() to get all the next ones however i just want to get the next two elements so is there a way to limit nextAll() to only return the next two matches

[jQuery] Re: Is there a jQuery way to sort span-elements?

2009-08-28 Thread Audrey A Lee
hmm... okay. I think I understand this (a little-bit). It reminds me of how I sort objects in an array in Ruby. The way I do that is I need to write a method which compares object-a to object-b. So if each object has attributes like name, address, phone, age, income, I need to decide which

[jQuery] Re: setData and extraParams problem

2009-08-28 Thread pankaj sharma
Hi Joern, I found one thing while debugging. If I changed this code var fieldname = this.id; To var fieldname = this.id.replace(/([{}])/g, '\\$1'); Above fieldname values may come in this format: xyz or abc{1} or mnp{2} Then the previous working application (old jquery) is also got break. So

[jQuery] Re: Hover does not stop

2009-08-28 Thread Mario
Toggle works fine. But the problem now is that I always have to click and I wanted the menu ot appear and disappear onmouseover/mouseout.

[jQuery] Re: (no subject)

2009-08-28 Thread Asif R Naqvi
me too From: Mike Holloway - Phase 8 mhollo...@names.co.uk To: jquery-en+unsubsr...@googlegroups.com Sent: Thursday, 27 August, 2009 16:08:14 Subject: [jQuery] (no subject)

[jQuery] $.each cannot iterator my array

2009-08-28 Thread davidshe...@googlemail.com
Hi, i have an array initialized like var myArr = new Array(); later I use myArray['somestring'] = new Array(); myArray['somestring'].push(mydata); to create and new array inside of it, and populate my data by pushing. Then I want to use the jQuery.each(...) to iterator over it, like this

[jQuery] Re: Date Text Entry Plugin?

2009-08-28 Thread Dhruva Sagar
I am not sure if a plugin already exists for what you want to achieve but I will suggest you to have a look at http://www.datejs.com/ for a very neat Date javascript library that I always find useful. It's Date parser is also very cool and powerful, I am sure you can build exactly what you want

[jQuery] Re: Is there a 'dropdown button' plugin?

2009-08-28 Thread Richard D. Worth
On Thu, Aug 27, 2009 at 10:00 PM, donb falconwatc...@comcast.net wrote: Partially. I started cobbling together something that LOOKs like what I want, to play with my idea: http://www.gotodon.net/dropbutton/ I want it to act like a submit button when the main part is clicked, but produce

[jQuery] Re: $.each cannot iterator my array

2009-08-28 Thread Dhruva Sagar
You have initiallized myArray['somestring'] = new Array();should you be doing $.each(myArray['something'], function() {...}); ? Thanks Regards, Dhruva Sagar. Samuel Goldwynhttp://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html - I'm willing to admit that I may not always be right, but

[jQuery] Re: $.ajax and $.getJSON in not working in mozilla

2009-08-28 Thread Leonard Martin
Try accessing the target page directly in the browser and copying the output into http://jsonlint.com. It sounds like there's an error in the JSON output. On Aug 28, 7:07 am, dalvir sainidal...@gmail.com wrote: hi..    I'm using $.getJSON to get data from WCF service in the form om json.

[jQuery] Re: Plugin to let the user draw rectangles

2009-08-28 Thread Richard D. Worth
In this function: // Using the boxer plugin $('#canvas').boxer({ stop: function(event, ui) { ... add ui.box.attr('id', 'whatever-id-you-want'); - Richard On Thu, Aug 27, 2009 at 4:41 PM, juanefren juanef...@gmail.com wrote: Does boxes have an ID property ? If not, how could I add one?

[jQuery] Re: $.each cannot iterator my array

2009-08-28 Thread Xi Shen
but my program want to iterator the outer array first to find out how many arrays in the myArray variable. On Fri, Aug 28, 2009 at 5:33 PM, Dhruva Sagardhruva.sa...@gmail.com wrote: You have initiallized myArray['somestring'] = new Array(); should you be doing $.each(myArray['something'],

[jQuery] input color - default color

2009-08-28 Thread dziobacz
I have inputs with validationin in jquery. If data are wrong I make red background color in input: $('#first_input').css('background-color', 'red'); After click reset I would like to see default input color so I make: $('#first_input').css('background-color', 'white'); But inputs with

[jQuery] Re: Limit nextAll

2009-08-28 Thread Jules
Assuming you are looking for div .nextAll(div:lt(2)).each(function(){}); On Aug 28, 6:55 pm, Jaggi jaggi_2...@hotmail.com wrote: Basically i'm going through a table, i've used closest to get the parent element which is a tr then i can use next() to get the next one or nextAll() to get all

[jQuery] Re: input color - default color

2009-08-28 Thread Paolo Chiodi
try $('#first_input').css('background-color', null) On Fri, Aug 28, 2009 at 12:23 PM, dziobaczaaabbbcccda...@gmail.com wrote: I have inputs with validationin in jquery. If data are wrong I make red background color in input: $('#first_input').css('background-color', 'red'); After click

[jQuery] Re: $.each cannot iterator my array

2009-08-28 Thread Steven Yang
you are doing a very weird thing to an array I guess jQuery detects that myArray is a reall Array. Then it iterate over it by using the length attribute. However you didnt actually put anything into the Array myArray therefore, you dont get anything. On Fri, Aug 28, 2009 at 3:49 PM,

[jQuery] Re: $.each cannot iterator my array

2009-08-28 Thread Nick Fitzsimons
2009/8/28 davidshe...@googlemail.com davidshe...@googlemail.com: i have an array initialized like var myArr = new Array(); later I use myArray['somestring'] = new Array(); myArray['somestring'].push(mydata); to create and new array inside of it, and populate my data by pushing. Then I

[jQuery] Re: Hover does not stop

2009-08-28 Thread Paolo Chiodi
maybe the hover is generated more than once while it is sliding. I would try to add a callback on animation end, setting tha state of the menu: open or closed. then on mouse over animate only if open, on mouse out close only if closed On Fri, Aug 28, 2009 at 12:01 PM,

[jQuery] [validate] - merge 2 sets of rules?

2009-08-28 Thread bdaniel7
Hi, Is it possible to merge two sets of rules? I have one set generated server-side but for some strange reason 2 fields are skipped. so as a workaround, i want to merge the generated rules with 2 by hand rules. Thanks, Dan

[jQuery] Re: not able to append new tag in XML in IE

2009-08-28 Thread Paolo Chiodi
Sound strange to me. $({your selector}) should acces the html dom document, not the xml document. And what is the xmlData variable? You can youse createElement if it is the xml dom document, not if it is a jqery object On Fri, Aug 28, 2009 at 7:59 AM, g...@iecabhi.pur...@gmail.com wrote: Hi

[jQuery] Re: input color - default color

2009-08-28 Thread dziobacz
interesting - Your solution works in Firefox and in Chrome but it doesn't work in IE 8 and Opera - in these browser background color inputs is still red - hm... strange - what should I do ? On 28 Sie, 12:59, Paolo Chiodi chiod...@gmail.com wrote: try $('#first_input').css('background-color',

[jQuery] Re: inline delete ajax function/confirm dialog

2009-08-28 Thread spill50
Hi Rick, Thanks for your reply. I tried using the .live function but it hasn't solved the problem. When I click a delete icon the first time it changes the tr bg colour then opens the dialog, if I cancel it it resets the tr colour then closes the dialog. From then, when I click on a delete

[jQuery] Re: Hover does not stop

2009-08-28 Thread rupak mandal
hi, what I have getting is that hover function is call multiple time till the mouse pointer is inside the div area. May be you try onmouseover and onmouseout. As suggested by paolo. On Fri, Aug 28, 2009 at 4:36 PM, Paolo Chiodi chiod...@gmail.com wrote: maybe the hover is generated more than

[jQuery] Re: inline delete ajax function/confirm dialog

2009-08-28 Thread spill50
Hi Irwan, Thanks for your reply. I am using a class to trigger the function $(.delete_icon).click (function() { the id on each element is unique anyway as the table is dynamically generated on the server before its sent to the browser. The value if the id attribute is the user id pulled from

[jQuery] Re: Hover does not stop

2009-08-28 Thread rupak mandal
Try this $(function(){ $('#navigation').hover( function() { $(this).stop().animate({left: '-210'}, 'slow');}, function() { $(this).stop().animate({left: '0'}, 'slow');} ); }); I think that's work On Fri, Aug 28, 2009 at 5:50 PM, rupak mandal rupakn...@gmail.com

[jQuery] span onchange event - possible?

2009-08-28 Thread Tokasa
Hi, is it possible in jQuery to constantly observe span, and if content is changed - then trigger some action?? I have seen something similar in prototype (but not sure if it worked for span) Thanks Tomas

[jQuery] Re: Reading text value on button element

2009-08-28 Thread KeeganWatkins
Jesper, in your first example, you were passing the string this, not the keyword. The keyword this is a reference to the button (in that case), and the string this is useless for that purpose. In your second example, you are creating a wrapped set, accessing the first element in that set, and

[jQuery] Re: input color - default color

2009-08-28 Thread rupak mandal
Hi You may try this $('#first_input').css('background-color', 'transparent'); On Fri, Aug 28, 2009 at 5:00 PM, dziobacz aaabbbcccda...@gmail.com wrote: interesting - Your solution works in Firefox and in Chrome but it doesn't work in IE 8 and Opera - in these browser background color

[jQuery] Re: input color - default color

2009-08-28 Thread dziobacz
ruspak thx but it also works wrong. But I think I have found the best solution. For example - we have a form with these fields: input type=text class=text_field id=name/ input type=text class=text_field id=surname/ input type=text class=text_field id=email/ First - we must create style class

[jQuery] Re: Is there a 'dropdown button' plugin?

2009-08-28 Thread donb
Yeah, I think that works a lot better: http://www.gotodon.net/dropbutton/ On Aug 28, 5:24 am, Richard D. Worth rdwo...@gmail.com wrote: On Thu, Aug 27, 2009 at 10:00 PM, donb falconwatc...@comcast.net wrote: Partially.  I started cobbling together something that LOOKs like what I want,

[jQuery] Re: $.each cannot iterator my array

2009-08-28 Thread Xi Shen
yes, i made a fool mistake, and mislead jquery. thanks a lot ;) On Fri, Aug 28, 2009 at 7:05 PM, Nick Fitzsimonsn...@nickfitz.co.uk wrote: 2009/8/28 davidshe...@googlemail.com davidshe...@googlemail.com: i have an array initialized like var myArr = new Array(); later I use

[jQuery] changing URL with slider

2009-08-28 Thread macsig
Hello guys, is there a way (using a specific plugin or doing some hacking) to change the page URL when I change the viewed panel within a slider? Right now I'm using tabSwitch (http://www.hieu.co.uk/blog/index.php/ tabswitch/) but I can change it if a plugin lets me do that. Thanks and have a

[jQuery] [validate] different rules on different events

2009-08-28 Thread ganim altiok
hi, i am trying to get to work different rules on different events but i dont know where i am doing wrong? $(#registerForm).validate({ errorElement: div, errorClass: formerror, onblur: false, onclick: false,

[jQuery] Ajax Communicatiuon to JSp using Jquery

2009-08-28 Thread subbu
Hi Group Can you help me with sample code for communication with JSP file using JQuery Ajax communication Please do the needful Thanks in advance regds subbu

[jQuery] Re: jQuery selector for style attribute

2009-08-28 Thread John
Got it working, see here, http://code.google.com/p/aost/wiki/CustomJQuerySelectorInTellurium#:styles On Aug 27, 5:57 pm, John jian.fang.subscr...@gmail.com wrote: Seems I should use css(), not attr(). On Aug 27, 3:46 pm, John jian.fang.subscr...@gmail.com wrote: Seems always begin with

[jQuery] Re: Plug-in for elegant Horizontal Menu?

2009-08-28 Thread Charlie
The example menu is more about CSS than scripting really. For multiple columns try putting a div inside an li, then adding some more sub divs or UL's or whatever you want for columns. lukas wrote: Thank you, Richard! I hope I manage to include several columns in a submenu. It is not

[jQuery] Re: Is there a 'dropdown button' plugin?

2009-08-28 Thread Richard D. Worth
Nice. You might post this to the jQuery UI list ( http://groups.google.com/group/jquery-ui ), or add a comment on the wiki page here: http://wiki.jqueryui.com/Selectmenu I'm sure people would be interested in seeing this application. - Richard On Fri, Aug 28, 2009 at 9:34 AM, donb

[jQuery] Autocomplete plugin: Google Chrome - Focus issue with the scrollbar

2009-08-28 Thread varun shankar
I am using jQuery 1.3.2. There is an input field in a form. Clicking on the input field opens a div as a dropdown. The div contains a list of items. As the list size is large there is a vertical scrollbar in the div. There is a blur event on the input field, to close the drop down when clicked

[jQuery] IE issues

2009-08-28 Thread Phil
Im having trouble getting my jquery slideshow to work in IE, It works fine in FF and Safari. I tried using supersleight which seem to help my transparent pngs and text but the slideshow doesnt even seem to be being read. Any Ideas, much appreciated

[jQuery] Re: Input edit does not fire autocomplete.

2009-08-28 Thread RobGMiller
I tried to assign ['el1', 'el2', 'el3', 'el4', 'el5'] to an array variable declared as ArrayVariable = New Array(); This worked. So I tried to use ArrayVariable.push(value); for every value in the json stucture to assign all the elements to the array. This did not work. Finally, since

[jQuery] AJAX: process the response XML

2009-08-28 Thread jeanluca
Hi All I'm truggling with this for a while now, without succes. Here is the test code: $.ajax({ type: GET, url: url, cache: false, dataType: 'xml', async: true, complete: function(data, status) { // get title name of the

[jQuery] window.open

2009-08-28 Thread Luh Hooo Zer
is there a nicer way to open a sized window using jquery other than this: a onclick=window.open('/plans/individual/continue-to-ap-pop.asp', 'Continue_to_Application','width=200,height=400') href=#

[jQuery] Re: window.open

2009-08-28 Thread Paolo Chiodi
To open a window you must use window.open. With jquery you have a better way to add the event handler. $('a').click(function(ev){ window.open('/plans/individual/continue-to-ap-pop.asp', 'Continue_to_Application','width=200,height=400'); ev.preventDefault(); return false; }) Paolo On Fri,

[jQuery] Re: AJAX: process the response XML

2009-08-28 Thread Paolo Chiodi
maybe: $(data).find('#xyz title').text(); On Fri, Aug 28, 2009 at 7:44 PM, jeanlucalca...@gmail.com wrote: Hi All I'm truggling with this for a while now, without succes. Here is the test code: $.ajax({          type: GET,          url: url,          cache: false,          dataType:

[jQuery] rounded corner recommendations

2009-08-28 Thread Rich Sturim
Greetings, Can people recommend a rounded corners plugin that is stable on a wide array of browsers? I've been hunting around -- and found a few some, some better than others. But, I was wondering if there are any elite ones that are truly excellent -- and I should consider? Cheers, Rich

[jQuery] jquery ajax not working in mozilla

2009-08-28 Thread praveen
hi, i use jquery and calling my service function by using jQuery ajax. it works fine in IE and return data in json format but when i run this in firefox this method is not call means ajax method call is not called in firefox. where is problem in code here is my code my service is host on remote

[jQuery] Re: jquery ajax not working in mozilla

2009-08-28 Thread Alexander C
Are you executing that script in the same domain 'http://localhost:3162http://localhost:3162/VirtualService/RestService.svc/' where the rest service is?. We can't do cross-domain ajax requests. Maybe IE make a exception for their own REST services. Atte, Alexander Cabezas Gerente de

[jQuery] AUTO: Michael Lawson is out of the office (returning 08/31/2009)

2009-08-28 Thread Michael Lawson
I am out of the office until 08/31/2009. I will be out of the office this afternoon If you have any questions or concerns, please contact Leena Paulose Note: This is an automated response to your message [jQuery] changing URL with slider sent on 8/28/09 8:43:47. This is the only

[jQuery] Meio mask

2009-08-28 Thread Mario Soto
Hi everyone. I'm having troubles with meiomask to allow spaces in a field that will allow only letters, numbers and spaces of course. I've tried already with the responses but, doesn't work. Any help? Thanks

[jQuery] Re: IE issues

2009-08-28 Thread MorningZ
Can you elaborate on trouble getting working? Can you provide a link? Code? Anything more than doesn't work will help others help you On Aug 28, 7:14 am, Phil philsethdes...@yahoo.com wrote: Im having trouble getting my jquery slideshow to work in IE, It works fine in FF and Safari. I

[jQuery] Re: Is there a jQuery way to sort span-elements?

2009-08-28 Thread mkmanning
$.makeArray() converts the elements returned from the jQuery selector to an actual array. Arrays in JavaScript have a sort method, into which you can pass an optional sort function (by default the members of the array are sorted lexicographically). The members of this array are the span elements,

[jQuery] Re: rounded corner recommendations

2009-08-28 Thread Jack Killpatrick
I've had good luck with this one after testing many of them in multiple browsers: http://www.parkerfox.co.uk/labs/cornerz - Jack Rich Sturim wrote: Greetings, Can people recommend a rounded corners plugin that is stable on a wide array of browsers? I've been hunting around -- and found a

[jQuery] unable to put AllVideos inside

2009-08-28 Thread Dave
Hi I am trying to put some videos from YouTube, using the AllVideos- plugin, inside different tabs/slides (I put the code, {youtube}XXX {/youtube}, inside the HTML-field of the Jquery module. But no videos appear frontend, just the code... Is it impossible to put another plugin inside this

[jQuery] Combining two jquery cycle plugins = HELP PLEASE

2009-08-28 Thread designshuffle
Hi Guys, This is my first post, I am really stuck with some simple JQuery. (I am a complete beginner) I am working on a site which requires the following effect... The user clicks on a link in a right hand sided #div and the images in the left #div shuffle and the relative info for each

[jQuery] Strange problem with ui.datepicker.js

2009-08-28 Thread Lee Mc
Hi all, Getting a very strange issue with the datepicker component. It seems that whatever the first date on the bottom line of the displayed picker is, is being duplicated. Take a look at what I mean here: http://i773.photobucket.com/albums/yy12/lmcmullen8/datepicker_prob.jpg There are lots

[jQuery] Re: search list in a div for attribute value

2009-08-28 Thread tatlar
Oops. This sentence: I want to traverse the array, looking at the title attribute, and if it is in the array $search I want the style changed. Should be: I want to traverse the list, looking at the title attribute, and if it is in the array $search I want the style changed. On Aug 28, 1:27 

[jQuery] (validate) conditional statements in .validate

2009-08-28 Thread jckos
Hi, I would like to make fields required based on a country selection in a drop down. I tried a few variations of the following but can't get it to work. Is there another way of going about this? $(#country).change(function(){ var ctry= $(#country).val(); if ( country

[jQuery] Dialog confirmation before submit

2009-08-28 Thread Edgar Méndez .
I'm using the jquery validation plugin and when all the fields of the form are correct I want to show a dialog that inform that the data will be submited, the problem is that the dialog just show for about 1/2 second and the form is submited, how can I do some kind of delay or pause before submit

[jQuery] Re: search list in a div for attribute value

2009-08-28 Thread tatlar
Hmm. Would this be expected to work? $gallery.find('li[title='+$title_to_searchl+']').css('color','red'); On Aug 28, 1:31 pm, tatlar robertlnew...@gmail.com wrote: Oops. This sentence: I want to traverse the array, looking at the title attribute, and if it is in the array $search I want the

[jQuery] Re: Dialog confirmation before submit

2009-08-28 Thread jen
Have the modal dialog that submits the form on confirm. See example here: http://www.jensbits.com/2009/08/10/modal-confirmation-dialog-on-form-submit-javascript-jquery-ui-and-thickbox-varieties/ On Aug 28, 3:56 pm, Edgar Méndez. edgar9...@gmail.com wrote: I'm using the jquery validation plugin

[jQuery] Re: Cycle plugin: problem showing slide titles in pager (using pagerAnchorBuilder function)

2009-08-28 Thread lumpysimon
Hi Mike Thank you very much for your suggestion, but that's not working either I'm afraid - I still end up with just a blank space where I'd like the title to appear. (I also noticed that your method seems to strip the closing tag from the #cycle-numbers div too, although I can't for the life

[jQuery] (Validate) - Specifying error placement for only one field

2009-08-28 Thread Erich93063
I have a form where I am using the jquery validation plugin. In that form, I have a date field that is using a jquery datepicker plugin so a small calendar gif immediately follows the date field. The date is required. The problem is when the field fails validation, the error message appears

[jQuery] event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-28 Thread kali
hi, I have a problem with binding events to dynamically-generated elements; specif. problem is something I'm trying to do with JavaScript doesn't work but it works if I do it in JSP: (and can we PLEASE get ability to display CODE in this forum in NON-PROPORTIONAL FONT???) JSP,

[jQuery] Meio mask

2009-08-28 Thread Mario Soto
Hi everyone. I'm having troubles with meiomask to allow spaces in a field that will allow only letters, numbers and spaces of course. I've tried already with the responses but, doesn't work. Any help?

[jQuery] search list in a div for attribute value

2009-08-28 Thread tatlar
i think this is a pretty simple question, but i can't seem to figure it out. i have a list in a div: div id=gallery ul li title=foofoo/li li title=barbar/li li title=unicornunicorn/li /ul /div I have an array with values in it: var $search = [ foo, bar ] ; I want to traverse the array,

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-28 Thread James
I have difficulties understanding what you're trying to achieve. As someone mentioned, Java is to Javascript as Ham is to Hamster. They're two different beasts. For the 'elem+1' situation, you can do: this['elem'+1] = '...'; to dynamically create variables. But usually you don't have to

[jQuery] Re: search list in a div for attribute value

2009-08-28 Thread tatlar
Oops. This sentence: I want to traverse the array, looking at the title attribute, and if it is in the array $search I want the style changed. Should be: I want to traverse the list, looking at the title attribute, and if it is in the array $search I want the style changed. And this: var

[jQuery] Re: Triggering a select list from a div onclick

2009-08-28 Thread James
And I assume you are using jQuery for this. $(function() { $(#myDiv).click(function() { $(#menu).toggle(); // toggles show/hide // $(#menu).show(); // just show }); }); div id=myDivClick me/div select name=menu id=menu style=display:none option value=option1Option

[jQuery] Triggering a select list from a div onclick

2009-08-28 Thread Mat
I need to be able to trigger (open) a select list when I click on a div. I would love something like this to be possible: div onclick=$('select[name=menu]').openClick me/div select name=menu style=display:none option value=option1Option 1/option option value=option2Option 2/option

[jQuery] Re: Triggering a select list from a div onclick

2009-08-28 Thread Charlie
http://docs.jquery.com/Events/trigger exactly what you are needing Mat wrote: I need to be able to trigger (open) a select list when I click on a div. I would love something like this to be possible: div menu"]').open"Click me/div select name="menu" style="display:none" option

[jQuery] JCarouselLite - pause scrolling

2009-08-28 Thread Steffan A. Cline
I have a carousel that auto scrolls images. I was asked if there is a way to make it so that if you mouse over the carousel, it stops and when you mouse out, it starts up again. Is this possible? Thanks Steffan --- T E L 6 0 2 . 7

[jQuery] .hide() not hiding elements in IE

2009-08-28 Thread nick.rathert
hi all, i'm having an interesting IE6 and IE7 issue that may just be par for the course. i'm curious if anyone else has run into this problem. here's the URL: http://jsbin.com/afede long story short, i have a bunch of nested lists with IDs in certain ULs, like ul id=collapse. i'm trying to

[jQuery] [validate] require certain fields with specific select box value

2009-08-28 Thread OzBoz
I'm using Jörns jQuery Validation plugin and it works like a charm except of one thing which I can't get to work although I think it should be possible. I have a form where people can request a brochure. They can choose if they want it send by e-mail or post with a select box. Normally the

[jQuery] There is a proble in IE7 with a jQuery autocomplete

2009-08-28 Thread Александр Туранский
Every time a key is up in Firefox autocomplete normally lists suggestions, but in IE7 it shows for a second the suggestions list and then hides it leaving me without a possibility to choose from amongst the suggested values. But if an array of values is small (up to aprox. 30 values max) it works

[jQuery] jquery.autocompleter custom target url

2009-08-28 Thread Rogério Vicente
Hello, I'm using the plugin jquery.autocompleter and I have a remote script in a server that has some htaccess rules defined for URL's. So instead of sending the params in the default way: http://myserver.com/myscript.php?q=blablavar=foo I need to send them like this:

[jQuery] validate input before calling auto complete

2009-08-28 Thread Shyam
How can I validate a field before calling the auto complete on user input. Is there any a way to configure a pre condition for a auto completion. I want the send the validated input to auto complete q field. I have configured both validation and auto complete for the 'firstName' field. When I

[jQuery] Re: Issue with getJSON function... I get the JSON file but I can't do anything with it !! Help please

2009-08-28 Thread James
If the JSON file is local, you don't need the ?callback=? param in the url. Use Firebug for Firefox to debug whether your JSON is being returned correctly via jQuery ajax. On Aug 28, 12:55 pm, lpdahito lp.dah...@gmail.com wrote: Hi guys, I have a problem retrieving data in JSON format using

[jQuery] Re: require certain fields with specific select box value

2009-08-28 Thread James
You can use a function, like: address_1: { required: function() { return $(#byMail).is(:checked); } } Here, address_1 is the name of an input field. #byMail is a checkbox field. address_1 is required depending on whether #byMail is checked or not. On Aug 28, 7:19 am, OzBoz

[jQuery] Re: .hide() not hiding elements in IE

2009-08-28 Thread James
You cannot have more than one id=collapse on the document at one time. IDs are suppose to be unique. You can use a CLASS instead. Change your HTML to: ul class=searchResultsList collapse and your selector to: $(ul.collapse).hide(); On Aug 28, 8:11 am, nick.rathert nick.rath...@gmail.com wrote:

[jQuery] Re: jquery.autocompleter custom target url

2009-08-28 Thread James
For Autocomplete version 1.1, look from line 367. The url and data parameter for the AJAX call. That should give you a head start. Modify the url based on the options.url and the lastWord(term). That should probably give you a head start. On Aug 28, 12:21 pm, Rogério Vicente rogerio...@gmail.com

[jQuery] Re: validate input before calling auto complete

2009-08-28 Thread James
I'm not sure if there is a clear way to do it with the autocomplete options and whether it's possible to modify the ajax call within autocomplete directly. You can try using jQuery's $.ajax() 'beforeSend' callback option. http://docs.jquery.com/Ajax/jQuery.ajax#toptions Set that option using

[jQuery] Re: .hide() not hiding elements in IE

2009-08-28 Thread Charlie
ID's must be unique, you need to use class for multiple instances nick.rathert wrote: hi all, i'm having an interesting IE6 and IE7 issue that may just be par for the course. i'm curious if anyone else has run into this problem. here's the URL: http://jsbin.com/afede long story short,

[jQuery] Re: Issue with getJSON function... I get the JSON file but I can't do anything with it !! Help please

2009-08-28 Thread MorningZ
The alert box that pops up diplays the following: http://localhost:3000 [object Object] Are you expecting different? http://jsbin.com/oceni/edit alerting an evaluated JSON object will show you [object Object] If you want to see the JSON broken down into it's Key/Value pairs, Firefox +

[jQuery] Upgrading to 1.3.2 from 1.2.6, selectors that used to return many elements now only returning first

2009-08-28 Thread Eric Winter
I am not trying to upgrade to 1.3.2 and in every case I use a selector that should (used to) return many elements now only returns the first. I checked using the .size() method and it is indeed only returning 1. Any ideas on what went wrong? Thanks, Eric

[jQuery] Issue with getJSON function... I get the JSON file but I can't do anything with it !! Help please

2009-08-28 Thread lpdahito
Hi guys, I have a problem retrieving data in JSON format using Ajax with JQuery. Here's the code I use: /app/controllers/stories_controller.rb: def index @stories = Story.all respond_to do |format| format.html # index.html.erb format.xml { render :xml = @stories }

[jQuery] Re: Is there a 'dropdown button' plugin?

2009-08-28 Thread Jack Killpatrick
maybe this? http://www.givainc.com/labs/linkselect_jquery_plugin.htm - Jack donb wrote: That's what I'd call it, anyway. This would be a captioned button with a small arrow you'd click on. That would drop down a list of button captions, changing the caption of the button when it collapses.

[jQuery] Re: Too much recursion

2009-08-28 Thread Mohd.Tareq
On Fri, Aug 28, 2009 at 8:46 AM, FCCS brard.pie...@gmail.com wrote: Hello, I'm trying to build a simple fadeIn - fadeOut loop on a div, but I get an infinite recursion the way I do it : // + Code function visibleFadeIn() { jQuery('#visible').fadeIn(2000, visibleFadeOut()); }