Solved

loading javascript

Posted on 2001-06-15
1
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…
Suggested Courses

627 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