Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSys.ScriptLoadFailedExceptionSys.ScriptLoadFailedException
Previous
 
Next
New Post
7/9/2010 2:20 AM
 
Hello Forum Members,

I just found a fix for a problem we were having with Safari and Chrome receiving an error Sys.ScriptLoadFailedException (http://forums.asp.net/t/1252014.aspx).  Since DNN is a little more tricky with actually adding references to it's ScriptManager I added the fix found in the ASP.Net forum post by adding in the following lines of code to the Page_Load function of a control that is using an UpdateProgress control and receives this error in Safari and Chrome (there could be other AJAX controls with this same problem but it was the UpdateProgress control giving us grief):

Dim srWebKitFix As New ScriptReference("~/js/webkitfix.js")
Dim ScriptManager1 As ScriptManager = ScriptManager.GetCurrent(Me.Page)
ScriptManager1.Scripts.Add(srWebKitFix)

the webkitfix.js file contains:
Sys.Browser.WebKit = {}; //Safari 3 is considered WebKit
if (navigator.userAgent.indexOf('WebKit/') > -1) {
    Sys.Browser.agent = Sys.Browser.WebKit;
    Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
    Sys.Browser.name = 'WebKit';
}

I felt compelled to add this thread to help out any of my fellow module developers as it was a long standing problem for us not to use the AJAX UpdateProgress control in our module.  Hope this helps some of you trying to do the same.

Yogs
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSys.ScriptLoadFailedExceptionSys.ScriptLoadFailedException


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Copyright 2014 by DNN Corp Terms of Use Privacy
Request
a Demo
See Evoq Live
Latest Blog
How to Make Advocate Marketing Work for You
Read It
Watch the Replay
Top 5 Reasons to Consider a Branded Online Community
Watch