Displaying the  results without refreshing the page

Hi,
I need to show the items added to the basket within a list box which is on the top frame without refreshing the page.the page is a jsp page.Could you please give me idea how this could be done.
The problem is, there are 2 frames, one above and one below.In the below frame I select a product and add to the basket, at the same time I need to show these items in above frame within the list box, the above frame should not refresh, it should show the items as soon as the items are added.
Thanks

The cart bean is on the server? Then you will have to send a request to the server to get it added. How do you do that? You post a form. How do you post a form without submitting a page? You don't.
You need to make a design decision. If you want all of your logic on the server, you will have to be content with client-side refreshes. If client-side refreshes and their inherent delays are not acceptable, you will have to learn to be savvy with JavaScript but realize that anything you do on the form is still only on the form until you submit it.

Similar Messages

  • Display error message without refreshing the entire jsp

    Hi,
    I want to display the server side error messages in the jsp without refreshing the entire jsp. How can this be achieved?
    I think there is some way with use of AJAX. If yes can you please elaborate on the same as to how to do this.
    Regards,
    Shwetha

    In the project it's presented:
    1) how the servlet can send JSON data depending on the request's parameter
    2) how to obtain this data on the client side and show in on the page using jQuery without refreshing the whole site
    What You need to do is just to send the error (as JSON data) insetad of the values that are passed now and display this error on the page.

  • How can i have a full screen preview of my photo on second monitor? I mean i want to live broadcast the result without save the file

    I want to see the result of my editing on the second monitor for broadcasting

    Window > Arrange and right at the bottom New window for (your file name)
    You can drag this across to the second monitor, and work on either window.  The results will be reflected in the other window.  You can have each window at different zoom levels, so It's a useful trick for seeing an overall result of making a local edit while zoomed in.
    Note: if your dual monitor workspace has panels open on the second screen, they will obscure the new window.  So you would need to change the workspace back to something like Essentials.

  • How to display the search result without reloading the whole page

    HI,
    I have separate fragments for Search Box to enter keyword and Search Result to display the result. Also I have different sections within the page to put these fragments. So how could I display the results without reloading the whole page.
    Also if I have next button in my search result area, how could I display the search results in next page without reloading all other sections present in our page. Please let me know if any service or idoc function present such that result could be shown in search result section without reloading whole page.
    Please let me know how to restrict page reload for every action within a page.
    Thanks,
    Ramesh
    Edited by: Ramesh_Est on May 27, 2010 3:14 AM
    Edited by: Ramesh_Est on May 27, 2010 8:39 PM

    This is default behaviour of the template of your space. You can create a new page template and than you can create a region for the search results.
    Or you can create a custom taskflow were you use the webcenter taskflows to search for the space.
    Take a look at this white paper:
    Extending webcenter spaces: http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_extend_spaces_wp.pdf
    and this one:
    Customizing site templates: http://www.oracle.com/technology/products/webcenter/pdf/owcs_ps1_site_template_wp.pdf
    Edited by: Yannick.O on 13-Apr-2010 02:32

  • 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 insert a new field without refreshing the data

    Hi,
    I have data of 3 years in a cube. I have to enhance a new field in that cube and i want the data will come from now onwards. I dont wanna have the data for the past 3 years.
    Can anyone tell me how i can load the data of that field into the cube without refreshing the cube as cube has too much data.
    Roma

    Hi Roma,
    It depend up on whether you are adding Cgharacteristic or Key figure. If you are adding key figure then no need to worry.
    Just create the new keyfigure, add this in all your data flow and activate all the objects and assign proper transformation.
    from next load you will get data for this field.
    If you are addign data the this is a bit difficult than key figure. addign characteristic is nothing but you are making changes to your cube dimensions.
    when you are changing your cube dimensions, you should delete the data before you transport the objects.
    You can try once to transport the objects with out deleting data. If it fails then you have to delete the data from Cube.
    Regards,
    Venkatesh.

  • 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.

  • 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

  • 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>

  • I would like to see the results divided in more pages

    Hi,
    I've done a search web application (whit JSP).
    After a search I would like to see the results divided in more pages with an index pages [ 1 2 3 4 5 6 ...] (like forum's page).
    How can I do?
    thank's,
    Marco

    My code is...
    <%
    articoli.find();
    if (articoli.oArticlesList!=null && articoli.oArticlesList.length!=0) {%>
    <hr noshade="noshade" align="center" size="1"></hr>
    Search Results...</br></br></br>
    <% for (int i=0; i<articoli.oArticlesList.length; i++) {%>
    <%=(i+1)%>)<a href="corpo.jsp?title=<%=articoli.oArticlesList[i.sTitolo%">"><b><%=articoli.oArticlesList.sTitolo%></b></a></br>
     Abstract: <em><%=articoli.oArticlesList[i].sOcchiello%></em></br>
    <%articoli.setRiferimento(articoli.oArticlesList[i].sTitolo);%>
    <%articoli.getReferenceNum();%>
    Referenced <%=articoli.oReferenceList.length%> times</br></br>
    <% }
    } else {%>
    No match found!
    <%}%>
    when the results are displayed I see them only in a page.
    I want to see them divided in more pages, like a search engine or this forum results ( pages [1,2,3,...] ) </a>

  • Unable to open Power BI Sites - Error: We were unable to load the Site. Refresh the page to try again

    Power BI Sites Error
    We were unable to load the Site. Refresh the page to try again
    When opening Power BI Sites with internet explorer, in certain security configurations you may run into the above error. While we are looking into resolving this, please see the following workaround:
    From the Tools menu, select internet options.
    On the security tab uncheck the "Enable Protected Mode" checkbox form the relevant Zone (Intranet/Internet)
    Remove all entries to *.powerbi.com from trusted sites or/and local intranet sites
    On the advanced tab, uncheck the "Enable enhanced protected mode" (if you made a change here it will require a restart of the machine)
    Restart and try again (if not changes done in the last step, just restart the browser)

    Hi
    Any further debugging tips? I upgraded from IE9 to IE11 on my Win7 machine to try get Q&A working, it broke the entire PowerBI site for me

  • Why is my internet search page gray?  I am able to search a topic, but the 'results' part of the screen is a medium gray color and it won't respond.  Any ideas?

    Why is my internet search page gray?  I am able to search a topic, but the 'results' part of the screen is a medium gray color and it won't respond.  Any ideas?

    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • After upgrading 3.6.7, in "google image search" all the results appears in one page, I just need to go back to the previous way of search : page after page.......??

    After upgrading 3.6.7, in "google image search" all the results appears in one page, I just need to go back to the previous way of search : page after page.......??
    where can I adjust this option ?? I tried in IE, the search way is normal as in past..
    == This happened ==
    Every time Firefox opened

    I believe this to be a browser issue, not a google search results issue, and here is why:
    having updated Firefox only yesterday, I visited google images searching for pancakes.... interestingly, I have the NEW image results (yuck) on Firefox 3.6.8, I have the OLD image results on IE8 and Opera 10.53.
    When I use the 'switch to basic version' in Firefox 3.6.8, indeed it DOES revert to the new format next time I image search (in Firefox).
    For those of us who prefer the OLD image results page, I guess we will just have to switch browsers for google image search.
    Now I'm off to research how to get rid of the UGLY FFox sidebar.

  • Display the current item in the list without advancing the iteration using

    This is my directions.
    Display the current item in the list without advancing the iteration using only iterator methods.
    I can't seem to figure this one out when the only methods available are hasNext();, next();, hasPrevious();, previous();, add();, remove();. and set();, and nextIndex();. Can someone please give me advice on this one?
    Thanks a bunch!!!!

    After thinking briefly about an ugly megillah that would detect whether or not you've ever called Iterator.next(), which is what is required for a bulletproof solution, I've decided after looking at the documenation that in fact the problem is not valid.
    It's as simple as this: the Javadoc says 'a ListIterator has no current element'.
    Tell your professor.

  • UPDATE single ROW from DATAGRID without refreshing the entire ItemsSource

    Hello there,
       I have a simple datagrid that has an ItemsSource of ObjectQuery<DbDataRecord>.
       Let's say I want to refresh a single row from the datagrid, (Because a specific item i know has been changed) without refreshing the entire ItemsSource because the source query is quite big.
    Any ideas?
    Thanks.
    -- Jorge_M_P

    Whilst you could raise property changed on every field in an item, that would of course mean implementing inotifypropertychanged on a wrapper object, then iterating all of those properties.
    An observablecollection implements the INotifyCollectionChanged interface.
    Amongst the possibilities for changes which that notifies are this one:
    https://msdn.microsoft.com/en-us/library/ms653207(v=vs.110).aspx
    Which notifies of a single item change.
    I usually wrap my entity framework objects.
    Sometimes I wrap all the properties so I can do change tracking in the viewmodel.
    This is a technique similar to the one I use in this sample:
    https://gallery.technet.microsoft.com/WPF-Highlight-Changed-a77976d4
    Which wraps plain classes - but the principle is the same.
    And
    I wrap the object and expose that, as I do in this:
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    Note that because I wrap the same objects returned from EF, there is very little overhead in using an observable collection there.
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

