Recordset order by dropdown menu

Hi all....
I have a results page displaying products based on three different redordsets depending on how the user searches. manufacturer, category or keyword search.
On the results page i also want a dropdown menu with options for displaying the results by price lowest, price highest, manufacturer.
has anyone done this? and how?
Thanks
Andy
PS I'm using Dreamweaver 8.2 and classic asp

Thanks so much for your time and help guys
Here is a live page with a typical search from the category navigation menu
http://www.test4less.co.uk/results3.asp?menuselect=e&CategoryID=28
Here is the page code
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="inc/logout_inc.asp" -->
<!--#include file="classes/Cart.asp" -->
<%
Set objCart=new Cart
%>
<!--#include file="inc/marquee.asp" -->
<% Session("sortby")= Request("sortedby")%>
<%
Dim  orderby
If Session("sortby") = "pricelow" Then
orderby = "products.price ASC"
ElseIf Session("sortby") = "pricehigh" Then
orderby = "products.price DESC"
ElseIf Session("sortby") = "manuaz" Then
orderby = "products.manufacturerID ASC"
Elseif sortby="" Then
orderby = "Products.Product, Products.Price DESC"
End If
%>
<%
Dim RSResults__MMColParam
RSResults__MMColParam = "0"
Dim selectstat_MMColParam
If (Request.QueryString("CategoryID") <> "") Then
RSResults__MMColParam = Request.QueryString("CategoryID")
selectstat="SELECT Products.*, Categories.Category  FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID  WHERE Categories.CategoryID = " + Replace(RSResults__MMColParam, "'", "''") + "  ORDER BY "
Elseif (Request("ManufacturerID") <> "") Then
RSResults__MMColParam = Request("ManufacturerID")
selectstat="SELECT Products.*, Categories.Category, Manufacturers.Manufacturer  FROM (Products INNER JOIN Categories ON Products.CategoryID = Categories.CategoryID) INNER JOIN Manufacturers ON Products.ManufacturerID = Manufacturers.ManufacturerID  WHERE Manufacturers.ManufacturerID = " + Replace(RSResults__MMColParam, "'", "''") + " ORDER BY "
Elseif (Request("searchme") <> "") Then
RSResults__MMColParam = Request("searchme")
selectstat="SELECT Products.*, Categories.Category  FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID  WHERE Product LIKE '%" + Replace(RSResults__MMColParam, "'", "''") + "%'  ORDER BY "
End If
%>
<%
Dim RSResults
Dim RSResults_numRows
Set RSResults = Server.CreateObject("ADODB.Recordset")
RSResults.ActiveConnection = MM_myconnection
RSResults.Source = selectstat & orderby
RSResults.CursorType = 0
RSResults.CursorLocation = 2
RSResults.LockType = 1
RSResults.Open()
RSResults_numRows = 0
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
  MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
  End If
Next
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
  End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
  MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "")  Then
  MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
  MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include file="inc/dodatetime.asp" -->
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/brochure.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<!--#include file="inc/dodatetime.asp" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Test4less Electrical &amp; Gas Test Equipment Distributor - Results</title>
<meta name="Description" content="Test4Less - Electrical and Gas testing, calibration, repair and retailer of Fluke, Megger, Kane, Seaward and Socket &amp; See testing equipment. Competitive pricing and customer focussed service. All Products Only &pound;4.95 Delivery" />
<meta name="Keywords" content="Fluke, Megger, Kane, Socket &amp; See, Seaward, Alphatech, Anton, New Technik, Kewtech, Silvertronic, Testmate, TPI, WIS, MFT1552, Fluke 1652, Primetest 100, Fluke 114, PDL 234, VDD12, testing equipment, calibration service, servicing, cleaning, cal lab, Fluke, kane, Megger, calibration days, 16th edition testers, PAT testers, Multimeters, Clampmeters, Test Leads, Environment Testers, Combustion Analysers, Leakage Detectors, Carbon Monoxide Monitors, Differential manometers, Thermometers" />
<meta name="language" content="English" />
<meta name="copyright" content="Acute Sales Ltd" />
<meta name="revisit-after" content="7 days" />
<meta name="Category" content="Testing Equipment" />
<meta name="document-classification" content="Electrical and Gas Tesing Equipment" />
<meta name="document-distribution" content="Global" />
<meta name="document-state" content="Dynamic" />
<meta name="cache-control" content="Public" />
<link href="css/layout/layout.css" rel="stylesheet" type="text/css"/>
<link href="css/menu/menu.css" rel="stylesheet" type="text/css" />
<link href="css/slider/slider.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/menu.js"></script>
<script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.anythingslider.js"  charset="utf-8"></script>
<script type="text/javascript" src="scripts/slider.js"></script>
<script type="text/javascript" src="scripts/rollover.js"></script>
<!-- InstanceEndEditable -->
<script type="text/javascript">    var _gaq = _gaq || [];   _gaq.push(['_setAccount', 'UA-458267-1']);   _gaq.push(['_trackPageview']);    (function() {     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);   })();  </script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body>
   <!-- Begin Wrapper -->
