Having a problem with my site to show the next search result.

Hey everybody. I'm having a problem with establishing a link back and next to display the results of a search engine, I did. It also resets when the link is displayed and I hit him with the results on the page, the entire page. No idea what I am doing wrong?

========================================================================================== =====================

< name cfparam = "FORM. Islands"default =" "/ >"
< name cfparam = "URL. StartRowOptional"default ="1">

< cfset sNextRow = URL. StartRowOptional + 2 / >
< cfset sPreviousRow = URL. StartRowOptional - 2 / >

< cfquery name = "qResults" datasource = "wyi2" >
SELECT BusinessID, BusinessName, IslandID, phone, address, WebID
Business
WHERE IslandID = < cfqueryparam value = '#FORM. Islands #">"
ORDER BY last CSA
< / cfquery >

< cfquery name = "qIslands" datasource = "wyi2" >
SELECT IslandID, IslandName
Islands
ORDER BY IslandName ASC
< / cfquery >

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
< title >. : If there is:. < /title >
"" < link href = "... / css/wyi.css" rel = "stylesheet" type = "text/css" / >
< / head >

< body >
<! - tag div start - >
< div id = "Container" >
<! - start div banner - >
< div id = "sBanner" >
"" < img src = "... / images/logo_Store_Sales.jpg" width = "400" height = "175" border = '0' well = "#Map" / >
< name of the map 'Map' id = 'Card' = >
"" < area shape = "rect" coords = "220,153,268,169" href = "... / index.cfm" target = "_self" alt = "Home" / >
"" < area shape = "rect" coords = "287,152,373,168" href = "... / contact/index.cfm" target = "_self" alt = "Contact Us" / >
< / map >
< / div >
<!--> banner end div
<!--> Start search engine
< div id = "back" >
< cfform action = '#CGI. ' SCRIPT_NAME method # ' = 'post' preservedata = "yes" >
< table width = "400" border = "0" cellspacing = "2" cellpadding = "0" >
< b >
< td >
< name cfselect = "Islands".
Query = "qIslands."
display = "IslandName."
value = "IslandID".
queryPosition = "bottom" >
< option value = "all" > please select an island < / option >
< / cfselect >
< table >
< td >
< cfinput type = "submit" name = "Find_btn" class = "button" value = "Search store" / >
< table >
< /tr >
< /table >
< / cfform >
< / div >
<!--> end search form
<! - start results section - >
< div id = "sResults" >

< table border = "0" cellpadding = "0" cellspacing = "2" >
< b >
< td colspan = "3" >
< cfif IsNumeric (FORM. Balearic Islands) >
< cfoutput >
We found #qResults.RecordCount # store < cfif (qResults.RecordCount GT 1) OR (qResults.RecordCount 1 LT) > s < / cfif >.
< / cfoutput >
< cfelse >
Please select an island to help us find the store you're looking for.
< / cfif >
< table >
< /tr >
< b >
< td > < table >
< td > < table >
< td > < table >
< /tr >
< cfif qResults.RecordCount GT 2 >
< cfoutput >
< b >
< td width = "150" >
< cfif URL. StartRowOptional GT 2 >
< a href = '#CGI. SCRIPT_NAME #? StartRowOptional = #sPreviousRow #"> back < /a >"
< / cfif >
< table >
< td width = "150" >
< a href = '#CGI. SCRIPT_NAME #? StartRowOptional = #sNextRow #"> Next < /a >"
< table >
< td >

< table >
< /tr >
< / cfoutput >
< / cfif >
< cfoutput query = "qResults" StartRowOptional = "#URL. ' StartRowOptional # ' LignesMax '2' = >
< b >
< td colspan = "3" >
< p > < a href = "results.cfm? BusinessID = #BusinessID #"> #BusinessName # < /a > < /p >"
< table >
< /tr >
< / cfoutput >
< b >
< td colspan = "2" > < table >
< td > < table >
< /tr >
< b >
< td colspan = "3" > Copyright 2010 & copy; Where is is, All Rights Reserved < table >
< /tr >
< /table >
< / div >
<!--> final results section
<! - advertising start - >
< div id = "Advert" >
"" < img src = "... / images/ad_sample.jpg" width = "200" height = "200" / >
< / div >
<!--> advertising
< / div >
<!--end Div container-->
< / body >
< / html >

========================================================================================== ===================

Any information that must be retained shall be sent in one of the following locations.

1. a query string in a URL.

2. a form variable

3. a cookie

4. a session variable.

