Saturday, May 26, 2007

Javascript question... PLEASE!

Okay.. I need to have people redirected once they hit a certain web address and have it set a value for a particular field on the form they're sent to. How can I do that? PLEASE.

Thanks,
Maggie

__________________
This redirects a people from one page to another:





[This message has been edited by hapoo (edited 08-17-2000).]
__________________
content=0
by changing this value, you change how long it takes to redirect.
__________________
i can give you more info (on the form thing too), just icq me: 3857656
__________________




[This message has been edited by hapoo (edited 08-17-2000).]
__________________
Now if I'm going from my page to someone else's, will this still modify the content of the field?
__________________
it depends if that page is a cgi. then the forms might have a variable set to the value thus u can set it using the usually GET method -> ?var=somthing or POST if you using a interface that support post.
__________________
Okay... this is the problem.

There is a referral program called prizedispenser. I registered 3 misspellings. I want to link these to my referral link, but for some reason it doesn't give credit unless you actually type in the referral name (Bizarre since they give you banners and all.)

So, what I'm wanting to do is have these other domains point to the signup form for the real site... and automatically fill the referred by field in the form. Make sense?

I thought it was a pretty good idea, however their direct referral links don't work.

Anyone know a way around this? Hapoo says I have to build a dummy form that posts to the same place, but I think that could get me in some serious legal trouble.

Maggie
__________________
Don't know if this is what you're looking for:

code:

SCRIPT
var newLocation;
newLocation = 'yourpage.html?variable=' + yourvalue;
window.location.replace(newLocation);
/SCRIPT
[/code]
In yourpage.html:

code:

INPUT TYPE = "TEXT" NAME = "MYNAME" VALUE = variable[/code]

I think that oughta work.

---
I left out the <...> because it wouldn't show up.

[This message has been edited by got apex (edited 08-17-2000).]
__________________
Like i said that would only work if the page is cgi or something that will take in GET values.
Maggie I would suggets emailing them about it also you can email me tha pages and when I have time i can go take a look.


quote:
Originally posted by got apex:
Don't know if this is what you're looking for:

code:

SCRIPT
var newLocation;
newLocation = 'yourpage.html?variable=' + yourvalue;
window.location.replace(newLocation);
/SCRIPT
[/code]
In yourpage.html:

code:

INPUT TYPE = "TEXT" NAME = "MYNAME" VALUE = variable[/code]

I think that oughta work.

---
I left out the <...> because it wouldn't show up.

[This message has been edited by got apex (edited 08-17-2000).]



__________________
Any way to get around the sandbox thingie? I tried setting up a frameset where the parent frame attempted to set a field value in the child frame. It worked when they were both on the same server. But not when it was live.

HELP!

Maggie

0 comments: