Jump to content

Problem


php?

Recommended Posts

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  ;D

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.