Can a Link be attached to a select list option?

Here is some code for a select list that pulls its data from a database:
<select name = "sid" height = "1"class="dropit" >
<?PHP while ($row = $result ->fetch_assoc())  {   ;
    echo '<option value='. ($row['id']);
    if (!(strcmp($row['id'], $row['id']))) {echo "selected=\"selected\" ";}
     ?>><?php echo $row['type']?>
<?PHP } ?>   
</select>
This works fine with a form. It is fast, and you can jump to an option just by typing its first letter.
I would like to code it so that the options have a link to another page attached to them without the need for a form.
It would show the selected item, and next to it would be a link attached to the word "Update"
The link would be similar to this: <a href="update.php?id=<?php echo $row['id']; ?>">Update</a>
It is quite easy to do in a table, with the <a ref in one td and the name field in another like so:
<table>
<?php while($row = $result->fetch_assoc()) { ?>
  <tr>
    <td><?php echo $row['id']; ?></td>
    <td><?php echo $row['type']; ?></td>
    <td><a href="update.php?id=<?php echo $row['id']; ?>">EDIT</a></td>
   </tr>
  <?php } ?>
</table>
but it does not allow key navigation, and as I have a growing list of over 6000 items,it is becoming painfully slow to use.
Is it possible to include a URL within the option,
Or allow the option to be selected with the URL alongside it within the select list?
Its part of a management system that I am updating.
For searches on the live web I am able to filter the results in a better way, using a word search system..
All help appreciated.
Howard Walker

