I am pretty new here and with AJAX. What I am trying to do is I have a Google Map User control in my update panel, and AsyncPostBackTrigger (a Button) which refreshes the Map, i.e. refreshes the Map
When I click on the button, I get the Invalid Argument javascript error in internet Explorer only.
Line: 26
Error: Invalid argument.
Line 26 has
Looking the the HTML which is rendered, the line has this code theForm.__EVENTARGUMENT.value = eventArgument; from
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
It works perfectly fine in Firefox and other browsers. If I replace the AsyncPostBackTrigger with simple PostBackTrigger it works on IE too.
subodh9312
Member
22 Points
19 Posts
AsyncPostBackTrigger javascript error in IE 8
Apr 18, 2011 09:23 AM|LINK
I am pretty new here and with AJAX. What I am trying to do is I have a Google Map User control in my update panel, and AsyncPostBackTrigger (a Button) which refreshes the Map, i.e. refreshes the Map
When I click on the button, I get the Invalid Argument javascript error in internet Explorer only.
Line: 26
Error: Invalid argument.
Line 26 has
Looking the the HTML which is rendered, the line has this code theForm.__EVENTARGUMENT.value = eventArgument; from
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
It works perfectly fine in Firefox and other browsers. If I replace the AsyncPostBackTrigger with simple PostBackTrigger it works on IE too.
Any help on above is much appreciated..
<div style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;" class="mcePaste" id="_mcePaste"> <div class="SYN_ROW"> <div style="text-indent: -0.5em; padding-left: 1em;" id="syn_row23" class="SYN_TXT">function __doPostBack(eventTarget, eventArgument) { </div> </div> <div class="SYN_ROW"> <div class="SYN_LNB"><input class="SYN_LNN" value="24" type="label" /><input id="syn_ctrl24" class="SYN_BCH" role="button" value="-" type="label" /></div> <div style="text-indent: -0.5em; padding-left: 1em;" id="syn_row24" class="SYN_TXT"> if (!theForm.onsubmit || (theForm.onsubmit() != false)) { </div> </div> <div class="SYN_ROW"> <div class="SYN_LNB"><input class="SYN_LNN" value="25" type="label" /><input id="syn_ctrl25" class="SYN_BCH" role="button" value="-" type="label" /></div> <div style="text-indent: -0.5em; padding-left: 1em;" id="syn_row25" class="SYN_TXT"> theForm.__EVENTTARGET.value = eventTarget; </div> </div> <div class="SYN_ROW"> <div class="SYN_LNB"><input class="SYN_LNN" value="26" type="label" /><input id="syn_ctrl26" class="SYN_BCH" role="button" value="-" type="label" /></div> <div style="text-indent: -0.5em; padding-left: 1em;" id="syn_row26" class="SYN_TXT"> theForm.__EVENTARGUMENT.value = eventArgument; </div> </div> <div class="SYN_ROW"> <div class="SYN_LNB"><input class="SYN_LNN" value="27" type="label" /><input id="syn_ctrl27" class="SYN_BCH" role="button" value="-" type="label" /></div> <div style="text-indent: -0.5em; padding-left: 1em;" id="syn_row27" class="SYN_TXT"> theForm.submit(); </div> </div> <div class="SYN_ROW"> <div class="SYN_LNB"><input class="SYN_LNN" value="28" type="label" /><input id="syn_ctrl28" class="SYN_BCH" role="button" value="-" type="label" /></div> <div style="text-indent: -0.5em; padding-left: 1em;" id="syn_row28" class="SYN_TXT"> } </div> </div> <div class="SYN_ROW"> <div class="SYN_LNB"><input class="SYN_LNN" value="29" type="label" /><input id="syn_ctrl29" class="SYN_BCH" role="button" value="-" type="label" /></div> <div style="text-indent: -0.5em; padding-left: 1em;" id="syn_row29" class="SYN_TXT">} </div> </div> </div>chetan.sarod...
All-Star
65739 Points
11138 Posts
Re: AsyncPostBackTrigger javascript error in IE 8
Apr 19, 2011 03:22 AM|LINK
Hi,
Please refer to these two articles which may give some helps:
ASP.NET AJAX and the Map Control
http://www.reimers.dk/blogs/jacob_reimers_weblog/archive/2007/01/12/asp-net-ajax-and-the-map-control.aspx
An Example Using UpdatePanels and Google Maps
http://www.reimers.dk/blogs/jacob_reimers_weblog/archive/2008/11/23/an-example-using-updatepanels-and-google-maps.aspx
http://forums.asp.net/p/1670154/4373226.aspx
</div>Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
SilversetSof...
Member
2 Points
1 Post
Re: AsyncPostBackTrigger javascript error in IE 8
Aug 28, 2012 07:12 PM|LINK
chetan.sarode: The links you provided are all broken. Could you please update the links or post the entire articles? Thanks.