<div id="wrapper">  
         <!-- Begin Header -->
         <div id="header">
   <div id="topnavigation"><p><!--#include file="inc/topnavigation.asp" --></p>
    </div>
   <div id="socialnet"><a href="http://www.twitter.com/test4less" target="_blank"><img src="assets/img/twitter.gif" alt="follow us on twitter" width="81" height="16" border="0"></a></div>
   <div id="rss"><a href="http://www.test4less.co.uk/xml/test4less.xml" target="_blank"><img src="assets/img/rss_small.gif" alt="rrs feed" width="18" height="18" border="0" /></a></div>
   <br style="clear:both"/>
     <div id="tagline"><p>
       The UK's Premier Online Test Equipment Specialists <span class="h1">0800 040 7477</span></p>    
   </div>
     <div id="search">
     <div id="searchbox">
        <form id="searchforum" name="searchforum" method="post" action="results.asp">
                    <input name="searchme" type="text" class="txtbox" id="searchme" />
                    <input name="Submit" type="submit" class="txtbox_button" value="search" />
                   </form>
       </div>
      </div>
   <br style="clear:both"/>
   <div id="logo"><img src="assets/img/logo.gif" alt="Test4Less" width="243" height="76"></div> 
    <div id="account">
     <div id="guest">
     <p>
       <!--#include file="inc/identity_inc.asp" -->
</p>
      </div>
     <div id="account_dets">
     <p> <!--#include file="inc/login_inc.asp" --> </p>
     </div>    
    </div>
    <br style="clear:both"/>   
  </div>
<!--End of header content -->
  <div id="menu"><!--#include file="inc/menu.asp" -->
  <div id="manufacturerDD">
    <!--#include file="inc/manudrop.asp" -->
  </div>
</div>
   <!-- End Header -->
  <!--Start of Left Main Content -->
  <!-- InstanceBeginEditable name="brochure_main" -->
  <div id="leftmain">
  <div id="searchvar"> You searched for:
<% If Request("ManufacturerID")<>"" Then %>
<%=(RSResults.Fields.Item("Manufacturer").Value)%>
<% Else If Request("CategoryID")<>"" Then %>
<%=(RSResults.Fields.Item("Category").Value)%>
<% Else If Request("searchme")<>"" Then %>
<% Response.Write Request("searchme") %>
<% End If %>
<% End If %>
<% End If %>
<% Dim SortFormAction
SortFormAction= MM_keepURL
%>
<div id="sortby">
  <form action="results3.asp" method="get" name="formsort" id="formsort">
    <h5>
      <label>
        <select name="sortedby" class="sortbydrop" id="sortedby" value="sortby" onchange='this.form.submit()'>
          <option>sort by ::</option>
          <option value="pricelow">Price: Lowest First</option>
          <option value="pricehigh">Price: Highest First</option>
          <option value="manuaz">Manufacturer: A-Z</option>
          <option value="http://www.google.com">goto</option>
        </select>
        </label>
    </h5>
  </form>
  </div>
</div>
<div class="prod_dk">  
    <%
