[jQuery] SlideToggleUp, this.options.curAnim is undefined

2009-01-27 Thread Anders Viklund
Hi, I am running into the error this.options.curAnim is undefined for the method SlideToggleUp. this.options.curAnim[ this.prop ] = true; jquery-1.3b1.js (line 3827). The problem occurs when I am trying to close a window using this code: $('#windowMin').bind(

[jQuery] $ javascript syntax

2009-01-27 Thread JeromeM
i tried searching the web, but couldnt find $ notation for javascript, but presumably it is javascript syntax as per the following example syntax: $(document).ready(function() could someone please shine some light on this for me..? thx, Jerome.

[jQuery] Re: auto refresh after x seconds ???

2009-01-27 Thread florin.g
This worked for me in the past: http://jquery.offput.ca/every/ Omid-4 wrote: Hi, I`m using one portal that use YUI , but I`m not familiar with YUI ; So I`m looking for a solution with jQuery ; Problem : I have a div id=records#anything#/div in my page layout . Now I need to

[jQuery] can i call ready function more than one time in a html page

2009-01-27 Thread prashantroy1...@gmail.com
Hi to jQuery Guys, I am new to jquery. i have few probs with jquery. 1. I want to know can we execute ready function twice in a html page? If we execute, does it affect the functionality of ready function. 2. I have one main js file that's included in each page and after this i want to include

[jQuery] How to get values of child popup window

2009-01-27 Thread Serry
Hi All, I want to get values set in child popup window using jquery Example i have opened new window let's say popup1 in that window agin one popup is opened let's say popup2. In popup2 i have one textbox. After we close popup2 window i want textbox value in popup1 window. Can

[jQuery] CSS ordering / paypal donation?

2009-01-27 Thread jshp...@gmail.com
Just as a note the default stylesheets are coupled by cascade order, I use ZF which handles linking in CSS files for me etc... so I had no idea that's what had changed. If it had been on the site it would have saved me a few hours of debugging my own code. Also I tried to do a donation and it

[jQuery] Re: $ javascript syntax

2009-01-27 Thread JeromeM
it's okay i found the answer for anyone who didnt read the intro like i didn't $ is an alias for the jquery object. On Jan 27, 9:39 am, JeromeM kingjer...@gmail.com wrote: i tried searching the web, but couldnt find $ notation for javascript, but presumably it is javascript syntax  as per

[jQuery] $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Stefano Corallo
Hi all, with refer at this previous post http://groups.google.it/group/jquery-en/browse_thread/thread/48725e45d59f1481?hl=it i've investigate and debugging version 1.3.1 of jquery i've notice that in the ajax function (line 3278): // If we're requesting a remote document

[jQuery] Re: Problem with document.getElementsById()

2009-01-27 Thread Mike Alsup
Javascript: var myDiv=secondtdArray.item(0).firstChild.data; firsttdArray=xmlRoot.getElementsByTagName(second); document.getElementById(myDiv).innerHTML =firsttdArray.item (0).firstChild.data; I tired to secondtdArray.item(0).firstChild.data directly in place of myDiv in

[jQuery] Re: $.ajax timeout and trouble with Microsoft IIS 6

2009-01-27 Thread Stefano Corallo
maybe an $.ajax bug like explained in : http://groups.google.it/group/jquery-en/t/b75f222ac0a68bb2?hl=it On 23 Gen, 09:48, Stefano Corallo stefan...@gmail.com wrote: the cache:false option not work. :( On 22 Gen, 20:10, jay jay.ab...@gmail.com wrote: Perhaps the cache:false option is

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Mike Alsup
In this case the execution stop because the return statement and there is no way to setup the onreadystatefunction and other stuff coded down after the statement if ( s.dataType == script type == GET parts                         ( parts[1] parts[1] != location.protocol || parts[2]

[jQuery] Re: $.ajax timeout and trouble with Microsoft IIS 6

2009-01-27 Thread Mike Alsup
i've a client side scrit that do a request to a server the server sleep for a 10 seconds and the respond, in the client side script i setup the timeout option at 1 second (1000) and i want to catch the error thrown (like explained all around the web :) ) a bit of code explain better:

[jQuery] Re: Problem with document.getElementsById()

2009-01-27 Thread anjith
Even then showing null as error On Jan 27, 4:02 pm, Mike Alsup mal...@gmail.com wrote: Javascript: var myDiv=secondtdArray.item(0).firstChild.data; firsttdArray=xmlRoot.getElementsByTagName(second); document.getElementById(myDiv).innerHTML =firsttdArray.item (0).firstChild.data; I

[jQuery] Re: can i call ready function more than one time in a html page

2009-01-27 Thread Mike Alsup
1. I want to know can we execute ready function twice in a html page? If we execute, does it affect the functionality of ready function. 2. I have one main js file that's included in each page and after this i want to include js file specific to each pages. And i also want to write ready

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Stefano Corallo
yes ok but i've set the jsonp option to avoid this problem like explained in http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/ that i've found http://docs.jquery.com/Ajax/jQuery.ajax#options i'm wrong? On 27 Gen, 12:06, Mike Alsup mal...@gmail.com wrote: In this case the

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Stefano Corallo
With the jsonp option i'm able to do cross domain request but i can't control the timeout and i'm wondering about why? On 27 Gen, 12:22, Stefano Corallo stefan...@gmail.com wrote: yes ok but i've set the jsonp option to avoid this problem like explained in

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Mike Alsup
With the jsonp option i'm able to do cross domain request but i can't control the timeout and i'm wondering about why? On 27 Gen, 12:22, Stefano Corallo stefan...@gmail.com wrote: yes ok but i've set the jsonp option to avoid this problem like explained in

[jQuery] Re: Problem with document.getElementsById()

2009-01-27 Thread Mike Alsup
Even then showing null as error How about posting what the HTML looks like instead of the PHP? Or a link to a test page.

[jQuery] Re: auto refresh after x seconds ???

2009-01-27 Thread Omid
I have created one sample file with above code , but it doesn`t work ! You can download my sample file here : http://www.filebam.com/download/82776-ee2596/est.rar What is going wrong !? Also I don`t know how can I use jQuery Timers for auto refresh purpose :(

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Stefano Corallo
ah and there is no way to simulate that? i want close the connection with the server if the request take a long time, and do something default like a message or other stuff ... what can i do? On 27 Gen, 12:30, Mike Alsup mal...@gmail.com wrote: With the jsonp option i'm able to do cross

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Mike Alsup
ah and there is no way to simulate that? You can simulate a timeout in your code by using setTimeout, but it's not the same as when the XHR is used for the request. With XHR jQuery can invoke the abort fn to cancel the request. There is no such option for the jsonp script injection

[jQuery] Re: auto refresh after x seconds ???

2009-01-27 Thread Omid
It seems my link is broken , please try this one : http://www.savefile.com/files/1983422 TNX On Jan 27, 2:35 pm, Omid omidda...@gmail.com wrote: I have created one sample file with above code , but it doesn`t work ! You can download my sample file here

[jQuery] Re: closure inside ajax method

2009-01-27 Thread Beres Botond
That *should* get called twice. What does debug() do? If you put alert() instead of it, it will still be just 1 alert? Also If you can test it in Firefox with Firebug addon (http:// getfirebug.com/), you should be able to see if there are actually 2 requests going out correctly (and the response

[jQuery] Re: closure inside ajax method

2009-01-27 Thread Eric Garside
I've actually posted code before that does exactly what you're trying to do. Check out the function here: http://snipplr.com/view/10368/jquery-automatic-script-includer/ On Jan 27, 7:57 am, Beres Botond boton...@gmail.com wrote: That *should* get called twice. What does debug() do? If you put

[jQuery] Re: closure inside ajax method

2009-01-27 Thread Mike Alsup
How can access index i inside of complete method? The following gives me just the last value of i. var scripts = ['script1.js', 'script2.js']; for(var i=0; iscripts.length; i++){         jQuery.ajax({                         dataType: 'script',                         url: scripts[i],

[jQuery] Passing an HTML page fragment as an Ajax XML field

2009-01-27 Thread JS London
Hi, I would like to pass an fragment of HTML as a field in my Ajax response and then insert this into the DOM. For example if part of the Ajax XML response (ajax_xml) is as follows: cityid2/cityid frag div class=cityboxh2 class=citytitleCity of London/h2p class=descLondon is on the River

[jQuery] Read request parameters with jQuery?

2009-01-27 Thread Hermanussen
I'd like to know if it is possible to get the request parameters on a page using jQuery. It can be done using regular JavaScript (like so: http://blog.pothoven.net/2006/07/get-request-parameters-through.html), but this seems like something that jQuery or a plugin for jQuery could easily do. And

[jQuery] [jQuery 1.3.1] Losing event handlers when appending same element multiple times

2009-01-27 Thread errant
Here is the code: HTML: ul li/li li/li li/li li/li li/li /ul JS: $(function(){ var handle = $('spanClick me/span'); handle.click(function() { alert('Thanks'); }); $('ul li').append(handle); }); With

[jQuery] How can I pass a parameter to an eventhandler?

2009-01-27 Thread mctpursuer
Hi, How can I pass a parameter to an eventhandler? for example: $(td).bind(click, test) function test(message) { alert(message); } How do I give the message parameter to eventhandler test? regards

[jQuery] [validate] Validation with example plugin

2009-01-27 Thread iDan
Hi, I'm using the validation plugin which is really cool but I'm also using it along side the example plugin (http://mucur.name/system/ jquery_example/). My form validates fine for fields that don't have any example text but the validation won't trigger for fields using the example plugin.

[jQuery] Re: .val() problem

2009-01-27 Thread LoicDuros
Hi Ricardo, Although I escaped the brackets, my alert is still displaying Undefined for the value of radio buttons: alert($('input:radio[name=field_submcategory\\[value\\]]:checked').val ()); could it be something else? Thanks, On Jan 26, 3:06 pm, Ricardo Tomasi ricardob...@gmail.com wrote:

[jQuery] Re: How can I pass a parameter to an eventhandler?

2009-01-27 Thread Mike Alsup
How can I pass a parameter to an eventhandler? for example: $(td).bind(click, test) function test(message) { alert(message); } How do I give the message parameter to eventhandler test? See examples here: http://docs.jquery.com/Events/bind

[jQuery] Re: Read request parameters with jQuery?

2009-01-27 Thread errant
Try this plugin: http://projects.allmarkedup.com/jquery_url_parser/ Hermanussen: I'd like to know if it is possible to get the request parameters on a page using jQuery. It can be done using regular JavaScript (like so: http://blog.pothoven.net/2006/07/get-request-parameters-through.html),

[jQuery] Re: .val() problem

2009-01-27 Thread Mike Alsup
Although I escaped the brackets, my alert is still displaying Undefined for the value of radio buttons: alert($('input:radio[name=field_submcategory\\[value\\]]:checked').val ()); could it be something else? I don't think you have that selector right.

[jQuery] Re: accordion plugin in ie7 does not fully collapse

2009-01-27 Thread ShaneRileyDotInfo
Is there any way you can post a link to the code you're having trouble with? We'll need to see what's going on in the markup, primarily the CSS provided the HTML is valid and well-formed.

[jQuery] Re: How can I pass a parameter to an eventhandler?

2009-01-27 Thread mctpursuer
Thanks. Problem solved. On Jan 28, 12:31 am, Mike Alsup mal...@gmail.com wrote: How can I pass a parameter to an eventhandler? for example: $(td).bind(click, test) function test(message) { alert(message); } How do I give the message parameter to eventhandler test? See

[jQuery] Re: Event delegation and hover(over, out)

2009-01-27 Thread ShaneRileyDotInfo
The way the post initially reads, it seems that when you're appending the ul with an li, the anchor within it does not have the click function bound to it. Is that correct? If so, when you add the li you would need to bind the click function to the newly created anchor. Something like this should

[jQuery] Re: Read request parameters with jQuery?

2009-01-27 Thread Hermanussen
Thanks, that looks quite nice! On 27 jan, 14:32, errant d.cheka...@gmail.com wrote: Try this plugin:http://projects.allmarkedup.com/jquery_url_parser/ Hermanussen: I'd like to know if it is possible to get the request parameters on a page using jQuery. It can be done using regular

[jQuery] Another question on how to passing parameters to event handler

2009-01-27 Thread mctpursuer
Hi, from the jQuery doc for dialog, there is: close Function(Event, ui) Callback for the close.dialog event. The function gets passed two arguments in accordance with the triggerHandler interface. Can anyone give me a simple example to demonstrate how to pass a parameter (like index,

[jQuery] Re: Passing an HTML page fragment as an Ajax XML field

2009-01-27 Thread jay
You could do it this way: http://docs.jquery.com/Ajax/load You can pass a selector to load() to pick what you want from the response. On Jan 27, 7:29 am, JS London jus...@alphainitiatives.com wrote: Hi, I would like to pass an fragment of HTML as a field in my Ajax response and then insert

[jQuery] Re: .val() problem

2009-01-27 Thread Liam Byrne
2 observations 1) is fieldsubmcategory meant to have the m ? 2) is either fieldsubmcategory or value a literal ? Do you need to do something like: input:radio[name=+field_submcategory[value]+]:checked or input:radio[name=field_submcategory[+value+]]:checked Liam LoicDuros wrote: Hi

[jQuery] Re: Implementing a Knob Control

2009-01-27 Thread legofish
thanks riyono On Jan 26, 9:51 pm, Andronicus Riyono riy...@gmail.com wrote: On Tue, Jan 27, 2009 at 8:10 AM, Ricardo Tomasi ricardob...@gmail.comwrote: I have to disagree. Precise circular motion is very hard with a mouse, specially because most computers have cursor acceleration enabled

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
I believe it has to do with the new event propogation model implemented with 1.3 Instead, try using a living event: ul li/li li/li li/li li/li li/li /ul $('ul li span').live('click', function(){ // ... }); $('ul li').append('spanClick me/span'); That should work. On Jan

[jQuery] UI Dialog Position Based on Link Position

2009-01-27 Thread Adam
I'd like to open a dialog when a link is clicked, and have the dialog open beside the link, similar to a tooltip. Are there any examples on how to calculate the position where the dialog should show up? What's the best way to position it so that it shows within the confines of the page (i.e. if

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread errant
Hi Eric, thanks for response. Yes, it works that way, but it's kind of unflexible and may be impossible to implement when dealing with more complex code, don't you think? On 27 янв, 17:29, Eric Garside gars...@gmail.com wrote: I believe it has to do with the new event propogation model

[jQuery] Re: Passing an HTML page fragment as an Ajax XML field

2009-01-27 Thread jay
You could also try changing frag to div class=frag instead. For example this worked in firefox but not IE: body script src=jquery.js/script frag div class=cityboxh2 class=citytitleCity of London/h2p class=descLondon is on the River Thames/p/div /frag hr/ div id=myid/div script var frag =

[jQuery] Re: Another question on how to passing parameters to event handler

2009-01-27 Thread Eric Garside
Easiest way I know of isn't to pass a parameter, but to use and destroy a data element on the object: $('#somelement').data('event.data', {firstname: 'Tom', lastname: 'Robinson', index: 4}).click(function(){ var data = $(this).data('event.data'); data.firstname; // First name

[jQuery] cluetip plugin crashing Firefox with external style sheet

2009-01-27 Thread Adam
When using the cluetip plugin, I am loading an external url. The tip loads fine if my external page is plain text/html, however if I reference an external style sheet (using the rel tag), the plugin crashes Firefox. It's happened more than once. Is there a workaround for this other than inline

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
Actually, quite the opposite. The living events provide a unique way for handling callbacks. It'll actually trim down the amount of code you use substantially. For 90% of the situations I can imagine, using the generic live() binding cleans up the code, and makes it easier to read/handle on my

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
It actually makes sense, because you've only created one element here: var handle = $('spanClick me/span'); By doing append() on a set of elements using this one element, it may be implying you would like to clone this element for the elements after the first one, but it's not completely

[jQuery] Re: .val() problem

2009-01-27 Thread LoicDuros
Hi, I actually found the solution on the #jquery channel of Free Node. By applying a filter to the name of the fields, you can get the object and then the value right: $(input:radio:checked).filter(function(){ return this.name == field_submcategory[value]}).val(); Thanks to all for your help,

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
Perhaps there should be an optional boolean passed to the event handlers to specify carrying over event handlers like there is with the clone() method? There is. That's exactly what live() does. You just define it before runtime. On Jan 27, 10:06 am, jay jay.ab...@gmail.com wrote: It

[jQuery] Re: UI Dialog Position Based on Link Position

2009-01-27 Thread Stephan Veigl
The position of the mouse is sent as parameter with the click event. see: http://docs.jquery.com/Tutorials:Mouse_Position If you want to position the dialog absolute to the link (and not the mouse pointer) you could use $(link).position to get the position of your link. see:

[jQuery] Re: SlideToggleUp, this.options.curAnim is undefined

2009-01-27 Thread Karl Swedberg
Hi Anders, I wonder if this problem is related to your previous post, in which you appeared to be using the Interface plugin. If you're using a version of jQuery later than 1.1.x, you really should switch over to jQuery UI. http://ui.jquery.com/ It has an effects library as well (cf.

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
live() works, but it involves extra steps. For example something like el.click(fn,true) maybe be easier to remember for some. Also live differs from what I was thinking in that it continues to bind events to the handler based on the selector. I was thinking it should only be cloned that one

[jQuery] Re: UI Dialog Position Based on Link Position

2009-01-27 Thread jay
Also will want to compare position of mouse to width of window and if the difference is less than the width of the dialog then position tooltip to right, else to the left Here is the link for the width() property: http://docs.jquery.com/CSS/width On Jan 27, 9:45 am, Adam apcau...@gmail.com

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
Give them a different selector? $('.click1').live('click', function(){}); $('.click2').live('click', function(){}); Would handle the problem easily. Remember, you can always add extra, non-style based classes which you can use as selectors for events or effects. Also, I'm not sure I understand

[jQuery] Re: Resizable() work incorrectly with Iframe

2009-01-27 Thread Aleks Dorohovich
I found how fix this bug Just needed create block, expamle div class=block-iframe/div and create css: .iframe-fix { background: transparent; width: 100%; height: 100%; z-index: 1; position: absolute;

[jQuery] Re: Resizable() work incorrectly with Iframe

2009-01-27 Thread Aleks Dorohovich
in this case will be $('.resizeDiv').mousedown(function(){ $('.block-iframe').addClass('iframe-fix'); }).mouseup(function(){ $('.block-iframe').removeClass('iframe-fix'); });

[jQuery] jtemplates null data

2009-01-27 Thread David Meiser
I've got a page that I'm converting over to use jTemplates, but the data it's returning contains null data (eg - missing email address or people who are retired and have no work address/phone). When I was processing the JSON manually and spitting out HTML, I wrote a function that returned an

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
It's not that I prefer it. I think live()/die() makes sense because the event lives on for all matching selectors. What the true arguement would do it give a way to clone the element and it's handler just that one time. On Jan 27, 10:50 am, Eric Garside gars...@gmail.com wrote: Give them a

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
I thought the point was to avoid the each()? What's wrong with: $('ul li').append($('spanClick me!/span').click(function(){}, true); and doing $('ul li').append($('spanClick me!/span').click(function (){}); defaults the second argument to false. Or you could default it to true and it may

[jQuery] Re: Can JQuery solve the iframe height=100% problem?

2009-01-27 Thread laredotorn...@zipmail.com
Hi Kevin, How do I apply this expansion to the iframe specifically? I included this on my page ... script type=text/javascript src=../scriptsjquery.layout.min.js/ script script type=text/javascript $(document).ready(function() { $(body).layout({

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
of course if there are other things that may need to be customized about the event(s) in question it might make more sense to pass in an options object. On Jan 27, 11:30 am, jay jay.ab...@gmail.com wrote: I thought the point was to avoid the each()?  What's wrong with: $('ul

[jQuery] how to use focus in a form?

2009-01-27 Thread ƝƟƧǷƕƩŘąŦƱƧ Ɵ MƩƧŦŘƩ
well my problem is: I have n forms on the website that I working, then I need one script on jQuery that's work in all using the focus to the first element onf the form (excluding the firt hidden input), can someone help me???, my starting code is here: $(document).ready(function(){

[jQuery] how to get div content with frame?

2009-01-27 Thread salsa
Hi guys, i have a frame; - myframe.html - main.html - top.html in top.html i have a div; div id=myDivmy teste work!/div and in main.html i try to get a div content of top.html using; alert($('#topFrame').contents().find('#myDiv').html()); but i only got null return... anybody knows how i

[jQuery] Exclude checkbox

2009-01-27 Thread chrille112
I have a table, and I want a click on each row to trigger a function. This is my code: $(tr.Order).each(function() { $(this).bind(click, function() { showOrderDetails($(this).attr(id)); }); }); This works perfect! My problem is that I also have a

[jQuery] syntax issue w/ tablesorter

2009-01-27 Thread philliptackett
Can any1 help me? I've just downloaded tablesorter and jquery and included them in my cold fusion project at the root. I'm not very good at javascript syntax.. and I'm getting an error, but I don't know why. Here's a chunk of code from my head section: script type=text/javascript

[jQuery] Re: .append() into style element causes error in IE only

2009-01-27 Thread Spot
Hi, I found this thread when searching on this subject. I have an app here where we let the user customize almost every single piece of the UI. This requires that we dynamically generate the CSS off a tagged template. What I want to be able to do is completely scrap the current style data

[jQuery] validate input type=hidden and number of errors

2009-01-27 Thread kat...@googlemail.com
1. I have a form which is validating quite nicely, using the validation plugin. On the form, a user enters a postcode, a googlemap pops up, user drags the marker and saves it and the lat/lng of the marker is copied back to hidden input fields in the parent form. I want the form to validate that

[jQuery] Re: how to use focus in a form?

2009-01-27 Thread Benjamin Sterling
Instead of doing: $('select:first').focus(); do: $('select:first').get(0).focus(); On Tue, Jan 27, 2009 at 8:40 AM, ƝƟƧǷƕƩŘąŦƱƧ Ɵ MƩƧŦŘƩ nospheratus.sm@ gmail.com wrote: well my problem is: I have n forms on the website that I working, then I need one script on jQuery that's work in all

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
You can already do that using clone. I can't see a need to rewrite in new code when the ability already exists in the current code. If you want to clone around your elements around and not apply new styles, just: $('ul li').each(function(){ $(this).append($('spanClick

[jQuery] Re: closure inside ajax method

2009-01-27 Thread bob
Thanks, Can't closure be achieved with for loop? for(var i=0; iscripts.length; i++){ My concern is: Does $.each process the scripts array items in the exact order they are in the array?

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Liam Potter
try this $(tr.Order input[type='checkbox']*).unbind*(click, showOrderDetails) chrille112 wrote: I have a table, and I want a click on each row to trigger a function. This is my code: $(tr.Order).each(function() { $(this).bind(click, function() {

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Benjamin Sterling
I would probably do something like: $(tr.Order).each(function(){ this.isover = false; $(this).bind(click, function() { if( !this.isover ){ showOrderDetails($(this).attr(id)); } }); $('input:checkbox', this) .hover( function(){$(this).parents('tr').get(0).isover = true;},

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Liam Potter
$(tr.Order input[type='checkbox']).unbind(click, showOrderDetails) I don't know where those asterisks came from o_o Liam Potter wrote: try this $(tr.Order input[type='checkbox']*).unbind(*click, showOrderDetails) chrille112 wrote: I have a table, and I want a click on each row to trigger

[jQuery] Re: Seeking div hide/show plugin with access by URL

2009-01-27 Thread Jonny Stephens
Thanks for your suggestions Ricardo. Tabs 2 fails in requiring the trigger links to be located within the same div as the content. Otherwise it fits well. UI Tabs lacks the back button capability of Tabs 2 and doesn't play with Safari 2, which (for better or worse) I'm required to support at

[jQuery] IE7 dead pixels in jpg with animation effect

2009-01-27 Thread lunaroja
http://lunaroja.net/upload/files/dead-pixel1.jpg http://lunaroja.net/upload/files/dead-pixel2.jpg Please view files. This issues is only happening on IE7 (not even ie6) when these images (set as bg to a div) they have an animation opacity from 1-0 for transitioning the images for a slide show.

[jQuery] Re: closure inside ajax method

2009-01-27 Thread Mike Alsup
Can't closure be achieved with for loop? for(var i=0; iscripts.length; i++){ No. Does $.each process the scripts array items in the exact order they are in the array? Yes.

[jQuery] Re: IE7 dead pixels in jpg with animation effect

2009-01-27 Thread Liam Potter
try saving the images in a different format. lunaroja wrote: http://lunaroja.net/upload/files/dead-pixel1.jpg http://lunaroja.net/upload/files/dead-pixel2.jpg Please view files. This issues is only happening on IE7 (not even ie6) when these images (set as bg to a div) they have an animation

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
Honestly, I'm at a loss why I'd want that kind of temporary cloned functionality when you could just use live to achieve the same functionality with nowhere near the limitations of the implementation you've described here. It's also nice to be able to excise my event declarations from my dom

[jQuery] Re: how to use focus in a form?

2009-01-27 Thread Mike Alsup
well my problem is: I have n forms on the website that I working, then I need one script on jQuery that's work in all using the focus to the first element onf the form (excluding the firt hidden input), can someone help me???, my starting code is here: $(document).ready(function(){    

[jQuery] Re: IE7 dead pixels in jpg with animation effect

2009-01-27 Thread Mike Alsup
http://lunaroja.net/upload/files/dead-pixel1.jpghttp://lunaroja.net/upload/files/dead-pixel2.jpg Please view files. This issues is only happening on IE7 (not even ie6) when these images (set as bg to a div) they have an animation opacity from 1-0 for transitioning the images for a slide

[jQuery] $(button).click(function () {$(p).toggle(slow); for sevoral items.

2009-01-27 Thread Razze
Is it possible to add : script $(document).ready(function(){ $(button).click(function () { $(p).toggle(slow); }); }); /script that works for sevoral items, example, this is my menu : button class=button style=background:transparent #33CC00News/ button br button

[jQuery] Re: $(button).click(function () {$(p).toggle(slow); for sevoral items.

2009-01-27 Thread Mike Alsup
Is it possible to add :   script   $(document).ready(function(){     $(button).click(function () {       $(p).toggle(slow);     });   });   /script that works for sevoral items, example, this is my menu : button class=button style=background:transparent #33CC00News/ button br

[jQuery] Re: auto refresh after x seconds ???

2009-01-27 Thread Omid
Any idea !? On Jan 27, 3:11 pm, Omid omidda...@gmail.com wrote: It seems my link is broken , please try this one :http://www.savefile.com/files/1983422 TNX On Jan 27, 2:35 pm, Omid omidda...@gmail.com wrote: I have created one sample file with above code , but it doesn`t work ! You

[jQuery] Re: Event delegation and hover(over, out)

2009-01-27 Thread Steffen Wenzel
Hi Shane, thanks for the reply! What you recommend seems to be rebinding the functionality to the latest appended list-item. Which of course would work just fine, but the question is, how can I do this with event delegation (which watches for new elements within the ul)? And it's also the

[jQuery] Re: disable submit not working in IE7

2009-01-27 Thread GBartels
Thanks Mike! Your script mostly works in IE once appended with }); The message displays and the form submits which is what it needs to do. IE still has a little weird behavior in that it takes two clicks to submit the form. On the first click, the form jumps a bit. It's then necessary to

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread errant
jQuery provides many ways to achieve similar results, sometimes decision which way to use is up to developer. Personally, in first example i like to have reference to span element with attached event handlers without extra code. Maybe i'll use it in some other way later in code. Anyway, append()

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Eric Garside
I don't think it's a bug. I think it's just another example of IE's lack of standard compliance. On Jan 27, 12:53 pm, errant d.cheka...@gmail.com wrote: jQuery provides many ways to achieve similar results, sometimes decision which way to use is up to developer. Personally, in first example i

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread jay
Some may see the fact that future handlers are automatically assigned based on a given selector as a side-effect if it were incorporated this way on a set of DOM elements (though using live()/die() makes more sense). All I'm saying is that if append is going to automatically clone a DOM element

[jQuery] Re: Seeking div hide/show plugin with access by URL

2009-01-27 Thread Jonny Stephens
My oversight. Looking at the comments more closely shows Tabs 2 provides options for separation of navigation and content markup (assigning navClass and containerClass classes respectively). Thanks again. Jonny On Jan 27, 4:58 pm, Jonny Stephens goo...@bloog.co.uk wrote: Thanks for your

[jQuery] [jQuery][Autocomplet] Submit with tab: Answer

2009-01-27 Thread Perra - Sandstream.se
Hi! I submitted a question yesterday about the possibility to submit a form when the user had selected an item in the result list from the Autocomplete plug-in and left using the TAB-key. I found the answer today on a site: $(document).ready(function() { // #id_query is the id of your text

[jQuery] Re: Losing event handlers when appending same element multiple times

2009-01-27 Thread Ricardo Tomasi
It seems like a bug, as 1.3.1 is behaving differently from 1.2.6. I posted errant's example to jquery-dev, let's see what they have to say. http://groups.google.com/group/jquery-dev/t/f18e4a06e11fdb87 On Jan 27, 4:01 pm, Eric Garside gars...@gmail.com wrote: I don't think it's a bug. I think

[jQuery] Re: $.ajax bug ?!? Maybe i've not understand somethings ....

2009-01-27 Thread Ricardo Tomasi
Unless you remove the script tag after the 'timeout', of couse. On Jan 27, 9:59 am, Mike Alsup mal...@gmail.com wrote: ah and there is no way to simulate that? You can simulate a timeout in your code by using setTimeout, but it's not the same as when the XHR is used for the request.  

[jQuery] Re: closure inside ajax method

2009-01-27 Thread Andrew Hedges
The order of elements in a simple array like this is guaranteed. Looping over an object with a for in loop, the order is not guaranteed, though by convention most browsers honor the order in which the elements were added. jQuery would have to go out of its way to return the elements from your

[jQuery] Re: Exclude checkbox

2009-01-27 Thread Ricardo Tomasi
That way you're adding a property to a DOM Element and exposing your page to possible memory leak. All you have to do is enforce the event target. Also you can skip each (), the bind/click methods will handle multiple elements: $(tr.Order).click(function(event){ if (event.target == this)

[jQuery] Re: [Autocomplet] Submit with tab: Answer

2009-01-27 Thread Ricardo Tomasi
Hi Perra, Thanks for sharing your solution, but please avoiding posting new subjects by replying to another group message, as in the groups website the responses will all appear under the same thread: http://groups.google.com/group/jquery-en/browse_thread/thread/257e93ae03bfc876 cheers, -

[jQuery] Re: $(button).click(function () {$(p).toggle(slow); for sevoral items.

2009-01-27 Thread Ricardo Tomasi
Or simply use the inner text, but that will cause issues if you have spaces in it. $('button').click(function () { var data = $(this).text().toLowerCase(); $('p.'+data).toggle('slow'); }); On Jan 27, 3:29 pm, Mike Alsup mal...@gmail.com wrote: Is it possible to add :   script

SV: [jQuery] Re: [Autocomplet] Submit with tab: Answer

2009-01-27 Thread Perra - Sandstream.se
So sorry, rookie misstake! :-( mvh Perra Sandström - pe...@sandstream.se Webmaster - www.sandstream.se -Ursprungligt meddelande- Från: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] För Ricardo Tomasi Skickat: den 27 januari 2009 20:39 Till: jQuery (English) Ämne:

  1   2   >