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

2009-01-28 Thread Stefano Corallo
thank's i'll give it a try ... stay tuned :D On 27 Gen, 22:45, Ricardo Tomasi ricardob...@gmail.com wrote: Hi Stefano, I think I found a solution. All you need to do is check if the callback has been called after your specified timeout. If it has not been called yet, overwrite it with an

[jQuery] Re: [validate] Jquery validation plugin isn't working in IE

2009-01-28 Thread Jörn Zaefferer
I'm sorry, but you have trailing commas: http://www.pluralsight.com/community/blogs/fritz/archive/2007/06/19/47771.aspx I hope its not too late :-) Jörn On Tue, Jan 27, 2009 at 11:46 PM, whtthehecker hecker.r...@gmail.com wrote: Hi, This is my first time using the validation plugin for

[jQuery] Re: cluetip with an dynamic aspx content

2009-01-28 Thread chrs
do anyone have a solution? On 26 Jan., 19:31, chrs chrs.alb...@googlemail.com wrote: hi karl, it is a parse error. the class, where the site is deduced, can't be loaded. (or something like this...) --- christian

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

2009-01-28 Thread Stefano Corallo
Ok perfect :) Many thanks. So if i've understand the request continue loading and when server send back the response (if any) if the timeout as occured there is no callback set on window and do nothing else do the job have any sense try to shutdown the request? Is possible? Anyway thanks a

[jQuery] Re: Sending Arguments to Event

