i created a custom module with a custom form , i have a 2 dependent drop downs. i want to populate te drop down of second one based on first . But i am stuck with the url that must be specied to call the function when making ajax call
<script>
$(document).ready(function() {
$( "#strCountry" ).change(function(){
var id = $( "#strCountry option:selected" ).val();
if(id>0){
$.ajax({
url: "module=mycontact&task=getgetStates&country_id="+id,
success: function(responseText){
document.getElementById('strCountry').innerHTML=responseText;
}
});
}
});
});
</script>
I am not talking about making call to component , its module ....... the url i specified above doesnt work , its showing a 404 error ....