[OpenLayers-Users] Problem with OpenLayers.Ajax.Request

Walter Lorenzetti lorenzetti at faunalia.it
Fri Jul 11 06:11:27 EDT 2008


Hi all,

I've a problem with OpenLayers.Ajax.Request

if I try to use it like...

var params = 'var1=val1' + '&var2=val2' + '&varjson='+valjson ;
new OpenLayers.Ajax.Request(url, {method:'post', postBody:params, 
requestHeaders: ['Accept', 'text/html']});

on url php file doesn't find nothing in $_POST variable..

Any people have an idea about this?
I'm using Openlayers 2.6

Thanks in advance

Walter

-- 
Please no  .doc, .xls, .ppt, .dwg:
https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats

Walter Lorenzetti
email+jabber: lorenzetti at faunalia.it
www.faunalia.it
Cell: (+39) 347-6597931  Tel+Fax: (+39) 0587-213742
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy




More information about the Users mailing list