Maybe you are looking for

  • Error While Activating the Table

    i have created a table name ZEMPLOY11 in ABAP Dictionary containing fields Client [NUM] Carieer [NUM] Firstname [CHAR] and Surname [CHAR] and save it . when i activated this table it shows and error Mesage "Errors occurred during activation". kindly

  • The app advanced cinema doesn't work

    This app I downloaded worked good for free movies. I paid ten dollars for the movies you can watch only if you pay. Every time I select a movie it sends me to IMBD and I can't watch the movie. The app is called Advanced cinema

  • What are the advantages of using CACHE and NOCACHE Hint

    What are the advantages of using CACHE and NOCACHE Hint & difference of them.I saw one of oracle.sql script have CACHE & oracle rac script include NOCACHE .Why is that

  • Mount a database on 2 servers

    Hello, I need to know if the below scenario is applicable. I installed Oracle Software on 2 servers. I created an Oracle database on Server A where all the it is data (redo logs, control file, spfile ....) is under /Oracle/oradata. My question if I c

  • IPrint drivers not overriding older driver on client

    Hi Using iPrint client (v540) and HP printers. We installed printers at image time using a command line. Printers were giving problems (spooler crashing), so we wanted to change to UPD. So, we modified the drivers on the IPP servers to be UPD. I then