Click to See Complete Forum and Search --> : 2 scripts need help
eurie
08-27-2004, 10:56 AM
Hello, I am using a script witch auto loads a popup when parent loads but the parent has links to open in doccument _self or _parrent so how do I keep popup from reloading if user clicks back button in parrent window returning to the page tht loads the auto popup? this is my script so far.
<script>
function openpopup(){
var popurl="music.html"
winpops=window.open(popurl,"","width=325,height=125,")
}
openpopup()
</script>
please add: to check if popup allready exists but not to focus popup.
I also have a script that opens a popup when answering yes to a terms of service egreement, it also closes the parent and reloads the previous page {the one that called the terms of service agreement} but this causes the popup to lose focus? please help make this script maintain focus with the FTP popup.
script is as follows:
<A style="COLOR: #ffff00"
href="http://server.dyndns.org:8080/" target="_blank"onclick="window.opener=top;window.open('ftp://user:password@server.dyndns.org:8181');window.close()">ACCEPT CONTINUE</A>
if you can also add to the link for FTP a check if popup is open and give focus to the popup it would be helpfull
Thank you for your valuable time.
Vladdy
08-27-2004, 11:02 AM
See how much trouble popups cause to you and even more to your visitors.
Devise application flow that does not require popups - everyone will be better off.
eurie
08-27-2004, 12:17 PM
Well, that was helpfull... sort of. Then tell me sir:
(1) How to make my flash music player float in same doccument as user moves up and down page with an (X) close me link.
(2) How to dissable history <back button> after a the ftp agreement link is pressed? I don't want form coming up again but i need users to have access to main <index.html> page. Should I keep a tiny window up top of the FTP Page with a link to reload main page? Just as many paople moan about frames as those who can't help themselves from moaning about popups. Then I'll not need any popups :) anyways my popup is not that bad! just a tiny window for the flash player. all other popups I'm referring to are just new pages.
onclick="window.opener=top;window.open
eurie
08-27-2004, 12:25 PM
is there a way to make a seemless frame so when i call my FTP directory a link to the index.html can still be clicked? a REF to FTP:// type url won't allow me to place links unless the FTP:// is called inside a frameset right? I still need to prevent users from seeing again the rather wordy agreement page so incorperating it into index.html won't do, loading a new page in _self for agreement is fine but then users can simply hit <back button> to see page again and this is undesirable.
Anyone follow what I'm trying to do here?
http://eurie.dyndns.org:8080/
Vladdy
08-27-2004, 08:46 PM
FTP: Besides the fact that it is not a good idea to give FTP access to anybody and everybody...
The "Agreement Page" is sent with appropriate headers to make it uncachable. When a visitor goes there for the first time the current text is shown. When the Agreement is accepted the server-side code of this page sets a cookie. On consequent visits the server-side code in the agreement page looks for the presence of the cookie. When present, it checks for the referrer and depending where the user came from to that page redirects either to FTP page or back to the index.html
No popups needed.
Can not say about the music file - my browser opened it in media player application, so popup was not an issue here.
eurie
08-28-2004, 12:06 PM
I did some quality editing of the page since you visited <thanks to your advice> let me know what you think.
I also whant is your opinion of g6ftp program? should I be fairly safe using it? I'm just a little fly by night server no one but a hand full of friends should be interested in. Serveing a few freeware/shareware files I found worth having, I should be safe I think.
Now I have to go search the guru sites and find out how to incorperate the cookies you described.
Lastly the music file I was referring to was not the mp3 link in testing but the popup flash player witch I now have in a floating iframe, now I have to figure out how the get a (X) close window button so I don't have the ugly status bar _[]X.
but.. you did cause me to rethink page and I got some nice menu script and other impressive goodies my pages are starting to look quite nice for my friends and I to enjoy and for this I thank you :)
Take a bow.