Re: [jQuery] Is it a bug

2006-12-13 Thread Johnny
hi,guys i get a form in table by jquery. if the form like this: table form tbodytbody /form /table The table does not display in firefox(i use ff2.0), but it's ok in IE. and i can find the table of dom from DOM inspector add-on, it does exists!! i try some lots of ways to find what

[jQuery] Dynamically added click registration always returns the last value added

2006-12-13 Thread leftend
Hello, I'm parsing this JSON: {result:success,successText:Your changes have been saved successfully.,errorText:,memberID:49,mode:edit,jobs:[{jobID:1,companyName:SAIC},{jobID:2,companyName:Aspentech},{jobID:3,companyName:Cardinal Health}]} ...with this Javascript:

Re: [jQuery] Dynamically added click registration always returns the last value added

2006-12-13 Thread leftend
The a tag that was in the var div line got rendered as an actual link. Here it is again with spaces to prevent it from being rendered as a link: var div = div id='job + j.jobID + 'h1 id='jobTitle + j.jobID + ' style='display:inline;font-weight:normal' + j.companyName + /h1nbsp;| a href='#'

Re: [jQuery] Dynamically added click registration always returns the last value added

2006-12-13 Thread Michael Geary
You're using the variable j to hold a reference to each element of the jobs array as you go through the loop. After the loop finishes, j is a reference to the last element of that array. Later, when the click function gets called, j still refers to that last element - regardless of which element

Re: [jQuery] Dynamically added click registration always returns the last value added

2006-12-13 Thread leftend
Wow, thanks very much. It worked like a charm. I hadn't used the $.each function in jQuery yet, so thank you for pointing me to it. I suspect I'll be using it a lot more now that I know how to! Chad Michael Geary wrote: You're using the variable j to hold a reference to each element of

Re: [jQuery] Is it a bug

2006-12-13 Thread Erik Beeson
You may want to consider looking into using jXs: http://www.malsup.com/jquery/jxs/ The problem is XML doesn't work like HTML when inserted into the DOM, even though it looks like HTML. I hacked up some code from jXs to convert the XML into HTML and made it a little plugin called htmlify. I use

Re: [jQuery] Is it a bug

2006-12-13 Thread Klaus Hartl
Johnny schrieb: hi,guys i get a form in table by jquery. if the form like this: table form tbodytbody /form /table The table does not display in firefox(i use ff2.0), but it's ok in IE. and i can find the table of dom from DOM inspector add-on, it does exists!! i try

Re: [jQuery] Efforts to Convert Folks to jQuery

2006-12-13 Thread Klaus Hartl
•More than cosmetic effects (Moo.fx) Just wondering - I don't know much about it - does Moo.fx really have only cosmetic effects? What is meant by that anyway? I guess I have to have a look into the slides... -- Klaus ___ jQuery mailing list

[jQuery] Is it a bug

2006-12-13 Thread Michael Holloway
if the form like this: table form tbodytbody /form /table The table does not display in firefox(i use ff2.0), but it's ok in IE. and i can find the table of dom from DOM inspector add-on, it does exists!! i try some lots of ways to find what happened. And last i find. if html like this:

[jQuery] Apps used to reply to this list

2006-12-13 Thread Michael Holloway
Hi people, I seem to have problems creating a reply to the messages on this list, whenever I post a reply, it always creates a new thread rather than continue another, I'm using Thunderbird 1.5.0.8 on the mac. Does anyone else use this program/version and can tell me what I'm doing wrong. If

Re: [jQuery] Apps used to reply to this list

2006-12-13 Thread Klaus Hartl
Michael Holloway schrieb: Hi people, I seem to have problems creating a reply to the messages on this list, whenever I post a reply, it always creates a new thread rather than continue another, I'm using Thunderbird 1.5.0.8 on the mac. Does anyone else use this program/version and can

Re: [jQuery] Disabling a tags

2006-12-13 Thread Sam Collett
On 13/12/06, Brice Burgess [EMAIL PROTECTED] wrote: Joan Piedra wrote: On 12/12/06, *Aaron Heimlich* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: div#myid = SLOW!! #myid = FAST!! .myclass = SLOW!! div.myclass = FAST(er)!! LOL, I think this is

