It seems that you're idea worked..to a certain extent. Now i'm getting this error from firebug:
<div role="listitem">Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: eventObject</div> <div role="listitem"> {name: "eventObject"}\r\n</div><div role="listitem">
</div><div role="listitem">on MicrosoftAjax.js</div><div role="listitem">
</div><div role="listitem">Any ideas on this?</div><div role="listitem">
</div><div role="listitem">Thanks, much appreciated for your time and help</div><div role="listitem">
</div><div role="listitem">Regards</div><div role="listitem">Nick
</div><div role="listitem">
</div>
Finally I updated my eluminate.js from Coremetrics (a tagging system to track visits) because the layout of my page broke everytime I clicked the submit button
of my form (FF only again).
nformosa
Member
1 Points
18 Posts
Re: Using MVC; Ajax is not being handled
Jan 17, 2010 05:10 PM|LINK
Hi Again,
It seems that you're idea worked..to a certain extent. Now i'm getting this error from firebug:
<div role="listitem">Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: eventObject</div> <div role="listitem"></div><div role="listitem">on MicrosoftAjax.js</div><div role="listitem">
</div><div role="listitem">Any ideas on this?</div><div role="listitem">
</div><div role="listitem">Thanks, much appreciated for your time and help</div><div role="listitem">
</div><div role="listitem">Regards</div><div role="listitem">Nick
</div><div role="listitem">
</div>
tpeczek
Participant
1968 Points
258 Posts
Re: Using MVC; Ajax is not being handled
Jan 17, 2010 07:38 PM|LINK
I don't know why it doesn't work in FireFox and can't solve this. But I can give you a workaround. Add an invisible submit button to your form:
Yet another developer blog <-- visit my blog
nformosa
Member
1 Points
18 Posts
Re: Using MVC; Ajax is not being handled
Jan 17, 2010 08:43 PM|LINK
Hi Again.
That made it!! thanks very much for your help. it seemed to have been a firefox issue after all.
Once again thanks
Nick
oudoulj
Member
100 Points
32 Posts
Re: Using MVC; Ajax is not being handled
Sep 03, 2010 12:27 PM|LINK
Hi all,
I have the same problem with Firefox 3.6.8 (and Safari 4/5 actually).
When I submit my Ajax form in MVC, I get :
Erreur : Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: eventObject
Fichier Source : http://localhost:3000/Scripts/MicrosoftAjax.debug.js
Ligne : 3964
in the error console of Firefox.
Where did you place your submit script with document.getElementById("btnFormSubmit").click(); ?
Thanks !
Jerome
oudoulj
Member
100 Points
32 Posts
Re: Using MVC; Ajax is not being handled
Sep 07, 2010 08:02 AM|LINK
OK, I'm replying to myself because I fixed my problem.
Firefox did not like me calling the js from the CDN like this :
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/4.0/1/MicrosoftAjax.js"></script>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/mvc/1.0/MicrosoftMvcAjax.js"></script>
The error console of FF raised an error everytime I clicked in my Html.TextBoxFor !!!
So I changed to call my local scripts instead, like this :
<script type="text/javascript" src="/Scripts/MicrosoftAjax.debug.js"></script>
<script type="text/javascript" src="/Scripts/MicrosoftMvcAjax.debug.js"></script>
Finally I updated my eluminate.js from Coremetrics (a tagging system to track visits) because the layout of my page broke everytime I clicked the submit button of my form (FF only again).
I'm back on track now.
Jerome