|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
My main page is made of several iFrames.
In order to permit each of this iFrames to use functions of the main page, I introduce them with the function above : function to_old_win(url) {top.location.href = url;}and I call the MainPage functions (here, the setZ function) that way in the iFrame-pages : onClick='javascript: to_old_win("javascript: setZ( iFrame number )");' ...and it works great.My problem is that it does not work at all when the main page is on my hard disk, and the iFrame-pages are on Line. I want to accede onLine-iFrame-pages from a onHardDisk main page (using the iFrame-pages global pathes), but then, they can't use the main page functions with the "to_old_win" one. Could you please tell me if it is possible wherever the main page is located in on my hard disk, and how ? (and if you could try to explain me why my version isn't ok...) Thanks for all, King regards, |
|
#2
|
|||
|
|||
|
when my main-page is Hard-Disk hosted, onLine-iFrames can't find its location (in such a configuration, top.location becomes undefined -empty, in fact, what is worse-),
but I still don't know why !!! An other methode than mine might probably exist ! Thanks for any indication. |
|
#3
|
|||
|
|||
|
Isn't anybody expert with page location ?
When everything is onLine, it's OK. When everything is Hard-disk Hosted, it's OK. Doesn't anybody know why onLine and Hard-Disk Hosted pages can't exchange informations ? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Cross Window Scripting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|