ajax problem in Joomla

Moderator: mcsmom

Post Reply
User avatar
ranawd
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Dec 26, 2006 9:40 am
Location: Bangladesh
Contact:

ajax problem in Joomla

Post by ranawd » Mon Mar 17, 2008 11:35 am

Hello
I am new comer in Ajax. I have function like bellow
function getCityList(sel)
{
var countryCode = sel.options[sel.selectedIndex].value;
document.getElementById('dhtmlgoodies_city').options.length = 0; // Empty city select box
if(countryCode.length>0){
ajax.requestFile = 'getCities.php?countryCode='+countryCode; // Specifying which file to get
ajax.onCompletion = createCities; // Specify function that will be executed after file has been found
ajax.runAJAX(); // Execute AJAX function
exit();
}
}

When i call this function then all page comming in my joomla page. Please help me anyone asap.
Email: [email protected]
Regards,
Saidur Rahman (Rana)
Email: [email protected]

Post Reply