DCSIMG
April 2011 - Posts - Rotem Bloom's Blog

Rotem Bloom's Blog

Share knowledge on .NET and web development

News

About Me

Glad to help and share knowledge on .NET and also huge fan of Dream Theater.

Contact me via messenger

View Rotem Bloom's profile on LinkedIn

Dream Theater Pics

Blogs I Read

April 2011 - Posts

האתר של ארטיזון עלה לאוויר בטכנולוגית ASP.NET MVC 3.0

היי,
היום העלינו את האתר של ארטיזון לאוויר. האתר נכתב מחדש והועבר מטכנולוגיה של SILVERLIGHT ל-ASP.NET MVC 3.0
אני חייב לציין שמיקרוסופט עשו עבודה והחלטה מעולה לצאת עם ה-MVC וכתיבת האתר בטכנולוגיה זו עשתה לנו חיים קלים בהפרדה לשכבות, שליטה על קוד ה-HTML, אין שמירה של VIEWSTATE ושאר ירקות רקובים. 
 
אומנם האתר מיועד לקנייה רק לתושבי דאלאס ארה"ב אבל אשמח אם תכנסו ותגידו מה דעתכם על האתר ובכלל תראו אתר LIVE שנכתב כולו ב-ASP.NET MVC 3.0
בנוסף אנחנו עדיין צחפשים אנשי .NET חזקים שיצטרפו לחברה.
 
https://www.artizone.com/zone
 
ביי רותם

ASP.NET MVC 3.0 jquery unobtrusive ajax Failed on IE 8

Hi All,

I'v notice a strange behavior when working with ASP.NET MVC 3.0 jquery unobtrusive ajax on forms HTML element on IE (internet explorer) 8.

Razor code example for generating ajax call on a form element using unobtrusive ajax: @using (Ajax.BeginForm("MyAction", "MyController",  new AjaxOptions { HttpMethod = "POST" })){

Sometimes (not always) i'm getting a javascript error with the message "Falied" that come from the javascript file jquery.unobtrusive-ajax.js:

The line is:

$("form[data-ajax=true] :submit").live("click", function (evt) {

Well the only solution I can find is to modify jquery.unobtrusive-ajax.js code with the following code:

$("form[data-ajax=true]").find("submit").live("click", function (evt) {

This fix the javascript error and the ajax call works always on IE 8.

Until now I can explain why the error happened only on IE 8 and was not reproduce permanently on each page refresh.

If it happened to you, I would be happy to know if you find other solution to this strange problem.

Rotem