Find jobs - Debt Consolidation - Find jobs - Manga - Wordpress Themes

PDA

View Full Version : HTTP Request (How?)


kaisellgren
Apr 7th 2007, 9:28 am
Hi,

I need JS to make HTTP request (GET).

I need JS to execute .php file with ?a=0&b=1&... GET parameters.

httprequest = new Image(0,0);
httprequest.src = 'a/a.php?test=1';
Does not activate a.php file :(

Any ideas?

giraph
Apr 8th 2007, 10:52 am
You'll want to look into AJAX for that.

Estevan
Apr 8th 2007, 12:18 pm
hello


function rg(r,i) {
i = new Image();
i.src= 'a/a.php?test=1&mr=r&mi=i';
}


this send values from your script !

kaisellgren
Apr 8th 2007, 12:22 pm
Hi,

Thanks for help. I already got it resolved.

document.write('<img src="a.php?values='window.location'" alt="" style="display: none;" />');

;)