[jQuery] Show/Hide Buttons on one line

2006-12-13 Thread jazzle
I'm sure I must be missing something basic, but I cannot persuade buttons which I'm showing and hiding with jQ to stay on one line. It works fine with instant show/hide, but not with speeds (slow/medium/fast). Any ideas/hints/help will be appreciated, Jez -- View this message in context:

Re: [jQuery] Apps used to reply to this list

2006-12-13 Thread Marc Jansen
Klaus Hartl schrieb: Michael Holloway schrieb: Hi people, I seem to have problems creating a reply to the messages on this list, whenever I post a reply, it always creates a new thread rather than continue another, I'm using Thunderbird 1.5.0.8 on the mac. Does anyone else use this

Re: [jQuery] unload and unload

2006-12-13 Thread Andreas Wahlin
so no .click() then? ANdreas The best thing to do is always use .bind(event, fn) for your events. There is no ambiguity when you do that. Many of those confusing shortcuts will be going away in an upcoming version. ___ jQuery mailing list

Re: [jQuery] Is it a bug

2006-12-13 Thread Karl Swedberg
Johnny, If you really need that table in there, try rearranging your HTML so that the form element is inside one of the table's cells: table tbody tr td form ... /form /td /tr /tbody /table --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread Brandon Aaron
Could you put together an example page? -- Brandon Aaron On 12/13/06, jazzle [EMAIL PROTECTED] wrote: I'm sure I must be missing something basic, but I cannot persuade buttons which I'm showing and hiding with jQ to stay on one line. It works fine with instant show/hide, but not with speeds

Re: [jQuery] unload and unload

2006-12-13 Thread Karl Swedberg
On Dec 13, 2006, at 6:54 AM, Andreas Wahlin wrote: so no .click() then? ANdreas The best thing to do is always use .bind(event, fn) for your events. There is no ambiguity when you do that. Many of those confusing shortcuts will be going away in an upcoming version. I think the decision

Re: [jQuery] jQuery 1.0.4 Released

2006-12-13 Thread Andy Matthews
Hey John... In the API docs, is there any reason why EVERY one of the listings has the word jQuery before it? Isn't that rather redundant? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread Andy Matthews
Have you double checked to make sure the widths are set correctly? Could be that when the buttons get longer/shorter, it bumps another button down to the next line? !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED]

Re: [jQuery] jQuery 1.0.4 Released

2006-12-13 Thread Klaus Hartl
Andy Matthews schrieb: Hey John... In the API docs, is there any reason why EVERY one of the listings has the word jQuery before it? Isn't that rather redundant? That is how you know if a method is chainable or not. As most methods are it may seem redundant at first glance, but it isn't of

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread jazzle
I don't think that can be it - these are the only items on this line. Andy Matthews wrote: Have you double checked to make sure the widths are set correctly? Could be that when the buttons get longer/shorter, it bumps another button down to the next line? -- View this message in

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread jazzle
I don't honestly think it'll help. The code is simple, just input type=button class=tohide ...input type=button class=tohide ... with jQ: $(.tohide).hide('slow'); Brandon Aaron wrote: Could you put together an example page? -- View this message in context:

Re: [jQuery] jQuery 1.0.4 Released

2006-12-13 Thread Andy Matthews
I see now...apologies. !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Klaus Hartl

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread Joel Birch
In the process of animating, I think jQuery adds display:block to the inline style property. It probably doesn't do this with the instant show. My guess is this is what is happening. Joel. On 13/12/2006, at 9:24 PM, jazzle wrote: I'm sure I must be missing something basic, but I cannot

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread Dave Methvin
I'm sure I must be missing something basic, but I cannot persuade buttons which I'm showing and hiding with jQ to stay on one line. To use the effects jQuery has to make them block elements. Simple show/hide just changes display:none so it doesn't have the problem. Set up each button as a

Re: [jQuery] jQuery 1.0.4 Released

2006-12-13 Thread Peter Bengtsson
Is there a changelog? John Resig wrote: Hi Everyone - Another fantastic release of jQuery is ready for your consumption. This release includes a number of bug fixes (as usual) along with some much-needed improvements to jQuery's Ajax functionality. As always, if you have any questions or

