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

x
?
Solved

JSRS Select Demo result.php

Posted on 2005-04-26
8
Medium Priority
?
226 Views
Last Modified: 2010-07-27
I downloaded the 'Select Demo" from this website -

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

Is there a way to have the result.php come up in the right frame of a 2 frame vertical split ? For example, if I select a Make?Model?option in the left frame, the list of options would be printed in the right froame ? Actuallly I only need to know how to have any page come up in the right frame (I can print out the options).
Thanks,
Michael
0
Comment
Question by:mhoggatt1
  • 5
  • 3
8 Comments
 
LVL 25

Accepted Solution

by:
archrajan earned 2000 total points
ID: 13875817
U shud just change the form target

u shud probably have
<form name="QForm" method="post" action="./result.php" target = "framename">

where framename is the name of the right frame

if its this way then ur form will be submitted to the rightframe.

0
 
LVL 25

Expert Comment

by:archrajan
ID: 13875927
See a simple example here

http://www.archanapatchirajan.com/IFRAMEFORMSUBMIT.html

when u click submit the action page opens in the right frame
0
 

Author Comment

by:mhoggatt1
ID: 13877271
Hi archrajan,
   This is basically what I need. I viewed the source but there wasn't any to view. Could you provide sample code with my above script to show me how it works. I'm not far enough along in JS to know what I'm doing.
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.

 

Author Comment

by:mhoggatt1
ID: 13877322
I forgot the select.php script. Here it is -

<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
  $book = isset($_POST['lstMake']) ? $_POST['lstMake'] : -99;
  $chapter = isset($_POST['lstModel']) ? $_POST['lstModel'] : -99;
  $verse = isset($_POST['lstOptions']) ? $_POST['lstOptions'] : -99;
?>
<body onload="preselect('<?php echo $book;?>', '<?php echo $chapter;?>', '<?php echo $verse;?>', 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 ("Book",    "lstMake");    
  SelectBox ("Chapter",   "lstModel");    
  SelectBox ("Verse", "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: 13929692
archrajan,
   I finally figured out what you were saying in your anser. It works fine now.
Thanks,
Michael
0
 
LVL 25

Expert Comment

by:archrajan
ID: 13929715
Is it, anyway i had half written a sample for u...
i will post it when i get back home
0
 

Author Comment

by:mhoggatt1
ID: 13930872
Sure that would be fine. Thanks to all the experts at EE I'm getting closer to finishing my website. I couldn't do it without the help.
Thanks,
Michael
0
 

Author Comment

by:mhoggatt1
ID: 13999471
Hi archrajan,
    Justchecking to see if You've finished the select box vor me. I'm just about ready to use it in my next project.
Thanks,
Michael
0

Featured Post

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.

Question has a verified solution.

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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

834 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