// Places sitepal scene in dropzone // Accepts: baseurl (pulled from sitepal api) // Gets: Value of 'scene_thumb' select box --- thumbnail filename of selected scene (from which scene # is extracted) function place_sitepal(baseurl) { // alert(baseurl); var finalObj,RandNum; var tmplt = objTemplate('SITEPALOBJ', true, 100); doOperation = 0; var dataTrue = dataData.search("pixel.gif"); // Get select value from scene dropdown box disOne = $('scene_dd').selectedIndex; var dd_val = eval("$('scene_dd').options["+disOne+"].value"); var width = document.getElementById('sitepal_width').value; var height = document.getElementById('sitepal_height').value; // Split thumbnail from scene name var scene_info = dd_val.split("~~~"); // Extract scene thumbnail file and name var scene_thumb = scene_info[0]; var scene_name = scene_info[1]; var account_id = scene_info[2]; // Extract scene number var scene_num = scene_thumb.replace(/[0-9a-z\/]*\/thumbs\/show_/, ""); //alert(scene_num); scene_num = scene_num.replace("\.jpg", ""); //alert(scene_num); //MoveObject_Graphic = ; sitePalObj = "
\n"; sitePalObj += " "; sitePalObj += " | \n"; // SitePal Scene # sitePalObj += "\n";
sitePalObj += " "+scene_name+" \n"; sitePalObj += " Account #"+account_id+" \n"; sitePalObj += " SitePal Scene #"+scene_num+" \n"; sitePalObj += " Dimensions: "+width+"x"+height+" \n"; sitePalObj += " "; sitePalObj += " | \n";
sitePalObj += "