<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Load of Script</title>
<button id="myButton">Click Me</button>
alert("Outside the jQuery ready");
alert("Inside the jQuery ready");
@Maxim Galushka I still had these files in my personal workstation. Without modification, they produced the correct behavior. I am using Firefox 3.6.13 on Windows 7.
Got it, thanks Tony! Removing the <html>, <head> and <body> tags seemed to do the trick.
Here is the contents of trackingCode.html:
Here is the driver page:
This works for me in Safari 4.
Update: Added DOCTYPE and html namespace to match the code on my test environment. Tested with Firefox 3.6.13 and example code works.
Your code is not actually working in FF (IE8 - working fine). Is there a way to make this work in all the browsers? Thanks
i was wandering whether i should do a seperate ajax call getJson() because i heard of this.. But if it works like that it is ok!! I would call the same queries twice otherwise