2009-01-28 Thread Karl Rudd
If you look at the examples in the bind documentation ( http://docs.jquery.com/Events/bind ) there's this sample: function handler(event) { alert(event.data.foo); } $(p).bind(click, {foo: bar}, handler) So for your example that could be: var someVar = { init : function () {

[jQuery] newbie: autocompletion using hidden data inline in document

2009-01-28 Thread pantagruel
Hi, I have something like the following (fragment but shows context): var currentActiveCommands = jQuery(#menudiv ul li.runnable).find (a.c); var len = currentActiveCommands.length; var resulthtml = ; var field = document.getElementById(run_command); var currentidtoclick =; var display =

[jQuery] How to decode Json value through Jquery

2009-01-28 Thread Bluesapphire
Hi! I am novice to Jquery. Iam getting following Json output from PHP file : {jval:{wine:3,sugar:4,lemon:22}} how can I decode/get these Json values in Jquery. Thanks in advance

[jQuery] jQuery 1.3.x XPath

2009-01-28 Thread Neil Craig
Earlier version of jQuery allowed one to search for elements using XPath, but after the implementation of the Sizzler selector engine, the XPath support was lost, or so it seems. Any comments?

[jQuery] hiding flash content on a page

2009-01-28 Thread riches.ke...@googlemail.com
I am relatively new to javascript but wondered if anyone could help me. I am trying to hide flash content on a webpage and am using the following script: $(document).ready(function() { $('object').hide(); }); This seems to work on firefox and opera on a mac (not tested on a pc yet) but

[jQuery] Re: How can I fix the mcDropdown plugin to jQuery 1.3.1?

2009-01-28 Thread WobblyBob
i just stumbeled across the same problem is there any chance of you providing the lines that you altered to solve the problem On Jan 28, 6:32 am, Alexsandro_xpt bagul...@gmail.com wrote: Problem solved. The problem is with Selector [attribute=value] sintax which this empty comparison don't

[jQuery] HELP!!! wait for fade out before replacement div fades in

2009-01-28 Thread TimmyH
Hi. Here is my code I'm trying to get this to fade out first before the fade in happens. Please help!! $(document).ready(function() { $(a.linkclass).click(function() { $('.msg_body').fadeOut(fast); $($(this).attr(href)).fadeIn(fast); }); });

[jQuery] Reversing the SlideUp and SlideDown functions to slide from the bottom and not the top

2009-01-28 Thread ryjohnson
I saw this was posted before, but there was never a solution posted. I want to use the Toggle function but have it slide up from the bottom of the div instead of the top, I have tried searching through all the plugins, and even tried writing my own but have had no luck. If there's anyone who can

[jQuery] Force GET on $.load()

2009-01-28 Thread penjuin
I have written a small script that uses $.load() and I am trying to show a div through the callback. However, whenever I use more than one argument in the $.load() function, jQuery automatically assumes I am doing a POST request, causing my server to blow up. Anyone know how to force it into GET?

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

2009-01-28 Thread Mike Alsup
http://www.alexjudd.com/?p=5 Look like if you are ok with not having any pure black in your image you can just adjust levels and be ok. Sure seems easier to put the image on a div with a black background, and then size the div as appropriate. Wish we didn't have to jump through these hoops

[jQuery] Re: Ajax Problem

2009-01-28 Thread ragx
On Jan 28, 8:23 am, saiful.ha...@gmail.com saiful.ha...@gmail.com wrote: hi all, I have 2 file rating.js $(document).ready(function() {   var behav = function(){     $(.rating_class).hover(function(){       $(#tooltip_star).css({visibility:visible, top:($ (this).offset().top - 60),

[jQuery] Re: HELP!!! wait for fade out before replacement div fades in

2009-01-28 Thread Mohd.Tareq
use animat() function $('.msg_body').animate({left: 50, opacity: 1}, 1500).fadeOut(1000); $($(this).attr(href)).animate({left: 50, opacity: 1}, 1500).fadeIn(1000); above animate function will fade out first after 1000 ms will proceed for fadein right now its getting fadeOut immediate getting

[jQuery] Re: hiding flash content on a page

2009-01-28 Thread Liam Potter
put the flash into it's own div (you should be using swfobject or something ideally, rather then an embed) then hide the div. riches.ke...@googlemail.com wrote: I am relatively new to javascript but wondered if anyone could help me. I am trying to hide flash content on a webpage and am using

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

2009-01-28 Thread Stefano Corallo
Hi Riccardo, i've a problem in the example you posted you do: $.jsonp({ url: 'http://api.flickr.com/services/feeds/photos_public.gne? tags=hackdayindialang=en-usformat=jsoncallback=jsonFlickrFeed', timeout: 1, onTimeout: function(url){ console.error('jsonp script timed out: '+url) } });

[jQuery] Cloning list items in OL screws up numbering in IE

2009-01-28 Thread Michael Price
Hi all, I've got an ordered list OL with 5 list items. Each list item contains an input and the list is, as you would expect, numbered from 1 to 5. There is a link to add another item to this list which I have bound the following function to: $(#materialadd).click(function() {

[jQuery] Re: How to decode Json value through Jquery

2009-01-28 Thread Stephan Veigl
If you use AJAX to get your data, take a look at: jQuery.getJSON() http://docs.jquery.com/Ajax/jQuery.getJSON If your JSON data came from another source, suppose your JSON data are stored in a string variable called json, you can simply do: eval(var obj=+json); then the variable obj will hold

[jQuery] Re: How to decode Json value through Jquery

2009-01-28 Thread Mohd.Tareq
jquery encode / decode plugin is available try it hope ur will find solution Regx http://www.prodevtips.com/2008/10/21/jquery-plugin-html-decode-and-encode/ On Wed, Jan 28, 2009 at 5:09 PM, Bluesapphire michealg...@gmail.com wrote: Hi! I am novice to Jquery. Iam getting following Json

[jQuery] Re: How to use one button to toggle multiple panels in succession

2009-01-28 Thread Stephan Veigl
I'm not sure if I realy understand what you want to do, but it could look something like HTML: div id=root div class=myHeaderbutton+/button/div div class='myPanel'1/div div class='myPanel'2/div div class='myPanel'3/div div class='myPanel'4/div div class='myPanel'5/div

[jQuery] Re: newbie: autocompletion using hidden data inline in document

2009-01-28 Thread pantagruel
Hi, Ok solved my problem. Using methods shown here: http://www.mattryall.net/blog/2008/07/jquery-filter-demo Cheers, Bryan Rasmussen On Jan 28, 12:06 pm, pantagruel rasmussen.br...@gmail.com wrote: Hi, I have something like the following (fragment but shows context): var

[jQuery] Re: onblur Firing Ahead Of onclick

2009-01-28 Thread Stephan Veigl
Hi bob, So it works exactly how I would expect that it should work. 1. the focus is taken from the input, so you get a blur event 2. the submit button is clicked, so you get a submit event How about simply ignoring the blur event if you don't use it? If you use it for data validation you would

[jQuery] Re: HELP!!! wait for fade out before replacement div fades in

2009-01-28 Thread Stephan Veigl
simply do the fade in in the finished callback of the fade out $(a.linkclass).click(function() { var next = $($(this).attr(href)); $('.msg_body').fadeOut(fast, function(){ next.fadeIn(fast); }) }); by(e) Stephan

[jQuery] Re: cluetip with an dynamic aspx content

2009-01-28 Thread Karl Swedberg
Hi Christian, Sounds like the problem is on the server end of things? I really don't know, given the little information that I have. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 28, 2009, at 3:45 AM, chrs wrote: do anyone have a solution? On

[jQuery] Re: jQuery 1.3.x XPath

2009-01-28 Thread Karl Swedberg
On Jan 28, 2009, at 6:43 AM, Neil Craig wrote: Earlier version of jQuery allowed one to search for elements using XPath, but after the implementation of the Sizzler selector engine, the XPath support was lost, or so it seems. Any comments? Hi Neil, You're right that 1.3.x removed support

[jQuery] Re: Reversing the SlideUp and SlideDown functions to slide from the bottom and not the top

2009-01-28 Thread Karl Swedberg
On Jan 27, 2009, at 11:07 PM, ryjohnson wrote: I saw this was posted before, but there was never a solution posted. I want to use the Toggle function but have it slide up from the bottom of the div instead of the top, I have tried searching through all the plugins, and even tried writing my

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

2009-01-28 Thread JS London
Many thanks jay for your responses. The first one - using load() to filter the response - unfortunately load() will then discard the remainder of the XML response. I want to pass the HTML fragment as part of a larger XML message and use the data from the other fields as well. I would have to

[jQuery] Re: Cloning list items in OL screws up numbering in IE

2009-01-28 Thread Rick Faircloth
Hi, Michael... I was having a similar problem cloning image inputs and found this solution for that problem, which might also be modified to solve your li cloning problem. In the notes, it basically says that not all modern browsers (IE, I think is the problem here) updates the values of cloned

[jQuery] Re: Cloning list items in OL screws up numbering in IE

2009-01-28 Thread Michael Price
Thanks Rick, I'll check that out. Meanwhile, my own testing has uncovered a possible cause, and it's an odd one. If I comment out this line: $(#materialol li:last).hide().fadeIn(fast); The list items are numbered correctly! Curiouser and curiouser.. Regards, Michael Price Rick

[jQuery] cycle plugin scrollLeft has flickering white line if boxes have a background color colour

2009-01-28 Thread the cliff
Although I did manage to fix it by changing this line opts.cssBefore.left = next.offsetWidth; becomes opts.cssBefore.left = next.offsetWidth-1; so does move everything along by 1 pixel but no more bug client is happy.

[jQuery] Re: Alternate row colors using Ajax

2009-01-28 Thread septemberbrain
Thanks. I tried that but it did not work. Tried placing it within the function, outside the function, etc. I think the issue has something to do with the dynamic creation of the table. I've done this in the past with Spry which has operators that enable you to do this. I haven't been able to

[jQuery] Re: Alternate row colors using Ajax

2009-01-28 Thread septemberbrain
Thanks. I tried that but it did not work. Tried placing it within the function, outside the function, etc. I think the issue has something to do with the dynamic creation of the table. I've done this in the past with Spry which has operators that enable you to do this. I haven't been able to

[jQuery] Re: This code, no response...will this work, if modified?

2009-01-28 Thread Rick Faircloth
Arrggh! Dummy me... I had the select input named agents, but was referring in the jQuery to what I thought was its class .agents. Now that the class has been assigned as .agents, all is working. Thanks, guys, sorry for the silly mistake! Rick -Original Message- From:

[jQuery] paragraphs disappearing from accordion when jquery applied

2009-01-28 Thread Steven Grant
I'm trying to use the accordion box as show on http://www.webdesignerwall.com/demo/jquery/accordion1.html I'm using PL/SQL to pull my content from the database which it does perfectly. I then applied my CSS and it also displays the way I'd expect. However, when I add my jquery.js file and

[jQuery] Re: How can I fix the mcDropdown plugin to jQuery 1.3.1?

2009-01-28 Thread Alexsandro_xpt
Just Find line with li[ You will found line within jQuery expressions like that: $list.find(li[ + settings.valueAttr + ='+ value +']); Remove the ' char before and behind of + value + . I wish help you. On 28 jan, 05:53, WobblyBob hurrican...@gmail.com wrote: i just stumbeled across the

[jQuery] function after each -loop

2009-01-28 Thread johannesF
Hi Need som smart advice here, I have a eachloop like this. $(inp...@name='category']).each(function(){ }); And then I want to run a function after the each i done Is that possible? all the best / johannes

[jQuery] function in plugin not running

2009-01-28 Thread Danelund
I tried to debug my first attempt to write a JQuery Plugin, and found out that none of the functions inside my plugin-attempt are executed. Looks like this: $.fn.galletri = function(){ console.log(inside galletri1); TNL = $(this); return this.each(function(){ console.log(inside galletri2); $(TNL

[jQuery] Re: function after each -loop

2009-01-28 Thread MorningZ
Just put the call after the each loop $(document).ready(function() { $(inp...@name='category']).each(function(){ }); LoopComplete(); }); function LoopComplete() { alert(All done with loop!); } On Jan 28, 10:13 am, johannesF johannes.foss...@gmail.com wrote: Hi Need

[jQuery] How to wait for load() to finish executing

2009-01-28 Thread Adam
How can I wait for the load() function to finish before executing the next line of code? The code that I need to execute after load() is finished cannot be called within the callback function. I basically need to return true after the load has finished but not beforehand. Here's the relevant

[jQuery] All is well except in IE - links initially not clickable

2009-01-28 Thread precar
Hi, My site (http://pthesis.com) works fine in Firefox/Opera/Safari, but in IE 7 there is a small hitch. Sometimes when I click the portfolio link and open it, the links to the sites in the left column aren't clickable. If I close it and re-open it, they work, and if I do Refine by category

[jQuery] Re: Force GET on $.load()

2009-01-28 Thread Ricardo Tomasi
Just use $.get: $.get('bohemia.php', { mydata: 123, ourdata: 456 }, function(data){ $('#mydiv').html( data ); }, 'html'); http://docs.jquery.com/Ajax/jQuery.get On Jan 28, 2:07 am, penjuin jeremy@gmail.com wrote: I have written a small script that uses $.load() and I am trying to show

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

2009-01-28 Thread Ricardo Tomasi
It isn't possible to have error/success callbacks for JSONP. You can't cancel the request either. Once you add a script tag to the head, the browser fires a GET request and it can't be interrupted - even if you remove the script before the response comes, the script will still run. (the only

[jQuery] Re: How to block the javascript engine when jQuery.ui.dialog is pop up?

2009-01-28 Thread Ricardo Tomasi
The only elegant solution is to structure your code so that there are no 'loose' statementes following dialog('open'), then call them from the dialog close callback. You can't stop the browser other than freezing it with a loop. On Jan 28, 1:16 am, mctpursuer mctpurs...@yahoo.com wrote: Hi, I

[jQuery] Re: All is well except in IE - links initially not clickable

2009-01-28 Thread amuhlou
It looks like it's not appending the selected class to the li onClick in IE7. Are you using the bind() method to apply the click functionality? On Jan 28, 10:34 am, precar pranshua...@gmail.com wrote: Hi, My site (http://pthesis.com) works fine in Firefox/Opera/Safari, but in IE 7 there is

[jQuery] Re: function after each -loop

2009-01-28 Thread Rick Faircloth
MZ... what role does the first LoopComplete(); play in the code in your response at the bottom of the page. How would the code behave differently if it was just $(document).ready(function() { $(inp...@name='category']).each(function() { }); function LoopComplete() { alert(All

[jQuery] $('#list').unbind().html('') -- redundant?

2009-01-28 Thread René
I have a dynamically generated a long list of items with events bound to them. I was wondering, when I clear the list, or replace it, is it necessary to unbind all their events before clearing its parent container? I know I can experiment to answer this question, but I wanted to know if perhaps

[jQuery] Re: paragraphs disappearing from accordion when jquery applied

2009-01-28 Thread Liam Potter
Is this like, a test? $(.accordion p:not(:first)).hide(); that line, why do you think no paragraphs are displaying after the first? Steven Grant wrote: I'm trying to use the accordion box as show on http://www.webdesignerwall.com/demo/jquery/accordion1.html I'm using PL/SQL to pull my

[jQuery] Re: Reversing the SlideUp and SlideDown functions to slide from the bottom and not the top

2009-01-28 Thread Kevin Dalman
Use the effects in jQuery-UI when you need more than basic slideUp/ slideDown. Using show hide with the appropriate options will allow you to slide in any direction. You also have a lot more effects to choose from then just 'slide' To open by sliding 'up', and close in reverse... $E.show(

[jQuery] paint columns in alternating colour

2009-01-28 Thread kevind
i have this table structure - a database feeds rows into it with Class=Row or AltRow I want to paint the columns in alternating colours for both Row and AltRow for readability I tried: $(document).ready(function(){ $(.Grid.Rowtd:even).css(background,silver); }); and other variations - i'm

[jQuery] Re: paint columns in alternating colour

2009-01-28 Thread Liam Potter
if you have to have the background color on the td use this $(document).ready(function(){ $(.Grid .Row:even td).each().css(background,silver); }); if you can put the background color on the tr instead and leave the td transparent it's just this $(document).ready(function(){ $(.Grid

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

2009-01-28 Thread Kevin Dalman
HI Dave, You can find all the info in the Layout documentation and examples, but here is a quick answer... The widget needs to 'find' the iframe. The default method is to give the element a ui-layout class, like this... iframe id=fileTreeIframe class=ui-layout-center ... OR, since the iframe

[jQuery] Re: paint columns in alternating colour

2009-01-28 Thread kevind
i added it thus: $(document).ready(function(){ $(.Grid .Row:even td).each().addClass(colouredtd); }); style on page= .colouredtd {background:silver;} Did you mean to leave a space between .Grid and .Row ?

[jQuery] Re: paint columns in alternating colour

2009-01-28 Thread kevind
forgot to say, it didn't work :(

[jQuery] Re: Can jQuery calculate CSS Width/Height

2009-01-28 Thread Kevin Dalman
Thanks Matt, but that does not work. As my example shows, the element may have a percentage width, or it could be 'auto' (which it would be if not specifically set). What I need is the 'pixel' measurement that would replicate its current size. In other words, if it currently is width:90%; and I

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

2009-01-28 Thread ShaneRileyDotInfo
Could you check out this example I created and let me know if that was your intended effect? I'm still not entirely certain I'm grasping everything you're trying to do. Basically, you have an initial list. You want the image in each one to fade in/out when the link is hovered. You then want to be

[jQuery] [validate] rules section problem

2009-01-28 Thread TUNGA
Hello, I use validation code someting below. It works if I load that page directly. But loading it from another page using $(#myApplDiv).load ('that_page.php') the rules sections does not work. But submitHandler section works well. script $().ready(function() { // some codes here

[jQuery] feedback for alert replacement plugin

2009-01-28 Thread jay
I wrote a quick plugin to replace alert (I didn't like that I couldn't copy and paste from the alert window, and that it was modal). I decided to use window.open instead of absolute divs to show it. I've also used toJSON plugin for when an object is passed in. Faced a couple of problems with

[jQuery] Re: How to block the javascript engine when jQuery.ui.dialog is pop up?

2009-01-28 Thread Gordon
The only way would be to not have any javascript statements after the open statement. If, however, you mean you don't want users triggering other events or interacting with the page after a dialog has been opened then you can do this by simply setting the dialog modal:true. On Jan 28, 3:16 am,

[jQuery] Re: paint columns in alternating colour

2009-01-28 Thread Liam Potter
no wonder it didn't work, .Row is only on captions, try this $(document).ready(function(){ $(table.Grid tr:even td).each().addClass(colouredtd); }); I did mean to leave spaces yes, you write the selector just like you would with CSS. kevind wrote: i added it thus:

[jQuery] Is .parent() only one level up?

2009-01-28 Thread kgosser
Hello, pretty noob question here. I have this example: div form div labelExample/label input type=text/ /div /form /div Now let's say there's this jQuery: $(input).click(function(){ $(this).parent(form).css(color,#F00); }); My question: Does the

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
I think the method you are looking for is closest On Jan 28, 12:39 pm, kgosser kgos...@gmail.com wrote: Hello, pretty noob question here. I have this example: div    form       div           labelExample/label           input type=text/       /div    /form /div Now let's say there's

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
http://docs.jquery.com/Traversing/closest On Jan 28, 12:39 pm, kgosser kgos...@gmail.com wrote: Hello, pretty noob question here. I have this example: div    form       div           labelExample/label           input type=text/       /div    /form /div Now let's say there's this

[jQuery] Re: $('#list').unbind().html('') -- redundant?

2009-01-28 Thread jay
html('') calls empty() so starting with 1.2.2 it will also remove all event handlers and internally cached data. On Jan 28, 11:48 am, René renefourn...@gmail.com wrote: I have a dynamically generated a long list of items with events bound to them. I was wondering, when I clear the list, or

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread jay
This could be accomplished using a synchronous xmlhttp call (does jQuery even support this?), or you could put a while loop before the return true to poll a variable that is set in the callback. You would probably want to set the variable if there is an error as well so that the browser doesn't

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread kgosser
No, not necessarily, but thanks for the link. I'll take a deeper look at that. What my question centers around is when I put parent(example); ... how far up the tree does jQuery look for the example -- just one level, or higher? The key is I'm trying to understand how to stop having to write

[jQuery] Cycle plugin: Replay button won't replay

2009-01-28 Thread atomk
I have a slideshow: script type=text/javascript $(function(){ $('#slideshowBoxRetouching').cycle({ fx: 'fade', speed: 300, timeout: 2400, pause: 0, autostop: 17, end: function() { $('#replayRetouching,#ellipsis').fadeIn();

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread jay
parent is just one level. closest() looks up the tree like .parent ().parent()... until a match is found.. I'm not sure if there is an equivalent that would do what you want.. you could try .closest (.parentClass).find(.childClass) On Jan 28, 12:53 pm, kgosser kgos...@gmail.com wrote: No, not

[jQuery] Re: $('#list').unbind().html('') -- redundant?

2009-01-28 Thread René
Thanks saves me some code, and perhaps a few cycles. On Jan 28, 10:46 am, jay jay.ab...@gmail.com wrote: html('') calls empty() so starting with 1.2.2 it will also remove all event handlers and internally cached data. On Jan 28, 11:48 am, René renefourn...@gmail.com wrote: I have a

[jQuery] Array values disappear when ready event fires

2009-01-28 Thread Emili Calonge
I have some old jsp pages with bad coding, where I created javascript arrays in the jsp code, so in the end I've got an html page with lots of script tags where I add values to a Javascript array. I know it's a really ugly way of doing things, but that's the only way I thought of at the time. Now

[jQuery] Re: [validate] rules section problem

2009-01-28 Thread Jörn Zaefferer
Can't spot any issues in that snippets. Could you post a testpage? Jörn On Wed, Jan 28, 2009 at 6:22 PM, TUNGA mesut.tu...@gmail.com wrote: Hello, I use validation code someting below. It works if I load that page directly. But loading it from another page using $(#myApplDiv).load

[jQuery] Re: Can jQuery calculate CSS Width/Height

2009-01-28 Thread jay
with 1.3.1 I'm able to get pixel measurement from percent with no problem. example: body script src=jquery.js/script div id=d1 style=width:100%;border:1px solid black div id=d2 style=width:90%;border:1px solid black div id=d3 style=width:90%;border:1px solid black div

[jQuery] Array Plugin

2009-01-28 Thread seasoup
Does anyone know of a plugin that duplicates Prototypes array methods. The closest I've found is the Rich Array Plugin. http://plugins.jquery.com/project/rich-array Any others?

[jQuery] Re: Alternate row colors using Ajax

2009-01-28 Thread Ricardo Tomasi
You need to put that code right after append(), like .appendTo('#update-target table') .find('tr:odd').addClass('alt'); }); //close each( On Jan 28, 12:47 pm, septemberbrain kindlerda...@gmail.com wrote: Thanks.  I tried that but it did not work.  Tried placing it within the

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

2009-01-28 Thread laredotorn...@zipmail.com
Hi Kevin, I really appreciate your help with all this. Unfortunately, I added what you had suggested ... script type=text/javascript $(document).ready(function() { $(body).layout({ closable: false , resizable: false

[jQuery] Re: function after each -loop

2009-01-28 Thread Ricardo Tomasi
In your sample you're missing a closing bracket for the function, and LoopComplete would only be declared but not run. I think you meant $(document).ready(function() { $('input[name=category]').each(function() { //... }); alert(All done with loop!); }); johannes: everything in

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread Ricardo Tomasi
You can use async: false, check the docs: http://docs.jquery.com/Ajax/jQuery.ajax That's the closest thing to a 'pause' in JS, but that is not good as it will freeze the whole browser while waiting for the server response. The best solution would be to use the load callback, but then you can't

[jQuery] Re: Is .parent() only one level up?

2009-01-28 Thread Ricardo Tomasi
Be careful about closest(), as if it doesn't find any matches it will return the element itself. The alternative is $(this).parents(form:first) Essentially, parent() returns the parent (the one and only) and then filters it to the selector you gave. parents() does the same but with all parents,

[jQuery] Re: Array values disappear when ready event fires

2009-01-28 Thread Ricardo Tomasi
Could you post a sample page showing your code? Nothing in jQuery should touch any other objects. On Jan 28, 4:40 pm, Emili Calonge emilicalo...@gmail.com wrote: I have some old jsp pages with bad coding, where I created javascript arrays in the jsp code, so in the end I've got an html page

[jQuery] Re: Unsetting variables

2009-01-28 Thread Ricardo Tomasi
Yes it does! On Jan 27, 8:43 pm, Hector Virgen djvir...@gmail.com wrote: You can use delete for unsetting items in objects, but I'm not sure if it works with variables in general: var myObject = {     foo: 'Foo',     bar: 'Bar }; delete myObject['foo']; -Hector On Tue, Jan 27, 2009

[jQuery] Re: closure inside ajax method

2009-01-28 Thread bob
Thanks everybody, to Eric Garside : I have tried jQuery Automatic Script Includer and it does not download scripts for me. Are there any known issues that I should be aware of? I placed this code inside of jquery.js right at the end. (function($){ var scripts = /\?(.*)/, files = [],

[jQuery] Re: AHAH- Working with return data.

2009-01-28 Thread Ricardo Tomasi
Kind of: $.get('page.htm', function(closet){ $(closet).find('stuff').hide(); //or $('stuff', closet).appendTo('#trash'); }); You're not creating any temporary DIV, just passing the HTML string to jQuery which will parse it and turn it into actual elements. On Jan 27, 6:25 pm, zunama

[jQuery] Re: Broken selector in jQuery 1.3

2009-01-28 Thread Ricardo Tomasi
Different issues: $('[value=]') also works in 1.3, but not in 1.3.1. $('[value=]') as in ticket #3933 works in 1.2.6, 1.3 and 1.3.1 in the following test: http://jquery.nodnod.net/cases/77 It's probably related to the [attribute!=anything] fix landed on 1.3.1:

[jQuery] Re: Unsetting variables

2009-01-28 Thread Michael Geary
Well, yes and no. The delete operator works on global variables, but only because they are actually properties of the global object. It doesn't work on local variables in a function. A couple of other notes... You can write this code two different ways; both work the same: delete

[jQuery] Re: How to wait for load() to finish executing

2009-01-28 Thread Michael Geary
async:false doesn't just freeze the entire browser, in many browsers it may freeze every browser window as well, even windows open on other sites. Adam, why can't the code you need to execute be called from the success callback function? -Mike From: Ricardo Tomasi You can use async: false,

[jQuery] OT: CF-Talk Down?

2009-01-28 Thread Rick Faircloth
Hi, guys... Pardon the OT, but I'm trying to find out if the CF-Talk list, which several of the jQuery list users are on, is down. I haven't gotten anything since yesterday afternoon and I noticed that the last message on houseoffusion.com was from 5pm yesterday. News? Rick

[jQuery] Has anybody managed to print a sorted table using table sorter?

2009-01-28 Thread livewire9174
Hi, I've got table sorter, has anybody tried to print a table after sorting it ? Thanls

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Andy Matthews
Neither have I... -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Wednesday, January 28, 2009 2:46 PM To: jquery-en@googlegroups.com Subject: [jQuery] OT: CF-Talk Down? Hi, guys... Pardon the OT, but I'm trying

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Josh Nathanson
Yup down for me too. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Wednesday, January 28, 2009 12:46 PM To: jquery-en@googlegroups.com Subject: [jQuery] OT: CF-Talk Down? Hi, guys... Pardon the OT,

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Rick Faircloth
Perhaps I could ask you a question, Josh. I've been stuck on a CF/jQuery ajax issue for a day now and went to post my question to CF-Talk about the time it went down. Basically, I got everything working, but in my json response, beside the correct data, I get CF debugging code. I have

[jQuery] Re: closure inside ajax method

2009-01-28 Thread bob
I think the following line is the problem files = files.concat($.map(src.match(scripts).pop().split(','), function(e,i){ count = files.length; // gives me 0 or undefined

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Carl Von Stetten
Rick, Here is how I handle creating json content with ColdFusion. I store the json string in a variable (like variables.myJSONdata). Then, I output the variable as follows: cfcontent reset=yes / cfheader name=expires value=#now()# cfheader name=pragma value=no-cache cfheader

[jQuery] Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread RR_QQ
Ok so I am using amcharts and I am trying to change a setting dynamically. The following codes (when placed at the top of the document) works PERFECTLY: $(window).load(function() { alert('TEST'); document.getElementById('ip_details_graph').setParam('values.value.max', '100');

[jQuery] injecting content

2009-01-28 Thread roxstyle
are there any samples of injecting content? i am familiar with hide/show of content inline, but don't grasp injecting content. if i have a table - can i inject a div between 2 rows? or do i need to inject a new row?

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread William
Well, I agree with the browser... DOMElement.setParam() is not a function. You might have another script in your page that is overloading the prototype to define a setParam function, which would explain the alert() behaviour. Scripts are always executed in document order, so your script snippet

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread RR_QQ
I understand. However is there another option? How about with jquery allowing the object id containing the flash to finish loading before that code gets executed? How can I do that? That's probably easier but I am new to jquery and I just don't know how to do that! William-118 wrote:

[jQuery] Re: injecting content

2009-01-28 Thread William
In general, you can just use the jQuery manipulation APIs to inject arbitrary text and elements, like $('a').append('(bThis is a link/ b)') Tables are a bit of a special case. In my experience, it does not work consistently, so it is better if you use the browser DOM APIs to do things like row =

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread William
I doubt mucking about in the jQuery innards to change the behaviour of when the ready or load events fire will be easier than re-arranging your scripts so that setParam is defined before you call it... On Jan 28, 2:28 pm, RR_QQ rquiu...@leasethis.com wrote: I understand. However is there

[jQuery] Re: Jquery call works with 'alert' but no if i comment 'alert' out!

2009-01-28 Thread RR_QQ
forgive me if I'm wrong but I thought that jquery had onload or load functions that detec when an element or document is finished loading? I tried without success maybe I'm misinformed. I would never go into jquery's innards ;) William-118 wrote: I doubt mucking about in the jQuery

  1   2   >