Preventing page refresh after buttonx_action() or hyperlinkx_action()?

This is the original coade i had....
public String aboutus_action() {
String about = "blah blah blah blah"
; getApplicationBean1().setMainTXT(about);
return null;
I thought this might do it...but it stil refreshes the page. I have music playing and im trying to prevent the music to reload with the page. I tried using page fragment, but that refreshes as well......hmmm
public void aboutus_action() {
String about = "blah blah blah blah"
; getApplicationBean1().setMainTXT(about);
//return null;
}

I have a static text field bounded to the application bean which when a user clicks a html link, the static text is replaced with the correct text.
I have a small flash mp3 player that is running that is being refreshed and causes it to be reloaded. I tried using a page fragment but that gets refreshed as well. Perhaps I should just use a pop up?

Similar Messages

  • Having trouble with page refresh after targeting a spry data set from external url

    ok I have a link <a href="als.htm?row=10" (when you click
    on Insurance Agent forms button) on my index page
    http://www.nmprc.state.nm.us/index.htm
    and I finally got it to open the als page (
    http://www.nmprc.state.nm.us/als.htm)
    with row10 open.......Yeah!!!!!!!!!!!!
    but.....
    yep....with me there is always a but....
    after the page loads from clicking on the button on index,
    with row 10 active, it no longer loads correctly by itself.....I go
    to the menu and refresh the page by loading the als.htm url fresh,
    the page no longer loads right.
    var dsAgents = new Spry.Data.XMLDataSet("als.xml",
    "agents/agent/name",
    {sortOnLoad:"name",sortOrderOnLoad:"ascending"});dsAgents.setColumnType("name",
    "html");
    var params = Spry.Utils.getLocationParamsAsObject();
    //Set an observer so that when the data is loaded, we update
    the current row to the url param value
    dsAgents.addObserver({ onPostLoad: function(ds, type) {
    dsAgents.setCurrentRow(params.row); }
    });

    ok, I changed the code to the below and the page functions as
    expected but with 2 errors .......I have no idea how to fix them
    the page is
    http://www.nmprc.state.nm.us/als.htm
    one error is about the code and one is about the menubar
    var params = Spry.Utils.getLocationParamsAsObject();
    //Set an observer so that when the data is loaded, we update
    the current row to the url param value
    var defaultRowNumber = 0;
    var defaultObserver = {};
    defaultObserver.onPostLoad = function(ds, type)
    ds.disableNotifications();
    ds.setCurrentRowNumber(defaultRowNumber);
    ds.enableNotifications();
    // This is a one-shot observer. Let this notification
    complete
    // before removing it from the data set's observer list.
    setTimeout(function(){ ds.removeObserver(defaultObserver); },
    0);
    if (typeof params.row != "undefined")
    defaultRowNumber = parseInt(params.row);
    dsAgents.addObserver(defaultObserver);

  • Browser does not allow page refresh after Commit!

    Hello everyone, I am using JDeveloper 11.1.2.3.0
    I am having a big problem here. I create a simple page and insert a form, a createInsert button and a commit button for example. I run this page and everything is fine. I create a new record, fill the form fields and then commit. In this moment if I press F5 to reload the page, the browser asks me for confirmation "To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier." I don't understand why it has to repeat any action, I checked for dirty transactions after the commit operation and transactions are clean. If I move from this page to another and back to first it works fine, F5 refreshes without problem.
    If I have a table with multiple rows and I update first row for example, and then click the third row and then perform a refresh (Confirm on above message), the third row will obtain the obtain all the information of the first row...
    Does anyone know how to deal with this problem?

    Ok I found the real problem and solution to this. As I said reopening the page does not bring any problem, but only hitting F5 does. My 'submit' and 'commit' buttons had 'partialSubmit=false' which should perform a total page submit in this case. Apparently this is not "detected" by the browser when pressing F5 although submission is performed. Changing 'partialSubmit=true' to the buttons did the trick. Tung

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • How do I get the page to refresh after a certain amount of time so it jumps back to beginning of one page site? Its for an exhibition

    Hi,
    I am in an exhibition space where I need to display my Muse website offline and locally on the desktop. I am looking for a way for the website to refresh after a certain amount of time so it can go back to the beginning of the page. Can someone help? Please!

    You can try the steps mentioned here :
    http://stackoverflow.com/questions/2787679/how-to-reload-page-every-5-second
    http://stackoverflow.com/questions/17886578/refresh-part-of-page-div
    http://crunchify.com/how-to-refresh-div-content-without-reloading-page-using-jquery-and-aj ax/
    Thanks,
    Sanjit

  • Keep page position after a refresh

    Hello,
    I need a solution for the following problem regarding a J2EE web application : after a page refresh (let's say an automatic page refresh), I want the user to see the page in the same position as it was before the refresh.
    (Suppose the user is at the end of a pretty long page, and normally, after the refresh the response will give the page at its beginning.)
    I suppose some client side scripting (javascript) will solve the problem, but any help would be appreciated.
    Thanks,
    George

    Normally you can add bookmarks to the page to demarcate different sections of the page, like this:
    <a name="sec103"></a> When the page refreshes it should go back to the last bookmark that the user passed by.

  • HT4550 My safari is permanently on safe mode even after turning it of the pages refresh it goes back into safe mode how do i remove it

    My safari is permanently on safe mode even after turning it of the pages refresh it goes back into safe mode how do I remove it.

    Hold the shift key down and launch Safari.
    If not, try  suggestions made in this article.
    http://reviews.cnet.com/8301-13727_7-57393558-263/tackling-macs-that-always-boot -to-safe-mode/
    Best.

  • FF15 is preventing pages in out of focus tabs from autorefreshing. All Javascript/Java and plugins are prevented from refreshing data when tab is not displayed

    FF15 is preventing pages that contain auto refreshing html commands, Javascripts, Java applettes, and other plugins, from auto reloading or refreshing information on web pages, when the tabs than contain them go out-of-focus.
    While tab has focus (page is fully displayed) all auto refreshing/reload embedded commands/programs work correctly.
    I work with web sites, were information needs to be auto updated constantly, whether the tab is hidden or not, such as stock prices, web server monitoring, biding sites, customer support chat, etc.
    This behavior can cause severe loads in web servers with web pages that contain many data items, when all server side programs that pertain to the data being displayed have to run from scratch at the same time, when the tab is brought back in focus, since the browser issues a full reload.
    This behavior also interferes with "reloading" FireFox addons
    One should be able to stop, and/or disable this behavior, and pretty sure this problem is affecting many users, and or web sites that rely on these commands to work according to html protocols.
    Is not the function of a web browser to interfere in any way with html embedded commands or programs, by stoping functionality, or preventing connection to the internet

    No need to remove Adblock Plus, disabling it should help you discover whether ABP is causing that problem or not.
    I saw a mention of that problem at MozillaZine fora a few days ago, but don't recall the details. But IIRC it has to do with toggling a setting to off.
    Adblock Plus has its own support forum.They should be able to help you get ABP adjusted to avoid that issue. <br />
    http://adblockplus.org/forum/

  • Help with retaining drop down data after page refresh

    Hello:
    Dev environment: JSP/Struts - Using DynaValidatorActionForm for ActionForm
    I have a JSP which, in a simplified version, uses two text boxes and one drop down viz. Name(text box), Country(drop down) and Country Name(text box).
    When the page is first brought up, obviously, the text boxes are empty and the drop down is at it's initial setting of "Select One" which has a value of 0.
    I enter a name, select "Other" from the drop down and click on Submit leaving the "Country Name" text box blank.
    Now, because of the validation I'm performing, if "Other" is selected, the name of the country should also be provided. In this case, obviously the validation fails and the same page is returned via "mapping.getInput()".
    Now the problem is, whatever I put in for "Name" is still retained but the drop down is reset to "Select One". This is causing confusion to the user because the error msg is misleading when it says, "Enter a country name", but in reality the user has to redo the drop down selection also.
    Anyway, is there a way I can make the drop down also retain the data it had prior to the page refresh just like the "Name" text box?
    Any help is greatly appreciated.
    Thanks.
    Here's the code from the "Action" where I do my validation check...
    -------- "Action" Code -----------------------------------------------
    if (tbi.getCountryid() == 10)
    if (tbi.getCountryName().equalsIgnoreCase(""))
    ActionErrors countryErrors = new ActionErrors();
    String errKey = "tbi.countrydata.invalid" + "." + (i+1);
    afflnErrors.add("Invalid Data", new ActionError(errKey));
    saveErrors(request, countryErrors);
    return new ActionForward (mapping.getInput());
    ------------------------------------------------------------------------------

    Are you populating that select box( from database) everytime page refreshes ?
    otherwise it should work as others.
    as a work around, here is a javascript code you can use to prepopulate a option in a select box, but you need to know what value was selected. ( may be set that value in request or session)
    call this function on load of the form.
    // list - is the name of the dropdown
    // selVal - is the value selected.
    function selectListItem(list, selVal) {
    for (i = 0; i < list.length; i++) {
            if (list.options.value == selVal) {
         list.options[i].selected = true;

  • Prevent Browser refresh on F5

    I've been ased to look at a Captivate problem.
    The published Captivate movie is a swf embedded using SWFObject (1.5 I think)
    When F5 (or other function keys) are used as shortcuts in Captivate simulations, when the user presses F5 the keypress gets bubbled up to the Browser window, and the page refreshes. I need to prevent this behaviour.
    I've tested out a version of the code found here:-
    http://www.gklein.org/tests/js/disablekey.html
    in my browser window, and it works fine while the browser window has focus, but fails to catch/prevent refresh when I press F5 when the Captivate swf has focus.
    So it looks like I need a way to prevent Flash from dispatching the F5 keypress out to the browser. How can I do this? Or is there a better way?
    Delivery is to Corporate users, locked to Internet Explorer 7.
    TIA
    Steve

    There is no easy answer for this. BEA portal is a stateful framework and HTTP wasn't meant to be. My recommendation would be get rid of the nested controller's and state wherever you can (session or pageflow variables) and actions that depend on state(e.g. previousAction currentAction etc). Your state should be part of the URL (i.e. normal REST principles)
    This is difficult if you've already implemented code.
    So if you only have these problems at specific places you might consider the redirect after post techniques (in your case The
    c. third controller's "back"-action is executed, which forwards to the second controller's "returnAction"-action, rendering a new page would become
    c. third controller's "back"-action is executed, which forwards to the second controller's "returnAction"-action going to a temporary page which then redirects to a new page. Any refresh now is not on the "back" action but on the new page redirect. This also prevents the user using the back button (but not if he hits it twice quickly :) )

  • Animated gif and page refresh problem

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

    Animated gif and page refresh problem
    Hi There,
    I'm trying to build a simple "Please wait......" screen using jsp and javascript.
    So far all is going well except that my animatate gif keeps refreshing everything the page is refresh.
    Is there a way the i can prevent the body of the page from refreshing?
    below is my sample code:
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <jsp:useBean id="StatusBean" class="com1.CandidateRelease" scope="session"/>
    <html>
    <script LANGUAGE="JavaScript">
    function refresh()
    <% if (StatusBean.isRunning()) { %>     
         //setTimeout("refresh()", 1000);
         setTimeout("location='status.jsf'", 1000);
    <% }else{%>
         window.location= "busStopAdmin.jsf";
    <%} %>
    </script>
    <head>
         <script LANGUAGE="JavaScript">     
              refresh();
         </script>     
    </head>
    <body>
         <img id="myImage" src="../img/ojp_wait.gif" alt="" width="151" height="36">
    </body>
    </html>

  • Partial page refresh is not working in APEX 4.0

    Hi All,
    I have a report region in my application,I have selected the following properties for the region,
    Pagination scheme - Row ranges X To Y (with next and previous links)
    Enable partial page refresh - yes
    Display position - bottom -right
    Their is an arrow mark link(next /previous) in the right bottom corner,when i click on that ,the region is displaying the next 15 rows, but the region is not getting refresh,the scroll bars are al went off if i click the previous/next link.
    After that i refreshed the page by clicking F5 ,scroll bar is appearing now.
    In the region header and footer i have added this code,
    <div style="overflow:auto;">
    </div>for scroll bar
    Please some body help me to fix this issue..
    Thanks & Regards,
    Ramya.
    Edited by: Ramya on Apr 15, 2012 10:42 PM

    Hi All,
    I fixed this issue.
    I used Skillbuilders modal popup plugin, to open the form page as popup when i edit the record.To implement this plugin i have already created dynamic action for edit ,create and autoclose the popup.
    In the dynamic action i changed the EVENT SCOPE from BINT To LIVE and tested the application.Now its working fine.
    I can able to edit the record after i hit the next/previous pagination link .
    Thanks ,
    Ramya.

  • Is it possible to intitate total page refresh from plugin code

    In 11.1.1.4 EMAIGC we are facing following issue: Target status is not getting refreshed after dependent components status change (Which will be done through through EM Plugin UI actions). This will status will be reflected only after manual refresh.
    From our plugin code , after the dependent component start/stop operations we wanted to call total page refresh, is there any way to handle this?
    Thanks ,
    Ramadevi

    In 11.1.1.4 EMAIGC we are facing following issue: Target status is not getting refreshed after dependent components status change (Which will be done through through EM Plugin UI actions). This will status will be reflected only after manual refresh.
    From our plugin code , after the dependent component start/stop operations we wanted to call total page refresh, is there any way to handle this?
    Thanks ,
    Ramadevi

  • SSRS 2012 report integrated with SharePoint 2013 issue :Report refreshing after some idle time

    we have SSRS 2012 report integrated with SharePoint 2013  , when we click on any toggle item after some idle time of 60 secs and try again to expand
    another toggle item then  complete report is getting refreshed and  if we are in child report it is redirecting to parent report. . we didn’t set any refreshing property at report level. I hope there will be some idle time setting at sharepoint site
    level.
    what we observed.
    1. there is no problem when we expand toggle items without any idle time.
    2. when we open the report and expand few toggles and keep idle for 60 seconds and try
    again to expand another toggle item then  complete report is getting refreshed (all toggle items are collapsing).
    3. If you keep idle for 60 minutes and if you didn’t do any action like expanding toggle
    items it is not refreshing.
    why it is happening and how to stop that complete refresh.
    Surendra Thota

    Hi Surendra,
    I have tested on my local environment and the issue can be caused by the session time out ,the time out of the report precessing, database timeout,DataSet query execution timeout and so on.
    I would like to confirm that the refresh you have mentioned is the page refresh or the report reloading?
    Please reference to the setting below to don't limit the timeout values if you got the report reloading:
    Point to a report in the library.
    Click the down arrow, and select Manage processing options.
    In Processing Time-out, select Do not time out report processing or
    Limit report processing in seconds if you want to override that value with no time-out or different time-out values.
    If you got the session timeout that refresh the page, please reference to the setting in below article:
    http://msdn.microsoft.com/en-us/library/gg492284.aspx#bkmk_session_settings_section
    Details information in the article below about the timeout setting for your reference:
    Set Processing Options (Reporting Services in SharePoint Integrated Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Event handler when using partial page refresh ?

    Hi
    I have a calendar, which uses partial page refresh. The problem is how to make javascript wait until the calendar has loaded and then do some updates on the calendar (after the user has pressed the next button that runs apex.widget.calendar.ajax_calendar('S','next');, for example ). I thought I could add "onreadystatechange" (or onload) event handler to the calendar like this: onreadystatechange="checkState()", where the function would check the state and if ready then do the updates. This doesn't work. Could somebody please tell me why not ?
    Tiina

    Hi,
    It seems that ajax calendar missing event apexafterrefresh.
    I do not know is this "bug" or just feature.
    That event would be useful to your case , if I understand correct what you looking for.
    For workaround , you can over write original function by placing this to calendar region footer
    <script>
    apex.widget.calendar.ajax_calendar=function(p_calendar_type, p_calendar_action, p_calendar_date, p_calendar_end_date){
    var l_cal_type_field = $v('p_cal_type_field_id');
    var l_cal_date_field = $v('p_cal_date_field_id');
    var l_cal_end_date_field = $v('p_cal_end_date_field_id');
    var l_cal_id = $v('p_calendar_id');
    var l_calendar_region = 'calendar' + l_cal_id;
    if ( p_calendar_type != 'C' ){
      $s(l_cal_date_field,$v('p_calendar_date'));
    }else{
      if ( $v(l_cal_date_field) == '' ) {
       $s(l_cal_date_field,$v('p_calendar_date'));
      if ( $v(l_cal_end_date_field) == '' ) {
       $s(l_cal_end_date_field,$v('p_calendar_end_date'));
    // create and apex.ajax.widget object
    var a = new apex.ajax.widget('calendar',function(){
      /* start the return function */
      if(p.readyState == 1){
       document.body.style.cursor = "wait";
      }else if(p.readyState == 2){
      }else if(p.readyState == 3){
      }else if(p.readyState == 4){
       $x(l_calendar_region).innerHTML = p.responseText ;
       $s(l_cal_date_field,$v('p_calendar_date'));
       if (p_calendar_type == 'C') $s(l_cal_end_date_field,$v('p_calendar_end_date'));
       document.body.style.cursor = "";
      /* DO HERE THINGS AFTER CALENDAR REFRESH */
      }else{return false;}
    // code for next,previous and today
    if (p_calendar_type == 'S'){
      p_calendar_type = $v('p_calendar_type');
    }else{
      $s(l_cal_type_field,p_calendar_type);
    a.ajax.addParam('p_widget_mod',p_calendar_type);
    a.ajax.addParam('p_widget_action',p_calendar_action);
    a.ajax.addParam('x01',l_cal_id);
    var lDate = (!!p_calendar_date && p_calendar_date !== '')?p_calendar_date:$v(l_cal_date_field);
    if (p_calendar_type == 'C') {
      var lendDate = (!!p_calendar_end_date && p_calendar_end_date !== '')?p_calendar_end_date:$v(l_cal_end_date_field);
    a.ajax.add(l_cal_date_field,lDate);
    if (p_calendar_type == 'C') a.ajax.add(l_cal_end_date_field,lendDate);
    a.ajax.addParam('x02',lDate);
    if (p_calendar_type == 'C') a.ajax.addParam('x05',lendDate);
    a.ajax.add(l_cal_type_field,p_calendar_type);
    a._get();
    </script>Where I have comment *"do here things after calendar refresh"*, you can hook own scripts.
    Of course this is not best way, but might help you till ajax calendar support dynamic actions fully
    Regards,
    Jari
    Edited by: jarola on Oct 20, 2010 3:11 PM

Maybe you are looking for

  • Creating file in shared folder

    I need to access a folder on a network ( say \\server1\test ). test folder is shared on \\server1 with permission only to user 'A'. Now a java program ( Simple code snippet given below ) running will not be able to access the given folder due to acce

  • YouTube widget not working in F12 preview

    Hi all, I am having some issues with the YouTube widget. Where previously it has worked in the F12 preview, it now does not. It works after publishing, but this is frustrating because I need to do a lot of fine tuning. Any suggestions? Thanks Mike

  • TIFF images in Flash

    I have to load a TIFF and BMP images into an Image Editor I'm currently developing from an external link. Is there any way to do this? I'm getting pretty desperate and I have no clue of how to do it. Thanks, Horea

  • DKU-2 Driver Removal Problem

    Sir, Madame, Comrade I cannot install PC Suite 6.83 over the 6.6 version due to the system's inability to uninstall the DKU-2 cable driver. I have tried several times, but this is all the same. The PC Suite installation process aborts, and the messag

  • Power Source Help

    My Kt333 Ultra is doing fine. Excelent Mobo. Since installed PCAlert, randomly get warnings because of 12 v. limit beeing surpassed to 13.1 v. No problem with temp. Was wondering if is possible to put a resist. in 12 v. out line to assure the 12 v li