Code Monkey home page Code Monkey logo

scriptcommunicator's Introduction

Implementation of script communication that:
* uses script tags for communication, but can detect when a script isn't loaded (this is non-trivial to implement across browsers)
* works across domains as long as you control the domains
* works on IE 6, IE 7, IE 8, FF X, Safari, Chrome and Opera
* small (80 lines of code) with no dependencies

For more info and usage check out:
http://amix.dk/blog/post/19489#ScriptCommunicator-implementing-comet-long-polling-for-all-browse

Made by amix the lucky stiff - amix.dk
Copyright Plurk 2010, released under BSD license

scriptcommunicator's People

Stargazers

 avatar Nathan Hutchision avatar uohan avatar Maxim Polyakov avatar Cat  avatar Irvin Chen avatar Squirrel avatar Angus H. avatar Robin Larsson avatar  avatar  avatar HenryGuo avatar Damon Zhao avatar André Abreu avatar Ilia Choly avatar Dmitriy Sosunov avatar Dag-Arne Alnes avatar Philippe Ombredanne avatar László Kurta avatar windcbf avatar ebugsky avatar  avatar  avatar Dr Paul Brewer avatar Leivince John D. Marte avatar Sam Vafaee avatar  avatar Zach Kelling avatar Jui-Nan Lin avatar Leen Gui avatar Valentin Starck avatar Sean Shedlarski avatar Jeremy Gray avatar Amir Salihefendic avatar Khash  avatar Yiping Lu avatar 延 avatar Greg Ritter avatar  avatar Andy Beeching avatar  avatar Demian Turner avatar Serhii Frolov avatar Steven Roussey avatar Raja Venkataraman avatar  avatar Andreas avatar Prof Syd Xu avatar Dmitry Gladkov avatar ciju cherian avatar mike o'brien avatar  avatar roga avatar Ducky avatar Alex Brown avatar Jêrôme Poichet avatar Mathieu Lecarme avatar dan avatar Kyle Mathews avatar  avatar Andrey Moskalenko avatar zheng avatar Aleks Lozovyuk avatar Boris Zentner avatar Kris Kowal avatar Richard Metzler avatar Toby Matejovsky avatar marcus kim avatar David Davis avatar Mamading Ceesay avatar Damien Goujard avatar Andrew Kurin avatar Santiago Zavala avatar Chris Adams avatar leopay avatar Jacob Smullyan avatar Gus Becciu avatar Mathieu Ravaux avatar Eugene Lazutkin avatar Tim Huegdon avatar Animesh Kumar avatar Joe Pestro avatar pedro vasconcelos avatar Jason Davies avatar Dave Jeffery avatar dan mackinlay avatar kejun avatar Dominik Sander avatar Dirk Sidney Jansen avatar  avatar C Dorn avatar Tom Dyson avatar Derek Odegard avatar Sébastien Pierre avatar Jesse Wang avatar Benoit Chesneau avatar  avatar  avatar Simon Willison avatar James Coglan avatar

Watchers

 avatar Amir Salihefendic avatar James Cloos avatar  avatar

scriptcommunicator's Issues

fails in chrome

Linux Chrome 6.0.472.63

It uses the document.writeln function but nothing gets pushed into the dom.

remove script elements when done

Shouldn't this set an id on the script elements and remove them when the call is complete? Otherwise it will continue inserting script elements if the page gets updates in a loop.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.