Hi,
I need JS to make HTTP request (GET).
I need JS to execute .php file with ?a=0&b=1&... GET parameters.
Does not activate a.phpCode:httprequest = new Image(0,0); httprequest.src = 'a/a.php?test=1';![]()
| SitePoint Sponsor |
Hi,
I need JS to make HTTP request (GET).
I need JS to execute .php file with ?a=0&b=1&... GET parameters.
Does not activate a.phpCode:httprequest = new Image(0,0); httprequest.src = 'a/a.php?test=1';![]()
Oh god that feels so stupid.
All I want is to run a .php file whenever a visitor views my html page. And yes, I do not want to add php code into my html page. I need to do this with VB or JS or something similar.
Whatever I do with the .php page, I get error retrieving XML data. I don't want to retrieve any data, I want to execute a .php file.
I tried to do this with <img src="a.php?test=1" /> but the .php isn't executed as it didn't create a new file what I told it to create in the code.
Any other ideas?
Are you sure it didn't run the "a.php" file? How are you verifying that? Keep in mind: that file can only return an image. However, it can set a cookie - which is the typical way of using RS with images.
Cross-Browser.com, Home of the X Library
I've used RSLite before and it always worked well - it uses the same technique - just assign the url of a php file to an image object.
Cross-Browser.com, Home of the X Library

>ajax<
maybe use an invisible iframe and use javascript to control it and make it load that page
Bookmarks