Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

Static instance of javascript class is not retained in IE7 on ppr

microsoft.public.internetexplorer.general






Speedup My PC
Reply
  #1 (permalink)  
Old 03-17-2009
Shakeb
 

Posts: n/a
Static instance of javascript class is not retained in IE7 on ppr
I have created an application which works with below client-side javascript.

function RtcProvider()
{
this._rtcComponents = new Object();
}

// The static instance that will hold the singleton instance. This should
not be
// acquired directly. It needs to be acquired via the getInstance() method.
RtcProvider.INSTANCE = null;


/**
* Static method to acquire a fully initialized RtcProvider instance.
*/
RtcProvider.getInstance = function()
{
if(RtcProvider.INSTANCE==null)
{
RtcProvider.INSTANCE = new RtcProvider();
}
return RtcProvider.INSTANCE;
}

RtcProvider.prototype.registerComponent = function(component)
{
//add component to this._rtcComponent
}

RtcProvider.prototype.updateData = function(data)
{
//get components from this._rtcComponents and update them
}

The jspx page has some components which when rendered call

"RtcProvider.getInstance().registerComponent() " - 1

method to register themselves on partial/full page refresh. Along with this
the back-end sends a javascript to the page using AJAX. The javascript
content says

"RtcProvider.getInstance().updateData(data)" - 2

The updateData method will update the components registered with the
RtcProvider instance. Since RtcProvider.INSTANCE is a static variable both
these javascript calls should work on the same RtcProvider instance. When the
page is rendered afresh the update happens as expected. However on a partial
page refresh, the static instance of RtcProvider is lost during call 1. This
is seen intermittently in IE7. In short call 1 and call 2 work on separate
RtcProvider instance instead of the same static instance. However this is not
reproducible in IE8 or any other browsers like Firefox, safari etc. Is this a
known issue? Is there a hotfix available for this problem for IE7?
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop picture position not retained Vern Rabe microsoft.public.windows.vista.general 3 01-21-2009 19:52
DNS setting not retained Rew microsoft.public.windows.vista.general 0 01-07-2008 21:50
Article ID: 934633 Lorsque vous connectez un priphrique USB d'imprimante multifonction un ordinateur Windows Vista-based, une seconde instance de l'objet imprimante est cre et la premire instance ne fonctionne plus KBArticles French 0 10-23-2007 20:00
Article ID: 926180 When an IP address changes to a static IP address, a static IP address and an alternate IP address remain on the network interface in Windows Vista KBArticles English 0 10-22-2007 20:00
Article ID: 934633 When you connect a USB multifunction printer device to a Windows Vista-based computer, a second instance of the printer object is created, and the first instance no longer works KBArticles English 0 10-22-2007 20:00




All times are GMT +1. The time now is 15:26.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120