473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IE Still Loading After HREF javascript Click?

There has to be an answer out there somewhere for this, but I couldn't find
it in Google anywhere. I have a page with two IFrames. In IFrame#1 I have a
link that looks like so: <a href="javascript:EditDatabase(3);">Edit</a>

When this link is clicked it fires the EditDatabase() function which finds
IFrame#2 by going up to the parent and getting IFrame#2 from there. It then
does IFrame2.Src = "Database.aspx?ID=3";

This part of the process works fine and the page loads. However, IE still
appears to be loading because the progress bar at the bottom slowly make's
it's way across the screen. Is there any way I can stop this from happening?

Thanks,
Steve
Jul 20 '05 #1
2 4974
Yeah this is an IE problem I ran in to a few years ago with IE 5.0 that
still lives today. Back then I found an IE white paper that basically just
said that they had trouble with monitoring nested frame progress. There was
no convenient method to avoid this but I did find some work arounds. Not
sure what will work exactly for you but you should try:

1) Adding the void(0); method call in your javascript href (<a
href="javascript:EditDatabase(3);void(0);">)
2) set the iframe2.href property instead of the src property
3) once iframe2 has completed loading, make a call to a 3rd iframe and set
the href to about:blank

In my case I was using the iframe to move databack and forth so after I was
done moving the data I just set the iframe to about:blank and this worked
for me. Hopefully you'll find a convenient solution for your project. Too
bad Microsoft just doesn't fix this.
"Steve - DND" <ng@digitalnothing.com> wrote in message
news:vr************@corp.supernews.com...
There has to be an answer out there somewhere for this, but I couldn't find it in Google anywhere. I have a page with two IFrames. In IFrame#1 I have a link that looks like so: <a href="javascript:EditDatabase(3);">Edit</a>

When this link is clicked it fires the EditDatabase() function which finds
IFrame#2 by going up to the parent and getting IFrame#2 from there. It then does IFrame2.Src = "Database.aspx?ID=3";

This part of the process works fine and the page loads. However, IE still
appears to be loading because the progress bar at the bottom slowly make's
it's way across the screen. Is there any way I can stop this from happening?
Thanks,
Steve

Jul 20 '05 #2
In article <vr************@corp.supernews.com>, "Steve - DND"
<ng@digitalnothing.com> writes:
When this link is clicked it fires the EditDatabase() function which finds
IFrame#2 by going up to the parent and getting IFrame#2 from there. It then
does IFrame2.Src = "Database.aspx?ID=3";


http://www.jibbering.com/faq/#FAQ4_24
--
Randy
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: KS | last post by:
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once. Sometimes it takes a while before the next page loads so some user will try...
5
by: Mike | last post by:
In my previous post, I wrote: > ... > GOAL: (very simple) Provide a hyperlink which, when clicked, > calls a javascript function which opens a new URL. > ... > PROBLEM: The following code...
8
by: saif | last post by:
Hi all, I realy need your help. I have a page with different web links, now what I am trying to do is whenever a user clicks on a link that link is captured using event.target method. I'm...
15
by: Geoff Cox | last post by:
Hello I have following type of code in the header function pre_load_pics() { if (document.images) { var image1 = new Image(400,265); image1.scr = "pic1.jpg";
3
by: fbwhite | last post by:
I am having an issue (maybe two issues) in my application regarding a stylesheet not loading and I am getting Javascript Errors. If I clean out a client's temporary internet files and then browse...
2
by: Jack | last post by:
Hi, I have a question relating to form redirection. Senario: I have an .aspx page (page1.aspx) with a user control. On this user control there is a hyperlink which opens a new window...
13
by: Jitendra | last post by:
Hi! I m facing a problem with 'javascript:void(0)' Software Environ:- IE: 6.0.2600.0000 OS: Windows 2000 Professional with Service Pack 4 Problem:- I have a webpage with several links (<A>...
4
by: shawn | last post by:
I have a simple script located here which loads different images when you click on some links. Everything works fine until you click on the last link which opens a popup window (zoom image). ...
9
by: monomaniac21 | last post by:
hi all i want to use hyperlinks to 'load' content by changing the display of div tags. the problem i have is that unless i specify a href the anchor does not change the mouse pointer on hover...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.