Re: [jQuery] Using JQuery to manipulate href (URL params)

2006-12-13 Thread Scottus
On 12/12/06, Robert James [EMAIL PROTECTED] wrote: 2. How do I use JQuery to manipulate hrefs? there are a number of security locks on modern browsers that don't allow dynamic manipulation of href. I haven't looked at your example in detail so I am not sure you will run into it, but a lot of

Re: [jQuery] jQuery 1.0.4 Released

2006-12-13 Thread Geoffrey Knutzen
Happy dance, happy dance. Thank you all for this. Your efforts are truly appreciated. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Tuesday, December 12, 2006 5:44 PM To: jQuery Discussion. Subject: [jQuery] jQuery 1.0.4 Released Hi

Re: [jQuery] Apps used to reply to this list

2006-12-13 Thread Christopher Jordan
Hi Mike, I'm using TB 1.5.0.8 as well (though on a PC, so I'm not sure this will be of great help), and I just use the Reply to Sender Only option. It sends the email to discuss@jquery.com, and everything seems to go smoothly. Cheers, Chris Michael Holloway wrote: Hi people, I seem to

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread Brandon Aaron
On 12/13/06, jazzle [EMAIL PROTECTED] wrote: I don't honestly think it'll help. Nonsense, it does help and it helps to help those who want to help. It allows those willing to help with limited time to just check out the example in firebug. I was first thinking it would be display: block also

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread jazzle
Brandon Aaron wrote: On 12/13/06, jazzle [EMAIL PROTECTED] wrote: I don't honestly think it'll help. Nonsense, it does help and it helps to help those who want to help. That's why I did include some code. It was as dave suggested

Re: [jQuery] interesting background issue in FF 2

2006-12-13 Thread bmsterling
Just a follow up, I made a bunch of changes to the style sheet, assuming it has something todo with background images, and still no luck. Attached is what I am seeing. thanks http://www.nabble.com/file/4566/Untitled-1.png -- View this message in context:

[jQuery] (Half-OffTopic) jQuery Firebug

2006-12-13 Thread Fabien Meghazi
Hi all, Sorry if this thread is partly offtopic, but anyone here knows if there's an easy way to populate jScript in a external webpage in order to use it in firebug ? Let's say i'm on google.com and I would like to make some research on their page, using jQuery in the firebug console would be

Re: [jQuery] (Half-OffTopic) jQuery Firebug

2006-12-13 Thread Mike Alsup
Let's say i'm on google.com and I would like to make some research on their page, using jQuery in the firebug console would be handy. I know it's possible with greasemonkey but I wonder if there's an easier way to do this ? Here's an example. Type the following into the firebug console: var

[jQuery] mirror of dean edwards packer anywhere?

