Solved

Chrome and Safari fail on second ScriptManager.RegisterClientScriptInclude in updatepanel

Posted on 2009-07-08
1
3,295 Views
Last Modified: 2012-05-07
No one answered my initial question, so let me ask it differently.  Hopefully it will make more sense this time.

I have a ASP.Net/VB application, a master page, and updatepanel within a content page.  On a partial postback I need to include two .js based on the user input.  The first include works fine in all browsers.  The second include will kill Chrome and Safari.  The error that is thrown follows, after the error all JavaScript processing stops.

Here is the error from Chrome's JavaScript debugger:
uncaught exception Sys.ScriptLoadFailedException: Sys.ScriptLoadFailedException: The script 'http://www.***.js' failed to load. Check for:
 Inaccessible path.
 Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.
 Missing call to Sys.Application.notifyScriptLoaded().

I have added the following to the end of each .js file.
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();

Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
 
        'FontFile?Name.Value contains the font name
        'FontFile?File.Value contains the .js file name containing font information created by Cufon
 
        ScriptManager.RegisterClientScriptInclude(UpdatePanel1, GetType(Page), FontFile1Name.Value, FontFile1File.Value)
        ScriptManager.RegisterClientScriptInclude(UpdatePanel1, GetType(Page), FontFile2Name.Value, FontFile2File.Value)
 
    End Sub

Open in new window

0
Comment
Question by:vshockney
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
vshockney earned 0 total points
ID: 24818312
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Scroll 5 news at a time using vticker 2 39
XML loaded in a form with dropdown 6 55
Angular2 remove duplicates 11 24
Date Picker is picky (about something) 4 42
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question