EP6 using IE page load event

What event can I look for that will fire after the page has been formatted?
Using Internet Explorer on Enterprise Portal release 6. Code is a mix of jsp, html and javascript referencing a bean containing the table data.
I have built a script that will reconfigure an html table into one which uses scrollbars/sliders but it must run after the loader has determined the column widths. I have tested using a button and the code works fine but have not been able to find an event which fires late enough for the column widths to be set.
I tried using the htmlb table but scrolling by page method is not desirable for this application. Do not want the overhead of sending requests to the server every time the user wants to adjust position within the table.

Yes it is a problem using javascript. The problem is that the onload event fires before the html table is formatted.
It is also a problem that the htmlb table will not allow the use of slider/scrollbars.
Since the htmlb table will not allow sliders I must write my own table code to do so therefore I am looking for a method to fire off a javascript function after the page is formatted. This happens on the client side after it has received all the html. Unfortunately onload fires as soon as the complete script is received but before it has done the formatting.
I don't believe there is any example which covers this as the SAP documentation is very adamant about using the htmlb table view with buttons to page even though it states that tables should be kept short because of how cumbersome it is to page a table.
If I set visible rows to 5 but have six rows of data it requires a trip to the server and back to display the next row. If I load all rows into the table and setup a slider/scrollbar all that happens is the client scrolls the table - no server access required. Since there is no way to know exactly how many rows will be available there is no way to set the visible rows large enough. And if visible rows is set too large the page then becomes too big to fit the screen. Now add more than one table and there is really no good way to make the data visible to the user without allowing scrolling(not paging) of the table
Users are also much more accustomed to sliders versus page buttons.
If you have a script to do this please post it.

