JSRS selectdemo mods

I downloaded the 'Select Demo" from this website -

http://www.ashleyit.com/rs/jsrs/select/php/select.php

It is installed and running fine. I need help on some mods (not being a JSRS programmer). When the entries are made in the 3 select boxes a separate resut page comes up. For my application I require the page to refresh itself instead of going to a new page with say for example the 'make' being listed below the select boxes in a hyperlink format. These links will be connected to a streaming program for playback (instead of makes my website will have audio mp3's as the hyperlinks). I would love to be able to do this myself but I wouldn't know how to start the process.
Thanks,
Michael
mhoggatt1Asked:
Who is Participating?
 
archrajanCommented:
The code which u have shud work for single box also
0
 
archrajanCommented:
Looks like its php once the page is submitted...
0
 
mhoggatt1Author Commented:
Thanks, I'll ask the PHP experts.
Michael
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
mhoggatt1Author Commented:
I'm going to change my question, but it fits the same title. The Select Demo uses 3 boxes. If I need another box for a separate query can I delet 2 of the boxes and the routine still work or does it need to be modified to work with just one box ?
Thanks,
Michael
0
 
archrajanCommented:
show ur view source..
may require some modifications!
0
 
mhoggatt1Author Commented:
Hi archrajan,
    I haven't started on just the one select box yet. I thought I'd ask first before trying to modify the code (especially since I'm not a JSRS coder. Could you do some testing on the program and see what you think ?
Thanks,
0
 
mhoggatt1Author Commented:
Great, I love the easy fiexes !
Thanks,
Michael
0
 
archrajanCommented:
U cud have had this question open, until u finish ur work so that u can post all ur queries here...

0
 
mhoggatt1Author Commented:
If I need some extra help I'll get back to you !
Thanks,
0
 
archrajanCommented:
Sure... Anytime!
0
 
mhoggatt1Author Commented:
Hi archrajan,
   I'm going to start working on the single JSRS select box this weekend. Since I need to delete 2 of the boxes would you recommend deleting the first 2 or the last 2 or does it make any difference ? I would say it would be the first 2, what do you think ?
Thanks,
Michael
0
 
archrajanCommented:
i think it shud be the last two
0
 
mhoggatt1Author Commented:
Hi Archrajan,
   I removed the last 2 boxes and ran the script. The box comes up, but it doesn't populate. I also removed the last 2 boxes with the same results. Have you got any ideas on how to fix this ? No big hurry, just working on projects.
Thanks,
Michael
0
 
archrajanCommented:
Ok post ur code now
0
 
mhoggatt1Author Commented:
This is the select.php page that came with the above link to the Select Demo. I'll give you the complete page (all select boxes included in case you need them. You may have to download the zip file for debugging. I am using there included database with Makes/Models/Options.

select.php -
<html>
<head>
  <title>JSRS Select Demo</title>
  <script language="javascript" src="jsrsClient.js"></script>
  <script language="javascript" src="selectphp.js"></script>
  <style>
    body{background:#dddddd;text-align:center;}
    #sel {width:100%;margin: 0px auto 0px auto;}
    #show {background-color:darkgray;width:80%;height:45px;text-align:center;margin-top:15px;padding-top:10px;}
  </style>
</head>
<?php
  $make = isset($_POST['lstMake']) ? $_POST['lstMake'] : -99;
  $model = isset($_POST['lstModel']) ? $_POST['lstModel'] : -99;
  $options = isset($_POST['lstOptions']) ? $_POST['lstOptions'] : -99;
?>
<body onload="preselect('<?php echo $make;?>', '<?php echo $model;?>', '<?php echo $options;?>', 1);" onhelp="jsrsDebugInfo();return false;">
<h2>JSRS Select Box Filling Demo - page #1</h2>
<form name="QForm" method="post" action="./select.php">
<div id="sel">
<table class="normal" width="575" BORDER="0" CELLSPACING="2" CELLPADDING="2" VALIGN="TOP">
<?php
  SelectBox ("Make",    "lstMake");    
  SelectBox ("Model",   "lstModel");    
  SelectBox ("Options", "lstOptions");  
?>
</table>
<div id="show">
  <input type="submit" name="cmdSubmit" value="Submit" id="cmdSubmit" title="Show selects with preselected values" style="" /><br />
</div>
</div>
</form>

</body>
</html>
<?php

function SelectBox( $Label, $selectName ){
  ?>
  <tr ALIGN="LEFT">
    <td width="15%"><?php echo $Label ?></td>
    <td align="left">
      <select name="<?php echo $selectName ?>">
        <option></option><option></option><option></option>
        <option>--------- Not Yet Loaded ---------</option>
      </select>
    </td>
  </tr>
<?php
}
?>

0
 
mhoggatt1Author Commented:
archrajan,
   idbkutty says that I don't need JSRS for a single select box. Just wanted to let you know so you wouldn't be working on a solution.
Thanks,
Michael
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.