var firstCode = sel.options[sel.selectedIndex].value;
document.getElementById('model').options.length = 0; // Empty second select box
if(firstCode.length>0){
//if call from admin then make sure front end file is called
if(admin){
ajax.requestFile = '../index2.php?option=com_ezautos&task=helpers&id=1&no_html=1&firstCode='+firstCode; // Specifying which file to get
}else{
ajax.requestFile = 'index2.php?option=com_ezautos&task=helpers&id=1&no_html=1&firstCode='+firstCode; // Specifying which file to get
}
ajax.onCompletion = createSecond; // Specify function that will be executed after file has been found
ajax.runAJAX(); // Execute AJAX function
}
}
function createSecond()
{
var obj = document.getElementById('model');
eval(ajax.response); // Executing the response from Ajax as Javascript code
}
function getDropModelList2(sel,admin)
{
var firstCode2 = sel.options[sel.selectedIndex].value;
document.getElementById('model2').options.length = 0; // Empty second select box
if(firstCode2.length>0){
//if call from admin then make sure front end file is called
if(admin){
ajax.requestFile = '../index2.php?option=com_ezautos&task=helpers&id=1&no_html=1&firstCode='+firstCode2; // Specifying which file to get
}else{
ajax.requestFile = 'index2.php?option=com_ezautos&task=helpers&id=1&no_html=1&firstCode='+firstCode2; // Specifying which file to get
}
ajax.onCompletion = createSecond2; // Specify function that will be executed after file has been found
ajax.runAJAX(); // Execute AJAX function
}
}
function createSecond2()
{
var obj = document.getElementById('model2');
eval(ajax.response); // Executing the response from Ajax as Javascript code
}
function getDropModelList3(sel,admin)
{
var firstCode3 = sel.options[sel.selectedIndex].value;
document.getElementById('model3').options.length = 0; // Empty second select box
if(firstCode3.length>0){
//if call from admin then make sure front end file is called
ajax.requestFile = 'index2.php?option=com_ezautos&task=helpers&id=1&no_html=1&firstCode='+firstCode3; // Specifying which file to get
ajax.onCompletion = createSecond3; // Specify function that will be executed after file has been found
ajax.runAJAX(); // Execute AJAX function
}
}
function createSecond3()
{
var obj = document.getElementById('model3');
eval(ajax.response); // Executing the response from Ajax as Javascript code
slt a tous,
moi également j'ai le même problème et je ne trouve pas de résolution.
si kelkun a une idée sur le problème.nous lui remercions de nous faire part.
cordialement