Question regarding HTTP Requests
I'd like to know if there's a way to change a value of a textfield via the Requests sent by a sub-domain?
A textfield has the value of 0 on page "bla.com/bla1"
And the value only changes to 1 if I visit the site "bla.com/bla2"
I want to do this via Request handling, what should I do?
It is possible over Ajax, but what's the best way to do this?
Saying that, the user could just close the new window/tab so it's far from bulletproof.
mytextarea = document.getElementById('mytextarea');
mytextarea.value = '1';
Well yeah, but that's not what I asked for.
I wanted to do this via Requests. So the "bla.com/bla1" site sends out requests until it gets the request back from "bla.com/bla2" with "successful".
It's just about make sure that he visited the other webpage.
Shall I explain it better or did you understand it?
You may be able to set a cookie when the user visits "bla.com/bla2" and then run a ajax timeout at "bla.com/bla1" to check if that cookie exists. If it exists, set textarea value to 1.
Just at work at the moment, but someone else may be able to provide a snippet of code
If you could do that later or tomorrow, it would be cool.
Originally Posted by Aralus
I can wait .. =)
But, if anyone else got an idea about this, just help!
Is pushing a thread allowed?
If yes, #push
Comon people. I need help here.
If someone can handle this or is atleast a bit skilled in Js, please message me.
I need to do something which must be finished today. I'll pay him if needed..
But I first need a solution over this.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread