Forum Moderators: open

Message Too Old, No Replies

hidden frame problem: may not be present

This hidden frame (height=0) is crucial for many javascript routines.

         

phoenix_fly

2:54 pm on Jun 6, 2005 (gmt 0)

10+ Year Member



Hello my code friends,

In this site I am using this zero-height frame technique to routines like drop-down-menu updating without having to refresh the main frame. But now it hit me that maybe when I air up the site, search engines may present the links to the internal pages, and so my hidden frame wonīt be present! How do you guys do to avoid it?

I am thinking about two possible approaches:

1) Not relying on this zero-height frame, but in a small popup, that I will try to set to show up outside the screen. This popup will do all the pivot role the zero-height frame is soing now.

2) Having javascript to check if the zero-height frame is present, everytime that I may need it. If it isn't having javascript to shift the content of the frameless window into a B frame, having A as a zero-height frame... Donīt know if this is possible...

I wait for your help then!

Thanks a lot

phoenix_fly

BlobFisk

4:17 pm on Jun 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What about using xmlHTTPrequest instead of an iFrame to update your menus? This allows you to run background HTTP requests using Javascript....

phoenix_fly

11:02 pm on Jun 8, 2005 (gmt 0)

10+ Year Member



Hey Blobfish!

Iīve been checking XMLHttpRequest and really, itīs amazing. I couldnīt dream we would be free of the limitation it destroys!

But Iīm not sure if it supports properly requests that send cookies... you know if it does? And it has to be through https, because one of the uses for my iframe now is to make the login through https without generating that annoying message from the browser.

AN UPDATE: Iīve read that it doesnīt support https here [http://chrisholland.blogspot.com/2005/03/contextagnosticxmlhttprequest-informal.html]. So, I will have to stick to my iFrame. And in this case, thereīs my old problem: how to find out if the iFrame is there? And, most important, is it possible to say to javascript "hey, ok, the iframe isnīt there, so push the current window into a frame with 99% of the screen and open this url here in the 1% frame.