...

View Full Version : Drop Down Problem



Blitz
10-03-2007, 02:01 AM
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">&gt; 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">&gt; Utilities</option>
<option value="1,top.Prompt()">Browse</option>
<option value="0,calcs,Skill Calculators,blnk">Skill Calculators </option>
<option value="0,hiscore,Hiscore&nbsp;Lookup,hiscore"> Hiscore&nbsp;Lookup</option>
<option value="0,irc,IRC&nbsp;Client,go"> IRC&nbsp;Client</option>
<option value="0,price,Price Guide,price"> Price Guide</option>
<option value="0,item,Item&nbsp;Database,empty"> Item&nbsp;Database</option>
<option value="0,shop,Shop&nbsp;Database,shop"> Shop&nbsp;Database</option>
<option value="0,count,Timers&nbsp;+&nbsp;Counters,count"> Timers&nbsp;+&nbsp;Counters</option>
<option value="0,monster,NPC Database,blnk"> NPC Database</option>
</select><select class="input" onchange="openMod(this.value,4)">
<option id="def4">&gt; Guides</option>
<option value="0,guide&amp;c=skills,Skills,skill"> Skills</option>


File "Skill Calculators" that should be loaded into the frame:
Code:


<!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&amp;calc=&amp;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&amp;calc=Combat">Combat</a><br />
</p>
<p style="margin: 0 0 0 4px;">
<a href="?a=calcs&amp;calc=Attack"><img src="imgs/ico_attack.gif" class="img" />Attack</a><br />
<a href="?a=calcs&amp;calc=Defence"><img src="imgs/ico_defence.gif" class="img" />Defence</a><br />
<a href="?a=calcs&amp;calc=Strength"><img src="imgs/ico_strength.gif" class="img" />Strength</a><br />
<a href="?a=calcs&amp;calc=Ranged"><img src="imgs/ico_ranged.gif" class="img" />Ranged</a><br />
<a href="?a=calcs&amp;calc=Magic"><img src="imgs/ico_magic.gif" class="img" />Magic</a><br />
<a href="?a=calcs&amp;calc=Prayer"><img src="imgs/ico_prayer.gif" class="img" />Prayer</a><br />
<a href="?a=calcs&amp;calc=Agility"><img src="imgs/ico_agility.gif" class="img" />Agility</a><br />
<a href="?a=calcs&amp;calc=Construction"><img src="imgs/ico_construction.gif" class="img" />Construction</a><br />
<a href="?a=calcs&amp;calc=Cooking"><img src="imgs/ico_cooking.gif" class="img" />Cooking</a><br />
<a href="?a=calcs&amp;calc=Crafting"><img src="imgs/ico_crafting.gif" class="img" />Crafting</a><br />
<a href="?a=calcs&amp;calc=Farming"><img src="imgs/ico_farming.gif" class="img" />Farming</a><br />
<a href="?a=calcs&amp;calc=Firemaking"><img src="imgs/ico_firemaking.gif" class="img" />Firemaking</a><br />
<a href="?a=calcs&amp;calc=Fishing"><img src="imgs/ico_fishing.gif" class="img" />Fishing</a><br />
<a href="?a=calcs&amp;calc=Fletching"><img src="imgs/ico_fletching.gif" class="img" />Fletching</a><br />
<a href="?a=calcs&amp;calc=Herblore"><img src="imgs/ico_herblore.gif" class="img" />Herblore</a><br />
<a href="?a=calcs&amp;calc=Hunter"><img src="imgs/ico_hunter.gif" class="img" />Hunter</a><br />
<a href="?a=calcs&amp;calc=Mining"><img src="imgs/ico_mining.gif" class="img" />Mining</a><br />
<a href="?a=calcs&amp;calc=Runecraft"><img src="imgs/ico_runecrafting.gif" class="img" />Runecraft</a><br />
<a href="?a=calcs&amp;calc=Slayer"><img src="imgs/ico_slayer.gif" class="img" />Slayer</a><br />
<a href="?a=calcs&amp;calc=Smithing"><img src="imgs/ico_smithing.gif" class="img" />Smithing</a><br />
<a href="?a=calcs&amp;calc=Thieving"><img src="imgs/ico_thieving.gif" class="img" />Thieving</a><br />
<a href="?a=calcs&amp;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 Grin

Fang
10-03-2007, 09:06 AM
What is the function openMod ?

Blitz
10-04-2007, 12:30 AM
I think its the umm... other frame or a tab frame.

But im wondering what the file name of the page it loads should be, or if anything...

Blitz
10-05-2007, 12:56 AM
Wow no one can answer this

BarrMan
10-05-2007, 01:01 AM
Wow no one can answer this

No one can help you with this because you don't provide us the javascript function...?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum