Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP and IFRAME - Is Javascript a solution?
Old 05-07-2010, 07:57 PM PHP and IFRAME - Is Javascript a solution?
Junior Talker

Posts: 1
Name: Catherine
Trades: 0
I have a php website with iframe that resides in a different domain. I would like a script to detect if user has logged-in on the site, if not, hide iframe, else, display iframe. Is this possible at all to work on all browsers? Any suggestions from the expert?

Thank you!
hbbh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-08-2010, 11:14 AM Re: PHP and IFRAME - Is Javascript a solution?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Not javascript, no, as the "same domain" restriction will prevent you from accessing cookies and using javascript to access the other site.

An idea could be to store a value in a DB that is shared by the 2 sites.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to PHP and IFRAME - Is Javascript a solution?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23148 seconds with 12 queries