Solved

loading javascript

Posted on 2001-06-15
1
195 Views
Last Modified: 2006-11-17
I have a variable top.objA
This top.objA contains the name of one of the many objects I use. This objA has additional information. . I can't load all information about all objects from the beginning, cause I would lose far too much performance. I don't want to use server-side scripting. Now I want to load the additional information by loading a small html-file with javacript to load extra information about objA.

something like
top.someframe.location.href=path+objA+".html"

so I can put all the information in seperate files and only have to load 1 for a specefic object.

So my question is, how can I load a html-file that doesn't become visible, so I can run a small Javascript, whose filename is based on the value of variables in Javascript.


0
Comment
Question by:JWTtheTh
1 Comment
 
LVL 15

Accepted Solution

by:
a.marsh earned 150 total points
ID: 6194746
If you do that then simply make the frame in to which the page gets loaded, hidden from the user - one way to do that is to use the following frameset:

<frameset rows="100%,*" frameborder="0">
<frame name="mainFrame" src="whatever.html">
<frame name="hiddenFrame">
</frameset>

then use:

top.hiddenFrame.location = "theobjApage.html";



Ant
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now