Spry selection menus

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jan 2009
Posts: 13
Reputation: jorgeberber is an unknown quantity at this point 
Solved Threads: 0
jorgeberber jorgeberber is offline Offline
Newbie Poster

Spry selection menus

 
0
  #1
Jul 2nd, 2009
what am i doing wrong here?
what i want to do is make two menus work together to show me a result.. please help ...

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>Untitled Document</title>
  6. <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
  7. <script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. <!--
  10. var ds1 = new Spry.Data.HTMLDataSet("test.html", "pricelist");
  11. //-->
  12. </script>
  13. <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
  14. </head>
  15.  
  16. <body>
  17. <div class="MasterDetail">
  18. <div spry:region="ds1" class="MasterContainer">
  19. <div spry:setrow="ds1">
  20.  
  21.  
  22.  
  23. <select spry:repeatchildren="ds1" name="width" >
  24. <option value="{width}">{width}</option>
  25. </select>
  26. <select spry:repeatchildren="ds1" name="drop" >
  27. <option value="{drop}">{drop}</option>
  28. </select>
  29.  
  30. </div>
  31. </div>
  32. <div spry:detailregion="ds1" class="DetailContainer">
  33. <div class="DetailColumn">{price}</div>
  34. </div>
  35. <br style="clear:both" />
  36. </div>
  37. </body>
  38. </html>
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: alloyking is an unknown quantity at this point 
Solved Threads: 0
alloyking alloyking is offline Offline
Newbie Poster

Re: Spry selection menus

 
0
  #2
Jul 2nd, 2009
Try something like this for each option box.

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <select name="issuez" spry:repeatchildren="ds1" onchange="ds1.setCurrentRowNumber(this.selectedIndex);"
  2. <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="" selected="selected">{width}</option>
  3. <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="">{width}</option>
  4. </select>
Last edited by peter_budo; Jul 4th, 2009 at 6:02 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC