Hi,
I've recently developed a custom control which contains a couple of
drop down lists for selecting a vehicle. I've managed to implement
AjaxPro.2 and got everything working fine on my local machine, but I've
put it up to a live test environment, I get a "No Element Found"
javascript error on Line 1 of the .ashx file of my custom control
[namespace].[class].ashx
I'm using the [AjaxPro.AjaxNamespace("Vehicles")] before the class
declaration.
Here is the code it is falling over on, any help would greatfully
received!!!
if(typeof Vehicles == "undefined") Vehicles={};
Vehicles_class = function() {};
Object.extend(Vehicles_class.prototype, Object.extend(new
AjaxPro.AjaxClass(), {
VehicleMakeSelectedIndexChanged: function(vehicleMakeId) {
return this.invoke("VehicleMakeSelectedIndexChanged",
{"vehicleMakeId":vehicleMakeId},
this.VehicleMakeSelectedIndexChanged.getArguments().slice(1));
},
VehicleModelSelectedIndexChanged: function(vehicleMakeId,
vehicleModel) {
return this.invoke("VehicleModelSelectedIndexChanged",
{"vehicleMakeId":vehicleMakeId, "vehicleModel":vehicleModel},
this.VehicleModelSelectedIndexChanged.getArguments().slice(2));
},
VehicleEngineSize: function(vehicleMakeId, vehicleModelName,
productionYear, fuelTypeId, transmissionTypeId) {
return this.invoke("VehicleEngineSize",
{"vehicleMakeId":vehicleMakeId, "vehicleModelName":vehicleModelName,
"productionYear":productionYear, "fuelTypeId":fuelTypeId,
"transmissionTypeId":transmissionTypeId},
this.VehicleEngineSize.getArguments().slice(5));
},
VehicleEngineSizeIndexChanged: function(vehicleMakeId,
vehicleModelName, productionYear, fuelTypeId, transmissionTypeId,
engineSize) {
return this.invoke("VehicleEngineSizeIndexChanged",
{"vehicleMakeId":vehicleMakeId, "vehicleModelName":vehicleModelName,
"productionYear":productionYear, "fuelTypeId":fuelTypeId,
"transmissionTypeId":transmissionTypeId, "engineSize":engineSize},
this.VehicleEngineSizeIndexChanged.getArguments().slice(6));
},
url:
'/ajaxpro/Framework.Vehicles.VehicleDetails,Framework.Vehicles.ashx'
}));
Vehicles = new Vehicles_class();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---