Some annoying problems associated with this problem. Hope someone here can help me.
var event = new Object(); function refreshInformation(){ document.forms['MyForm'].onsubmit({preventDefault: function(){} }); }
This is my current code, it is great for updating the form. The problem is that the "var event" violates all other javascript events, if I have, for example, the following:
<img src="myimg.gif" onmouseover="showmousepos(event)" />
this is not a mouse event that is dispatched to a function, instead it is my "var event" that I must declare in order to make onsubmit function properly.
When using only
onsubmit({preventDefault: function(){} }
without "var event" i get
Sys.ArgumentNullException: Value cannot be null Parameter name eventObject
I also tried using
submit()
, it does a full postback and completely ignores the ajaxform stuff ... at least in my solution.
Hmm ... I understand this can be a little confusing, but if someone understands the problem, it would be great if you had a solution. equals sign If you need more information about a problem, just ask and I will try to clarify which is more.
Markus
source share