Ajax works in Firefox but not in IE...developer says the way QCodo handles forms?

Login or register to post comments
3 replies [Last post]
Offline
Joined: 12/10/2008

I have a page which has a simple form at the top, and then the bottom is a set of interactive DataGrids. By interactive, the selection of one row determines how to populate the row below (if someone has experience with that, please let me know.

It actually works as it should in Firefox, but in IE it doesn't. My developer says the following:

Let's look what we get when QCodo parses this code, when AJAX action is called. AJAX actions are processing in js file post.js (/assets/js/_core/). When AJAX is called, qcodo.postAjax function

handles it, and then forming post data string by this way: strPostData += "&" + objForm.elements[i].id + "="(Where objForm is the global form).

Firefox in our case takes all elements of this form, and it includes also so important elements as form_state and form_id. This defines right way of call AJAX.

In other side, IE closes global form by first instance of close form element (). So other elements do not fall in form elements collection. This leads to forming bad poast data string without

form_state and form_id.

He said that the only option is to remove the form to allow the Ajax to work properly in IE. Is that true?

Offline
Joined: 03/31/2008

I'm really not sure what he's trying to say. Clearly IE doesn't have a problem with the js in normal situations, so I don't think the code in post.js is at fault. I'm unsure why he would see objForm.elements miss form_state and form_id though. A more detailed description would be helpful, along with an actual example that breaks.

Offline
Joined: 05/15/2009

As far as I know there is no problem on IE except that in a certain case IE could not produce Ajax error dump. What kind of IE version are you using? Just ensure that the JavaScript in IE is enabled, otherwise it would not work :)

It would give you missing form state and/or id if no JavaScript.

OOPMan's picture
Offline
Joined: 11/07/2008

Are you trying to mix q QForm andf a standard HTML Form on the same page? Your description would seem to indicate that that this is the case...