Search Results

Search found 4 results on 1 pages for 'shanison'.

Page 1/1 | 1 

  • Stop browser throbber spinning for Comet using iframe

    - by Shanison
    When I use comet using iframe push, the browser throbber will keep spinning forever while the data is being pushed through the iframe. Lightstreamer is also using iframe, but how do they manage to make it stop? I found a similar post here but it doesn't seem to solve my problem. Any explanation on how lightstreamer works would greatly appreciately. Thank you.

    Read the article

  • Javascript keep running even when you refresh the page

    - by Shanison
    Hi all, Have anyone of you experienced that a javascript in a page keep running even after you refresh the page? As far as I know, javascript is single threaded, and it shouldn't keep running if I refresh the page. For you info, I was implementing comet for a website. The previous request for lpoll keeping posting to server even after I refresh the page.

    Read the article

  • jQuery plugin and prototype class

    - by Shanison
    Hi I am converting some prototype javascript to jQuery javascript. In prototype we can do Class.create to create a class. However, jQuery doesn't provide this. So I was thinking to rewrite the class into a jQuery plugin. Is this the best practice? My concern is that if I do all for the class, then I will add a lot of things to jQuery object. The other alternative is to use some extra lines of codes I found http://ejohn.org/blog/simple-javascript-inheritance/#postcomment. Then you can do the following: var Person = Class.extend({ init: function(isDancing){ this.dancing = isDancing; }, dance: function(){ return this.dancing; } }); Which one is better, please advise. Thank you very much!

    Read the article

  • javascript iterate array of variables and reassign value to each variable

    - by Shanison
    Hi how should i iterate array of variables and reassign value to each variable. E.g in jQuery function test(param1, param2) { $.each([param1, param2], function (i, v) { //check if all the input params have value, else assign the default value to it if (!v) v = default_value; //this is wrong, can't use v, which is value } } How should I get the variable and assign new value in the loop? Thank you very much!

    Read the article

1