PDA

View Full Version : text box url


chrismiceli
09-28-2002, 04:21 AM
hey, I want a page where you can enter the name of a page and it will update just one frame, here is an example because it is hard to explain


function changeF(url) {
parent.frame1.location.href = "C:\My Documents\htmlpages\" + url
}

<form name="form1">
<input type="text" name="test" value="">Enter your url
<input type="button" name="hi" value="go" onClick="changeF(document.form1.test.value)">


this site will be in frames, can you get this script to work plz, thanx a million.

adios
09-28-2002, 05:32 AM
Maybe...

function changeF(url) {
parent.frame1.location = "file:///C:/My Documents/htmlpages/" + url
}

<form name="form1">
<input type="text" name="test" value="">Enter your url
<input type="button" name="hi" value="go" onClick="changeF(test.value)">

This will limit your potential audience, however.

whammy
09-28-2002, 06:08 PM
That's a joke, right adios? ;)

chrismiceli, what adios is saying is that it will limit your potential audience to one - you - since you're pointing to files on your local hard drive. :)

chrismiceli
09-28-2002, 06:09 PM
i understood what he was saying, my problem was I didn't know the file protocal at the beginning. I know it will only work with me, that is just to get it to work on my hdd before it goes on the web, thanx though adios.:thumbsup:

adios
09-28-2002, 06:14 PM
You're welcome, Chris, and of course I was kidding.

I'll be over later to look at your site. Get some Dr. Pepper. :cool: