Re: [jQuery] missing ; before statement

2006-12-13 Thread Mungbeans
Blair McKenzie-2 wrote: > > 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. > This the one you mean? http://www.reach1to1.com/sandbox/jquery/testform.html http://www.reach1to1.com/sa

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 tempo

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

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]

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 realise

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

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_ht

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? > > > I've just been through the tedious process of removing the underscore from every class and id in the program. I doubt it is the problem. I am now getting thi

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-a&rls=org.mozilla%3Aen-US%3Aofficial_s&hl=en&q=%22missing+%3B+before+statement%22&btnG=Google+Search The first hit is this: http://www.webdeveloper.com/forum/archive/index.php/t-28861.html The la

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 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/

[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) line 1933 in jquery is: 1931 // evaluate scripts within html 1932 if ( type == "html" ) $("").html(data).evalScripts(); 1933 1934 return da