PDA

View Full Version : OK, My Turn...


senshi
11-22-2004, 08:03 PM
The problem...

a quick brief is all thats needed...

I have a 4 frame split top to toe, called...
head
menu
wmain
foot

whos content should be pretty easy to understand, the head contining the head of the site with logo etc...

Anyway. The site has paypal pulled into the frameset and the paypal site writes over the frame name reference wmain, I know this because... The menu ceases to function after and during the paypal page being in or after hitting the browser back button, any menu item selected after the visit to the paypal site causes the respective page to the clicked menu button causes a pop up window external to the website. Hitting the refresh after hitting the browser back button resets the frame reference to wmain and the site then functions normally again.

Why here? because I would like to know how javascript can ease my wowes.

Any ideas, feel free to deposit them here.

senshi
11-23-2004, 07:01 AM
OK, in plain english if ppl didnt understand that.

paypal destroys a frame name called wmain in my framset.

The web site ceases to function correctly UNTIL the site is refreshed with the refresh button.

using an onload event to refresh the page causes a perpetual loop of reloading, so that one is out of the window!

IM fed up of trying to get an answer from paypal, I asked them 3 time over the past 9 months as this is the second time around I have attempted to get paypal to work with this site to no ends.

TBH I dont want a pop up windos, I hate popups, theyre an anoyance at the best of times.

Does anyone know how I can reset the frame reference? or should I say find out if the reference has changed and if so change it back.

I have tried looking under the subects of frames but all that I get is loads of 'How do I' in the search results and not entirely sure what I should be looking for.

Any help is appreciated.

Jon Hanlon
11-23-2004, 05:56 PM
You want to do something like
parent.frames.wmain.reload(true)
or maybe
parent.parent.frames.wmain.reload(true)

Use alert(parent.frames[0].title) etc. to see what's where.

senshi
11-23-2004, 07:18 PM
that just it, IM not entirely sure of what I need, but will look in to what you are suggesting.

At the moment I just dont see any way around it other than a pop up window, paypal uses https:// which may be the issue.

senshi
11-24-2004, 06:46 PM
Well I tried them but nothing, played around with the syntax and either got [object] or undefined or an error.

really all I need is to have javascript check the frame reference wmain, if undefined, define it within the current frameset, the remainder of the site is intact, its just from the point that the paypal site is loaded, it overwrites the wmain reference and hitting back does nothing, I need to do this with every click.

Think your suggestion needs further research.