php? Posted October 2, 2007 Share Posted October 2, 2007 Hello, Problem Description: When you click on the drop down menu, and click on a button (Eg: Skill Calculator), it is supposed to load a page in a frame on the browser. The drop down menu is set up correctly, but it won't load the page (Object Not Found). I have two separate .php files... one for the drop down menu, and one for the frame it should load. Drop Down Menu //--> </script> </head> <body> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <select class="input" onchange="openMod(this.value,1)"> <option id="def1">> Account</option> <option value="0,settings,Settings,conf"> Settings</option> <option value="1,top.Logout()">Logout</option> </select><select class="input" onchange="openMod(this.value,3)"> <option id="def3">> Utilities</option> <option value="1,top.Prompt()">Browse</option> <option value="0,calcs,Skill Calculators,blnk">Skill Calculators </option> <option value="0,hiscore,Hiscore Lookup,hiscore"> Hiscore Lookup</option> <option value="0,irc,IRC Client,go"> IRC Client</option> <option value="0,price,Price Guide,price"> Price Guide</option> <option value="0,item,Item Database,empty"> Item Database</option> <option value="0,shop,Shop Database,shop"> Shop Database</option> <option value="0,count,Timers + Counters,count"> Timers + Counters</option> <option value="0,monster,NPC Database,blnk"> NPC Database</option> </select><select class="input" onchange="openMod(this.value,4)"> <option id="def4">> Guides</option> <option value="0,guide&c=skills,Skills,skill"> Skills</option> File "Skill Calculators" that should be loaded into the frame: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>Skill Calculators</title> --> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-239988-6"; urchinTracker(); </script> <style type="text/css"> body { background: #EBE9ED; font: 12px/1 verdana, tahoma, helvetica, arial, sans serif; color: #111; margin: 0; padding: 0; } a:link, a:visited, a:active { color: #3f6b88; text-decoration: underline; } a:hover { color: #c22; text-decoration: none; } input { font-size: 11px; } select { font-size: 11px; } hr { border: 1px solid #686868; } img { border: 0; } p { text-align: left; margin: 12px 0px 12px 0px; } </style> <style type="text/css"> .img { float: left; margin-right: 3px; border: 0; } .alt { background: #C1C9CC; } table { width: 100%; line-height: 18px; background: #D1D5D7 url('imgs/subtile.gif') repeat-x bottom; padding-bottom: 5px; margin: 5px 0 5px auto; } th { background: url('imgs/th.gif') repeat-x top; } td { margin: 0; padding: 1px 4px; } .calc { color: #FFFFFF; } .calc a:link, .calc a:visited { color: #FFFFFF; text-decoration: none; } .calc a:active, .calc a:hover { text-decoration: underline; } table .calc { border-collapse: collapse; } </style> </head> <body> <table cellspacing="0"><tr><th> Calc: <select onchange="document.location.href = 'index.php?a=calcs&calc='+this.value"> <option value="" selected="selected">Main</option><option value="Combat">Combat</option><option value="Attack">Attack</option><option value="Strength">Strength</option><option value="Defence">Defence</option><option value="Ranged">Ranged</option><option value="Magic">Magic</option><option value="Prayer">Prayer</option><option value="Agility">Agility</option><option value="Construction">Construction</option><option value="Cooking">Cooking</option><option value="Crafting">Crafting</option><option value="Farming">Farming</option><option value="Firemaking">Firemaking</option><option value="Fishing">Fishing</option><option value="Fletching">Fletching</option><option value="Herblore">Herblore</option><option value="Hunter">Hunter</option><option value="Mining">Mining</option><option value="Runecraft">Runecraft</option><option value="Slayer">Slayer</option><option value="Smithing">Smithing</option><option value="Thieving">Thieving</option><option value="Woodcutting">Woodcutting</option> </select></th> <th>Mode: <a href="index.php?a=calcs&calc=&mode=2" title="Switch to reverse mode [enter number of actions for XP]">Regular</a></b> </th></tr></table> <form action="index.php" method="get" style="text-align: center;"> <input type="hidden" name="a" value="calcs" /> <input type="hidden" name="calc" value="" /> Grab stats from: <input type="text" name="char" size="10" maxlength="12" value="" /> <input type="submit" value="Set" /></form> <div style="width: 173px; margin: 15px auto;" class="calc"> <div style="background: url(imgs/menubg.gif) top; line-height: 18px; padding: 5px 10px 0 10px; font-size: 11px;"> <p style="text-align: center; margin: 0 auto 7px auto;">Select Calculator:</p> <p style="margin: 0 0 0 24px;"> <a href="?a=calcs&calc=Combat">Combat</a><br /> </p> <p style="margin: 0 0 0 4px;"> <a href="?a=calcs&calc=Attack"><img src="imgs/ico_attack.gif" class="img" />Attack</a><br /> <a href="?a=calcs&calc=Defence"><img src="imgs/ico_defence.gif" class="img" />Defence</a><br /> <a href="?a=calcs&calc=Strength"><img src="imgs/ico_strength.gif" class="img" />Strength</a><br /> <a href="?a=calcs&calc=Ranged"><img src="imgs/ico_ranged.gif" class="img" />Ranged</a><br /> <a href="?a=calcs&calc=Magic"><img src="imgs/ico_magic.gif" class="img" />Magic</a><br /> <a href="?a=calcs&calc=Prayer"><img src="imgs/ico_prayer.gif" class="img" />Prayer</a><br /> <a href="?a=calcs&calc=Agility"><img src="imgs/ico_agility.gif" class="img" />Agility</a><br /> <a href="?a=calcs&calc=Construction"><img src="imgs/ico_construction.gif" class="img" />Construction</a><br /> <a href="?a=calcs&calc=Cooking"><img src="imgs/ico_cooking.gif" class="img" />Cooking</a><br /> <a href="?a=calcs&calc=Crafting"><img src="imgs/ico_crafting.gif" class="img" />Crafting</a><br /> <a href="?a=calcs&calc=Farming"><img src="imgs/ico_farming.gif" class="img" />Farming</a><br /> <a href="?a=calcs&calc=Firemaking"><img src="imgs/ico_firemaking.gif" class="img" />Firemaking</a><br /> <a href="?a=calcs&calc=Fishing"><img src="imgs/ico_fishing.gif" class="img" />Fishing</a><br /> <a href="?a=calcs&calc=Fletching"><img src="imgs/ico_fletching.gif" class="img" />Fletching</a><br /> <a href="?a=calcs&calc=Herblore"><img src="imgs/ico_herblore.gif" class="img" />Herblore</a><br /> <a href="?a=calcs&calc=Hunter"><img src="imgs/ico_hunter.gif" class="img" />Hunter</a><br /> <a href="?a=calcs&calc=Mining"><img src="imgs/ico_mining.gif" class="img" />Mining</a><br /> <a href="?a=calcs&calc=Runecraft"><img src="imgs/ico_runecrafting.gif" class="img" />Runecraft</a><br /> <a href="?a=calcs&calc=Slayer"><img src="imgs/ico_slayer.gif" class="img" />Slayer</a><br /> <a href="?a=calcs&calc=Smithing"><img src="imgs/ico_smithing.gif" class="img" />Smithing</a><br /> <a href="?a=calcs&calc=Thieving"><img src="imgs/ico_thieving.gif" class="img" />Thieving</a><br /> <a href="?a=calcs&calc=Woodcutting"><img src="imgs/ico_woodcutting.gif" class="img" />Woodcutting</a><br /> </p> </div> <p style="margin: 0; line-height: 0;"><img src="imgs/menubottom.gif" /></p> </div> </body> </html> Thank - You Quote Link to comment https://forums.phpfreaks.com/topic/71489-problem/ Share on other sites More sharing options...
fenway Posted October 2, 2007 Share Posted October 2, 2007 What line number? I can't wade though all of that code. Quote Link to comment https://forums.phpfreaks.com/topic/71489-problem/#findComment-360004 Share on other sites More sharing options...
php? Posted October 3, 2007 Author Share Posted October 3, 2007 Line number for what? Quote Link to comment https://forums.phpfreaks.com/topic/71489-problem/#findComment-360505 Share on other sites More sharing options...
fenway Posted October 3, 2007 Share Posted October 3, 2007 What code is causing "object not found" to be thrown? Quote Link to comment https://forums.phpfreaks.com/topic/71489-problem/#findComment-360760 Share on other sites More sharing options...
php? Posted October 3, 2007 Author Share Posted October 3, 2007 ummm... thats my problem.... i don't know, it's either the code or i don't know what the pages file name "should" be Quote Link to comment https://forums.phpfreaks.com/topic/71489-problem/#findComment-361273 Share on other sites More sharing options...
php? Posted October 4, 2007 Author Share Posted October 4, 2007 No one even helps on this forum Quote Link to comment https://forums.phpfreaks.com/topic/71489-problem/#findComment-362095 Share on other sites More sharing options...
nathanmaxsonadil Posted October 5, 2007 Share Posted October 5, 2007 not if you just post tons on code and ask for your problem to be fixed!!! Quote Link to comment https://forums.phpfreaks.com/topic/71489-problem/#findComment-362102 Share on other sites More sharing options...
fenway Posted October 7, 2007 Share Posted October 7, 2007 ummm... thats my problem.... i don't know, it's either the code or i don't know what the pages file name "should" be You got a javascript error with a line number... Quote Link to comment https://forums.phpfreaks.com/topic/71489-problem/#findComment-364040 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.