[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] 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