Solved

loading javascript

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
Jquery form 9 39
Jquery 7 29
Validating number not work with decimal 4 23
How can I allow 0, 10 or 13 digits only with regular expression/javascript 2 18
This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

735 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