Solved

loading javascript

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
[form-control] Retain values after a POST action 21 76
JSON help 8 48
display data from multiple ajax calls 9 43
Javascript function 3 21
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
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.
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…

751 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