Skip to content

Instantly share code, notes, and snippets.

@nickmartini
Created September 1, 2009 20:18
Show Gist options
  • Save nickmartini/179350 to your computer and use it in GitHub Desktop.
Save nickmartini/179350 to your computer and use it in GitHub Desktop.
function getDPDiopterDetails(obj) {
var a = obj.id;
var rptIndex = a.substring(0, a.indexOf("ddlDPModel"));
var userID = document.getElementById("ctl00_cMainContent_tbHiddenUserID").value;
var modelElement = document.getElementById(rptIndex + "ddlDPModel");
var diopterElement = document.getElementById(rptIndex + "ddlDPDiopters");
var productIDElement = document.getElementById(rptIndex + "tbDPHiddenProductID");
productIDElement.value = "-1";
diopterElement.options.length = 0;
diopterElement.add(new Option("Diopter", "-1"));
ImplantDetails.GetPricedDiopters(rptIndex, userID, modelElement.value, onDPDiopterComplete);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment