Script load problems

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
L

Lloyd Sheen

If I click to soon (as any user would do) I get the following msg:

Microsoft JScript runtime error: Sys.InvalidOperationException:
ScriptLoader.loadScripts cannot be called while the ScriptLoader is already
loading scripts.

Any ideas how to stop this or to recover from it?

Lloyd Sheen
 
Hi,

if it is any button or something, you could set it non-visible (with a style
or something) and show up when pageLoad() is called by ASP.NEt Ajax client
library. This way it can be clicked only when script have loaded.
 
- Client Page
<asp:Button ID="btnSearch" runat="server" style="display: none">

- Server Page
protected void Page_Load(object sender, EventArgs e)
{
btnSearch.Attribute.Add("style", "display: inline")
}

Hi, Teemu.

Is the property whether display or visibility?

If I used wrong method,

u show me right eample plz.

and send your answer to my email.
 
Back
Top