Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Internet Explorer 8 #4

Open
danilopopeye opened this Issue · 8 comments

5 participants

@danilopopeye

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; Media Center PC 6.0)
Timestamp: Wed, 18 Jul 2012 21:33:18 UTC

Message: 'this.reloader' is null or not an object
Line: 956
Char: 5
Code: 0
URI: http://localhost:35729/livereload.js?snipver=1

I'm using the latest Beta: v2.3.14

@ElijahLynn

I am getting an error in a virtual box, is IE8 supported?

@ElijahLynn

I think IE8 is not supported and neither is IE9, my VM works fine with Chrome but not IE8 or IE9.

http://feedback.livereload.com/knowledgebase/articles/86174-livereload-protocol

@dvdotsenko

No WebSocket = no support.

http://caniuse.com/#feat=websockets

Don't fret, however. I am adding Flash-based WebSocket emulator (https://github.com/gimite/web-socket-js) to the package. This needs server support, which will go into Python-livereload (https://github.com/lepture/python-livereload) first. It's possible official LiveReload will pick it up thereafter.

I'd say you'll see "anything that can run Flash" being added to the list of supported browsers in next few weeks, as long as the LiveReload server will support Flash-specific bits.

@ElijahLynn

Thanks for confirming and thanks for getting flash websocket support! This will be awesome!

@dvdotsenko

Works* in IE now.

The IE extension:
https://github.com/dvdotsenko/livereload_ie_extension/

If you target IE older than v10 you also need a new LiveReload-supporting server:
https://github.com/dvdotsenko/pfkaplr
(Windows binary is in Downloads section)

@ElijahLynn

Awesome, I will be giving it a try soon! Thanks for all your work on this!

@mathrick

Could you make the code guard against unsupported browsers though? It seems to push blindly forwards, which makes no sense when the browser is not supported and reloader is null, leading to the aforementioned error. At least addPlugin() is the culprit here, possibly more.

@infn8

You can use Modernizr to guard against non supported browsers. Take out your <script> tag that links to livereload.js and replace it with this

<script>
Modernizr.load({
  test: Modernizr.websockets,
  yep : window.location.protocol + '//' + window.location.host + ':35729/livereload.js'
});
</script>

Assuming that you have the livereload.js available at the domain at port 35729. Also remember that your modernizr build must test for websockets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.