Recordset paging without refresh

Hi i have some recordset paging halfway down my page and when
i click next prev the page refreshs and it goes to the top of the
page which is annoying as you have to scroll down again to see the
next set of records.
I tried using anchors to get the page to stay where the
paging is but i get a undynamic looking flash as it corrects
itself.
Is there a way to solve this?

Hi i have some recordset paging halfway down my page and when
i click next prev the page refreshs and it goes to the top of the
page which is annoying as you have to scroll down again to see the
next set of records.
I tried using anchors to get the page to stay where the
paging is but i get a undynamic looking flash as it corrects
itself.
Is there a way to solve this?

Similar Messages

  • Is it possible to return a database query without refreshing the page?

    I have a form which has a drop-down select box. What I want to do is send the value from the select list to a CFC which runs some SQL code and returns a recordset. I then want to use this recordset on my original CFM page that has the form on it.
    Is it possible to do this without refreshing the page through some kind of AJAX? Apologies I am a newbie at AJAX but I did manage to write a bit of code that uses <cfdiv> to bind to a URL that does the database work and returns some HTML. But really I just want the database recordset and not sure how to get it?

    You could use AJAX, Flex Remoting or any such remoting technique. That is, if there is a case for it. However, from what you describe in the first paragraph, you don't need to. Just send the form to its own page.
    In the following example, the CFC and CFM page are both in the same directory under the root. I have made use of the cfdocexamples datasource which ships with ColdFusion.
    Employee.cfc
    <cfcomponent>
    <cffunction name="getEmployeeDetails"  output="false" returntype="query">
    <cfargument name="employee_id">
    <cfset var employeeDetails = queryNew("","")>
    <cfset var emp_id = arguments.employee_id>
    <cfif isNumeric(emp_id)>
        <cfquery name = "employeeDetails" dataSource = "cfdocexamples">
            SELECT firstname, email as email_name, department, phone, location
            FROM Employees
            WHERE emp_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#emp_id#">
        </cfquery>
    </cfif>
    <!--- Will activate error-handler in the caller --->
    <cfif NOT isNumeric(emp_id) or employeeDetails.recordcount EQ 0>
        <cfthrow message="You selected no employee.">
    </cfif>
    <cfreturn employeeDetails>
    </cffunction>
    </cfcomponent>
    testPage.cfm
    <cfif isDefined("form.employee_id")>
        <cfset employeeObj = createobject("component","Employee")>
        <!--- employeeDetails is a query--->
        <cfset employeeDetails = employeeObj.getEmployeeDetails(form.employee_id)>
        <cfdump var="#employeeDetails#">
    </cfif>
    <cfform action="#CGI.SCRIPT_NAME#">
    <cfselect name="employee_id">
    <option value="0">Employee</option>
    <option value="1">Carolynn Petersen</option>
    <option value="2">Dave Heartside</option>
    <option value="3">Linda Stewart</option>
    </cfselect>
    <cfinput name="sbmt" type="submit" value="Send">
    </cfform>

  • Can't download multiple files from page without refresh with Safari

    Safari 5.1 on imac osx 10.6.8.  Just downloaded 5.1  and now I can't download more than 1 file at a time without refreshing the page (or paging back, then forward again) for each download. What is going on?  How do i fix this?

    Quit Safari.
    Open a Finder window select your Home folder in the Sidebar on the left. Then open the Library folder, then the Caches folder, then the com.apple.Safari folder.
    Move the cache.db file from the com.apple.Safari folder to the Trash.
    Relaunch Safari. Try Downloads.

  • How can we get a value in a drop down box without refreshing the page

    In my application i am having 14 drop down boxes. On selcting a particular value in a drop down box i am doing its corresponding functionality. I would like to get these values without refreshing the page each and every time i select a text box, Is it possible to get these values without refreshing the page each and every time.
    Raghu

    There is a new hype going on called AJAX. It is either that, or dumping a lot of information in javascript arrays and reading the information from there when you make selections. I would choose AJAX.

  • Passing javascript values to jsp without refreshing the page

    Hi,
    How do u pass a value of a javascript variable to the jsp without refreshing the page ?
    For example, a file called test.jsp in which a javascript variable x contains value 254. I need to pass the value of x to a method declared in test.jsp(same page).

    Hi Mona,
    when i say refresh i do mean a blink of the browser.
    This is a small example i wrote to show you how you can pass javascript varables to JSP variables. If you don't want the refresh to be seen by the user just include this code in a hidden frame on a page and instead of refreshing the entire page, refresh the hidden frame.
    i have to say, i didn't test the code so i don't guarantee it's flawless.
    if you need an more detailed example just tell me, i'll create one, but it won't be for today :)
    <html>
    <head>
         <title>Log in to the system</title>
    </head>
    <body>
    <script>
    //we retrieve the parameter 'user' from the URL
    <%
      String username = request.getParameter("user");
    %>
    var user = "<%= username%>";
    //check if there is a username in the URL
    if(user=="null")
      //there is no username so we log the person in as a guest
      user="guest";
      //we refresh the page and set the user parameter to 'guest'
      //the parameter now contains the javascript variable 'user'.
      //The parameter can be read by the JSP (see the top op this script).
      //This way we gave the javascript variabele to the JSP variable
      location="login.jsp?user="+user;
    else if(user=="guest")
    {  alert("Welcome "+user+", I hope you like this site"); }
    else
    {  alert("Welcome "+user+", I'm glad to see you again"); }
    </script>
    </body>
    </html>

  • How to print history report without refreshing?

    Hi,
    Does someone tell me how to print history report (deski, webi, and crystal) without refreshing via Java API?
    I could not find in Java doc and Developer Library.
    thanks,
    Tak

    Hi,
    It looks like that you wan to print Report's Instance and refering it as history report. If you want to print Instance of report (CR, Webi or DeskI), frist get the SI_ID, so that we can access that instance and then we have to use appropriate controller to print the report (instance)
    for CR, use BOE/RAS SDK
    for Webi and DeskI, use REBean SDK
    Regards,
    Arjun

  • How can we update the date&time without refreshing the page

    Hi friends,
    I have a jsp page. In that there is Date and Time. The date and time should be updated for every one minute without refresh the page(dynamically).
    Its urgent for me
    Thanks
    Mallik

    hello friend ru looking at date and time @ client side frm the server side if it is all about the client side date i don't think there is use of AJAX triggers and rendering the view by modifying the dom...
    here is an example for you..
    <%@ page language="java"%>
    <HTML>
    <HEAD>
    <SCRIPT language="JavaScript">
    function startclock()
    var thetime=new Date();
    var nhours=thetime.getHours();
    var nmins=thetime.getMinutes();
    var nsecn=thetime.getSeconds();
    var nday=thetime.getDay();
    var nmonth=thetime.getMonth();
    var ntoday=thetime.getDate();
    var nyear=thetime.getYear();
    var AorP=" ";
    if (nhours>=12)
        AorP="P.M.";
    else
        AorP="A.M.";
    if (nhours>=13)
        nhours-=12;
    if (nhours==0)
       nhours=12;
    if (nsecn<10)
    nsecn="0"+nsecn;
    if (nmins<10)
    nmins="0"+nmins;
    if (nday==0)
      nday="Sunday";
    if (nday==1)
      nday="Monday";
    if (nday==2)
      nday="Tuesday";
    if (nday==3)
      nday="Wednesday";
    if (nday==4)
      nday="Thursday";
    if (nday==5)
      nday="Friday";
    if (nday==6)
      nday="Saturday";
    nmonth+=1;
    if (nyear<=99)
      nyear= "19"+nyear;
    if ((nyear>99) && (nyear<2000))
    nyear+=1900;
    this.document.getElementById("clockspot").innerHTML = "<b>"+nhours+": "+nmins+": "+nsecn+" "+AorP+" "+nday+", "+nmonth+"/"+ntoday+"/"+nyear+"</b>";
    setTimeout('startclock()',1000);
    </SCRIPT>
    </HEAD>
    <BODY>
    <div id="clockspot"></div>
    <SCRIPT language="JavaScript">
    startclock();
    </SCRIPT>
    </BODY>
    </HTML>hope this might help :)
    REGARDS,
    RaHuL

  • Report without Refresh

    Hi
    i want to generate a report without refresh of the page.
    Eg. If i enter the student_id 1 in text field then student_id 1's personal information should display in report without refresh of the page.
    there are 5 field in student table
    first name
    last name
    roll no
    class
    section
    Thanks
    Nisha

    Hi Br, Jari,
    can i use the text field in place of select list.
    as in given link. we are selecting the value from select list after that report display without refresh of the page.
    i want to replace the select list with the text field.
    if this Possible Please Suggest me.
    Thanks & regards
    Nisha

  • After Creating a RecordSet using Wizard, Unable to Create RecordSet Paging - Error Occurs

    I created a record set using the wizard and it tested just fine using the test button.  So my next step was to create the "RecordSet Paging" "Move to First Record", whe I select this I get the error "Before using this Server Behavior, please create a record set"
    The record set is there, it is even checked off in the binding list as being there, yet I can not do anything, I even went in and deleted it and tried again with the same result, this is getting very annoying and is causing me a lot of extra work.
    Is this a BUG!!!
    I have seen this issue several times now.
    Running Version 11.0 build 4993
    Signed
    Frustrated!!!!!

    Hi,
    For questions regarding dynamic site development,  hop over to the following forum.  You'll get better answers there.
    Dreamweaver Application Development Forum
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Exchange Mails are not getting updated properly without refreshing

    From couple of days, exchange mails are not getting updated properly without refreshing.
    Kindly suggest.

    Kindly suggest a solution

  • Without refresh Page Report

    hi,
    i want to generate a report without refresh. When i enter Student ID in textfield Then personal information of student details Report (without refresh page) sholuld be Generated .
    How can i do this.
    Thanks
    manoj

    Hi,
    I do not understand. There is only one page that end user actually see. Another page is just holding report SQL.
    If that is not good solution you can find this code helpful
    http://apex.oracle.com/pls/otn/f?p=40323:12:8
    Take pl/sql code. Change it for your need and create on demand process.
    Call process via AJAX and insert/replace returned html to your region.
    Br, Jari

  • Data fetch from table without Refresh and without using tab key.

    hi Friends,
    I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
    eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
    If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
    Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
    Andy

  • Data fetch from two table without refresh

    hi Friends,
    I have a problem i want to extract data from two table without refresh into text field when i'll enter any value in a text field then corressponding value should come in to corressponding textfield.
    eg. there two table A and B.
    Table A has Colunm
    s_id Number;
    c_id Varchar2(30);
    sec varchar2(4);
    Second Table B Colunm Name
    s_id Number;
    f_name varchar(30);
    l_name varchar(20);
    when i enter s_id 101 in a text field then the c_id ,sec,first_name and last_name should come in to corressponding text fields without refresh.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    You have to make an Ajax call to display data without refreshing the page. Search this forum for Ajax and you can find lots of related posts. This link might help too. http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Thanks,
    Manish.

  • Spry Tabbed Panel Defaults to home page with recordset paging

    I have Spry ver. 1.6.1.  A Spry Tabbed Panel titled "Check Ride Activity Report" (Tab 6)  accesses a mysql database and shows the records in a table format.  Instead of having all the records display at once I want to limit the records displayed to a few at a time. e.g. 5 per page.   I added a recordset navigation bar and set the $maxRows_GetChkRideRecs = 5;  It works but each time the navigation bar "Next" or "Last" or "First" or "Previous" is clicked the page reloads with the default Home page Tab displayed.  The user then has to click on Tab 6  to view the new results.  The url where this can be viewed is at http://Training.reliantair.com.  Is there a way to code this tab so that Tab 6 remains the default tab once it is selected until the user selects another tab?
    I want to avoid putting another  button on the page to accomplish this as shown in the spry utils samples where the user clicks to set the default tab.
    Can this be done within the recordset paging code similar to how it is done on a form submit to keep the focus on the current tab?

    I didn't try the cookie method suggested.  The tab method listed in spry utils does work but requires an additional button, so I came up with this solution.
    In the Head of the HTML document I put this code.  It searches for the query string in the HREF when any of the record paging buttons is pressed.
    <script type="text/javascript" src="SpryURLUtils.js"></script>
    <script type="text/javascript">
    var params = Spry.Utils.getLocationParamsAsObject();
    if (location.href.indexOf("GetChkRideRecs") != -1  && location.href.indexOf("tab") == -1)
      location.href +="&tab=5#TabbedPanels1"; 
    </script>
    Then in the body of the HTML document at the bottom of the page  the tabbed panel widget is changed like this:
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1",{defaultTab: (params.tab ? params.tab:0)});
    The first time a recordset paging link is  clicked the HREF attribute of &tab=5#TabbedPanels1 is added to the location HREF.  Subsequent clicks of any of the links do not change the HREF because the code looks for "tab" and does nothing if it is found.

  • Website pages will not open without refresh everytime

    website pages will not open without refresh everytime

    website pages will not open without refresh everytime
    That can be a symptom of a poorly performing DNS.  E.g. IE tries a lookup but doesn't wait long enough to get the answer; meanwhile the lookup proceeds, gets cached, etc.; so now when you try your "refresh" it is all there ready to go.  Unfortunately,
    I don't think there is any way of tuning your TCP to avoid this symptom.  A workaround would be trying a different DNS.  (A related workaround is to avoid a DNS relay to your router and make the OS aware of your real DNS.)  A way of changing
    the symptom is to always do enough in a cmd window to ensure a complete lookup is cached before you make your first request using IE, (e.g. using ping -n 1 because you don't care at that point if there
    is connectivity for ICMP).  But there may be problems doing that, depending on aliases and redirects and short Time To Live values.
    Post some details for a specific publicly accessible example, if you would like to see how these ideas could work with it.
    HTH
    Robert Aldwinckle

Maybe you are looking for