473,800 Members | 2,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="javascrip t: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 5006
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="javascrip t: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@digitalnoth ing.com> wrote in message
news:vr******** ****@corp.super news.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="javascrip t: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@digitalnoth ing.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
56678
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 clicking other links or the same link. I can prevent this when i use buttons by calling onclick and in a javascript getElementsByTagName("input") and then check the type to be type of "button" or "submit" which i then disable. It works. This also...
5
10886
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 works fine if I click to open in > the same window, but if I click the browser option to open in a > new window, the new window tries to open the href URL (the > onClick function does get executed, but seems to be ignored). > ...
8
1994
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 using this to process that URL, but the real part is stopping the document from loading that URL. I tried stop() method but its not working. I also tried asigning current URL of the document to the document's location but it failed to work.
15
2337
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
2757
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 to the site, the page is displayed without a stylesheet. If I continue to use the app, general Javascript Errors like "Object Expected" start occurring. If I click refresh, the page and the stylesheet displays fine and there are no Javascript...
2
1077
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 (page2.aspx)that displays a table of results. This is fine but I also want to redirect page1.aspx back to the main page (main.aspx) ath the same time as opening page2.aspx?
13
13686
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> tags), now i have added onClick and blocked HREF using 'javascript:void(0)' as below:-
4
1943
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). After you close this window and try to click on the different links they make the image dissappear. Does anyone know what I can do to get it to work even after I view the popup window? It seems like it loses focus or the document model changes or...
9
3230
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 even if display is set to block. it only look changes when there is a href there. but if i have a href there then when i click it will load the page, which i dont want. how can i get the anchor to look like a proper link where the users pointer...
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10274
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10251
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.