View Single Post
Old 08-05-2011, 08:57 AM   PM User | #22
dev07
New Coder

 
Join Date: Aug 2011
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
dev07 is an unknown quantity at this point
I got a solution but not sure whether i should use this or not.


1) I have added another submit button and made it hidden.

<input type="submit" name="Btn_Submit" id="Btn_Submit" style="background: url(accept.jpg) no-repeat scroll center center transparent; cursor: pointer; border: 0pt none; width: 88px; height: 23px;" value="" onclick="contract(<?php echo $j?>);return false;">

<input style="display:none" type="submit" name="btn_submit" id="btn_submit<?php echo $j;?>"></input>



2) Now on javascript function using this code.

if(confirm('Please confirm that this is a binding contract'))
{ document.getElementById('btn_submit'+count_number).click();
}



Using this i can perform the post submission task in Firefox. I will test other browser as well.

Please give me your suggestion.
dev07 is offline   Reply With Quote