blink
07-07-2004, 10:07 AM
Ok, sorry if I seem noobish as I pretty much am to Javascript.
What I want to do is enforce people to vote before proceeding to another website. The problem is its voting through an outside website, (the vote button is located on another website) and at the moment I am finding it very difficult on how to only let them continue if that button was pressed.
I have tried using frames, so that website will be shown within my website, but unfortunaely I just learned that Javascript cannot read the URL of a frames source if that source is from a different server.
All I had in mind was when you click the continue button, if the frame contained the page that would appear after you clicked the vote button, then let them through; otherwise display an alert.
However that idea will not work. What can I possibly do to make this work. Not being able to get any info on the voting frame is very frustrating. I have seen it done on many bigger websites..
Thankyou.
What I want to do is enforce people to vote before proceeding to another website. The problem is its voting through an outside website, (the vote button is located on another website) and at the moment I am finding it very difficult on how to only let them continue if that button was pressed.
I have tried using frames, so that website will be shown within my website, but unfortunaely I just learned that Javascript cannot read the URL of a frames source if that source is from a different server.
All I had in mind was when you click the continue button, if the frame contained the page that would appear after you clicked the vote button, then let them through; otherwise display an alert.
However that idea will not work. What can I possibly do to make this work. Not being able to get any info on the voting frame is very frustrating. I have seen it done on many bigger websites..
Thankyou.