[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JSRS selectdemo mods

Posted on 2005-04-20
16
Medium Priority
?
259 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:mhoggatt1
  • 9
  • 7
16 Comments
 
LVL 25

Expert Comment

by:archrajan
ID: 13825479
Looks like its php once the page is submitted...
0
 

Author Comment

by:mhoggatt1
ID: 13825585
Thanks, I'll ask the PHP experts.
Michael
0
 

Author Comment

by:mhoggatt1
ID: 13835282
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 25

Expert Comment

by:archrajan
ID: 13835733
show ur view source..
may require some modifications!
0
 

Author Comment

by:mhoggatt1
ID: 13836404
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
 
LVL 25

Accepted Solution

by:
archrajan earned 2000 total points
ID: 13836534
The code which u have shud work for single box also
0
 

Author Comment

by:mhoggatt1
ID: 13836919
Great, I love the easy fiexes !
Thanks,
Michael
0
 
LVL 25

Expert Comment

by:archrajan
ID: 13836950
U cud have had this question open, until u finish ur work so that u can post all ur queries here...

0
 

Author Comment

by:mhoggatt1
ID: 13837001
If I need some extra help I'll get back to you !
Thanks,
0
 
LVL 25

Expert Comment

by:archrajan
ID: 13837008
Sure... Anytime!
0
 

Author Comment

by:mhoggatt1
ID: 13845301
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
 
LVL 25

Expert Comment

by:archrajan
ID: 13845941
i think it shud be the last two
0
 

Author Comment

by:mhoggatt1
ID: 13847039
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
 
LVL 25

Expert Comment

by:archrajan
ID: 13847072
Ok post ur code now
0
 

Author Comment

by:mhoggatt1
ID: 13847247
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
 

Author Comment

by:mhoggatt1
ID: 13872413
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question