hello.
i have a Div tag with calendar in it.. and below calendar there is a YEAR/MONTH select menu + submit button..
i submit form using ajax after that i take params this way
[CODE]
$(document).ready(function() {
$(‘#target’).click(function() {
var month =document.getElementById(‘GetMonth’).value;
var year =document.getElementById(‘GetYear’).value;
var UserSelectedDate =”month=”+month+”&year=”+year;
var url=’http://’+ siteurl +’/cal.php?’+UserSelectedDate;//
});
as u see above i use cal.php file which gets params and displays month and year selected by user.. everything is just fine and works perfect…
the only thing i do not like in this is that if someone types [url]http://somesite/cal.php
i know there is nothing bad with that, because user won`t be able to Harme me by doing so…
anyway i wanted to use index.php?+params instead of seperate cal.php file..
but when i do use index.php?params..
and then want to reload div.. using
[CODE]
document.getElementById(“calendar”).innerHTML=objXMLHttp.responseText
the content of Calendar DIV is replaced with all of the content index.php generates…
is there any way to force calendar div not to load all of the content of index.php instead just get +params and reload calendar?
i tryied to be Clear you to understant what i want to do.
thanks a lot in advance