nicmo
03-30-2009, 12:50 AM
1) Dynamic Ajax Content
2) http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Hello, i am trying to use this script but with POST instead of GET. was searching for forums and found some help but the script was a little different and i still cant get it to work. As my JS skill are very limited i would be glad if anyone could help me get this to work.
here is what i changed based on the previous post i found.
page_request.open('GET', url+bustcacheparameter, true)
page_request.send(null)
with
page_request.open('POST', url+bustcacheparameter, true);
page_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
var pineapple = document.getElementById("form1").elements; // formID needs to be the ID of your form
for(var fl = 0;fl < pineapple.length; fl++) page_request.send(pineapple[i].name + "=" + pineapple[i].value);
mozilla console error gives:
i is not defined
the form id is form1 btw...
cheers
2) http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Hello, i am trying to use this script but with POST instead of GET. was searching for forums and found some help but the script was a little different and i still cant get it to work. As my JS skill are very limited i would be glad if anyone could help me get this to work.
here is what i changed based on the previous post i found.
page_request.open('GET', url+bustcacheparameter, true)
page_request.send(null)
with
page_request.open('POST', url+bustcacheparameter, true);
page_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
var pineapple = document.getElementById("form1").elements; // formID needs to be the ID of your form
for(var fl = 0;fl < pineapple.length; fl++) page_request.send(pineapple[i].name + "=" + pineapple[i].value);
mozilla console error gives:
i is not defined
the form id is form1 btw...
cheers