开发者

How to fix the Runtime Error In server using jqueryMobile in MVC3?

I had develop a small jquery-mobile 开发者_如何学Goapplication in telerik MVC3. It is working in local machine and i uplod into my server and tested it works for desktop devices but when I test in Mobile (Iphone) it shows Error Like runtime Error

<!--web.config Cofiguration File-->
<configuration>
  <system.Web>
    <customErrors mode="Off"/>
  </system.Web>
</configuration>

I can't understand why it showing only in mobile device please help me. How can I solve this error.


I think you can't see the error page due to the fact that JQueryMobile only shows a small popup with the message "Error loading page".

You can disable Ajax and this way see all html pages as a regular web app would.
Just add this script between Jquery and Jquery mobile script references

<script language="javascript" type="text/javascript">
        $(document).bind("mobileinit", function () {
            $.mobile.ajaxEnabled = false;
        }); 
</script>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