Thanks Bregent. I never studied Jump Menus before today.
A jump menu works to a degree, but unless I have made a coding error, it is not possible to jump to an item in the list by hitting a letter key while the list is active.
Here is my code using a database table with an id and a single field:
<script type="text/javascript">
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) {
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
</script>
<form name="form" id="form">
  <select name="jumpMenu" id="jumpMenu">
             <?PHP while ($row = $result ->fetch_assoc())  { ;?>
              <option value=<?PHP echo"update2.php?id=".$row['id'] ?> ><?PHP echo $row["id"]." - ";?><?PHP echo $row["field_value"];?></option>
           <?PHP }   ?>
  </select>
  <input type="button" name="go_button" id= "go_button" value="Go" onClick="MM_jumpMenuGo('jumpMenu','parent',1)">
   </form>
Unless every option has a different link, I can see little use for it.
Seems little different to a standard form with a drop down menu and a GO button, and that does not need any javascript!
It does give a workable example of how to populate a jump menu from a database, which I was unable to find on the web.
Comments welcome.
Howard

Similar Messages

  • Within Music Library can anyone please explain why when I select the option to sort 'Album by Artist' a number of tracks are being treated as separate albums?  How can I correct this?  I have tried to 'drag and drop' but that doesn't work.

    Within music Library can anyone please explain why after I select the option to sort 'Album by Artist' a number of tracks are being treated as separate albums?  How can I fix this?  I have tried to manually correct by 'drag and drop' individual tracks but that doesn't work.  My music library includes a number of repeat album artwork images simply because not all tracks are being listed under the one album making my library more difficult to use than it should.  Any advise would be appreciated.

    See Grouping tracks into albums.
    tt2

  • How can I stop Firefox clicking when I select an option from a drop-down menu? It's bloody annoying.

    When I select an option from the pull-down menus, or a link from right-clicking on the forward or back buttons, it makes a click sound. I'm using this on a machine that I use for recording and I don't want clicks on my soundtrack. How can I turn it off - I've looked through about:config and preferences but haven't seen any way to select or disable such a feature.
    I'm using FF 8.0 on Ubuntu Studio.

    Hi,
    It could be a Ubuntu Studio sound preference. You may have to turn off mouse click sound effects in the system.
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • Can a Tree be used as a Select List?

    Hi
    I'd like to use a tree structure in APEX as an interactive 'Select List Item' or a Menu component.
    When users click on a particular tree node, the selection will be highlighted and it's associated PID from the underlying query can be accessed to filter a Report.
    Is this possible?
    Thanks
    Greg

    Hi Andy
    I had hoped to use the normal APEX tree item to drive interactive user selection.
    The tree report in APEX seems a bit limited for this requirement. I'm unable to click on individual leaf elements.
    The tree list shared component, on the other hand, gives me this functionality. Unfortunately, there does not seem to be a way to populate a list from query?
    I've found Scott Spendolini's AJAX tree, which I'm trying to implement and test to see if it suits my requirements, however, I'd prefer to use internal APEX features, if it all possible.
    Please let me know APEX caters for this.
    Many thanks
    Greg

  • Reducing Select list options with keyboard actions - JavaScript help

    ApExperts,
    My users want a select list with similar functionality to one in MS Access. They want to put the focus on it, then start typing and have their keystrokes 'search' the options. For example, if the select list contains the following entries:
    11111
    12345
    22222
    33333
    44444
    55555
    and they type 1 then 2 then 3, they want the element 12345 to be selected, however, an HTML select list widget selects 11111 then 22222 and finally 33333.
    I'm hoping JavaScript might be able to do this but I don't know how to code it. I've searched this forum and other web sites but have found nothing useful.
    So, is it at all possible and, if so, can you give me an idea of what triggering event to code for and what code to use?
    Thanks,
    X

    BTW, that thread continued - with more options - here:
    AJAX, Javascript or just good coding? LOV that filters as you type??
    If the select list is fixed, you don't need to pull results back from the server as the user types. Then you could try something like this:
    http://www.oreillynet.com/pub/a/javascript/2003/09/03/dannygoodman.html
    Doug
    Message was edited by:
    dccase

  • HT5373 Can html links be attached to events?

    Does anyone know why I sometimes get the following screen when tryint to open HTML links that I add as attachments to calendar events? Sometime the links work flawlessly and sometimes I get this screen which requires 4-10 "cancels" to remove from view. then the site I was trying to reach is in a raw, disabled format. Thanks!!
    For example, I am trying to help my daughter study for a science test and want to attach this link to an event in my icloud calendar that reminds her to study and provides this link/attachment as a resource. but when I try to copy the link from my browser ( http://www.neok12.com/Digestive-System.htm) it inserts this instead https://p14-caldav.icloud.com/Digestive-System.htm. When I click on that link I am asked to enter a user name and password to get past the Microsoft Security Window. 
    This does not happen every time I paste a link and I am stumped!

    You can add as many css files as you like.
    Just name sure you are referencing them correctly.

  • Can the ":" char found in a multiple select list be shown differently?

    I have a column which allows multiple values, say "Red, Green, Blue"
    When it shows in the report, it shows as "Red:Green:Blue"
    Just for aesthetics sake, can the field be shown with "," instead of ":" ???
    Thanks!
    Claudio

    Do it in the query:
    SQL> with t as (
      2    select 'Red:Green:Blue' col from dual
      3    union all
      4    select 'Bad:Design:Decision' from dual)
      5  select
      6           replace(col, ':', ', ') col
      7  from
      8*           t;
    COL
    Red, Green, Blue
    Bad, Design, Decision

  • I cannot go to the previous screen after using a link or attachment

    after using a link or attachment, i have only two options under "file": "new tab," which takes me to my desktop/screen saver, or "new window," which takes me to my home page (iGoogle). This forces me to basically start over, a real time-waster.

    Thank you very much for getting back with me about the issue I'm having with my cell.
    I uninstalled then reinstalled Chrome and pages still went blank. Same as before, so that didn't make a difference. Then I installed a different browser-Firefox. Same issue-site disappears and goes black, returns to main screen on my cell. This makes me think it's the phone. I just bought it too. Only thing is...I bought it at my local Walmart and not to sound unkind but the folks in the electronics dept. aren't very knowledgeable or helpful. If they replace my phone I hope they do their best to make sure my cell works before I leave Walmart.
    What is your professional opinion/diagnosis? I appreciate your help.
    Karina Pettinger

  • Dynamic select list without refreshing.

    Hello,
    There might be some other people having the same problem as me and I do apologise if the solution is already posted in the forum.
    I have a select list with it's LOV as a select query from say table A and next to this, i have a link which call a popup and allow user to enter a new entry to table A. My question is how can i see my newly created item in the select list without manually refreshing the page?
    Any help would be greatly appreciated.
    Venus

    Hi Venus,
    You can call a bit of javascript that will append the new value to the end of the options list:
    function addNewItem(itemValue, itemText)
    var list = document.getElementById("SelectListID");
    var listsize = list.length;
    var opt = new Option;
    opt.value = itemValue;
    opt.text = itemText;
    list.options[listsize] = opt;
    Then you just need to call the addNewItem function and pass it the value and text to be added onto the select list options.
    Regards
    Andy

  • How To? Select List item return 2 values (high and a low)

    Can anyone suggest how to make a select list drop box return 2 values for my query.
    eg:
    Pick from
    Last Week
    Last Month
    Last Year
    return high/lo values of
    5-feb-06 12-feb-06
    01-jan-06 31-jan-06
    01-jan-05 31-dec-06
    Such that my query can refer to it as
    select *
    from tabx
    where dte > :parm_lo
    and dte < :parm_hi
    You get the idea ..

    I haven't tested this at all, so it may not work, but the first thing that springs to mind is not returning the two dates, base it on the current date, i.e. have your select list return something like -
    Last Week - Return 'W'
    Last Month - Return 'M'
    Last Year - Return 'Y'
    then use a query something like -
    SELECT *
      FROM tabx
    WHERE dte >
              CASE v ('ITEM')
                 WHEN 'W'
                    THEN TRUNC (SYSDATE, 'd')
                 WHEN 'M'
                    THEN TRUNC (SYSDATE, 'Mon')
                 WHEN 'Y'
                    THEN TRUNC (SYSDATE, 'yyyy')
                 ELSE dte - 1
              ENDLike I said, completely untested and may not work...you may also have to play around with the boundary values (NLS settings too perhaps).

  • How to fix the length of select list box?

    Halo, i am doing the research. I need to find out what is the method to fix the length of select list box. This is b'cos i can set the length of select list due to different length of record(s)/data(s).
    Another question to select list box. What is the maximum length of the select list box?? Can i enter the character with 255 lenght??
    Thank you very much..... a prompt reply will be appreciate!!

    Thanks for ur reply! actually that answer that you gave is right, but i also need to know what is the maximum lenght of character in the select list box?? any idea to that??
    Meanwhile, i also need to know how can i make the character display in select list box dynamically?? that means i can change the font style or font size??
    Anyway, thanks for ur answer.
    bscs.

  • How to get the text boxes and select lists dynamically?

    Hi,
    I have a requirement such that I need to create the text boxes and select lists depending on the user input at the run time. It means that if the user requires four text boxes/select lists then I need to have 4 such thing. If the user need 6 then I need to have 6.
    The design may be such that initially only one text box/select list will be available when the page launches. Then as ad when the user asks for more those will be available to the user accordingly.
    regards,
    Dipankar.

    You can use Ajax to call textboxes and select list based on what user enters.
    Otherwise make those items conditional and based on what user enters you can display textbox or select list.
    You can call Single Textbox and Select List using Ajax for any number of conditions.
    Regards
    Chandra

  • Cascading select list issue in a tabular form

    hello,
    how can i implement cascading select list for filtering my tabular form report results.
    Like i want to have the cascading select list above the tabualr form report such that when i select the value and try to click a button, my tabular form report should filter the report based on the select list value.
    i want to have three select list items above my report - and these select list are dependent on one other - tats why i want to make them cascading select list.
    can anyone help me out with cascading select list.
    thanks.

    Thank you so much for the quick response saved my life!.
    For future reference let examples of the use of APEX_UTIL.SAVEKEY_VC2 and APEX_UTIL.KEYVAL_VC2
    This is the query of the Tabular Form
    SELECT   den.cod_encuesta,
             den.cod_det_encuesta,
             den.cod_pregunta,
             pre.nombre_pregunta,
             den.respuesta,
             den.observaciones,
             APEX_UTIL.SAVEKEY_VC2(den.cod_pregunta) codpreg
      FROM   enc_det_encuesta den, enc_pregunta pre
    WHERE   den.cod_pregunta = pre.cod_pregunta  
       AND   den.cod_encuesta = :P6_COD_ENCUESTAThis is the query "Select list"
    SELECT   nombre_respuesta, cod_respuesta
      FROM   enc_respuesta
    WHERE   cod_pregunta =  APEX_UTIL.KEYVAL_VC2regards
    Gerard

  • Cascading select list in a tabular form -plz help me out

    hello,
    how can i implement cascading select list for filtering my tabular form report results.
    Like i want to have the cascading select list's above the tabualr form report such that when i select the value in one select list, this should populate the values in other select list box(like one select list is dependent on other select list) and try to click a button say refresh, my tabular form report should be refreshed and should filter the report based on the select list value.
    i want to have three select list items above my report - and these select list are dependent on one other - tats why i want to make them cascading select list.
    can anyone provide me with an example of the cascading select list.
    can anyone help me out with cascading select list.
    thanks.

    Aplication item is always hidden - Shared Components > Application Items. You can create only one item and that would also be enough. For transparency purposes I said to create two. However, one will do the job.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • User-defined selection list support in HA Release 6.5

    Dear all, As in Hyperion Wired for OLAP v4.1.2 and Hyperion Analyzer Release 5.0.3, it can allow users to create user-defined selection list for a dimension under "Advanced" option of Cube Navigator, is there the same function in Hyperion Analyzer Release 6.5? If no, is there any turnaround or alternative?Thanks for your help.Regards, Zero

    Hello,
    You must have defined user command for the radio button. This is not required. Just try putting it in at selection screen. AT SELECTION-SCREEN ON RADIOBUTTON GROUP rgp1.
    the moment the user clicks the radio button it will go to this event and call the screen. Just use AT SELECTION-SCREEN.
    Regards,
    Shekhar Kulkarni

Maybe you are looking for

  • PDF/A keywords still doubled in Acrobat 9.3

    After Adobe Acrobat for Windows is patched to version 9.3, the long-standing PDF/A keywords bug is still present.  When Saving As PDF/A, the words in Document Properties >Description >Keywords are doubled. Does anyone know an effective way to ask Ado

  • Winzip error for par file

    Hi, I have downloaded the winzip par file com.sap.portal.support.browse for the mast head and when i try to extract the par.bak file from it i get a winzip error. I am on windows vista with winzip 8.1. Also tried unzipping with winrar but get the sam

  • Compositing text modifications with font size modifications for undo

    Hey TLF gurus, So here's my situation.  I have a text flow.  The user starts typing "The lazy brown dog..." and after each character is typed I'm modifying the font size of all the text to make it fit inside the container.  Here's how I'm doing that:

  • Syntax error on INCLUDE STRUCTURE.

    Hi Experts, It is abit hard to explain what I need here. But I try to explain as much as I can. I am writing this code in order to update the customer material numbers into internal table tvbdpa. As you can see in my code, getting the customer materi

  • Error running managed code inside DllMain or image initialization

    I have a LabView 7.1 DLL, and am calling it from a Visual C++ application.  I load the DLL dynamically at runtime using LoadLibrary.  When I call the function, I get this: <mda:msg xmlns:mda="http://schemas.microsoft.com/CLR/2004/10/mda">   <!--