[jQuery] Re: .post ajax issue

2009-02-10 Thread Konstantin Mirin
If you use PHP, check register_globals. If you see request sent to the script, it received it - 100%. Try to output some test string to confirm that you are calling correct script. Best regards, Konstantin Mirin mailto:konstantin.mi...@gmail.com mailto:i...@konstantin.takeforce.net > -Ori

[jQuery] Re: Only show 5 list item, hide the rest?

2009-02-10 Thread mofle
Thanks, one problem though. I slides each individual li item, i need it to slide it like if i would slide the whole list, but only the rest of the list that is hidden? On Feb 10, 3:01 pm, Stephan Veigl wrote: > Hi, > > try this one: > >     var list = $('#myList li:gt(4)'); >     list.hide(

[jQuery] Re: Jquery Treeview bug in Tapestry5

2009-02-10 Thread Ralph Whitbeck
noConflict will only release the $ back to the other library. You'll need to go through and update your jQuery lines like so from $("div").hide(); to jQuery("div").hide(); http://docs.jquery.com/Core/jQuery.noConflict Ralph On Feb 10, 9:59 pm, pilgrim wrote: > Hi, > I'm using Tapestry5.01

[jQuery] Passing array to $.ajax()

2009-02-10 Thread Konstantin Mirin
I need to pass array to $.ajax() function and get this array on the server side. If doing this manually, I should get: script.php?arr[]=val1&arr[]=val2 $.ajax() only encodes like script.php?arr=val1&arr=val2 and I get only the last value on the server side... any ideas how to do it without custom f

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-10 Thread Ralph Whitbeck
Karl is right, you need to convert it from a string first. shapper wrote: > Hello, > > I have an input on my page as follows: > > > > I am trying to increase and decrease the value of the input as > follows: > > $index = $('#Index'); > $index.val()--; > > I always get an error:

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-10 Thread brian
Oh, right! I knew that looked like a bad idea in the first place. On Tue, Feb 10, 2009 at 9:46 PM, Karl Rudd wrote: > > Remember also that .val() will return a string, so you'll need to > convert it to a number first (parseInt), then decrement it. > > Karl Rudd > > On Wed, Feb 11, 2009 at 1:14 P

[jQuery] Re: $.post NOT_ENOUGH_ARGS

2009-02-10 Thread mkmanning
For the second argument use $(form).serialize() You should also use onsubmit="return CheckForm0(this);" although the best practice would be to remove the inline script and bind the submit event like this: $('form').submit(function(){ //do your ajax here and return false }); On Feb 10, 8:14 pm,

[jQuery] Re: How to get the selected values in the multiselection

2009-02-10 Thread min
Hi, James I have tried $('#selection').val(); , it still can only get the first value from the values which I have selected. On Feb 11, 1:20 pm, James wrote: > $('#selection').val(); > will get you an array of values. > > $('#selection').val()[0]; > will get you the first index of that array

[jQuery] Re: $.post NOT_ENOUGH_ARGS

2009-02-10 Thread Tim Johnson
On Tuesday 10 February 2009, James wrote: > The second parameter (where you have 'form') is suppose to be a JS > object like: > {name:form.myName, email:form.email, phone:form.phone} Potentially, 'form' could have hundreds of elements and in reality, does. So how to convert the 'form' object int

[jQuery] Re: .post ajax issue

2009-02-10 Thread drummingsticks
Sorry about the confusion. I'm trying to use jQuery's .post function. I use Firebug in Firefox to test and check what was sent from the page and what the ajax response is back from the server. In the post tab of Firebug, it correctly shows the data that needs to be passed to the server, however

[jQuery] Re: combine slide and fade

2009-02-10 Thread mkmanning
You could try this: jQuery.fn.slideFadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback); }; On Feb 10, 12:31 pm, Paul Mills wrote: > Hi Chris, > It's a bit tricky trying to get 2 effects to run at the same ti

[jQuery] Jquery Treeview bug in Tapestry5

2009-02-10 Thread pilgrim
Hi, I'm using Tapestry5.018 (using Prototype and Scriptaculous for front end). I love Jquery and try using TreeView plugin for processing tree. Everything is ok so far but a bug with remove function in jquery.treeview.edit.js. With existence of prototype.js , remove a node in tree will remove a t

[jQuery] Re: Jquery seems to be sending two requests the first few times. . .

2009-02-10 Thread Tze Yang Ng
Hi Mark, > I have been tracing this one down for two days. > > Has anyone else ever seen jquery making multiple request for a single > call? Is it possible that u register an event multiple times ? Something like the following: function register_button_for_action() { $('button').load( 'any_ur

[jQuery] Re: $.post NOT_ENOUGH_ARGS

2009-02-10 Thread James
The second parameter (where you have 'form') is suppose to be a JS object like: {name:form.myName, email:form.email, phone:form.phone} function CheckForm0(form) { $.post(form.action,{name:form.myName, email:form.email, phone:form.phone}, function(response,mystatus){ alert('respo

[jQuery] Re: How to get the selected values in the multiselection

2009-02-10 Thread min
Thanks a lot! On Feb 11, 1:20 pm, James wrote: > $('#selection').val(); > will get you an array of values. > > $('#selection').val()[0]; > will get you the first index of that array > > or you could set it as a variable to get the value: > var list = $('#selection').val(); > list[0]; // first i

[jQuery] $.post NOT_ENOUGH_ARGS

2009-02-10 Thread Tim Johnson
My source is "jQuery in Action" (Bibeault/Katz) - page 249, the $.post function. According to the documentation post() takes three arguments: URL, parameters, callback where callback is a function with 2 arguments, response and status. I've tried the following - which is called from the form as on

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-10 Thread Karl Rudd
Remember also that .val() will return a string, so you'll need to convert it to a number first (parseInt), then decrement it. Karl Rudd On Wed, Feb 11, 2009 at 1:14 PM, brian wrote: > > $index.val() returns the value. $index.val(VALUE); assigns VALUE. > > So, this should (might) work: > > $inde

[jQuery] Re: How to get the selected values in the multiselection

2009-02-10 Thread James
$('#selection').val(); will get you an array of values. $('#selection').val()[0]; will get you the first index of that array or you could set it as a variable to get the value: var list = $('#selection').val(); list[0]; // first in array list On Feb 10, 3:04 pm, min wrote: > Hi, the following

[jQuery] Re: Replace part of a src= value

2009-02-10 Thread James
Un-tested, but maybe something like this: if ($.browser.msie && $.browser.version == '6.0') { $("img").each(function() { var new_src = $(this).attr("src").replace(/.png$/i, '.jpg'); $(this).attr("src", new_src); }); } Note that $.browser is deprecated from jQuery 1.

[jQuery] Re: Increment Value. What am I doing wrong?

2009-02-10 Thread brian
$index.val() returns the value. $index.val(VALUE); assigns VALUE. So, this should (might) work: $index.val(--$index.val()) It doesn't look so great, though. I say "might" because I'm not sure if that needs to be set as a var, first. You also want the decrement on the left or you'll be decremen

[jQuery] Increment Value. What am I doing wrong?

2009-02-10 Thread shapper
Hello, I have an input on my page as follows: I am trying to increase and decrease the value of the input as follows: $index = $('#Index'); $index.val()--; I always get an error: invalid assignment left-hand side What am I doing wrong? Thanks, Miguel

[jQuery] How to get the selected values in multi-select

2009-02-10 Thread min
Hi, everyone. The following code can only get only one selected value in the multiple selection widget: $('#selection')[0].value However, I want to get all the selected values in the multi-select. Could you plesease give me some suggestions thanks min

[jQuery] How to get the selected values in the multiselection

2009-02-10 Thread min
Hi, the following code can only get one selected value in the multiselection. $('#selection')[0].value However, I want to get all the selected values from the multiselection Could you please give me some suggestions thanks min

[jQuery] Text append / replace not working in ffx 2.x and HtmlUnit

2009-02-10 Thread Marc Palmer
Hi, Forgive me as I'm a total jQuery n00b. However, I am rather confused. I have the following trivial code: $(document).ready(function () { $("p").text("The DOM is now loaded and can be manipulated."); }); This is

[jQuery] jsForms, Document-View pattern for jQuery

2009-02-10 Thread Dis
Hello, Let me introduce an additional layer that will allow you to move development process of the web applications to new level. You can use this layer for saving time of development process and simplifying support of your projects. This layer is named jsForms and based on jQuery. It allows to p

[jQuery] Replace part of a src= value

2009-02-10 Thread -e-train
Hi All, I am new to jQuery and am having a hard time figuring out what i am looking for in the docs an don this forum. What i want to do is create a little jquery script that checks to see if the browser is msie and browser.version is 6.0 I have that part done: jQuery.each(jQuery.browser, func

[jQuery] Superfish

2009-02-10 Thread deee
Hi Everbody Superfish is great, no doubt. But since I installed 'FrontPage Slideshow' it is not working anymore in IE. What can I do? Please help Website: http://westerhallrums.com/rums/index.php?option=com_content&view=article&id=53&Itemid=63 thanks, De

[jQuery] Superfish

2009-02-10 Thread deee
Hi Everybody No need to say that this module is just great! But and there must be a but... since I installed 'FrontPage Slideshow' it is not working anymore! Help please You can check it here: http://westerhallrums.com/rums/index.php?option=com_content&view=article&id=53&Itemid=63 Anybody an

[jQuery] Re: Errors

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 11:17 AM, atomk wrote: > > Would somebody mind taking a look at this page > http://consolidatedaggregates.com/ > . > > I'm suddenly getting many cryptic jQuery errors. I'm not sure what is > causing them because I don't know what they mean. > As cryptic as this msg? What

[jQuery] Re: How do I update this with ajax??

2009-02-10 Thread AndreMiranda
Hi!! I don't have my exactly code here because it's at work. I'll see it just tomorrow. But I remember quite good what I've done. It's something like this my jQuery: $("#myDatePicker").datepicker({ onSelect: function(date) { return window.location.href("/Admin/Schedule/?date=" + date; } And I

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 4:17 PM, Klaus Hartl wrote: > > I've created the ticket aready: > http://dev.jqueryui.com/ticket/4109 > Thanks, Klaus. I think I've sorted this out, actually. Although I'm not certain of a fix. I should have been logging this[0].tagName, not inner(this)[0].tagName. The a

[jQuery] Re: How do I update this with ajax??

2009-02-10 Thread pedalpete
without seeing your jquery, it's tough to say exactly what is going on, but have you got 'return false;' at the end of your select function? That stops the page from submitting (refreshing). On Feb 10, 5:32 pm, AndreMiranda wrote: > Hi!! > > I have a page with DatePicker and a list of events tha

[jQuery] How do I update this with ajax??

2009-02-10 Thread AndreMiranda
Hi!! I have a page with DatePicker and a list of events that occur in some respective date. So, when a person selects a date in DatePicker, this date is passed as an argument to a method (I'm using asp.net mvc) and this method returns me all the events of the chosen date. The problem is the page

[jQuery] Re: Creating a copy of associative array

2009-02-10 Thread Dave Methvin
> You can use jQuery's extend() to do it for you: That's the way to go. You can do a deep copy this way: var mycopy = $.extend(true, {}, myoriginal); However, if the original object has any special objects in it such as Date they will just be copied by reference. Don't extend Object.prototype

[jQuery] Re: Cannot Get JQuery Ajax to work in Google Chrome browser

2009-02-10 Thread Karl Rudd
It's probably something to do with what Opera and WebKit allow in the unload handler. In fact doing a Google on "opera unload trigger link" turned up these two links: http://objectmix.com/javascript/631919-unload-event-more-restrictive-now-safari-3-1-a.html https://bugs.webkit.org/show_bug.c

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 4:12 PM, Klaus Hartl wrote: > > As a quick workaround, does the following work: > > spinner: '' no difference > Or, you could also not touch the default spinner, but add the image as > background-image: > > .ui-tabs-load em { >padding-left: 20px; >background: url

[jQuery] Re: Another Slide Effect?

2009-02-10 Thread pedalpete
two things 1) posts to the forum don't show up immediately (not sure why, but sometimes it takes some time) 2) i think you are looking for the slideDown http://letmegooglethatforyou.com/?q=jquery+slide+down On Feb 10, 1:18 pm, "Clemens K." wrote: > (hope this time the posting works) > > hi. > >

[jQuery] Re: Cannot Get JQuery Ajax to work in Google Chrome browser

2009-02-10 Thread Mike
Can anyone help me out with this? Here is a version of the update.php script which will just write what the info it gets to a log file. I found that the ajax works in IE and Firefox, but not on Chrome or Opera: update.php: $debug = true; function update_log_event ($filename, $linenum, $messag

[jQuery] Re: using :has with selector

2009-02-10 Thread James
Is there a reason to not use $(this).parent() in the function to select the tr? On Feb 10, 12:50 pm, SteelRing wrote: > This is going to select the td, whereas I need to select the tr. > > On Feb 10, 4:41 pm, "Mauricio \(Maujor\) Samy Silva" > > wrote: > > TD is a TR children so use the CSS des

[jQuery] Re: using :has with selector

2009-02-10 Thread SteelRing
This is going to select the td, whereas I need to select the tr. On Feb 10, 4:41 pm, "Mauricio \(Maujor\) Samy Silva" wrote: > TD is a TR children so use the CSS descendant selector tr td. > > $("#tableid tbody tr td.someclass:contains('mytext'))").dosomething(); > > PS: mytext is a string and s

[jQuery] draggable and IE problems

2009-02-10 Thread Jamie
I'm having some problems with a draggable list item and dragging it to a nearby textarea inside of another div. (See http://dev.toolbox.learningfocused.com/tests/planner/unit.html for reference) I have 2 issues: 1) In IE, the zIndex doesn't appear to be working properly and won't allow me to d

[jQuery] Another Slide Effect?

2009-02-10 Thread Clemens K.
(hope this time the posting works) hi. recently i transfered to jQuery from mootools. some time ago i made a slide-down div with mootools and wanted to get a similar effect with jQuery. example: www.madison.at -> click on login! is there a way or a plugin in jQuery, to get the whole box slide

[jQuery] Other Slide Effect?

2009-02-10 Thread c...@madison.at
Hi. I implemented a slide box effect with mootools some time ago... www.madison.at -> Click on login! Now, I'm switching to jQuery, but the slide effect here isn't the style I'd like to have. Is there a way or plugin to get a mootools like slide up/down effect? Thanks in advance! Best. C.

[jQuery] Re: Permission denied to get property HTMLDivElement.parentNode

2009-02-10 Thread Justin
I've seen various number of posts related to the same issue and some folks think that it's a Mozilla bug (https://bugzilla.mozilla.org/ show_bug.cgi?id=208427) but I'm questioning whether it's really a jQuery bug that should be addressed by re-evaluating 'withinElement' where the problem currently

[jQuery] Re: Cycle Plugin Adds Relative Position to Slideshow Container

2009-02-10 Thread Mike Alsup
> My issue is that in Firefox, IE and Opera, Cycle adds in some inline > style elements (overflow:hidden), but in WebKit, it also adds > (position:relative).  Why would it be doing that only in those > browsers? It doesn't only do that in Webkit browsers. It does that if the element reports that

[jQuery] Re: using :has with selector

2009-02-10 Thread Mauricio (Maujor) Samy Silva
TD is a TR children so use the CSS descendant selector tr td. $("#tableid tbody tr td.someclass:contains('mytext'))").dosomething(); PS: mytext is a string and should be quoted. Maurício -Mensagem Original- De: "SteelRing" Para: "jQuery (English)" Enviada em: terça-feira, 10 de

[jQuery] Re: Passing a Index to a function

2009-02-10 Thread tres
var li = $('ul li'); li.bind('click', function() { alert(li.index(this)); }); ...works for me. Also, if you are calling jQuery on the same set of objects more than once, it is wise to set a reference to it instead of re calling it more than once. Instead something such as this: $('ul li

[jQuery] Re: using :has with selector

2009-02-10 Thread SteelRing
FYI, jquery 1.3.1 On Feb 10, 3:57 pm, SteelRing wrote: > Anyone can think of a reason why this shouldn't work? I'm trying to > select the Row (tr) where the cell of td with class "someclass" > contains "mytext". Since I want to work on the row (tr) itself, I need > to use :has because I don't ne

[jQuery] using :has with selector

2009-02-10 Thread SteelRing
Anyone can think of a reason why this shouldn't work? I'm trying to select the Row (tr) where the cell of td with class "someclass" contains "mytext". Since I want to work on the row (tr) itself, I need to use :has because I don't need to select the td itself. Am I wrong or am I wrong? $("#tablei

[jQuery] Re: jquery.form -- file upload problem

2009-02-10 Thread QNC
> Can you post a link to a page that shows the problem?  I've been > running this code all morning in FF 3.0.5 without error. I'm trying to produce a minimal example but it's longer than I expected...

[jQuery] Re: jquery validate error

2009-02-10 Thread Jörn Zaefferer
onkeyup:true is the culprit. You can disable the keyup-validation via onkeyup:false, but the only other valid value is a function. Jörn On Tue, Feb 10, 2009 at 5:12 PM, crowincage wrote: > > Hello, > > this is my first post - hope everthing goes fine :-) > today I get a strange error trying to

[jQuery] Re: How to pass a date to DatePicker??

2009-02-10 Thread Stephan Veigl
Hi André see: http://docs.jquery.com/UI/Datepicker -> setDate by(e) Stephan 2009/2/10 AndreMiranda : > > Hi everyone!! > > How can I pass a date to DatePicker and it shows this date selected, > highlighted etc? > > Thanks!! > > André

[jQuery] Re: Adding an LI element to an OL

2009-02-10 Thread Michael Lawson
What is the exact error you're getting? It looks like it's in scope (granted i'm a javascript and jquery newbie myself) cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my teachings criticall

[jQuery] animate the top of a div before the bottom

2009-02-10 Thread pedalpete
I'm trying to get an animation effect similar to opening a application on mac, where the top of the div will animate first, followed by the bottom of the div. Top of the div gets wider, and tapers to the bottom and then the bottom half animates to match. Has anybody seen this before? The div has

[jQuery] Cycle Plugin Adds Relative Position to Slideshow Container

2009-02-10 Thread Derek Perkins
I'm using Cycle in a number of places on my site, but I'm having an issue with absolute placement in WebKit browsers (Safari & Chrome). My site is available here: http://derekperkins.com/seatability/super-product-page/ My issue is that in Firefox, IE and Opera, Cycle adds in some inline style el

[jQuery] Re: Adding an LI element to an OL

2009-02-10 Thread Sam Hastings
Hi Michael, Thanks for replying. The sort won't need to be done very often at all so I imagine that your solution would be ideal. Having a bit of trouble getting it to work though: $("#group_add").livequery('submit',function() { var group_name = $(this).children("#group_

[jQuery] Re: Errors

2009-02-10 Thread Karl Swedberg
hmmm. I got no errors here on FF3 Mac. Took a very long time for the page to load, but didn't see any errors. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 10, 2009, at 12:36 PM, atomk wrote: Thanks for looking. In FF3 on a Mac I get tons of errors

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread Klaus Hartl
I've created the ticket aready: http://dev.jqueryui.com/ticket/4109 --Klaus

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread Klaus Hartl
As a quick workaround, does the following work: spinner: '' Or, you could also not touch the default spinner, but add the image as background-image: .ui-tabs-load em { padding-left: 20px; background: url(/css/images/misc/spinner.gif) no-repeat; } Interestingly you're already keeping th

[jQuery] Re: Tablesorter in Tabs

2009-02-10 Thread black.horizons
I don't have one no, as my server doesn't support PHP5. I can however post the source code, and i'll repost when i upload a screenshot! -- test.html -- http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd"> http://www.w3.org/1999/xhtml"; xml:lang="en"> Page Title

[jQuery] Re: The order of these conditions should not matter

2009-02-10 Thread Thomas Allen
Good call; thanks! I've been working with the Validate plugin, and the "depends" guards appear to be creeping into my other code :^) Thomas On Feb 10, 2:41 pm, Ricardo Tomasi wrote: > Doh. I'm blind. > > $("#pay_cc:checked") will always be 'true'. even if the element is not > found an object wi

[jQuery] Re: Delayed Checkboxes in IE

2009-02-10 Thread Karl Swedberg
On Feb 10, 2009, at 9:45 AM, Stephan Veigl wrote: change your $("input:checkbox").change(function () {... line to $("input:checkbox").bind("change click keypress", function(){... to catch the checkbox every time it has been clicked (either with mouse or keyboard) I'm not sure that keypress i

[jQuery] Re: Adding an LI element to an OL

2009-02-10 Thread Michael Lawson
How often are you going to be doing this sort? You could just say that when you add something to the list, pull them all out and put them into an array, sort the array and then put it back out cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline

[jQuery] Adding an LI element to an OL

2009-02-10 Thread Sam Hastings
Hi everyone, I've got an ordered list (OL) containing several LI items, currently arranged in alphabetical order. How hard would it be to create a new LI element, and put it in the right alphabetical position based on its value? Sam

[jQuery] Re: combine slide and fade

2009-02-10 Thread Paul Mills
Hi Chris, It's a bit tricky trying to get 2 effects to run at the same time on the same jQuery selection. My approach would be to change the HTML mark up so that the 2 effects can be applied to different selections. So if you have some HTML like this: Toggle This is the content to be h

[jQuery] Re: Tablesorter in Tabs

2009-02-10 Thread MorningZ
Got a public-facing example page? I've got the tablsorter plugin inside ui.tabs on a bunch of pages and have zero problems with them conflicting with each other On Feb 10, 2:46 pm, "black.horizons" wrote: > I've got tablesorter 2.0 sitting in tabs and it's not working, has > anybody got any id

[jQuery] Re: ID's start with #

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 2:44 PM, Shredder36 wrote: > > Unfortunately, the HTML is generated by a 3rd party application and I > have no control over the id's (and in many cases the lack thereof). You might want to consider taking that up with the 3rd party, then. Using # in an ID == broken, IMHO.

[jQuery] Tablesorter in Tabs

2009-02-10 Thread black.horizons
I've got tablesorter 2.0 sitting in tabs and it's not working, has anybody got any idea why? I've got tablesorter 2.0 also sitting outside tabs (on a different page) and it's working perfectly, so i'm fairly sure that tablesorter 2.0 isn't broke! thanks in advance! alex

[jQuery] Re: Cycle "Jumps" in IE

2009-02-10 Thread Mike Alsup
> Thank you so much - that worked!  Is this an ok version of jQuery to > use until v1.3.2? Yes, but you'll only need it for a few days.

[jQuery] Re: get visibility state after toggle()

2009-02-10 Thread brian
$( selector ).is(':visible') <-- this is precisely what I was looking for. How did I forget that? Thanks a bunch! On Tue, Feb 10, 2009 at 2:51 PM, Paul Mills wrote: > > Hi, > You don't need to run the video - try this link instead > http://jsbin.com/ojuju > > There are two snippets of Javsscrip

[jQuery] Re: get visibility state after toggle()

2009-02-10 Thread Paul Mills
Hi, You don't need to run the video - try this link instead http://jsbin.com/ojuju There are two snippets of Javsscript code in the page that is shown: The first uses uses a class to control the hide/show. The second uses $( selector ).is(':visible') to test if the text is visible. Paul

[jQuery] Re: ID's start with #

2009-02-10 Thread Shredder36
the double backslashes does work. thank you. sam On Feb 10, 1:04 pm, James wrote: > Try double backslash escaping the second #-sign: > > $("#\\#SAM1").text("hello"); > > On Feb 10, 7:36 am, Shredder36 wrote: > > > > > Hello, > > > How do I find an element who's id starts with #? > > > For ex

[jQuery] Re: ID's start with #

2009-02-10 Thread Shredder36
thanks, that's not really the task at hand, just a simple example to demonstrate the problem. I do appreciate the feedback however. Sam On Feb 10, 1:06 pm, James wrote: > Oh yeah, if you want to put text in a textarea, you're suppose to use > val() instead of text(): > > $("#\\#SAM1").val("he

[jQuery] How to pass a date to DatePicker??

2009-02-10 Thread AndreMiranda
Hi everyone!! How can I pass a date to DatePicker and it shows this date selected, highlighted etc? Thanks!! André

[jQuery] Re: ID's start with #

2009-02-10 Thread Shredder36
Unfortunately, the HTML is generated by a 3rd party application and I have no control over the id's (and in many cases the lack thereof). On Feb 10, 1:34 pm, mkmanning wrote: > You might save yourself a world of pain if you use standards-based id > attributes: > > HTML 4 spec section 6.2 says, "

[jQuery] Re: jQuery / FF3 problem using "show()"

2009-02-10 Thread Ricardo Tomasi
>From the docs: Note: Please make sure that all stylesheets are included before your scripts (especially those that call the ready function). Doing so will make sure that all element properties are correctly defined before jQuery code begins executing. Failure to do this will cause sporadic probl

[jQuery] Re: The order of these conditions should not matter

2009-02-10 Thread Ricardo Tomasi
Doh. I'm blind. $("#pay_cc:checked") will always be 'true'. even if the element is not found an object will be returned. You have to check for .length or size () if($("#pay_cc:checked").length) showCC(); if($("#pay_check:checked").length) showCheck(); cheers, - ricardo On Feb 10, 5:29 pm, Thom

[jQuery] Re: ID's start with #

2009-02-10 Thread mkmanning
You might save yourself a world of pain if you use standards-based id attributes: HTML 4 spec section 6.2 says, "ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".")."

[jQuery] Re: The order of these conditions should not matter

2009-02-10 Thread Thomas Allen
It works fine for the focus event. The purpose of the conditionals is to ensure that the correct payment field pops up if the page is reloaded/revisited. For whatever reason, on a page reload, showCheck() always fires, even line 1's condition returns true and line 2's returns false (I've tested th

[jQuery] Re: Cycle "Jumps" in IE

2009-02-10 Thread Ashley
Hi Mike, Thank you so much - that worked! Is this an ok version of jQuery to use until v1.3.2? Ashley On Feb 10, 2:07 pm, Mike Alsup wrote: > > The cycle with pager is working fine on my site in all browsers.  In > > IE7, when I refresh the page, the 4 images contained in the cycle ALL > > sh

[jQuery] Re: Using jQuery Validation with Dot Net

2009-02-10 Thread Jon
I've set up a test site here: http://test.sunshine-design.co.uk/ I hope you can point me in the right direction, i've not had any further luck solving this! Thanks On Feb 9, 3:10 pm, Aaron Gundel wrote: > Yes, it would be helpful.  Can't really see what's going on in the > snippet you provided

[jQuery] Re: The order of these conditions should not matter

2009-02-10 Thread Ricardo Tomasi
What do you mean by overriden? Just copied your code over and it seems to work fine. http://jsbin.com/efeje http://jsbin.com/efeje/edit - ricardo On Feb 10, 3:07 pm, Thomas Allen wrote: > Here's my JS:http://pastebin.com/m6091a365 > And the accompanying HTML:http://pastebin.com/m30c57ea6 > > F

[jQuery] jQuery.tablesorter("destroy"); ?????

2009-02-10 Thread analysis_junky
Is there a way to destroy the tablesorter object like: jQuery.tablesorter("destroy"); I don't see anything in the documentation or code. Thanks! Jay -- View this message in context: http://www.nabble.com/jQuery.tablesorter%28%22destroy%22%29tp21939503s27240p21939503.html Sent from the

[jQuery] Re: Cycle "Jumps" in IE

2009-02-10 Thread Mike Alsup
> The cycle with pager is working fine on my site in all browsers.  In > IE7, when I refresh the page, the 4 images contained in the cycle ALL > show at once - in a cascade - before collapsing into their desired > div.  It functions fine in IE (fading through the images perfectly > with the pager)

[jQuery] Re: ID's start with #

2009-02-10 Thread James
Oh yeah, if you want to put text in a textarea, you're suppose to use val() instead of text(): $("#\\#SAM1").val("hello"); On Feb 10, 9:04 am, James wrote: > Try double backslash escaping the second #-sign: > > $("#\\#SAM1").text("hello"); > > On Feb 10, 7:36 am, Shredder36 wrote: > > > Hello,

[jQuery] Re: ID's start with #

2009-02-10 Thread James
Try double backslash escaping the second #-sign: $("#\\#SAM1").text("hello"); On Feb 10, 7:36 am, Shredder36 wrote: > Hello, > > How do I find an element who's id starts with #? > > For example:   > > the following does not seem to work > >  $("##SAM1").text("hello"); > > Any help is greatly ap

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-10 Thread mkmanning
rowIndex is a DOM property, so you'd have to use alert(trow [0].rowIndex); On Feb 10, 10:19 am, pantagruel wrote: > >  rowsBefore = row.rowIndex; > > Ok, but jQuery("#activator" + input).parent().parent(); selects the > row, but when I try to get rowIndex of that selected row I get > undefined b

[jQuery] ID's start with #

2009-02-10 Thread Shredder36
Hello, How do I find an element who's id starts with #? For example: the following does not seem to work $("##SAM1").text("hello"); Any help is greatly appreciated. thank you, Sam

[jQuery] Cycle "Jumps" in IE

2009-02-10 Thread Ashley
Hi All, jQuery file: jquery-1.3.1.min.js jQuery Cycle file: jquery.cycle.all.min.js (I believe these are the most recent versions, downloaded both today) The cycle with pager is working fine on my site in all browsers. In IE7, when I refresh the page, the 4 images contained in the cycle ALL sh

[jQuery] Re: selector to return the number of rows in a table before the row I just selected

2009-02-10 Thread James
Try: alert( trow.get(0).rowIndex ); On Feb 10, 8:19 am, pantagruel wrote: > >  rowsBefore = row.rowIndex; > > Ok, but jQuery("#activator" + input).parent().parent(); selects the > row, but when I try to get rowIndex of that selected row I get > undefined back. > > var trow = jQuery("#activator"

[jQuery] Re: jq.ui and the embedded autocomplete plugin

2009-02-10 Thread Jan Limpens
Ah, never mind, found it: http://jquery-ui.googlecode.com/svn/branches/dev/autocomplete/ui/ On Feb 10, 4:55 pm, Jan Limpens wrote: > Thanks a lot! > Any idea, where autocomplete sans ui has its page or repository? > > Anything further, I'll move to the other list... > > On Feb 10, 4:45 pm, "Ric

[jQuery] Re: jq.ui and the embedded autocomplete plugin

2009-02-10 Thread Richard D. Worth
On Tue, Feb 10, 2009 at 1:55 PM, Jan Limpens wrote: > > Thanks a lot! > Any idea, where autocomplete sans ui has its page or repository? The documentation is here http://docs.jquery.com/UI/Autocomplete The 1.6rc2 version is here http://jquery-ui.googlecode.com/svn/tags/1.6rc2/ui/ui.autocompl

[jQuery] Re: jq.ui and the embedded autocomplete plugin

2009-02-10 Thread Jan Limpens
Thanks a lot! Any idea, where autocomplete sans ui has its page or repository? Anything further, I'll move to the other list... On Feb 10, 4:45 pm, "Richard D. Worth" wrote: > After the jQuery UI 1.6rc2 release, the Autocomplete plugin was removed > pending some further refactoring and changes

[jQuery] Re: jq.ui and the embedded autocomplete plugin

2009-02-10 Thread Richard D. Worth
After the jQuery UI 1.6rc2 release, the Autocomplete plugin was removed pending some further refactoring and changes for inclusion in a future version of jQuery UI. It is still being developed, but will not be in the final 1.6 version (and has not been in any of the later release candidates: rc3-rc

[jQuery] Re: tabs, ajax mode, spinner not removed

2009-02-10 Thread brian
On Tue, Feb 10, 2009 at 4:21 AM, Klaus Hartl wrote: > > Hello Brian, would you mind to file a bug for this? > > --Klaus I don't mind at all.In fact, I've found a partial fix. Not really a fix, but a lead, anyway. However, I don't see any obvious way to reset my forgotten password for Trac. There

[jQuery] Re: jQuery / FF3 problem using "show()"

2009-02-10 Thread JohnnyCee
On Feb 10, 1:14 pm, pete higgins wrote: > moving the above the

[jQuery] Re: form plugin and prettypopin/lightbox

2009-02-10 Thread spiderling
I am using prettypopin for the link on the index page to open updatephoto.php. The index page also uses some other jQuery features. I've included the jQuery in case you see something that may be wrong or conflicting, and the HTML link tag. Thanks Pasquale jQuery: $(document).ready(functio

[jQuery] jq.ui and the embedded autocomplete plugin

2009-02-10 Thread Jan Limpens
Earlier I received an embedded autocomplete plugin, when I downloaded a jquery.ui compilation. Now this plugin is missing and it seems like the rc2 version, I still have got here, does not catch on (no errors, just does not react in any way) anymore. Is this still maintained? Where can I get it or

[jQuery] Re: Creating a copy of associative array

2009-02-10 Thread James
You can use jQuery's extend() to do it for you: test = {'foo':{'bar':'orig message'}}; var test2 = {} $.extend({}, test2, test); There's probably a simpler way. I'd also be interested to know. :) On Feb 10, 6:03 am, twooton wrote: > I cant figure out how to create a unique copy of an associat

[jQuery] Re: jQuery / FF3 problem using "show()"

2009-02-10 Thread pete higgins
moving the above the

  1   2   >