PHP Classes

ajax js submit IE7 err

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Upcoming Visual HTML ...  >  All threads  >  ajax js submit IE7 err  >  (Un) Subscribe thread alerts  
Subject:ajax js submit IE7 err
Summary:ajax js submit IE7 err
Messages:7
Author:kiril botev
Date:2007-06-03 20:49:27
Update:2007-06-05 20:11:06
 

  1. ajax js submit IE7 err   Reply   Report abuse  
Picture of kiril botev kiril botev - 2007-06-03 20:49:27
IE7 dont like this :(
<INPUT id="doit" onclick='sub_form='' ; ; if(p_sender_sf_s) return false; p_sender_sf_r=false; p_sender_sf_f=f=this.form; if(f.onsubmit && !f.onsubmit()) return false; t=f.target; a=f.action; f.target='p_sender_sf_i'; f.action='tools/infusions/m3x/m3x.php?action=save_m3x&___event=submit&___input=sender'; f.submit(); f.action=a; f.target=t; p_sender_sf_t=0; p_sender_sf_s=true; p_sender_sf(); if((fb=document.getElementById('feedback'))) { fb.innerHTML=unescape('%3C')+'img src="indicator.gif" width="16" height="16" /> Submitting form ...';} ;return false ; return true' type="submit" name="doit" value="Add comment" />


  2. Re: ajax js submit IE7 err   Reply   Report abuse  
Picture of kiril botev kiril botev - 2007-06-03 20:59:35 - In reply to message 1 from kiril botev
... i see the problems are in lterals ""
examp. onclick=" .."..."... " make error in IE7
examp. onclick=" ..'...'... " is correct

  3. Re: ajax js submit IE7 err   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-06-03 22:27:23 - In reply to message 1 from kiril botev
This is odd. The class does generate onclick attributes exactly like that. The attribute value is always within double quotes " ".

Did you change the class somehow to make it use single quotes ' ' ?

  4. Re: ajax js submit IE7 err   Reply   Report abuse  
Picture of kiril botev kiril botev - 2007-06-04 17:21:29 - In reply to message 3 from Manuel Lemos
no i was not change anything i just load your forms with ajax (and eval(java scriptcode) all js) and after this IE7 generate onclick='sub_form='' ; ; if(p_sender_sf_s) return false; p_sender_sf_r=false; p_sender_sf_f=f=this.form; if(f.onsubmit && !f.onsubmit()) return false; t=f.target; a=f.action; f.target='p_sender_sf_i'; f.action='tools/infusions/m3x/m3x.php?action=save_m3x&___event=submit&___input=sender'; f.submit(); f.action=a; f.target=t; p_sender_sf_t=0; p_sender_sf_s=true; p_sender_sf(); if((fb=document.getElementById('feedback'))) { fb.innerHTML=unescape('%3C')+'img src="indicator.gif" width="16" height="16" /> Submitting form ...';} ;return false ; return true'

onclick=' .... '...' ....' make error in IE7

if possible to change
<SCRIPT defer type=" text/ javascript">
<!--
function ValidateForm(theform){...}
function SubmitForm(){...}
--!></script> ....
... onclick='submitSubmitForm()'....
i think this is good solution

  5. Re: ajax js submit IE7 err   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-06-05 01:36:47 - In reply to message 4 from kiril botev
I am not able to reproduce the problem.

Can you make your script be served in one public page that I can inspect the HTML generated by the form? If so, just let me know the HTML.

  6. Re: ajax js submit IE7 err   Reply   Report abuse  
Picture of kiril botev kiril botev - 2007-06-05 08:57:04 - In reply to message 5 from Manuel Lemos
ok i will try to modify your form_ajax_submit.php first. If i will not have success i will try to correct when the form are calling with AJAX. I will write you what happening.

ixt
Kiril Botev

  7. Re: ajax js submit IE7 err   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-06-05 20:11:06 - In reply to message 6 from kiril botev
No, that is not what I meant.

There is no problem with the forms class AJAX submit plug-in and IE 7. I already have checked that.

What I need you to show me is a page on which you have used the class and the AJAX submit plug-in that exhibits that error.

I suspect that the error is caused by malformed HTML that you have used, but I need to see the actual page HTML to reach a conclusion and see what needs to be done.