PDA

View Full Version : Help please...


pskyy
12-20-2001, 03:12 PM
I need some code please... for a "click here if you are stuck in someone elses window". Something that reloads the page or something like that. Anyone know this one? Thanks.

nsr81
12-20-2001, 03:19 PM
<!-- ONE STEP TO INSTALL BREAK FRAMES:

1. Paste the coding into the BODY of your HTML document -->

<!-- STEP ONE: Copy this code into the BODY of your HTML document -->

<BODY>

<CENTER>
&lt;SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! javascript.internet.com -->

<!-- Begin
if (window != top) top.location.href = location.href;
// End -->
&lt;/SCRIPT>
</CENTER>


You can hook it up with a link or button by using OnClick witing that tag.

pskyy
12-20-2001, 03:30 PM
Having trouble making this work. It is going onto a frames page. Should I put it in index.html? When I do, it messes the page up. I must be doing something wrong. (Thanks for the reply! Appreciate the help.)

nsr81
12-20-2001, 03:40 PM
I think it should be in frameset file. I mean the file which has &lt;frameset> tag. That way it won't do anything to your frames.

Infinity
12-20-2001, 05:33 PM
nsr-->I got an error when I went to your php page...Don't worry!:D I get it all the time since I crashed my puter last week. It's a popup error that asks if I want to keep loading the page...
May I ask: what language is on that page that'd do this prompt thing? Java? This IE version is driving me nuts anyway! I try to update it but it refuses for some reason...just says that I need to restart my puter for it to take effect, then it doesn't take effect :(

nsr81
12-20-2001, 05:59 PM
I do have some javascript in my sig. but that's just a simple function to invoke a dialog box. And there is no Javascript in the main pages. all php, css and html.

try accessing my site using direct url: http://www.ny-tech.net/res/

let me know if you still have problems.

Infinity
12-20-2001, 06:13 PM
Humm, no pop ups this time.
I get the errors when I go to microsoft update pages too. I guess I'll go back over there and see if I can find the problem...

MPCRuss
01-03-2002, 04:10 AM
Hey NSR,

I am still learning PHP but how do you make the URL show a page by typing something like on your page for photoshop:
http://www.ny-tech.net/res/index.php?show=photoshop
????

I am totally clueless right now! If you don't want to tell me is there a tutorial you used to learn PHP that was online? Can i get the url if there is one!

Thanks,
Russ

nsr81
01-03-2002, 05:13 PM
Oh, very sorry, I didn't notice this post before.

anyway, stuff after ? sign in the url is a standard way of passing variables to the scripts.

In this case the variable is show($show, in php of course), I evaluate it in the script and depending on the value I take certain actions, hope this answers your question.

avg-joe
01-03-2002, 08:30 PM
Hey, russ. Might try da goat at http://www.daholygoat.com/ some pretty good starter tuts there

jen_nifer
01-10-2002, 11:10 AM
To do this you can create a simple HTML link that opens with no outside framing by adding a 'target="blank"' attribute to the anchor tag as follows:

<code>
&lt;a href="http://www.mydomain.com/index.html" target="blank">Click here to remove frames&lt;/a>
</code>

Where <code>http://www.mydomain.com/index.html</code> is whatever page you don't want anyone elses frames around.