JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 22nd, 2004, 08:40 AM
Jackot29 Jackot29 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Paris, FRANCE
Posts: 29 Jackot29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 32 m 10 sec
Reputation Power: 0
Unhappy Cross Window Scripting

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,

Reply With Quote
  #2  
Old August 25th, 2004, 11:00 AM
Jackot29 Jackot29 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Paris, FRANCE
Posts: 29 Jackot29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 32 m 10 sec
Reputation Power: 0
Exclamation additionnal informations

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.

Reply With Quote
  #3  
Old September 1st, 2004, 06:37 AM
Jackot29 Jackot29 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Paris, FRANCE
Posts: 29 Jackot29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 32 m 10 sec
Reputation Power: 0
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 ?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Cross Window Scripting


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT