日期:2014-05-17 浏览次数:20478 次
/** * DataCallback */ function DataCallback(){ // Get content of InputBox (entered by user) var TrackingString = dojo.byId("InputBox").value; // Get value of the drop-down box (Container, B/L or Booking Number) var SearchType = dojo.byId("SearchType").value; // Transform the content of TrackingString in uppercase TrackingString = TrackingString.toUpperCase(); var getAXSSContent = dijit.byId("SearchResults"); if (TrackingString != '') { // Clear old results ClearResults(); // Send a base64 encoded string to MscTrackingData containing: // 1. The value entered by the user // 2. The search type (Container/BL or Booking) // 3. Applic which is a global variable set in index.php var URLString = Base64.encode(TrackingString + "|" + SearchType + "|" + Applic); getAXSSContent.attr("href", "MSCTrackingData.php?e=" + URLString); getAXSSContent.attr("onDownloadEnd", function() { dojo.parser.parse(dojo.byId("SearchResults")); disableSearch(false); }); } else { viewTrackingError("Please enter a Container number, a Bill of Lading or a Booking number in the input box."); disableSearch(false); } }
------解决方案--------------------
这个不知道怎么做呢。。