Script load problems

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
 
T

Teemu Keiski

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.
 
E

eddy back

- 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,430
Latest member
7dog123

Latest Threads

Top