Hello:
I am trying to load an external file, in this case, php code, into an html div based on what is selected from a combo box. The code I have loads opnes the file, but I would like it opened in the div "contents". Everything I have searched for wants to populate the combo box, I want to populate the div. Can anyone help? This is what I have so far ...
Code:<html> <head> <title>Untitled</title> <script type="text/javascript"> <!-- function nav(f){ var theUrl = f.jump.options[f.jump.selectedIndex].value ; if (theUrl != ""){ location.href = theUrl ; } } //--> </script> </head> <body> <form action="no_value"> <select name="jump" onchange="nav(this.form)"> <option value="">----- Select A Page -----</option> <option value="test1.php">Home</option> <option value="test2.php">Page 2</option> <option value="test3.php">Page 3</option> </select> </form> <div id="contents"></div> </body> </html>



Reply With Quote

Bookmarks