Writeln Img Src To Submit Data To External System - Firefox And IE Hanging
I have been scouring the depths of the web to find a solution to a problem I'm having. I'm relatively new to Javascript so forgive me. Upon clicking the next button on my checkout
Solution 1:
I think the behavior caused by the way how do you want to write an HTML element into a page. For your propose I think I got a better way:
So the first change is to add an img emelent that is not visible:
<img src="" id="hiddenImg" width="1" height="1" border="0" alt="" style="visibility:hidden">
<!-- You can also use display:none; -->
The second one is to change your Javascript:
function AddContact()
{
... lines skipped ...
var targetUrlStr = "";
if (document.getElementById('idINVOICEPRIVACY').checked == false)
{
targetUrlStr = 'https://app.bronto.com/public/<url cut here>';
} else if (document.getElementById('idINVOICEPRIVACY').checked == true) {
targetUrlStr = 'https://app.bronto.com/public/<url cut here>';
}
document.getElementById("hiddenImg").src = targetUrlStr;
return true;
}
Hope it will help.
Post a Comment for "Writeln Img Src To Submit Data To External System - Firefox And IE Hanging"