Similar Messages

  • Crash when calling Clipboard.GetContent() in Page Loaded event

    Hello
    I found a crash when using
    Clipboard.GetContent() method ,
    the steps to reproduce this are very simple:
    -create C# Windows store application ,
    -add loaded event for main page
    -call Clipboard.GetContent()  inside it(loaded event handler).
    -run the application as release Ctrl+F5 , the application will crash , note that when you run as debug no problems
    -this problem appears not on GetContent() only , it appears when you use any method of ClipBoard class indside main page loaded event.
    Is this bug? , if yes , what is the workaround for this.

    Hi shaker,
    Firstly, I have to say that, yes, I can reproduce your issue on my side.
    However, as far as I know that the Clipboard operations are used to enable users to cut, copy, and paste data, but why you just call the Clipboard.GetContent() method in the Grid_Loaded event? Could you please show me more information
    about your requirement so that I can better understand your scenario?
    Thanks.
    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Page load event

    I'm new to JSF and am looking for something equivalent to the OnPageLoad() event that exists in the ASP.Net world. Basically I want to do some initialization code, maybe prep some variables to be bound to controls, etc.
    Does JSF expose an event that allows me to do this? I've read about an OnPageLoadBegin(FacesContext) event, but I tried putting code in there and placing a breakpoint - but the breakpoint never gets triggered.
    Thanks
    David

    From what I read in those links, there is a serious limitation to JSF in the fact that there is no true "page load" event.
    Consider the following example : We have a "main page" that asks a user to log in with a username and password. But if the user has been to the site before, we will store their login ID in a cookie so that when they come back, the "login" input field will be pre-populated with their info. Pretty basic and standard stuff so here.
    So I want a "page load" event where I can get the request cookie map, do a lookup on our cookie, and Set the value on the input field with the value of the cookie.
    Without a page-load event, I don't see how this is possible.
    Any suggestions/workarounds?
    TIA
    David

  • Embedding video in a dinamic page loaded using ajax

    I've been trying to do this for some days now, and still couldnt find a solution.. this is the story:
    I need to embed a movie (.mov, mp4, m4v) in a dynamic page loaded by an ajax call, i followed the recommendations specified in apple's page so i can monitor progress, and listen DOM events:
    QuickTime and JavaScript
    on Firefox, everything works very well, i can monitor progress, listen events, etc.. etc... (this app is intended to be multi browser)
    On the contrary, IE is driving me crazy, it does not do anything.
    So to debug this i did the following (for IE):
    i tried then, creating a simple STATIC page in my computer, that loads the movie, and listens to its events, it worked good.
    Then i put that html file in a web server, and every "first time" that i open the page, it wont work at all. After a reload, it will work good.
    Then i created a simple page with an ajax call that will insert the html embedding the movie, and again it wont work in IE.
    I want to be able to listen DOM events in IE in a dynamic page
    Please help me with this.
    <Edited by Moderator>

    I've been fighting this last couple days as well.
    Somehow the dom events are not fired
    –in win explorer that is– when the movie is
    inserted after the document loaded.
    I've been trying many variation to get it to
    work and just found a hackish way:
    After you have added the movie via javascript
    use the movie.SetURL('/movie.mov') function
    and then the RegisterListener() function.
    This enabled the Dom event for me.
    Additionally you can use
    movie.SetResetPropertiesOnReload(false) to
    keep the movie properties.
    function insertMov() {
    var embtxt = QTGenerateOBJECTTextXHTML("../movies/main.mov",
    477,
    268,
    'obj#id', 'mainobjId12',
    'emb#id', 'mainembId12',
    'emb#name', 'mainembName12',
    'EnableJavaScript', 'True',
    'postdomevents', 'True',
    'autoplay', 'False',
    'controller', 'False'
    var mov_container = document.getElementById('mov_container');
    mov_container.innerHTML= embtxt;
    setTimeout('reg()',100);
    function reg(){
    document.getElementById('mainobjId12').SetResetPropertiesOnReload(false)
    document.getElementById('mainobjId12').SetURL("../movies/main.mov");
    RegisterListener('qt_canplaythrough', 'mainobjId12', 'mainembId12', aallrrtt);
    function aallrrtt(){
    alert('qt_canplaythrough');
    }

  • 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

  • How to set Lov item property (Action type,event,parameter etc) in PR when page load

    Hi gurus
    I am new to OAF, First I need to explain my scenerio.
    I need to make some field mandatory or non mandatory based on one LOV item (Pick list or message choice list).
    for this i extended the controler and apply the changes, but in this case what heppen, It will effect only when i open the list (pop list) and click on more (Available in poplist) and it will open a new form and i select value from that form. But when I open the poplist and select the value from the same list rather going to more option (it does not open new form), then there are no effect. I though the issue with refreshing when selecting value from the same list.
    To resolving this issue what i did
    1. go to page == > the same LOV
    2. Change the Client Action properties (
         Action type  = fireAction
         event          = xxevent
        submit = true.
    After doing this when i run the page from my OAF enviroement , every thing is OK. Then I transfer the Controler to Server machine and change the controller and run the same page from the server, it has the same refreshing issue, Then I thought because I did not transfer LOV such properties so this is hepening,
    Now I want to initilize such properties in Page load or what I need to do, Please advise me.
    Regards,
    Haq

    Edward,
    Thank you for the suggestion! It directly lead to my solution wherein I used CASE statements for the column in my Region SELECT such as the following:
    WHEN (:P2_GRADING_METHOD = 'CR/NC' OR scs.scs_pass_audit = 'P') AND GET_GRADE_B93 (sac.stc_final_grade, sac.stc_verified_grade) IS NULL THEN htmldb_item.select_list_from_lov (5, 'Enter Grade', 'GRADE_LOV_CRNC','onBlur="return validate_grade(this,''FW_DATE_'||ROWNUM||''')"','NO',NULL,NULL,'GRADE_'||ROWNUM)
    When the column is NULL, the Select List (LOV) contains the entry 'Enter Grade' and that is the value displayed on page load. I bypass the value 'Enter Grade' during Submit Processing where database updating occurs.
    I did not find the need to enter values for p_null_value and p_null_text since I don't believe that it would cause the 'Enter Grade' value to display on page load for null value columns but rather would enable the user to select 'Enter Grade' from the list and have a specified return value stored in htmldb_item array.
    Again, thank you for the help!

  • URL of the current portal page loaded using Javascript ?

    Hello:
    I am trying to add programmatically the url of the current
    page loaded in the portal to the 'Favorites List'. There
    is a pre-built KM iview to store your 'favorites'.
    I can extract and write to this 'favorites' using KM java
    API. But only challenge is to extract the current loaded
    page URL and title using Javascript.
    I would appreciate any help in this regard.
    Thank you very much,
    Prasad Nutalapati

    Dude i was having the exact same problem. I solved it using the SAP-provided EPCM (javascript client framework).
    Javascript Code
    var pageName = "";
    var URL = "";
    function bookmarkPage()
         /* page url */
         var fullURL = "https://<%=request.getServerName()%>/irj/portal?NavigationTarget=" + URL;
         /* IE bookmark */
         if(EPCM.getUAType() == EPCM.MSIE)
              window.external.AddFavorite(fullURL , pageName);
         else
              var msg = "Sorry. The \"Add To Favorites\" feature only works with Internet Explorer. " +
                          "The URL to this page is " + fullURL;
              alert(msg);
    /* get pagename from eventObject from subscribed event */
    function getPageObject(eventObj) {
        pageName = eventObj.dataObject.title;
        URL = eventObj.dataObject.URL;
    /* subscribe to event in pagetoolbar area */
    EPCM.subscribeEvent("urn:com.sapportals:navigation", "AddNavTargetAllowDuplicate", getPageObject);
    End of code
    Basically, what this does is that everytime a page loads, the innerpage, where the content is, raises an event using  the EPCM.raiseEvent() method. EPCM.subscribeEvent subscribes to an event called AddNavTargetAllowDuplicate which has an object holding the page information (i.e. page title and URL (ROLE://...)). Everytime that it notices an event raised, the function getPageObject gets called to go get data from the event object that is available globally in the framework.
    You should be able to put this code anywhere in any iview and it should work. Thou i have only tried putting it in the masthead. Try and if you still have questions please let me know.

  • Page not loading - Events, To-do list, Notes

    Hi,
    I am having this error of not loading events, to-do list or notes pages. It gives me following message.
    "Sorry, we're having some problems bringing you this page. It's our fault not yours, so please try again later."
    I saw similar posts regarding this on this discussions forums. Some suggested solutions were to change browser agent and clear browswer cache.
    I already tried signin into Ovi using different browsers (FF, IE, Opera and Chrome) on different computers. I still get the same error message.
    Also, when I try to sync Notes to my Nokia N82, Phones gives me an error message "System Error". Device firmware is V 30.0.019.
    Anybody else get this error? Any solutions?
    Your help will be really appreciated since I have important information on my notes.
    Thank you.

    Did the problem appear just now or have you had it since beginning?
    Are you using any specific language or charactersin your devices or are they all in english?
    For me the cache clear has always helped but as you mentioned, you have already tried that. so it sounds like there is something wrong with your account? Did you try to contact Nokia?

  • Can you make a DIV appear/fade on page load instead of the listed events?

    Does anyone know if there's a way to have a specific DIV fade
    in when the page loads? I know how to do it with a click or mouse
    over, but the behavior panel won't let me change the event to
    onLoad. It says that's an invalid event for the DIV tag. I found a
    javascript code that makes the DIV appear when the page loads and
    it work...until I tried to add other Spry behaviors. Then it
    refused to fade in. I can provide that code if it helps.
    Thanks!

    Thanks for the speedy response. But your answer went right
    over my head. I'm using Dreamweaver and a complete novice in
    javascript or coding...for now. (But I'm taking classes, so there'
    hope for me yet.)
    When you say "use SpryDOMUtils.js" is that a script I need to
    find, reference, load?
    Maybe I should post this question on the Dreamweaver since
    I'm so ignorant about coding?

  • Using a4j to load a rich:dataTable after the page loads

    I have a rich:dataTable that calls a session bean which executes an SQL query to generate the data to be displayed in the table. Something simple like:
    <rich:dataTable rowClasses="evenRow,oddRow"
    rows="30"
    value="#{Bean.items}"
    var="items">
    where Bean.getItems() performs an SQL query and returns List<Item>.
    The problem is that the query takes a long time to execute (~45 seconds) and I'd like the page to initially load while the query is being executed, displaying a spinner while it loads. Once the query is done, I'd like to update the initially empty table using ajax.
    I set up a spinner using a4j:status and it works fine after the page initially loads (using a rich:datascroller).
    However, the page will not initially load until the query completes, which is a problem because the query is so slow. What happens is the user clicks on the "List Items" tab from my site's homepage, sits there on the same page for 45 seconds with absolutely no visual indication that anything is happening, and then finally is taken to the list of items page.
    What is needed to make the dataTable load via AJAX the first time, as well as all subsequent times?
    Thanks!
    Edited by: rcrowell on Sep 8, 2008 5:42 PM

    rcrowell wrote:
    The issue isn't the PK of the table; the query is joining across many tables and aggregating data from one table in particular with millions of rows. The table has paging, but again that won't help the timinig issues due to the aggregation that must be performed on a large table.
    Surely there must be a way to get the dataTable to always load its data via ajax, and not only after the first time.Well JSF does not have AJAX built-in, so why would there be? Perhaps one of the AJAX-based frameworks has this. I imagine it wouldn't be hard to do with the existing AJAX frameworks even without a built-in component specifically for it. Trigger an AJAX action on load which rerenders a panel which will only contain the dataTable upon the rerendering.
    >
    I think I could do it by adding a 'dataTableRendered' variable to the bean and using a jsFunction to set this variable to True when the page loads, but I'm looking for a better way. (I'm also not 100% sure this would do what I want.)

  • Web pages load slowly using Safari, Firefox, and Chrome.

    Web pages are loading slowly now on my mid-2008 iMac 2.66 Ghz Intel Core 2 Duo. 
    Doesn't seem to matter if I use Safari v5.1.10, Firefox v29.0.1, or Chrome v34.0.1847.131. 
    Problem started about a week ago mostly with YouTube but now I have issues with almost all web pages loading slowly, including this one.

    Try resetting both your Intenet MODEM/Router by unplugging them, waiting 15 to 20 seconds then plugging them back in.

  • How to use Javascript to load random pages?

    I wonder if anyone knows how to use Javascript to load a list
    of links stored in the text file.
    Every address will take a line, and the Javascript will
    randomly select one of the addresses to load.
    The user will click the button "random" and access the page
    randomly selected by the script.

    Addition note:
    I forgot to say this because my computer froze......(how
    lame)
    I got the code for random accessing the links.
    But now the problem is, is there anyway to parse a text file
    into the array in Javascript?

  • Ive just learned that i can use loadjava to load jsp pages into the database.

    Ive just learned that i can use loadjava to load jsp pages into the database. How is that possible. How can someone go to my lets say, index.jsp page and actually see it if its inside the database? What authenticates it? Where would you set the parameters to tell http(apache) to look inside the db for the pages?
    Any ideas?

    Thanks for the reply. If I put the file on the database, does it have to be in a particular location? I've put it on the database server, launched sql*plus (as APPS) and ran the following:
    execute dbms_java.loadjava('-v', 'ZebraGetPrinterFromXML.class');
    PL/SQL procedure successfully completed.Then when I try to run a process that uses this I get this:
    ORA-29540: class ZebraGetPrinterFromXML does not exist

  • Firefox is loading pages very slowly, most of times saying server not found. Same pages loaded quickly in ie9. Previously FF used to load pages fast. FF version 8.0.1, windows vista & windows XP.

    firefox is loading pages very slowly, most of times saying server not found. Same pages loaded quickly in ie9. Previously FF used to load pages fast.
    FF version 8.0.1, windows vista & windows XP.
    Please help
    Generally we dont get any reply to the questions asked here!

    65kid wrote:https://bbs.archlinux.org/viewtopic.php?id=162327
    Thank you for the link, but I am not sure how this is going to help me: I am not booting straight to an X session, but prefer to log into TTY1 and have my login shell handle everything from there.
    Here is the relevant part of my .zprofile:
    if (( UID )); then
    [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec systemd --user
    fi
    As far as I understand, your method works if I enable the [email protected] template when actually booting straight to X.

  • Accordion load event does not fire when accordion and load event created dynamically using actionsript

    I cannot get the accordion load event to fire when I have
    created the accordion and load event using actionscript . Here is
    some sample code:
    createClassObject(mx.containers.Accordion, "acc",
    getNextHighestDepth());
    acc.createSegment(mx.containers.ScrollPane, "sc1", "Number
    One");
    acc.createSegment(mx.containers.ScrollPane, "sc2", "Number
    Two");
    var accLis=new Object();
    accLis.load=function(evtObj) {
    trace("load");
    accLis.change=function(evtObj) {
    trace("change");
    acc.addEventListener("load", accLis);
    acc.addEventListener("change", accLis);
    I made sure to add the ScrollPane and Accordion components
    to my library. So the load event does not fire, but the change
    event does fire. And through further testing the other events do
    not fire, including the draw event. Can anyone help? The only time
    I can get the load event to fire on an accordion is if I put an
    accordion on stage, select it and add the actionscript to the
    objects actions like shown below:
    on(load) {
    trace("load");
    on(draw) {
    trace("draw");
    Can somebody help? Unfortunately I must create all my
    components dynamically. Thank you in advance.

    I'm having this issue also...but only apparently with Internet Explorer and only on some machines...ideas?

Maybe you are looking for

  • What compression to use when Exporting HD video from final cut pro PAL setting

    Hi there I'm trying to export my HD video from Final cut Pro so that I can edit it in DVD studio Pro. I initially exported it on H.264 setting however it then gives me the message 'NTSC assets cannot be imported into PAL projects' It was edited with

  • Table to See Stock Transport Order Partners

    Hi All. What table can I see the partners defined in a Stock Transport Order? I've realized that VBPA is just for sales order documents. Thanks, Jim

  • Asset depreciation write up

    Hi We are facing one issue that while write-up of depreciation system is posting the values in ordinary depreciation ZUSNA and Ordinary depreciation on transactions NAFAB and due to this some balance in the asset values left. Scenario : APC at FY 200

  • Sony DCR-PC55 worked w/ iMovie, doesn't with iMovie HD 6.0.2

    I was able to import video from my Sony handycam - iMovie was able to see the camera, control it, and even automatically import video. I "upgraded" to iMovie HD, and now the exact same camera, docking station and firewire cable no longer works. iMovi

  • USB to Firewire Adapter

    I'm considering a MacBook Air. I have two Firewire backup hard drives and a original iPod that also uses Firewire. Is there a simple USB to Firewire adapter to enable use of these items from a MBA?