Do not forget that the form and URL variables exist for a single page request.  If you want to 'remember', you will need to resubmit them.

You can find this useful.

http://help.Adobe.com/en_US/ColdFusion/9.0/developing/WSc3ff6d0ea77859461172e0811cbec0c35c-7ffb.html

Tags: ColdFusion

Similar Questions

  • Request OA region shows the previous search results when moving between pages

    Hi all

    I have a custom Page of OA, which is a query based on a LOV region to search for names of devices. The problem I am facing is once the device name is searched and I'm going to another page through quick links and back on the same page Search Device, it shows the previous search results. I am does not keep AM for all navigation page.

    I already tried things:
    4 K I tried refreshing VO using clearcache and reset methods on the VO.
    2 get, click on the OK button of the query in ProcessFormRequest region and the Go button I use forwardImmediatelyToCurrentPage. And in the process request method that I question the results manually when will click on a button. Otherwise I do it manually where clause condition 1 = 2 and ensure that the VO returns no rows.

    But still, I am not able to get rid of the issue.

    The used code is pasted below for your reference. It is urgent. Can you please provide pointers.


    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    Try
    {
    Am = (VpaAdminAMImpl) pageContext.getApplicationModule (webBean) VpaAdminAMImpl;
    TkvpaDeviceSearchVOImpl deviceAll = am.getTkvpaDeviceSearchVO1 ();

    deviceAll.clearCache ();
    deviceAll.reset ();
    deviceAll.setWhereClause ("1 = 2");
    deviceAll.setWhereClauseParams (null);
    String query = deviceAll.getQuery ();
    System.out.println ("request getSearchResult: =" + query);
    deviceAll.executeQuery ();

    OAQueryBean queryBean = (OAQueryBean) webBean.findChildRecursive ("region1");
    String goAction = queryBean.getGoButtonName ();
    If (PageContext.GetParameter (goAction)! = null)
    {
    getSearchResult (pageContext, am, webBean);
    }
    }
    catch (Exception ex)
    {
    throwException ("SearchDeviceCO.processRequest", ex);
    }
    }


    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);
    Action string = pageContext.getParameter (EVENT_PARAM);
    OAQueryBean queryBean = (OAQueryBean) webBean.findChildRecursive ("region1");
    String Go = queryBean.getGoButtonName ();
    System.out.println (PageContext.GetParameter (Go));

    If (PageContext.GetParameter (GB)! = null)
    {
    pageContext.forwardImmediatelyToCurrentPage (null, false, "N");
    }
    }

    Public Sub (VpaAdminAMImpl am, pageContext, OAWebBean webBean OAPageContext) getSearchResult
    {
    Try
    {
    String device = pageContext.getParameter ("deviceSearch");

    StringBuffer sb = new StringBuffer();
    If (device! = null & & device! = "")
    {
    SB. Append ("nom_peripherique =" "");
    SB. Append (Device);
    SB. Append("'");
    }

    String sql = sb.toString ();
    TkvpaDeviceSearchVOImpl deviceAll = am.getTkvpaDeviceSearchVO1 ();
    deviceAll.setWhereClause (sql);
    deviceAll.setWhereClauseParams (null);
    String query = deviceAll.getQuery ();
    System.out.println ("request getSearchResult: =" + query);
    deviceAll.executeQuery ();
    } catch (System.Exception e)
    {
    e.printStackTrace ();
    }
    }


    Thanks in advance,
    Abhishek Mishra

    Hi Abhishek,

    Please try the code below in your controller ProcessRequest
    This will clear the previous search from the cache.
    Example of
    OAQueryBean queryBean = (OAQueryBean) webBean.findChildRecursive ("QueryRegionName");
    queryBean.clearSearchPersistenceCache (pageContext);

    Hope that helps :-)

    Kind regards
    Chaouki

  • I'm having a problem with both photoshop update on the creative cloud applications

    I'm having a problem with updates of photoshop creative cloud.  Is anyone else having the same problem?  Is there a solution?

    It was a network problem that should be solved by the firewall opening and

    a different administrator on the pc account.

  • Having a problem with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular.

    I recently tried to remove malware on my Vista based laptop Toshiba.


    I recently tried to remove malware on my Vista based laptop Toshiba. Malwarebytes helped, but I still have problems with a redirect virus and the refusal by the system to allow me to download various things, Windows Live Mail in particular. I tried to download from a copy of the USB stick to a clean computer, but he still refuses to load telling me to check my internet connection, which is fine for general use. Please help I get crazy and do not forget that I am a pure layman - thank you if you can help - Kidso

    I found that the best place to ask this type of question is here: -.

    http://forums.ComputerActive.co.UK/forumdisplay.php?f=20

    There are some very good people out there who helped me (successfully) on 2 occasions.

    Good luck.

    I'll be interested to know how you go.

  • Problem with overlapping lines all showing the report.

    I have a sample of data as shown in the attached file.

    I created a report for the data (such as it is attached). When I saw the report that I see the formatting of the table is not correct. It is as shown below.

    Sampel Img.JPG

    The dotted lines are just a reference. they are not actually rendered. I think that the Extension of the line of the table to the right is due to overlap. How can I avoid it?

    Please use the attached RTF model and let me know if problems.

    Manually adjust the width/height of the cell or table, and then choose the option for each of the nested tables and parent table.

  • Problems with sorting of columns and the number of lines in the report

    Hello

    I'm having a problem with sorting of columns and the number of lines displayed in a report.

    This report displays the data correct, but if I try to sort on a column when I click on the column heading in the report returns no line... I need to click on the "go" button to refresh the report (with the column sorted now) in to display the data.

    Similarly, I display only 15 lines per page. If I try to view the lines 16-30, 31-45, etc., that it returns no line until I click on the 'go' button to refresh again.

    Has anyone else had (and overcome) the same problem?

    Thank you

    Joseph

    Joseph,

    2 questions:

    1) are you using the elements referenced by the report page to filter etc.. ? If so, you're failing values of these when the loading of the page?
    (2) are you using PPR page through the results?

    If so, it could be a problem with the different types of session state, as Anton Nielsen blogged about here:
    http://c2anton.blogspot.com/2008/12/Oracle-Application-Express-Apex-three.html

    If so, you can use calculations or processes to set element values in session state persistent during page rendering, as Anton mentions. In this way, when you use PPR page values will be available in session state and your report should work fine.

    Anthony.

  • Having a problem with the Muse crashing when opening a Web site I designed in Muse.

    Having a problem with the Muse crashing when opening a Web site I designed in Muse. You need to be able to access this site in order to update for my clients.

    [LASP/updateCaches] TypeError: Error #1009: cannot access a property or method of a null object reference.

    All adventures Rafting | Wenatchee Whitewater Rafting trips - two hours East of Seattle

    Could you please send us the .muse file to [email protected] as well as a link to this topic? If the file is larger than 20 MB, you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc.. Thank you.

  • Internet Explorer problems with Web site

    We have problems with our site Web display correctly in older versions of Internet Explorer. It seems fine in the newer versions and other web browsers, but in Internet Explorer its is not centered and the information is sent down below the navigation. The site is www.wctractor.com for help or answers are greatly appreciated.

    The first lines of the document shows

    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.DTD">

    Internet Explore hate having to look down the document to highlight lines, spits the dummy and goes into Quirks Mode (i.e. a mode before IE5).

    Remove the

    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.DTD">

    bit and place the following on the first two lines of the document

    IE will be a very happy chappy after that.

  • Having a problem with loading in the combustion chamber

    Hello

    I'm having a small problem I could use help with. I'm not really sure what's going on, but I'm having a problem with one of the pages of my site does not when you try to view the page in Firefox. But if I loaded this page in Safari or Chrome, it loads very well.

    Here is the URL of the page to take a look:
    Specific link removed by moderator display ~ J99 < sitename >.com/top-10/top...services/

    No idea why this might be happening or how to fix it? I don't know if it's just my computer, or if others have the same problem.

    Thanks in advance,

    Mike

    There's two of us have confirmed the page will load so I deleted the link to display as it could be construed as advertising.

    P.S. Note only forum content in the resolved threads is now indexed by search engines.

    (Last updated: February 14, 2015 08:45 CEST)

    Solved the locked thread now ~ J99

  • I'm having a problem with the FireFox browser. I have attached two files that describe the problem. I have marked their A &amp; B. A is the way it should lo

    I'm having a problem with the FireFox browser. I have attached two files that describe the problem. I have marked their A & B. A is how it should look like and B what happens once I have, I opened several tabs. I can get it back to normal if I click VIEW, click Customize. When the window customize appears that Firefox returns to its normal state. I have to click on the done button and go back to what I did. I tried to reset FireFox back to the default settings, but that has not fixed the problem.
    It started happening a month. Is there a way I can fix this? Thanks for your help. I don't know how to fix my 2 attachments that shows the problem I'm having.
    [email address removed to protect your privacy and security]

    Try disabling hardware acceleration in Firefox.

  • I'm having a problem with my Opnegl ver 1.1, must be updated 1.3 for some reason that I can't seem to update or to locate in the profile of my hard drive... ERRRR... of suggestions?

    I'm having a problem with my Opnegl ver 1.1, must be updated 1.3 for some reason that I can't seem to update or to locate in the profile of my hard drive... ERRRR... of suggestions?

    Update your video card drivers. Bring:

    1. site of the device mftr. ; OR
    2. site of the card mother mftr. If the material is on board; OR
    3. website of the OEM manufacturer for your specific machine if you have a PC OEM (HP, Dell, Sony, etc.).

    Read the installation instructions on the Web site where you get the drivers.

    To find out what hardware is in your computer:

    1. read all documentation that you got when you purchased the computer.
    2. If the computer is OEM, access the site Web of the OEM for your specific model machine and look at the specs (you'll be there to get the drivers anyway)
    3. download, install and run a program of inventory of the free system like Belarc Advisor or System Information for Windows.

    http://www.belarc.com/free_download.html - Belarc Advisor
    http://www.gtopala.com/ - system information for Windows MS - MVP - Elephant Boy computers - Don ' t Panic!

  • I reinstalled creative cloud and Dw after having a problem with Windows 10, but they do not work after restarting my computer. It's as if they are not installed

    I reinstalled creative cloud and Dw after having a problem with Windows 10 and I restored it to windows 7, but they do not work after restarting my computer. It's as if they are not installed.  I worked through all the steps without result troubleshooting.  Everyone experienced similar?

    Hi Trickstar777,

    Please follow the steps below:

    • Please check if you have installed browser security extensions, please disable them. (For example: AD BLOCK, Advisor to Mcafee website, toolbar of internet security etc.)
    • Disable the firewall on your machine.
    • Turn off the firewall of the security program installed on the computer Internet. (Norton 360 - disable the following in it: Surf safely, firewall, browser protection, download intelligence)

    These changes are temporary you can restore these changes back to normal once your creative cloud application is in place and functioning *.

    (1) uninstall Creative Cloud Desktop Manager:

    Using creative cloud | Uninstall the creative cloud desktop application

    (2) delete following folders: (if you do not see any folder skip this step)

    C:\Program Files (x 86) \Common Files\Adobe\OOBE

    C:\Program Files (x 86) \Common Files\Adobe\Adobe Application Manager

    C:\Program Files (x 86) \Adobe\Creative Cloud files

    C:\Users\\AppData\Local\Adobe\ MAA UPDATER and two OOBE (App data & Program Data is folder hidden please see, Show files and folders hidden in Windows 7, 8.x, 10, or Vista)

    \Adobe\ DONNÉES C:\Program rename SL-STORE like SL-STORE_OLD

    3 - Click on the link below and download Creative Cloud Installer file and use them to install the creative Cloud Desktop application.

    Download Adobe Creative cloud apps | Free trial of Adobe CC

    Let us know if that helps.

  • I'm having a problem with my redemption code.  It says product not activated.  I ordered 12 online adobe photoshop/first elements.  Contact seller.  They said contact adobe chat. I was wondering if anyone can help? Thank you

    I'm having a problem with my redemption code.  It says product not activated.  I ordered 12 online adobe photoshop/first elements.  Contact seller.  They said contact adobe chat. Chat is now closed.  I was wondering if anyone can help? Thank you

    Using redemption code

    http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html

    If you have purchased the software and reimbursement codes are coming as invalid then the seller needs to address that.  If you were able to acquire the serial number by exchanging the redemption code, then follow the advice of the seller and you contact Adobe support via chat (when available).

    Chat support - the link below click the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    http://helpx.Adobe.com/x-productkb/global/Service1.html ( http://adobe.ly/1aYjbSC )

  • Is anyone having problems with their Apple Watch since the iOS 10 came to life?

    Is anyone having problems with their Apple Watch since the iOS 10 came to life?

    Hello

    If you have not already done so, it can also help update your Apple Watch to the latest version of the software:

    Update the software on your Apple Watch - Apple Support

  • my iphone 6 is not the Japan but still having a problem with his camera shttuer. sound is not being muted when the phone is silent. Help!

    my iphone 6 is not the Japan but still having a problem with his camera shttuer. sound is not being muted when the phone is silent. Help!

    The Japan is by far the only country where the shutter is forced to be on

Maybe you are looking for