PHP Classes

Double insert on IE7

Recommend this page to a friend!

      phpMyDataGrid - AJAX Enabled Datagrid  >  All threads  >  Double insert on IE7  >  (Un) Subscribe thread alerts  
Subject:Double insert on IE7
Summary:I use firefox, and works ok...but on IE 7 duplicate records
Messages:9
Author:Roddy Posada
Date:2006-12-28 23:11:57
Update:2007-01-10 17:43:18
 

  1. Double insert on IE7   Reply   Report abuse  
Picture of Roddy Posada Roddy Posada - 2006-12-28 23:11:57
Everything works ok, when i finished my page, i tried in other computer with IE7 and when i insert a new record it did it but twice...
I'm checking the class but if you have an idea please help me...

Thanks

  2. Re: Double insert on IE7   Reply   Report abuse  
Picture of Gustavo Arcila Gustavo Arcila - 2006-12-28 23:32:53 - In reply to message 1 from Roddy Posada
Hi,

I'm updating the published file with the correction, please download it again and check. ;)

Regards,



Gustavo

  3. Re: Double insert on IE7   Reply   Report abuse  
Picture of Roddy Posada Roddy Posada - 2006-12-29 00:52:27 - In reply to message 2 from Gustavo Arcila
Hi Gustavo, does not work, actually check the 1065 line you have to correct something there :
$decimalsep=='.'; ---> $decimalsep = '.';
I tried to compare the code but i didn't find the change...

Thanks for your quick answer.

  4. Re: Double insert on IE7   Reply   Report abuse  
Picture of Gustavo Arcila Gustavo Arcila - 2006-12-29 01:49:47 - In reply to message 3 from Roddy Posada
Hi,

changes are on lines

572: added id="mainformdgrid" to form

838: replaced onclick event with document.getElementById(\'mainformdgrid\').submit();

913: same as 838


Regards,



Gustavo


  5. Re: Double insert on IE7   Reply   Report abuse  
Picture of Roddy Posada Roddy Posada - 2006-12-29 16:19:20 - In reply to message 4 from Gustavo Arcila
I just dont get it, is going twice to the INSERT section using IE7, do i need to change any configuration on php.ini ?...

  6. Re: Double insert on IE7   Reply   Report abuse  
Picture of Gustavo Arcila Gustavo Arcila - 2006-12-29 16:36:54 - In reply to message 5 from Roddy Posada
That's so weird,

I was trying on IE7 and with those changes the bug was killed,

Really I don't know what else to do. the only thing, wait for new version, there are a lot of bug corrections.


:(

Regards,



Gustavo.

  7. Re: Double insert on IE7   Reply   Report abuse  
Picture of Roddy Posada Roddy Posada - 2006-12-29 16:41:15 - In reply to message 5 from Roddy Posada
OK, Gustavo, the problem seems to be when you hide the primary key using:
$Browse -> FormatColumn("id","#", "10", "10","0","75","center", "text")

If you use the option in readonly or hide the class duplicates the record, but if you show the column like normal, the class inserts the first time and show and error for the second...


  8. Re: Double insert on IE7   Reply   Report abuse  
Picture of Gustavo Arcila Gustavo Arcila - 2007-01-06 20:57:18 - In reply to message 1 from Roddy Posada
Hi, double inserting bug already killed.


Please download the class again


Regards,



Gustavo

  9. Re: Double insert on IE7   Reply   Report abuse  
Picture of vandeyy vandeyy - 2007-01-10 17:43:18 - In reply to message 8 from Gustavo Arcila
Hello,

After having to add a recording this one duplicates the data if I make F5. (With the new class 06/01/2007 ?!)

Did I forget something?

Best Regards.

Yves