By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

Put all javascript in a standalone frame

P: n/a
Now I want to put all javascript(lots of) into a standalone frame name
"js" frame.
Some js classes in this frame.

When new a class instance, use should use
var c = new top.js.Clazz();

It's too slow when I first time access the website.
I want to ask if the solution is good?
If so, how can I improve the speed. And if not, what's the right way to
solve the proble.

Thanks

Weiming

Jan 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
VK

Weiming Yin wrote:
Now I want to put all javascript(lots of) into a standalone frame name
"js" frame.
Some js classes in this frame.

When new a class instance, use should use
var c = new top.js.Clazz();

It's too slow when I first time access the website.
I want to ask if the solution is good?
If so, how can I improve the speed. And if not, what's the right way to
solve the proble.


Idea itself is OK, but this bird won't fly: because Internet Explorer
implements "same frame" constructor access restriction. So in order to
make it work cross-browser you'll have to change the scripts on both
sides: constructor call and the constructor itself.

See more at:
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/bcadfcbde01a0b77/565e6accfcd8cd1d>

Jan 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.