startrw = 0
endrw = HLooper1__index
numberColumns = 4
numrows = -1
while((numrows <> 0) AND (Not RSResults.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%>
<%
While ((startrw <= endrw) AND (Not RSResults.EOF))
%>
  <div class="prod_dk_block">
       <div class="prod_dk_photo"><a href="details.asp?<%= Server.HTMLEncode(MM_keepURL) & MM_joinChar(MM_keepURL) & "ProductID=" & RSResults.Fields.Item("ProductID").Value %>"><img src="products/<%=(RSResults.Fields.Item("Image").Value)%>" width="142" height="142" border="0" /></a></div>
     <div class="prod_dk_title"><%=(RSResults.Fields.Item("Product").Value)%></div>
    <div class="prod_dk_button"><a href="details.asp?<%= Server.HTMLEncode(MM_keepURL) & MM_joinChar(MM_keepURL) & "ProductID=" & RSResults.Fields.Item("ProductID").Value %>" class="prod_dk_buttontxt"><%= FormatCurrency((RSResults.Fields.Item("Price").Value), 2, -2, -2, -2) %></a></div>
    </div>
    <%
startrw = startrw + 1
RSResults.MoveNext()
Wend
%>
  <%
numrows=numrows-1
Wend
%>
<% If RSResults.EOF And RSResults.BOF Then %>
<div id="noresults"> Sorry, nothing was found. Please try again</div>
<% End If ' end RSResults.EOF And RSResults.BOF %>
</div>
<p><!--End of Left main Content -->
  <%'Response.Write(Session("sortby"))%>
</p>
<p>
  <%'Response.Write "results.asp?"& "&" & (Session("searchtype")) %>
</p>
<p>
<%'Response.Write(Session("searchtype"))%>
  <p>
<p>
  <p>
Keep Both:
  <%Response.Write "results.asp?"& MM_keepBoth %>
  <p>Keep URL:
    <%Response.Write MM_keepURL %>
  <p>Keep FORM:
    <%Response.Write MM_keepFORM & Request("sortedby") %>
  </div>
  <!-- InstanceEndEditable -->
  <!-- Begin Right Column -->
<div id="rightmain">
    <div id="basket">
     <div id="baskettop">
       <p><a href="shoppingcart.asp">shopping basket</a>    
     </div>
     <div id="basketmid"><p>
     <%if IsObject(objCart) then%>
     <%=objCart.TotalNumberItems%> Item(s)<br>
     &pound;<%= FormatNumber(objCart.SubTotal, 2, -2, -2, -2) %> total<%end if%> <br /><br />
       <a href="login.asp">checkout</a></div>
     <div id="basketbot"></div>
    </div>
<div id="marquee_panel">
     <div id="marqueetop">
   <p>test4less | <a href="news_full.asp">NEWS</a>
     </div>
     <div id="marquee">      
      <%=sMarquee%>
   </div>
      <div id="marquee_bottom"></div>
</div>
   <div id="prod_focus_panel">
   <a href="details.asp?ProductID=1386"><img src="assets/img/focus.jpg" alt="Test4Less Weekly Promotions" width="230" height="228" border="0" /></a>   </div>
   <div id="promotions"><a href="promotions.asp"><img src="assets/img/promotions.jpg" alt="Test4Less Weekly Promotions" width="230" height="228" border="0" ></a></div>
   <div id="training"><a href="http://www.severncollege.co.uk/test4less" target="_blank"><img src="assets/img/training.jpg" alt="Test4Less Training Corses" width="230" height="228" border="0" ></a></div>
  </div>
   <!-- End Right Column -->
   <!-- Begin Footer -->
   <div id="footer">
      <div id="footer1"><!--#include file="inc/footer_.asp" --></div>
      <div id="subscription">
    <form action="http://www.eshotuk.co.uk/eshot/form.php?form=86" method="post" name="frmSS86" id="frmSS86">
     <div>
       <label>
       <input name="email" type="text" class="subscription_txtbox" id="email" maxlength="50" />
       </label>
       <label>
       <input name="Submit2" type="submit" class="subscription_button" value="Submit" />
       </label>
      </div>
     </form>   
          Why not subscribe to our mailing list and receive money saving promotions?   
    <div id="pricematch_box">
    <div id="pricematch_icon"><a href="pricematch.asp"><img src="assets/img/price_match.gif" alt="Price Match" width="93" height="63" border="0" ></a></div>
    <div id="pricematch_txt">Test4Less offers a 100% Price Match Guarantee on selected products. </div>
    </div>
     </div>
  </div>
  <div id="companyreg">
    <p>Registered office: Acute sales Ltd, 4 Century Road, High Carr Business Park, Newcastle-under-Lyme, Staffordshire, ST5 7UG </p>
      Test4Less is a Trading Division of Acute Sales Ltd,
      Tel: 0800 0407477,
      Fax: 01782 567095,
      E-mail: [email protected] <br />
      Registered in England and Wales Number 2529960<br />
      VAT Number GB536921139 <br />
        &copy; 2011 Acute Sales Ltd</div>
  <div id="footer_cc">
  <p><img src="assets/img/credit_cards.gif" alt="We accept" width="411" height="31" /></p>
  <p> </p>
  <p align="right"><a href="http://www.paypoint.net/assets/downloads/techFAQS/customermessage/cust_message.pdf" target="_blank"><img src="assets/img/secpay_logo2.gif" alt="Secured By payPoint" width="188" height="21" border="0" /></a></p>
  </div>
  <br style="clear:both"/> 
   <!-- End Footer -->
</div>
   <!-- End Wrapper -->
</body>
<!-- InstanceEnd --></html>
<%
Set objCart=Nothing
%>
<%
RSResults.Close()
Set RSResults = Nothing
%>

Similar Messages

  • Is it possible to change the order of the Print | PDF dropdown menu?

    From the Print dialog box, one option is the PDF dropdown menu in the lower left. The two options I use most often are second and eighth on the list. Can the list order be rearranged?

    I wasn't able to find a way to rearrange this, but you might want to submit feedback about this: http://www.apple.com/feedback/macosx.html

  • The dropdown menu in the banner should be behind the text fields.

    Hi Andy,
    In our Application we have three Menus...The problem we are facing in that when ever we move the cursor, a drop down list will appear.. which is covering the text fields...
    The dropdown menu in the banner should be behind the text fields.
    Can u pls help me in this...
    anoo..

    Hi Anoo,
    (You can actually ask questions to everyone, not just me!)
    Normally, dropdown menus are supposed to be on top of all other items, so the user can pick an option from the menu. In fact, usually the problem is that select lists in IE appear on top of menus, not the other way around!
    What you may have to look in to is adding a z-index value to items. Have a look at: http://msdn.microsoft.com/en-us/library/ms531188(VS.85).aspx
    z-indexes determine the order in which items appear when two or more occupy the same space on the page. The higher the number the nearer to the top that item is. You can use negative or positive numbers. So, if item A has a z-index of 1 and item B has a z-index of 2, then item B will appear on top of item A.
    A z-index can be set as a style on your menus:
    &lt;........ style="z-index:-1".....&gt;Andy

  • Sorting a dropdown menu

    Hi All
    I know this function was lacking in Numbers'08; has it been addressed in Numbers'09?
    Specifically I have a dropdown menu with Suburbs and postcodes entered in alphabetical order. When new suburbs are added I lose the alphabetical order as are added at the end of the menu.
    Thanks for your ideas
    Malcolm

    Badunit wrote:
    Hopefully when iWork 11 arrives we will see some enhancements,
    Here, I agree
    including sortable popups.
    Here, you are more optimistic than me !
    Yvan KOENIG (VALLAURIS, France) dimanche 9 janvier 2011 19:14:08

  • Wildcard in dropdown menu

    Hi all,
    I'm trying to put a dropdown menu with the choices of All, 1,
    2, or 3 to query a recordset and if I select 1, 2, or 3 seperately
    it works fine but if I choose all I get an empty recordset
    error....here is my code for the dropdown:
    <select name="selectshift" id="selectshift">
    <option value=LIKE' %'>All</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    I also tried
    <select name="selectshift" id="selectshift">
    <option value="LIKE'%'">All</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    but that doesn't work either.
    Any help on this would be appreciated.
    Thanks,
    Lenny

    Leave the All option empty like this
    <option value="">All</option>
    That way when it is passed to the results page the DW should
    default to your
    default code
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Lenny@ford" <[email protected]> wrote in
    message
    news:e7f28t$iv$[email protected]..
    > Hi all,
    > I'm trying to put a dropdown menu with the choices of
    All, 1, 2, or 3 to
    > query
    > a recordset and if I select 1, 2, or 3 seperately it
    works fine but if I
    > choose
    > all I get an empty recordset error....here is my code
    for the dropdown:
    > <select name="selectshift" id="selectshift">
    > <option value=LIKE' %'>All</option>
    > <option value="1">1</option>
    > <option value="2">2</option>
    > <option value="3">3</option>
    > </select>
    > I also tried
    > <select name="selectshift" id="selectshift">
    > <option value="LIKE'%'">All</option>
    > <option value="1">1</option>
    > <option value="2">2</option>
    > <option value="3">3</option>
    > </select>
    > but that doesn't work either.
    > Any help on this would be appreciated.
    >
    > Thanks,
    > Lenny
    >

  • Dropdown menu not working in Firefox ubuntu

    We are trying to create a lockdown in Ubuntu where users are only allowed to use firefox without being able to print, edit/open settings, and are only allowed to use the extensions already installed by us (Java). In order to do this we created a new session in /usr/share/xsessions
    [Desktop Entry]
    Encoding=UTF-8
    Name=Kiosk Mode
    Comment=Firefox Kiosk Mode
    Exec=/usr/bin/firefox -height 900 -width 1440
    Type=Application
    When we start in this session, everything seems to work fine. Firefox starts, no menu's in the background. When firefox is closed, the session is closed too. With this session somehow the menu's cannot be opened with the mouse, but keyboard shortcuts still work.
    But the real problem is that the users need to go to a certain site which is using dropdown menu's. The problem is that when we use this session, users cannot open the dropdown menu's. They can only select an option by selecting the dropdown menu and use the arrows on the keyboard. We want them to be able to use the mouse to select an option in the dropdown.
    We are using Ubuntu 14.04.1 with Mozilla Firefox 32.0.3.
    Edit: In order to test this problem, I created a new virtual environment with the same session, but a new Firefox profile and no extensions. This gave exactly the same problem.

    At the moment I dont have any preferences locked. The site with the dropdowns are using javascript. But it is not only the dropdown on the site. But also the Firefox option buttons like opening the favorites menu or clicking the 'open menu' button are not working, even on a simple installation with only the desktop session as described above, so only starting Firefox.

  • Crystal reports with static list parameter : blank dropdown menu

    Hi,
    I've created a very simple report displaying customer order (ordr and rdr1)
    it has :
    parameter DocKey@  used in the selection formula    DocKey@=DocEntry
    It also has another parameter : static list with 2 entries
          - 1 : normal presentation
          -  2 : proforma presentation
    The user has to choose between option 1 or 2 before displaying the report
    Using the report in the Crystal application is OK : i can choose between option 1 and 2 in a dropdown list
    If i use the Addin Menu // preview in SAP : i can choose in the dropdown menu
    If i import my report in SAP and i try to preview it : the dropdown menu is empty and i cannot select anything
    Anyone has the same problem ?
    I use SAp SBO 8.8 pl 00 hotfix 14
    I 've the same report worrking on a sap sbo 8.8 sp 00 pl 11
    thanks for your help

    Hi and thanks for your help
    I've tried with and without default values : no changes
    I've tested with the last pl (18) and it works fine : no blank dropdown menu , i can select a value for my static parameter !
    Edited by: Antoine TESSIER on Jan 6, 2011 11:47 AM

  • Dynamic Results from Dropdown Menu PLEASE HELP!!!

    Hi. Here's an example of what I'm trying to accomplish. (the Order Estimator section) http://www.modernpostcard.com/products_services/pricing/ Are there any good resources, tutorials, etc. anyone could point me towards on this entire process? I'm just starting out so I'm not really sure what I need to search for.

    Hi Marc
    Option for quantity wouldn't be any problem. ^^
    Okey here you go, first make a "Dropdown-Menue"
    Add the options you wanna give with the green button.
    Then go to bind/binding; click the checkbox there.
    Now get a decimal field in your form. (Name probably "Decimalfield1")
    Click the dropdownlist. There should be some kind of table where you can enter a script. First choose "Exit" and "JavaScript".
    Then you should write in there something like
    if (this.rawValue == "1")
    {decimalfield1.rawValue = "3,00"}
    if (this.rawValue == "2")
    {decimalfield1.rawValue = "4,00"}
    Be sure to use the right names ;D
    Do that with all your boxes.
    The last box with the sum:
    Get in there, choose "Calculate" (FORMCALC)
    Write in decimalfield1 + decimalfield2 + (and so on)
    To make the dollar sign and so show up you've got to give a pattern in each field :)
    Hope that helped :)
    Lisa

  • How to get all the values from the dropdown menu

    How to get all the values from the dropdown menu
    I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
    How do I get number of item is selection dropdown?
    How do I extract a ?name? for each value, one by one?
    How do I change a selection by referring to particular index of the item in a dropdown menu?
    Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
    RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
    Message was edited by: testtest

    The findElement method allows various attributes to be used to search. Take the following two examples for the element below:
    <Select Name=ProdType ID=testProd>
    </Select>
    I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
    Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
    If I want to search by id I could do the following:
    Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
    Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
    You can use the FindElement to grab links, text boxes, etc.
    The next example grabs from a link on a page
    Home
    Set x = RSWApp.om.FindElement("Home","A","innerText")
    I hope this helps clear it up.

  • You changed the order of the menu for "Open in a new window" or "Open in new Tab", How can I change it back? Or how can I omit any reference to tabs? I do not use them at all.

    You changed the order of the menu for "Open in a new window" or "Open in new Tab", How can I change it back? Or how can I omit any reference to tabs? I do not use them at all.

    You can use the Menu Editor add-on to rearrange or remove menu items - https://addons.mozilla.org/firefox/addon/menu-editor

  • How to create a dropdown menu with sub buttons that link back to the labels on click.

    im trying to create a dropdown menu buttons that when you rollover to the top central button the button it opens up like a drop down menu would containg two other subsectional buttons. This makes the sub sectional buttons seperate from the main stage making it difficult to simply give them a on click,  sym.play("label") function.
    the buttons work like this in symbols or sections stage/panel/homebutton inside home button is group dev containg another group dev containg the button which I need to link back to a "label" in the /panel/ symbol or section. Thank you very much.

    pdp_1 wrote:
    Hi!
    I would like to create a DVD menu that offers two languages. So the first page gives two options: Language 1 and Language 2. Then depending on which language you choose, you go to a menu that proposes different videos and a photo slideshow.
    Regardless on which language button you click on initially, you get the same content but in different languages.
    I've been looking at Premiere's templates, which I can certainly customize, but I really don't see how to create the double menu. Does anybody have an idea?
    Put the video with the first language on the timeline followed by the video with the second language.  Use chapter markers so you can have each video as a chapter in the menu.
    I use Premiere Pro, so I can't give more specific directions. Perhaps somebody like ATR will chime in.
    Also, I have another question: can I put videos from different projects in the same DVD with Premiere or must all of the videos that go into the DVD be in the same project?
    Thank you very much!!!
    pdp1
    They must be in the same project.

  • When I try to bookmark a page the dropdown menu only shows 4 of my many bookmark folders.

    I have a heck of a lot of bookmark folders. These show up in the dropdown menu when I click on Bookmarks in the toolbar. However just today when I try to bookmark a web page, I only am given offered four folders in which to file the bookmark. Clicking on "choose" doesn't show any folders at all that I've created. Same thing when I open MF in safe mode with addons not enabled.
    If I click on "Bookmarks menu" in the bookmark window then click on the arrow to chose a file, I see an odd assortment of random bookmarks and files.
    To complicate matters, perhaps: This morning Firefox went crazy. Details don't matter now. I followed instructions in MF support and saved critical files. Then uninstalled and reinstalled a new copy of MF. Created a new profile and moved critical files into it.
    Am I missing a file? Is something corrupted? (How would I find it?) Why would MF not see my folders when asked to file a bookmark?
    Thanks

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    This can also be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Does anyone know how to enable/disable a dropdown menu in Forms at runtime?

    Is there a way how to disable/enable dropdown menu for menus that have multiple sub levels in Oracle Forms? I am trying to use the set_menu_item_property function but this takes 'menu.item' format for the first argument. I am trying to enable/disable a menu item in the form of 'menu.item.subitem' and was not able to do it using this function. If anyone knows a different function or method, please reply. I have shown an example below.
    Setup -> Software -> Front Page
    From the above example, I can enable/disable Software using set_menu_item_property function. But, how do I enable/disable the Front Page menu in Oracle forms at runtime?
    Thanks
    Edited by: user480347 on Aug 24, 2010 3:37 PM

    Yes you are on the right track. You need to pass then complete menu name to set_menu_item_property
    Immediate_parent menu.item_name e.g
    For example you have menu like this
    Id like
    A1    A10 > A1010
    Home > Input > Form 1
    A1    A10 > A1020
    Home > Input > Form 2 To disable Form 2 you must pass menu name as
    A10.A1020Hope it helps

  • How can I change a the dropdown menu background according to the text selected?

    How can I change a the dropdown menu background according to the text selected?

    Read here about how to use the color object correctly:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.260.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/common/html/w whelp.htm?context=Acrobat9_HTMLHelp&file=JS_API_AcroJS.88.261.html

  • Dropdown menu in APEX 4.0

    Hi,
    I am wondering how to create the Dropdown menu in APEX 4.0. Similar to the Oracle Application Express Homepage or the one gets created in any Websheet Application. I have tried to use the List but unable to place into the right position (Display Point) to get similar look and feel in Theme 2. Builder Blue.
    Please let me know if there is a easy way along with the steps.
    Thanks,
    AS

    The steps can be detailed as follows (I will make it specific to my theme -Application Builder- and you can replace what you want)
    0) a) My Page template name is WithNicolettePlugin.
    b) Put the Nicolette (Thanks alot for him) plugin on #REGION_POSITION_08# in Page Zero (Global page)
    c) the settings of the plugin as follows:
    - Template : WithNicolettePlugin
    - Before HTML : <ul class="dhtmlMenuLG2"> - After HTML : </ul> - jQuery selector submenu : .dhtmlSubMenu2
    - Tab set : main
    - Include single subtab : yes
    - Class first parent : ui-corner-left
    - Class last parent : ui-corner-right
    - File Prefix : #IMAGE_PREFIX#
    the others are empty     
    1) link the following CSS's into the Header section of the Page Template of (Bluejay-22)
    <link rel="stylesheet" href="/i/css/apex_builder.min.css?v=4.2.0.00.27" type="text/css" />
    <link rel="stylesheet" href="/i/css/apex_ui.min.css?v=4.2.0.00.27" type="text/css" />
    <link rel="stylesheet" href="/i/css/apex_ui_builder_home.css" type="text/css" />2) link the following Scripts into the Header section of the Page Template
    <script type="text/javascript">
    var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;
    </script>
    <script src="/i/libraries/apex/minified/desktop_all.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/legacy.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <style> html {visibility:hidden;} </style>
    <script type="text/javascript">
    apex.security.framebreaker("D");
    </script>
    <script src="/i/libraries/apex/minified/widget.textarea.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/builder.min.js?v=4.2.0.00.27" type="text/javascript"></script>3) Re-write the Body section to be as the following
    <div id="page-header">
      .... LOGO AND WELCOME HERE ...... 
       <div class="apex-top-bar-end">
           <div class="apex-top-bar">
                <div id="tabs" class="dhtmlMenuLG">
                  #REGION_POSITION_08#   <!-- Put the plugin at your page zero in REGION 8 -->
                </div>
           </div>
       </div>  
    </div>
    <div id="topbar">#REGION_POSITION_01##REGION_POSITION_04#</div>
    <div id="messages">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#</div>
    <div id="body">
        <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
        <tbody>
          <tr>
            <td class="tbl-main" width="100%">#REGION_POSITION_02##BOX_BODY#</td>
            <td class="tbl-sidebar">#REGION_POSITION_03#</td>    
          </tr>
        </tbody>
        </table>
    </div>4- Update the section of Standard Tab Attributes to have Current Tab as the following *(PLEASE, REMOVE THE MINUS BEFORE onmouseover)*
    <li class="dhtmlSubMenuN" -onmouseover = "dhtml_CloseAllSubMenusL(this)" >
      <a href="#TAB_LINK#" class="dhtmlSubMenuN"
         title="#TAB_LABEL#">
         "#TAB_LABEL#
      </a>
    </li>
    {code}
    and Non Current Standard Tab as the following
    {code}
    <li class="dhtmlSubMenuN" -onmouseover = "dhtml_CloseAllSubMenusL(this)" >
      <a href="#TAB_LINK#" class="dhtmlSubMenuN"
          title="#TAB_LABEL#">
          "#TAB_LABEL#
      </a>
    </li>5- Update the section of Parent Tab Attributes to have Current Parent Tab as the following
    <div id="#TAB_ID#" class="current">
        <a href="#TAB_LINK#" title="#TAB_LABEL#" class="link_text">#TAB_LABEL#</a>
        <a href="#" class="link_icon">
          <img src="/i/apex/builder/down_dark_12x12.gif" width="12" height="12" 
               class="dhtmlMenu" alt="#TAB_LABEL# Drill Down"/>
       </a>
       <ul id="#TAB_NAME#" htmldb:listlevel="1" class="aTabs dhtmlSubMenu pulldown-tabs" style="display:none;">
           #TABS#
           <li class="last" dir="RTL"><span></span></li>
        </ul>
    </div>and Non Current Parent Tab as the following
    <div id="#TAB_ID#" class="non-current">
        <a href="#TAB_LINK#" title="#TAB_LABEL#" class="link_text">#TAB_LABEL#</a>
        <a href="#" class="link_icon">
          <img src="/i/apex/builder/down_dark_12x12.gif" width="12" height="12" 
               class="dhtmlMenu" alt="#TAB_LABEL# Drill Down"/>
       </a>
       <ul id="#TAB_NAME#" htmldb:listlevel="1" class="aTabs dhtmlSubMenu pulldown-tabs" style="display:none;">
           #TABS#
           <li class="last" dir="RTL"><span></span></li>
        </ul>
    </div>6- You will find a sample here in
    Workspace : ralab
    User : nicolette
    Password : abc123
    Application 33791 - TestDropDownAppBuilderTabs
    If the post completes your solution mark it as correct and the question as answered, otherwise, mark it as helpful.
    Best Regards
    Mahmoud

