[Proto-Scripty] Re: Form.Serialize issue in Firefox 3.5

2009-05-19 Thread luellaj99

Doh!  Well, as dumb as I'm feeling, I was actually glad to hear it was
something so basic and simple. And it's not documented in any of the
books I have - they all just have partial examples. It's working like
a charm now! Thanks so much for your help.
luella


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Form.Serialize issue in Firefox 3.5

2009-05-18 Thread T.J. Crowder

Hi,

The bug (well, *a* bug) is in your form markup:



You're using

$('contact_form')

...to reference the form.  Referring to the $() docs[1]:  "If provided
with a string, returns the element in the document with matching ID".
That's the (or at least *a*) problem, your form has a name, but no
ID.  IE has a bug where it treats IDs and names as though they were
interchangeable (which would kind of come as a surprise to the W3C),
but that's just an IE bug.  Try adding an ID to your form:



Firebug[2] can help you diagnose this sort of thing.

[1] http://prototypejs.org/api/utility/dollar
[2] http://getfirebug.com/

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On May 18, 9:46 pm, luellaj99  wrote:
> I am experiencing a problem with the Form.Serialize in Firefox 3.5. (I
> upgraded from Vers 2, because it wasn't working either!)  It's working
> fine in Internet Explorer 7, but in Firefox it just hangs.
>
> I've tried this with prototype version 1.6.0.2 and 1.6.0.3. Same
> results.
>
> function queryRecord()
>  {
> //  document.write("Hit Query record");
> // var params = Form.serialize('contact_form');
>  var params = $('contact_form').serialize();
> //  document.write(params);
>   var myAjax = new Ajax.Updater('data_entry',
> 'contacts_db_select.php',
>          {method: 'get', parameters: params});
>  }
>
> The commented out lines are my attempts at de-bugging. I get the
> expected results in IE, nothing in Firefox.
> I'm guessing it's the Form.Serialize that's the issue, because it
> never gets past that point in Firefox.
>
> My form is pretty basic:
>
> 
>
>   . some fields .
>
>  
>  
>  
>
> 
>
> The other buttons are coded similarly, and have the exact same issue.
>
> Any assistance you could give me would be greatly appreciated.
>
> luellaj99
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Form.serialize issue

2008-09-21 Thread jason maina

Problem solved name attribute was missing in controls.
Thanx all the same ;-)

On 9/21/08, jason maina <[EMAIL PROTECTED]> wrote:
> Hi all,
> Im trying to use form.serialize to harvest fields & their values but
> it return null.
>
> pars=Form.serialize('formid')
> form has 1table with textboxes & a select element.
>
> What could i be doing wrong?
> Thank you in advance
> jason
>
> --
> Sent from Gmail for mobile | mobile.google.com
>

-- 
Sent from Gmail for mobile | mobile.google.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Form.serialize issue

2008-09-21 Thread T.J. Crowder

Hi,

You'll have to give us more to work with.  With problems where you
think you're using the API correctly and you've checked the API docs
to be sure, it's best to build a minimalist, self-contained example
that demonstrates the problem.  There are two reasons for this:  1.
Usually, in the process of doing that you figure out what you've done
wrong.  (No, seriously.)  2. If you don't, it gives you a nice example
to show to folks here (usually best to put it on Pastie -- http://pastie.org
-- so you get code highlighting and such) so we can help you out.

HTH,
--
T.J. Crowder
tj / crowder software / com

On Sep 21, 1:44 pm, "jason maina" <[EMAIL PROTECTED]> wrote:
> Hi all,
> Im trying to use form.serialize to harvest fields & their values but
> it return null.
>
> pars=Form.serialize('formid')
> form has 1table with textboxes & a select element.
>
> What could i be doing wrong?
> Thank you in advance
> jason
>
> --
> Sent from Gmail for mobile | mobile.google.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---