mjahkoh Posted December 21, 2012 Share Posted December 21, 2012 I got a modal window which picks some variables from parent window. the user selects more options and then saves. this is supposed to relocate bat alas. the entire code is. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="profile_list.php_files/admin.css" type="text/css"> <link rel="stylesheet" href="profile_list.php_files/jquery_ui_zenphoto.css" type="text/css"> <title>Gallery admin: profile-profile</title> <script src="profile_list.php_files/jquery_003.js" type="text/javascript"></script> <script src="profile_list.php_files/jquery_ui_zenphoto.js" type="text/javascript"></script> <script src="profile_list.php_files/zenphoto.js" type="text/javascript"></script> <script> $(document).ready(function() { //setup new person dialog $('#setuppopup').dialog({ autoOpen: false, modal:true, //draggable: true, //resizable: true, title: "Add Season Profile", width: 600, zIndex: 1, height: 310 }); }); function Cancel() { $("#setuppopup").dialog("close"); return false; } function Save() { launchScripts("test.htm"); } function launchScripts(script, params) { window.location = script+'?'+params.join('&'); return false; } function newMenuSet() { $("#setuppopup").dialog("open"); } </script> </head> <body> <div id="main"> <br clear="all"><!-- needed so the nav sits correctly --> <div id="content"> <h1> </h1> <form action="profile_list.php?fname=Seasons" method="post" name="update" onsubmit="return confirmAction();"> <input id="Button3" type="button" value="Add Season Profile" onclick = "return newMenuSet()" /> <br clear="all"><br> <div class="bordered"> <div class="headline"> <strong>Edit the profile</strong> <select name="sno" style="" id="sno" size="1" onchange="window.location='?sno='+$('#sno').val()+'&fname=Seasons'+'&level_id=2011'"> <option value="417">Westlands</option> <option value="639">Zanzibar Safari Club</option> <option value="757">Zara Tanzania Adventures</option> </select> <select name="level_id" style="" id="level_id" size="1" onchange="window.location='?fname=Seasons&sno=544&level_id='+$('#level_id').val()"> <option value="2013">2013</option> <option value="2011" selected="selected">2011</option> <option value="2009">2009</option> </select> </div> </div> <br> <div class="body"> <div scrollleft="0" scrolltop="0" style="width: auto; min-height: 0px; height: 261.767px;" class="ui-dialog-content ui-widget-content" id="setuppopup"> <div style="z-index: 100; left: 40px; position: absolute; top: 64px">Supplier</div> <select name="snoid" style="left: 112px; position: absolute; top: 65px; z-index: 101;" id="snoid" size="1" onchange="window.location='?sno='+$('#sno').val()+'&fname=Seasons'+'&level_id=2011'"> <option value="417">Westlands</option> <option value="639">Zanzibar Safari Club</option> <option value="757">Zara Tanzania Adventures</option> </select> <div style="z-index: 102; left: 40px; position: absolute; top: 96px">Year</div> <select name="_id" style="left: 112px; position: absolute; top: 93px; z-index: 103;" id="_id" size="1" onchange="window.location='?fname=Seasons&sno=544&level_id='+$('#level_id').val()"> <option value="2013">2013</option> <option value="2012">2012</option> <option value="2011" selected="selected">2011</option> <option value="2009">2009</option> </select> <input id="Button1" value="Cancel" onclick="return Cancel()" style="left: 168px; position: absolute; top: 200px; z-index: 120; width: 56px;" type="button"> <input id="Button2" value="Save" onclick="return Save()" style="left: 115px; position: absolute; top: 200px; z-index: 121; width: 48px;" type="button"> </div> </form> </body> </html> regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.