Solved

loading javascript

Posted on 2001-06-15
1
199 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

791 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