Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo crashes on IE8 and IE9 #9

Open
ghost opened this issue Oct 31, 2012 · 2 comments
Open

Demo crashes on IE8 and IE9 #9

ghost opened this issue Oct 31, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 31, 2012

The page renders blank. Here is the javascript error message in IE8 on Win7:
Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET4.0C; .NET4.0E) Timestamp: Wed, 31 Oct 2012 18:09:57 UTC Message: 'body' is null or not an object Line: 9221 Char: 7 Code: 0 URI: file:///path/to/splitview/jquery-1.7.1.js

In IE9, the error is:
SCRIPT5007: Unable to get value of the property 'scrollWidth': object is null or undefined
jquery-1.7.1.js, line 9221 character 7

@jkrehm
Copy link
Contributor

jkrehm commented Oct 31, 2012

A couple of quick Google searches on these yielded potential answers. I don't believe either are specifically related to Splitview, but might require that the demo be modified.

  1. http://forum.jquery.com/topic/jquery-document-body-is-null-or-is-not-an-object
  2. http://stackoverflow.com/questions/5787245/ie9-javascript-error-script5007-unable-to-get-value-of-the-property-ui-obje

In my experience, Spliview and jQuery Mobile in general aren't at their best on IEanything.

@ghost
Copy link
Author

ghost commented Oct 31, 2012

Thanks, I'm new to javascript and web development, so didn't know what to blame. I got it working by including the scripts inside the body tag instead of the header, as in the 2nd answer in http://stackoverflow.com/questions/1603810/how-to-fix-a-document-body-is-null-error

Thanks for replying and keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant