Creating buttons for a search page

I have a site that has over 3K records that are searchable.
I need to create a new method of the drop down list using buttons, as drop down lists do not work well on a telephone.
The site is http://www.tyneships.co.uk, so if you have a look there you will see my problem.
So I thought that if I narrowed the options down to a set of buttons, each with a single letter on it, I could create an on the fly page for each letter that exists, as the contents change regularly.
I have a recordset, and have written code that reads it in and prints out each available first letter of all possible search items. I need to then create a button using php that holds this letter.
In html, the following code would be used:
<input  type="text" name="button" value="A" />
I have the value of "A" in a variable called $b, which is not a post variable
How do I get $b to appear in place of the "A".
I do not know if it is a syntax error problem or what, but I would have thought that there should be a way to do it.
I have investigated the newt_button(x,y,"button_name") function, which is supposed to create a new button at location x,y  but it does not seem to exist in my version of Xammp php (5.3.1).
Can anyone help?
Dreamweaver 5.5 on win 7 OS

One of the drop downs is at http://tyneships.co.uk/phpfiles/findall.php5 which lists all the 3K+ records. All others appear on the Search menu item on the left of most pages other than the splash page.
I find these very dificult to use on a mobile, without having to zoom in.
It occurred to me that creating a set of buttons would be very helpful to users, as the whole set can be filtered using the same numberof pages that are needed using a drop down list.
The grid below is a result of a quick search of all records listing the first letters of all types in the data, and displaying them as buttons.
Notice that I, J, Q, X and Z do not appear in the grid, as there are no types in the database beginning with these letters.
As a result, a click on any of these buttons should produce valid data. No error checking is yet in place.
Above is my first attempt to create the buttons on a grid using php. Ignore the uU buttons - garbage in the data file now sorted on line.
The working source code is shown below, without the data file access code or css. The original code that I used suffered from logic errors and syntax errors, now fixed.
<body>
<form action="get_types.php" method="get" name="type_form" target="_self">
<table border="1" cellpadding="2" cellspacing="2" class="purple">
<?php
$rowcount = 1;
do {
$b= ($row_Recordset1['type']); // Read the record
$b = left("$b",1); //get its first character
  if ($old <> $b) { // then we have found a new letter so print it as a button
echo '<td> <input type="button" name="button" value="' . $b . '" </td> ' ;
if ($rowcount <=6) { // count the columns in the row. If less than 6 add 1
          $rowcount++;
$old = $b; //reset the old character to the new one
if ($rowcount == 6) {// if its 6, we are at the end of the row
           echo '<tr>';  // end the row
           $rowcount = 1;//reset it to 1
  ?>
   <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
  </table>
</form>
<span>
Click the 1st letter of the type group</span>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>
This code generates the buttons in a grid at the correct size for a,320x300 phone.
Now I have the buttons set up, I need to get them to do something - like submit the form.
This needs a bit more thought, as usually you only have one button doing the sending.
I suppose I could place a form round every button, but there must be a better way. All suggestions welcomed.
Once this problem is overcome, the button clicked on should send its letter to the next page, which would display a list of all types beginning with the chosen letter, and clicking on these then links to a sliding photo display of all the ships in the type group.Easier to use than a drop down list, but the logic and coding from scratch is more difficult.
Howard Walker

Similar Messages

  • Where did the "Stop" button go on the Navigation Bar in ff4? It isn't included in the Customize box. Is there anyway to install the "Stop" button for loading web pages or is this option compeletly gone from Firefox now?

    Just installed upgrade to Firefox 4.0. Where did the "Stop" button go on the Navigation Bar. I checked the Customize dialogue box and it isn't included. Is anyone else missing it? Is there anyway to install the "Stop" button for loading web pages or is this option completely gone from Firefox now? It was a very helpful button and allowed us users to stop a web page and move on if it wasn't what we needed.

    In Firefox 4 by default the Stop, Go and Reload buttons are combined and attached to the right hand edge of the location bar.
    When you are typing in the location bar it will show the Go button. When a site is loading it shows the Stop button. At other times it shows the Reload button.
    If you want separate buttons, right-click on a toolbar and choose Customize, you can then drag and drop the stop or reload buttons and place them elsewhere. If you place them in the order "Reload-Stop" on the right hand edge of the location bar they will be combined again. For more details on customizing the toolbar see https://support.mozilla.com/kb/How+to+customize+the+toolbar

  • Naming "Go" button for simple search

    I have a page which has two independent Query regions. Each Query region is set to autoCustomizationCriteria and each has a simple search panel. Is there a way for me to uniquely name the "Go" buttons for each one?
    The reason I want to do this is so I can tell in processFormRequest which one was clicked. It seems like right now they have the same name. Any ideas?
    Thanks!

    I recommend getting a handle to your query bean in the processRequest. After that you can call the setClearButtonName() and/or setGoButtonName() methods.
    processRequest(OAPageContext pageContext, OAWebBean webBean) {
         super.processRequest(pageContext, webBean)
         OAQueryBean region1 = (OAQueryBean)webBean.findIndexedChildRecursive("region1");
         region1.setClearButtonName("Clear1");
         region1.setGoButtonName("Go1");
         OAQueryBean region2 = (OAQueryBean)webBean.findIndexedChildRecursive("region2");
         region2.setClearButtonName("Clear2");
         region2.setGoButtonName("Go2");
    }Edited by: Centinul on Aug 22, 2012 3:03 PM

  • How to create buttons for each slide in slideshow

    I currently have a slideshow working with prev and next buttons,
    but would like to add numbered buttons for each slide at bottom of images,
    with a static number for the active slide that has a colored circle around that number.
    I can create static number with colored circle in Photoshop and add that to a layer,
    but it's labor intensive to do that for all numbers.
    Is there a better way to create the highlighted numbers for active slide?
    For numbered buttons that link to non-active slides, I can create numbers in Photoshop and import images into Flash,
    then convert to symbols and assign actions for them,
    But that too is labor intensive to do for all the numbers.
    Is there a better way to create numbered buttons for non-active slides?
    I'd also like to have a hover function on the numbered buttons,
    that changes from plain image of number to number with colored circle like I want to use for active slide.
    How do I assign a hover function to button symbol, that will load another image or symbol?

    Try to think in terms of having reusable symbols.  Think it thru before you try it.
    Use a movieclip symbol instead of a button.  Have a dynamic textfield in that movieclip for the number, and set the textfield to not be selectable.  Have one frame of this movieclip where it displays as the highlighted (selected) one and have the movieclip go there where you are on that slide.
    Use the textfield for the number--assign it dynamically so that you don't have to import an image for it.  Use as many of these movieclips as you need to for all your buttons.
    Have functions that reset all the buttons at once so that when you move to a new slide, the previously selected one goes back to mormal... follow that with setting the newly selected one to be in its "selected" frame.

  • How to create pageInstance for a Particular page using page lable?

    Hi,
    Please guide me on how to create a PageInstance Object for a Particular page , if we got the pagelabel.
    Thanks in advance.

    You need to write a logic, show header and footer when the particular is page is hit.
    <jsp:directive.page import="com.bea.netuix.servlets.controls.application.DesktopPresentationContext,
    com.bea.netuix.servlets.controls.page.PagePresentationContext"/>
    <jsp:scriptlet>
    DesktopPresentationContext desktopCtx = DesktopPresentationContext.getDesktopPresentationContext(request);
    BookPresentationContext mainBookCtx = desktopCtx.getBookPresentationContext();
    String activeBookDefLabel = mainBookCtx .getActivePage();
    BookPresentationContext activeBookCtx = mainBookCtx.getBookPresentationContextRecursive(activeBookDefLabel);
    String activeBookTitle = activeBookCtx.getTitle();
    String activePageDefLabel = activeBookCtx.getActivePage();
    PagePresentationContext activePageCtx = activeBookCtx.getPagePresentationContextRecursive(activePageDefLabel);
    String activePageTitle = activePageCtx.getTitle();
    if(!activePageTitle.equals("whatyouwant"){
    </jsp:scriptlet>
    HEADER
    <jsp:scriptlet>}</jsp:scriptlet>

  • Create Template for Photo Album Pages

    I'm starting a project that involves creating a Web photo
    album. However, there are special formatting rules I need to
    institute for the individual pages I create in the photo album. Is
    it possible to create a template for these pages (the pages you go
    to when you click on the thumbnail on the contact sheet) rather
    than going in and applying css files and other items after they've
    been created?
    Any help is much appreciated.

    Photo gallery makers.
    www.jalbum.net
    http://www.huddletogether.com/projects/lightbox2/
    http://vikjavev.no/highslide/
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Wagz1212" <[email protected]> wrote in
    message
    news:g0l30l$57i$[email protected]..
    > I'm starting a project that involves creating a Web
    photo album. However,
    > there are special formatting rules I need to institute
    for the individual
    pages
    > I create in the photo album. Is it possible to create a
    template for
    these
    > pages (the pages you go to when you click on the
    thumbnail on the contact
    > sheet) rather than going in and applying css files and
    other items after
    > they've been created?
    >
    > Any help is much appreciated.
    >

  • Using latest version of iOS7 on a iPhone 4s, there is NO "accept" button for the 54 pages of Terms

    Using the latest version of iOS7 on an iPhone 4S there is no "accept" button for the Terms & Conditions. Therefore I now have 23 apps that will not update.
    I tried to fix this by updating on my laptop. No go. The sync crashes EVERY TIME at "Step 6 of 7".
    I've searched the forums, and tried all suggestions, to no avail.
    HELP.
    Going to the Genuis Bar in Manhattan is like lambs to a slaughter.

    Hey AVR127,
    Thanks for the question. I understand you are having issues accepting the Terms & Conditions. If you have not already done so, you may want to restart your iPhone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    You may also want to make sure cookies are not blocked and private browsing is turned off in Settings > Safari (you can also take this opportunity to Clear Cookies and Data):
    Safari settings - iPhone User Guide
    http://help.apple.com/iphone/7/#/iph3d7aa74dc
    Thanks,
    Matt M.

  • Back Button for Custom Search Component CRM 7.0 Webui

    Hi Guys,
    I have developed Zworklistsearch component (WEBUI) for the service order header and item level search.
    The component will replace standard worklist search in the worklist Menu (Standard component CRM_BT_TRANSINB).
    The Component is having following parts
    1. Search option (Selection box with option header level search and item level search)
    The search option is binded to the component controller. When the search is loaded the default search type is header.
    2. Search view fields
    BOL objects for both item level and header level search has been created. However both the search views are referring to the same Z structure.
    When the search is loaded default search view is header. The search view is loaded based on the search type selection by triggering outbound plug.
    Both the search views are binded to the same component controller
    3. Saved Search
    Used standard Component SavedSearchRegistration.
    4. Result view
    Both item and header result views BOL objects are created.
    The zworklistsearch object has been replaced with the standard transaction inbox search. However, the problem is with the navigation.
    In case of header search type when I navigate to the service order from the header result view and when I hit back button the search view selection is retained.
    However, in case of Item search type when I navigate to the service order or service order item and when I hit back button the search view selection is not retained.
    The search view loaded on the component is the header search view.
    Also when I execute the saved search, Component is opened in a new window (not in the worklist window). And If I navigate to the service order and hit back button, the worklist view is not displayed.

    Hi,
    Refer to this thread
    You need to write breadcrumb methods.
    [Re: Advanced Search Field Hiding]
    [Re: "Back"-Button History in Z*Window]
    -Satish

  • Creating Links for other Web pages within Flash C23

    Hello Everyone,
    First of all, I'm sure you're tired of answering the
    questions regarding "Links". Although, I'm having a very
    difficult time with this issue. I just purchased Flash C23,
    taken all the tutorials from www.lynda.com, but
    I do not find answers for linking one web page to another
    within Flash C23. I have read all the answers
    on this forum and still can not get my buttons to link up to
    my other web pages.
    I have figured out how to create the buttons, although, I'm
    not doing something right when I try to link up my web
    pages. You have to realize I'm coming from Adobe Golive (no
    need for codes or scripts). I do not want to stop
    using Flash... Can someone help?
    Thank you so much, it's appreciated.

    replace 'siteName' with whatever you use to target your site
    in a browser. 'FranchelleDesigns' is what you named your page in
    GoLive.
    function loadPage(event:MouseEvent):void{
    var myURL:URLRequest = new URLRequest("
    http://www.siteName.com/FranchelleDesigns.html");
    navigateToURL(myURL,"_blank");
    my_btn.addEventListener(MouseEvent.CLICK, loadPage);
    EX: my website is
    http://www.damonedwards.net
    lets say I create some HTML page that I want to link to, and I save
    it as, ContactMe.html... this is what I would use in flash to link
    to it
    function loadPage(event:MouseEvent):void{
    var myURL:URLRequest = new URLRequest("
    http://www.damonedwards.net/ContactMe.html");
    navigateToURL(myURL,"_blank");
    my_btn.addEventListener(MouseEvent.CLICK, loadPage);

  • Hide/Preview button for Notification Search Iview

    I'm working on a Portal Appllication called NRX. It's used as Interface for SAP Plant Maintenance
    There is an iview to search notifications in the R3
    When I log in I can see two buttons in the upper right corner. Hide and Show Preview button
    However, sometimes I log in and I can't see these buttons.
    We believe this is a node configuration issue.
    Can someone help me?

    Hi Srini,
    Thanks for the Immediate Response, I reviwed the Maetalink Note which you suggested, it was stated as:
    Starting from ATG_PG.H.Rollup 4, an enhancement has been made to the Notification Details screen.
    When the user viewing the notification has been granted the Workflow Administrator privilege (through the WF_ADMIN_ROLE preference), then the Reassign button will always be visible, even when the message attribute #HIDE_REASSIGN is set to Y.
    This allows Administrators to reassign any notification when necessary in exception cases.
    But in my case, the user do not have the Workflow Administrator privilege. He was not assigned with any workflow Admin Resps. Is there anything I am missing to check the WF_ADMIN_ROLE preference for a particular user?
    Regards,
    Sridhar

  • How to create Buttons for Excel,Print & help!

    Hi Experts
      Anyone has an experience how to create a Buttopn Group for the following options.
    1.Excel
    2.Printchart
    3.Printtable
    4.Printreport
    5.Help
    Pls revert to me <removed by moderator>.
    Thanks
    BI Learner
    Edited by: Siegfried Szameitat on Dec 1, 2008 10:46 AM

    Hi,
    Your PDF output and the output of the Template on Web should be similar, ideally. But, if the width of the 2 reports are bigger and that cannot fix in one page, then the PDF output will not be as you require it to be.
    You have to decrease the dimensions of the Analysis item in the Template and see how the output size varies in the Web.
    Also, when you have defined the command for converting to PDF, select the checkbox which allows you to see the "Page Setup" while you are converting it to PDF in the Web, ie in the output of the template. Here, set the margins to the minimum (Left, right, top and bottom). This also ensures that the Analysis item gets the maximum area in the output.
    Just try this piece of code too,
    <bi:CAPTION value="Print PDF" />
    <bi:TOOLTIP value="Print to PDF Document" />
    <bi:ACTION type="CHOICE" value="INSTRUCTION" >
    <bi:INSTRUCTION >
    <bi:EXPORT >
    <bi:REPEAT_KEYCOL value="" />
    <bi:PAPER_ORIENTATION value="LANDSCAPE" />
    <bi:MARGIN_RIGHT value="10" />
    <bi:MARGIN_LEFT value="10" />
    <bi:MARGIN_TOP value="10" />
    <bi:MARGIN_BOTTOM value="10" />
    Here the margins are set to 10. You can even try decreasing this depending on your requirement.

  • Programatically Created Button Placement on OAF Page

    Hi,
    I created a submit button using the below code. But it was placed below the page. I have 3 buttons on the page. How Can I keep this new button next to these buttons. Please let me know.
    Thanks,
    HP.
    OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
         oasb.setID("custPrintPOButton");
         oasb.setUINodeName("custPrintPOButton");
         oasb.setEvent("custPrintPOButton");
         oasb.setText("Print PO");
         paramOAWebBean.addIndexedChild(oasb);
    Edited by: user1147940 on Sep 19, 2010 7:53 PM

    Is this a custom page. If yes check the page in Jdeveloper here you can find that the page has item of Type PageButtonBar in that you can find your submit button as mentioned by you.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Why is the left hand window and bar with the buttons for TOC/Search/Glossary not displaying in one client location?

    Greetings all:
    I have more years of experience with RoboHelp than I want to admit, but I have never run into this before. I have a published RoboHelp 9 project for an overseas client that displays exactly as it should when the published version is viewed by myself or another RoboHelp developer (not located where I am). However; the users at 1 of 2 two client sites do not see the left hand TOC window or the bar above the project with the buttons (the other site does see it). The users at both sites are using Internet Explorer 9, and I have been told there is no difference in their security set-up. I suspect that at the site where it is not displaying there is a security setting that is throwing it off, but I am not sure what to have them look for. Anyone have any ideas?
    W. Keith

    Do they not simply see the bar or is it empty? In the first situation, it seems they are opening the topic directly instead of via the start file.
    What is the URL the users are using on both the locations? And do the users have a hyperlink 'Show' at the top of the topics?
    Kind regards,
    Willam

  • Multiple buttons for same action page

    I have a cfform with an action page.
    I have two buttons at the bottom with different labels, like
    button 1 and button 2, that call this action page to insert data.
    After the insert, the page needs to be redirected page 1 if button
    1 was selected, and redirected to page 2 if button 2 was selected.
    How can I separate the two so that they go to different forms
    I tried passing a variable in the cfform action, but it
    applies to both buttons, thus both go to the same place, and I
    cannot seem to separate.

    trojnfn wrote:
    > <script language="javascript">
    >
    > function validateForm(pack_slip_form){
    >
    > var returnStatus = true;
    >
    >
    > if (pack_slip_form.supplier_name.value == ""){
    > alert("Please Enter The Supplier Name");
    > pack_slip_form.supplier_name.focus();
    > returnStatus(false);
    > }
    >
    >
    > if (returnStatus){
    > pack_slip_form.submit();
    > }
    >
    > returnStatus(true);
    > }
    >
    as far as i can see, returnStatus is not a function, so what
    is
    returnStatus(true) ???
    change that line instead to
    else {return false;
    > This is my form tag, from the other example :
    > <cfform action="pack_slip_action.cfm method="post"
    name="pack_slip_form"
    > onSubmit="return ValidateForm()">
    >
    > And here are my two buttons below :
    >
    > <input type="submit" name="button_1" value="SAVE AND
    ADD PACK SLIP"
    > onClick="validateForm(document.pack_slip_form)">
    >
    > <input type="submit" name="button_2" value="ASSIGN TO
    PROCUREMENT"
    > onClick="validateForm(document.pack_slip_form)">
    >
    >
    you only need to call your validateForm function either from
    the <from>
    tag OR your submit buttons, not both.
    and the function call in the form tag is incorrect - a) the
    function
    name is spelt wrong and b) it does not pass required argument
    to the
    function. change that to onSubmit="return
    validateForm(document.pack_slip_form)" and remove the onCLick
    events
    from your buttons
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Create buttons for Rotate,  Zoom, and Pan in a 3dscene

    Hi,
    I am designing a 3dpdf  and my client wants to play it in a touchscreen monitor.
    The problem comes about rotate, zoom, and Pan inside the 3d scene. As this function are activated by mouse left and right button I need to create some buttons to make these functions available.
    I have put this post at Rich Media & 3D >   Discussions Zoom and Pan
    Here the link http://forums.adobe.com/message/4557451#4557451
    Dave Merchant suggested me to bring the question to this forum.
    Can anybody help me on this?
    Thank you

    I am sorry but I do not understand.
    I am not a programer .I have not idea about SDK, how it works neither how to install it.

Maybe you are looking for