MSIE ajax submit problem
I have a small search form that pops up in a modal layer with
is="ajax", very simple stuff:
echo $this->Form->create(false,array('default'=>false));
echo $this->Form->input('searchfield',array('label'=>''));
echo $this->Js->submit('search',array('update'=>'#ajax'));
echo $this->Form->end();
In all other browsers, this works the way you'd expect if the user
hits return or enter after typing a search query. On MSIE, it only
does something if I remove the array('default'=>false) in the create
method of the form helper.... unfortunately, what it does in MSIE in
that case is submit the form, which causes the page to refresh so that
the entire page is now what used to be the modal layer (and all
subsequent operations break because the modal layer can't exist on its
own like that).
My temporary fix has been to add the options array('default'=>false)
to the Form->create() to prevent that nasty behavior.
Unfortunately, this means that users on MSIE are unable to submit
their search query using the return or enter key, which is pretty much
default user behavior nowadays and everyone is annoyed.
I can't find anything on the internet about this problem, but it seems
either I'm overlooking something and the fix is easy, or this would
have to be a known issue, no?
The site uses jquery, btw.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home