2006-12-13 Thread Webunity | Gilles van den Hoven
Anybody know a mirror of dean edwards packer? The .NET application doesn have thesame compression results. Thanx Gilles ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread Brandon Aaron
On 12/13/06, Dave Methvin [EMAIL PROTECTED] wrote: ... the fx .show/.hide methods use the same logic as the normal .show/.hide metheds (both .show methods set display 'block'). The non-fx show/hide try to preserve the original display value: show: function(){

[jQuery] Width + Height of a Media

2006-12-13 Thread Olaf Bosch
Hi All, i would load a Video on a Page after click a Link, works fine. What can i do, the width and height is not known. This is my Code: $(#content).append(object id='wmv' type='video/x-ms-wmv' width='' height='' data='+url+' and so on I must have the width and height of the File that

[jQuery] iResizable with multiple resize problem

2006-12-13 Thread Sébastien Pierre
Hi all, I went through some issues with the iResizable plug-in, especially when dealing with multiple resizable instances. I already filed a bug some time ago (http://jquery.com/dev/bugs/bug/478/), but I would be interested in knowing if anybody has found workarounds to that. You can find

Re: [jQuery] (Half-OffTopic) jQuery Firebug

2006-12-13 Thread Fabien Meghazi
var s = document.createElement('script'); s.src='http://jquery.com/src/jquery-1.0.4.js'; document.body.appendChild(s); Thanks ! I didn't knew the dom createElement's way would imply the load, parse and execution of a remote script. ___ jQuery

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread Dave Methvin
In the fx module the display property is stored as oldblock, then set to display: block and then finally reverted if it is not a 'hide' type animation. As I've confessed before, the fx code is a total mystery to me. I just searched the source for references to oldblock and assumed it wasn't

[jQuery] New Site: Hope Cottage

2006-12-13 Thread Brandon Aaron
We just launched a new site that uses jQuery. http://www.hopecottage.org/ -- Brandon Aaron ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] New Site: Hope Cottage

2006-12-13 Thread Sam Collett
On 13/12/06, Brandon Aaron [EMAIL PROTECTED] wrote: We just launched a new site that uses jQuery. http://www.hopecottage.org/ -- Brandon Aaron You don't get anything on the home page with JavaScript disabled, but the top links still work (so technically still accessible, but less search

[jQuery] Anyone who has experience with libraries other than JQ

2006-12-13 Thread Solid Source
Head over to WASP and chime in with any relevant thoughts. I'm sure they don't want their board spammed so please make it relevant to the article if you have any thoughts that pertain (I think JQuery's solution addresses them well).

Re: [jQuery] mirror of dean edwards packer anywhere?

2006-12-13 Thread Mika Tuupola
On Dec 13, 2006, at 18:16, Webunity|Gilles van den Hoven wrote: Anybody know a mirror of dean edwards packer? The .NET application doesn have thesame compression results. Not a mirror, but I use this from commandline: http://homepages.nildram.co.uk/~9jack9/download/packer.perl.zip -- Mika

Re: [jQuery] mirror of dean edwards packer anywhere?

2006-12-13 Thread Rich Manalang
If you download the jQuery source, you'll find the packer.js file, the javascript.jar and the associated ant build files to run the packer. Take a look at the pack.js file in the build directory. Rich On 12/13/06, Webunity | Gilles van den Hoven [EMAIL PROTECTED] wrote: Anybody know a mirror

[jQuery] Check element visibility

2006-12-13 Thread fullgarbage
Hello all, How can I check if a given element is visible or not (i.e. has display:block). I have the folowing situatioin - I need to hide all li class=label elements that have ALL their li class=clearfix descendant hidden. (if one or more of the li class=clearfix descendants is visible, then the

Re: [jQuery] (Half-OffTopic) jQuery Firebug

2006-12-13 Thread Karl Swedberg
You could also add a bookmarklet to Firefox's Bookmarks Toolbar Folder. Then, whenever you see a page you'd like to play with using jQuery and Firebug, just click the bookmarklet and you're ready to go. javascript:var%20s=document.createElement('script');s.setAttribute

Re: [jQuery] mirror of dean edwards packer anywhere?

2006-12-13 Thread Joan Piedra
Here is the php version. http://joliclic.free.fr/php/javascript-packer/en/index.php On 12/13/06, Webunity | Gilles van den Hoven [EMAIL PROTECTED] wrote: Anybody know a mirror of dean edwards packer? The .NET application doesn have thesame compression results. Thanx Gilles

Re: [jQuery] jQuery 1.0.4 Released

2006-12-13 Thread Jörn Zaefferer
Peter Bengtsson schrieb: Is there a changelog? There is a newandnoteworthy.txt in SVN. It is not the same as a changelog, as it doesn't cover bugs like typos, missing characters etc. -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing

Re: [jQuery] Check element visibility

2006-12-13 Thread Andy Matthews
$(p).css(display); !//-- andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --//- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of fullgarbage Sent:

Re: [jQuery] Show/Hide Buttons on one line

2006-12-13 Thread Jörn Zaefferer
Dave Methvin schrieb: In the fx module the display property is stored as oldblock, then set to display: block and then finally reverted if it is not a 'hide' type animation. As I've confessed before, the fx code is a total mystery to me. I just searched the source for references to

Re: [jQuery] New Site: Hope Cottage

2006-12-13 Thread Joan Piedra
Hey, I like the main effect in the homepage, it's pretty cool. Btw, I saw some accesibility problems you would like to fix. The homepage doesn't show the sublinks or the middle content if the javascript is disabled. The same happens with the sitemap. Cheers On 12/13/06, Brandon Aaron [EMAIL

Re: [jQuery] Check element visibility

2006-12-13 Thread Jörn Zaefferer
fullgarbage schrieb: Hello all, How can I check if a given element is visible or not (i.e. has display:block). You can use $(...).is(:visible) Details for :visible can be found here: http://jquery.com/docs/Base/Expression/Custom/ -- Jörn Zaefferer http://bassistance.de

Re: [jQuery] (Half-OffTopic) jQuery Firebug

2006-12-13 Thread Joan Piedra
wow, that's a nice bookmarklet. Thanks for that! On 12/13/06, Karl Swedberg [EMAIL PROTECTED] wrote: You could also add a bookmarklet to Firefox's Bookmarks Toolbar Folder. Then, whenever you see a page you'd like to play with using jQuery and Firebug, just click the bookmarklet and you're

Re: [jQuery] New Site: Hope Cottage

2006-12-13 Thread Brandon Aaron
On 12/13/06, Sam Collett [EMAIL PROTECTED] wrote: On 13/12/06, Brandon Aaron [EMAIL PROTECTED] wrote: We just launched a new site that uses jQuery. http://www.hopecottage.org/ -- Brandon Aaron You don't get anything on the home page with JavaScript disabled, but the top links still

Re: [jQuery] Check element visibility

2006-12-13 Thread Karl Swedberg
On Dec 13, 2006, at 1:14 PM, fullgarbage wrote: Hello all, How can I check if a given element is visible or not (i.e. has display:block). I have the folowing situatioin - I need to hide all li class=label elements that have ALL their li class=clearfix descendant hidden. (if one or more of

Re: [jQuery] Check element visibility

2006-12-13 Thread Brian Miller
$(':visible', this).length == 0 (Or 1, if the root of the context is returned, which I'm not sure of.) Note: This will be kind of inefficient if you're working with a big DOM tree. - Brian Hello all, How can I check if a given element is visible or not (i.e. has display:block). I have

[jQuery] Function: $(...).ancestorsTo(match)

2006-12-13 Thread Jonathan Sharp
I wrote a method that will provide a list of ancestors for any number of generations until an ancestor matches the expression. Example: BODY DIV UL.myClass LI UL LI #myId $('#myId').ancestors() returns [UL, LI, UL.myClass, DIV, BODY] $('#myId').ancestors(UL.myClass)

Re: [jQuery] this verus (this)

2006-12-13 Thread Chris Domigan
$(this)[0] is never needed as 'this = $(this)[0]' when in an 'each' loop (or binding on an event, callbacks in plugins etc). I was simply speculating what would have happened if this had been designated a jQuery object. Hence this[0] would give you the DOM node. Read the whole thread :)

Re: [jQuery] Function: $(...).ancestorsTo(match)

2006-12-13 Thread Matt Stith
plugin devs should remember: Never use $ inside your plugins. Always use 'jQuery'. The reason is that '$' can be changed by the user for support with other libraries. On 12/13/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I wrote a method that will provide a list of ancestors for any number of

[jQuery] quick quesiton for Felix re: cakePHP

2006-12-13 Thread bmsterling
Felix, I noticed on another thread that you work with cakePHP, I am trying to get my head around it, but not quite there. Can you recommend any good forums and tutorials (not digging the bakery.cakephp.org too much) to help me on my way. Thanks Benjamin -- View this message in context:

[jQuery] One more mention of Jquery

2006-12-13 Thread Dragan Krstic
On this page http://www.webtuesday.ch/meetings/20061010, go to pro-js.pdf On 3rd page is sexy on-liner...___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Function: $(...).ancestorsTo(match)

2006-12-13 Thread fullgarbage
Hello Jonathan, Wednesday, December 13, 2006, 11:47:37 PM, you wrote: I wrote a method that will provide a list of ancestors for any number of generations until an ancestor matches the expression. Example: BODY   DIV     UL.myClass   LI     UL   LI #myId

Re: [jQuery] unload and unload

2006-12-13 Thread Aaron Heimlich
I think people were leaning towards removing the shortcuts from the core and putting them into their own plugin, but I could be wrong about that. --Aaron On 12/13/06, Karl Swedberg [EMAIL PROTECTED] wrote: I think the decision about what to do with the shortcuts has not been finalized yet.

Re: [jQuery] Width + Height of a Media

2006-12-13 Thread Blair McKenzie
You could put the size in the url (i.e. url?width=xxxheight=yyy) and then parse out the values on click. function getParams(url) { var params=[]; $.each(href.split(/(?|)/),function(i,s){ var pair = s.split(=) if (pair.length==2) params[pair[0]]=pair[1]; }) return params; };

[jQuery] Finished: jQuery code assist in Aptana

2006-12-13 Thread Edwin Martin
Hi, I like jQuery and I like Aptana and was very frustrated jQuery didn't had code assist (auto-completion) in Aptana. And I think I'm not the only one :-) I created the scriptdoc-file needed for code assist in Aptana. You can download it here: http://www.bitstorm.org/edwin/jquery/ It's all

[jQuery] Select All elements between clicks? need help please

2006-12-13 Thread mylocal
I have been trying to do a inline calendar for a client where you select the arrival date and then departure date and once the second click is registered in gives me an array of elemets between the two depending on class and highlights those spaces if there available. some code here at present

Re: [jQuery] Select All elements between clicks? need help please

2006-12-13 Thread Blair McKenzie
// declare dates here for access by all events var firstdateel=false; var lastdateel=false; // or you could select hidden input elements and use those var $firstdate = $(input); var $lastdate = $(input); // select all dates var $dates=$(td.selectabledate); // declare the range variable for

Re: [jQuery] Is it a bug

2006-12-13 Thread johnnybai
Thanks. i put form element outsidest:) On 12/13/06, Karl Swedberg [EMAIL PROTECTED] wrote: Johnny, If you really need that table in there, try rearranging your HTML so that the form element is inside one of the table's cells: table tbody tr td form ... /form /td /tr /tbody

[jQuery] MetaData plugin - help needed

2006-12-13 Thread Chris Domigan
Hi all, I'm having a problem with John's metadata plugin. The value of the parameter arr in the jQuery.fn.get function in metadata.jsis always undefined, so at this point: return arr arr.constructor == Array ? it never branches towards the metadata logic, hence I can never access metadata

Re: [jQuery] MetaData plugin - help needed

2006-12-13 Thread Erik Beeson
Could you give an example of how you're trying to access the metadata? --Erik On 12/13/06, Chris Domigan [EMAIL PROTECTED] wrote: Hi all, I'm having a problem with John's metadata plugin. The value of the parameter arr in the jQuery.fn.get function in metadata.js is always undefined, so at

Re: [jQuery] MetaData plugin - help needed

2006-12-13 Thread Chris Domigan
I've tried lots of ways: given: td class=blah data={foo:'bar'}/td $(td.blah).get(0).foo; $(td.blah).each(function() { this.foo; }); $(td.blah).each(function() { $(this)[0].foo; }); The point is though, that EVERY jquery query on my page, regardless of whether or not I'm accessing a

[jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
I have just downloaded the latest and greatest and now am getting this strange error message in firebug: missing ; before statement jquery.js (line 1933) div class=buttonpanel_frontpage h1 class=contentheading_frontpage line 1933 in jquery is: 1931 // evaluate scripts within html 1932 if (

Re: [jQuery] missing ; before statement

2006-12-13 Thread Chris Domigan
Sounds like you have a custom script being loaded in by ajax, eg .load() and eval'd which is throwing the error. Any syntax errors in your custom script? Chris ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
Chris Domigan wrote: Sounds like you have a custom script being loaded in by ajax, eg .load() and eval'd which is throwing the error. Any syntax errors in your custom script? This is the offending code: function updateSectionForm(sectionidVal) { $.getJSON(index2.php,

Re: [jQuery] missing ; before statement

2006-12-13 Thread Erik Beeson
A Google search for missing ; before statement yields: http://www.google.com/search?client=firefox-arls=org.mozilla%3Aen-US%3Aofficial_shl=enq=%22missing+%3B+before+statement%22btnG=Google+Search The first hit is this: http://www.webdeveloper.com/forum/archive/index.php/t-28861.html The last

Re: [jQuery] MetaData plugin - help needed

2006-12-13 Thread Erik Beeson
I can confirm that the metadata plugin doesn't work with 1.0.4. It works fine with 1.0.3 though. --Erik On 12/13/06, Chris Domigan [EMAIL PROTECTED] wrote: I've tried lots of ways: given: td class=blah data={foo:'bar'}/td $(td.blah).get(0).foo; $(td.blah).each(function() { this.foo; });

Re: [jQuery] MetaData plugin - help needed FIXED

2006-12-13 Thread Erik Beeson
The functionality of the get method that the metadata plugin overloads is split out into a set method in 1.0.4. Just change the matadata plugin to overload set instead of get, so it looks like this: jQuery.fn._set = jQuery.fn.set; jQuery.fn.set = function(arr){ var result = this._set.apply(

Re: [jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
Erik Beeson wrote: I notice your code also has an underscore in a parameter name. Maybe try removing the underscore? Just realised you mean the parameters to the function. If I include a callback function into the JSON call, eg: $.getJSON(index2.php, {no_html:1,

Re: [jQuery] missing ; before statement

2006-12-13 Thread Erik Beeson
If I include a callback function into the JSON call, eg: $.getJSON(index2.php, {no_html:1, task:getsection, option:com_gravesearch, sectionid:sectionidVal }, function(json){ alert(json); } ); Then I get

Re: [jQuery] missing ; before statement

2006-12-13 Thread Erik Beeson
Could you try removing it just to see if that fixes the error? Does the same thing happen in IE? --Erik On 12/13/06, Mungbeans [EMAIL PROTECTED] wrote: Erik Beeson wrote: I notice your code also has an underscore in a parameter name. Maybe try removing the underscore? Just realised you

Re: [jQuery] missing ; before statement

2006-12-13 Thread Karl Rudd
This is a bit of a long shot but have you tried quoting the hash keys? As in instead of: no_html:1 Try: no_html:1 In theory you should do always so that so as not to get into problems with keys that are also defined elsewhere. Karl Rudd On 12/14/06, Mungbeans [EMAIL PROTECTED] wrote:

Re: [jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
Erik Beeson wrote: You still have no_html with an underscore... I temporarily removed the underscore and then got a message that indicated that the problem was with my php code. Once I fixed that (and put the underscore in no_html back) the query ran without an error. Now all I have

Re: [jQuery] missing ; before statement

2006-12-13 Thread Blair McKenzie
Have a look at the various form plugins. The normal forms one will pull all the form data into a hash, but there's another one that will do the reverse. Blair On 12/14/06, Mungbeans [EMAIL PROTECTED] wrote: Erik Beeson wrote: You still have no_html with an underscore... I temporarily

Re: [jQuery] MetaData plugin - help needed FIXED

2006-12-13 Thread Aaron Heimlich
On 12/13/06, Erik Beeson [EMAIL PROTECTED] wrote: Should this be filed as a bug report, or is the matadata plugin not official? It couldn't hurt to submit a bug report for it. I see bugs for plugins, like Interface, posted there occassionally. -- Aaron Heimlich Web Developer [EMAIL

Re: [jQuery] Select All elements between clicks? need help please

2006-12-13 Thread mylocal
Thanks Blair. I have it nearly working correctly just one hiccup when you select the arrivaldate that is greater than the first date it highlights from the beginning to the departure date, though if you select again without clearing fields it works correctly. my code

Re: [jQuery] quick question for Felix re: cakePHP

2006-12-13 Thread Juha Suni
bmsterling wrote: Felix, I noticed on another thread that you work with cakePHP, I am trying to get my head around it, but not quite there. Can you recommend any good forums and tutorials (not digging the bakery.cakephp.org too much) to help me on my way. I'm using CakePHP daily, and here

[jQuery] Hide div only if no child checkbox is selected

2006-12-13 Thread GreyCells
Hi I have a div element full of checkboxes that gets hidden on page load via $(document).ready(function() {$('#testDiv').hide(); }. This works fine, but what I really want to do is to only hide the testDiv if none of the checkboxes within it have a 'checked=checked' attribute. All I've managed