1 Apr 2005 16:34
Why is Dojo adding a '?' to my request URL ?
Francois Beausoleil <dojo <at> fbeausoleil.ftml.net>
2005-04-01 14:34:03 GMT
2005-04-01 14:34:03 GMT
Hi !
Here's a typical URL from which I want to get information:
/cart.php?product_id=12&lang=fr
This URL is built using JavaScript in a variable. When I ask Dojo to
send the request, I see this instead in my Apache logs:
/cart.php?product_id=12&lang=fr?
Notice an extra question mark was appended to the URL. Why is Dojo
appending a question mark when I don't want it to ?
Some code:
var req_url = "http://<?php echo $_SERVER['HTTP_HOST']; ?>/cart.php?"
+ "lang=fr&inline=1&product_id=" + prodId;
dojo.io.bind({
url: req_url,
load: function(type, data, evt){
document.getElementById('cart-container').innerHTML = data;
},
mimetype: "text/plain"
});
I'm using r427 of Dojo on Firefox 1.0.2/WinXP.
Thanks,
(Continue reading)
RSS Feed