FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


xmlhttprequest





the666bbq
I'm refining a sample code I found to make me a shopping cart. I use the xmlhttprequest to write small txt files with the content of the shopping cart without having to reload the complete page - the obvious advantage of ajax.
My problem is that wether I set my request.open for POST (preferably) or GET : they end up in the action page as get variables no post variables available. I presume this is not normal behavior so is this a common 'newbie' error

this is simple code sending the form data :

req.open('POST', url,true);
req.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
req.send(null);


There should be no problem with this does it ??
MrBaseball34
That is not enough information to determine what is going on. Please post more of the code you are using, including the action page source.
Related topics
A use for Ajax?
AJAX tutorial
(official) Firefox & Thunderbird 1.5 Beta2 Now Available
First XMLHttpRequest Object Project - A refreshless shoutbox
copy-controlling your website
AJAX web coding
Help making an AJAX messaging system
importing a .txt
is there any way to trigger a .php file without refreshing?
Get page source in javascript
Vista IE CSS & Other Support
.html using header/footer include script?
AJAX tutorial [2nd part now updated]
Have you used XMLHttpRequest on your site
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.