Maybe you are looking for

  • Weblogic 10.0.1 deploying problem

    Hi, I'm starting to use BEA workshop and I'm experiencing some problems to deploy a Dynamic Web Project. I've created a new Dynamic Web Project and without making any changes, generated the war file. Everything seemed to be ok during the deploy since

  • Crystal runs sql command of first sub report in the second sub report ?

    Hi, I have report that contains 3 sub reports. Each subreport is running his own sql command to retrieve it's data. When moving from the first subreport to the 2nd subreport, we see on the oracle that the crystal runs the sql command of the 1st subre

  • Spaces are switching without user intervention

    I generally use 4 spaces and I've noticed on Mavericks apps will not stay ont he same space they are assigned too. I've also noticed designated spaces switching without any user intervention. For example "Desktop 3" and "Desktop 4" switch places and

  • Font rendering issue after motherboard upgrade

    This is a strange one. Took hard-disc containing 10.6.7 out of a 2006 MacBook and put it in a 2007 MacBook. Everything is working 100%, except for some slight differences in fonts. In some apps, they are rendered thicker (seeming only when shadowed),

  • Olympus Digital Voice Recorder (VN960PC)

    I have an Olympus Digital Voice Recorder (VN960PC). On the Olympus site they have no Mac OSX software [though they do have it for the Dark Side] that will allow me to download the audio files onto my mac mini [PPC]. Does anyone have any suggestions?