Skip to main content

Bug Tracker

Side navigation

#13830 closed bug (notabug)

Opened April 26, 2013 11:41PM UTC

Closed April 27, 2013 12:36AM UTC

getScript returning complex scripts

Reported by: flarebear Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.0
Keywords: Cc:
Blocked by: Blocking:

The description of the problem is here (Ignore everything before ''"OK. Let's forget about MVC. Just using HTML..."'') :

Question on Stack Overflow

The example shows how I can run testscript.js in the usual way: src="scripts/testscript.js".


using getScript instead, to load testscript.js just makes it fall over. I've tried IE10, FF 20.0.1, Chr 26.0.1410.64 m

Debugging in Visual Studio suggests that the dynamic javascript generated in IE (after passing through getScript) is looking for window[ 'google '] but is undefined. Since testscript.js works ok when it is loaded in the conventional manner, it leads me to believe that getScript is doing something to it when I try to retrieve it with getScript.

Attachments (0)
Change History (1)

Changed April 27, 2013 12:36AM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

You were in the right place, Stack Overflow. It's not correct to pose a general question in the jQuery bug tracker. Looks to me like google.setOnLoadCallback(drawChart); is probably being called after the page loads, but again you should let the SO responders isolate it and decide whether it's an issue with jQuery, then create a simple test case.