[Solved]ADF Page Scrolling with Javascript

Hi All,
In one of our application pages, when user closes a pop dialog it will create bunch of table lines at the bottom of the parent page, but after page refreshes it is going back to the top, so user having to scroll down to get to the lines.
So onload of body tag, I wrote something like window.scrollTo(0, -200). I know this works in jsp page as we are using this in another application. but it doesn't in ADF.
Can anyone please help me with this?. Thanks for your help in advance
Thanks
Praveen
Message was edited by:
bpraveen

Hi All,
I actually worked around the issue, which seems to be working fine for me.
We need to scroll the page down to the line in the table that we just updated.
Each of our table row has a sequence field. So before refreshing the page I'm putting the sequence of the line in the session in backing bean method. In the page I'm getting the value back from session and setting it to value of hidden field. just before the end of body tag. I wrote some javascript to focus the line with sequence that was saved in session (which is the value of hidden field on the page). So focusing the line sequence is scrolling the page up to the line.
hope this helps.
Thanks
Praveen

Similar Messages

  • Change page attribute with JavaScript

    Hi,
    hope someone can help.
    Is it possible to change a BSP page attribute with JavaScript??
    I have a JavaScript array with some serialnumbers. After push a save button, i want to save the array data into a page attribute.
    Some ideas?
    Regards Anton

    Hi,
    The only way of passing vars from JS to page attributes is submitting them via (hidden) values in a form or via params in an URL.
    Alternatively, you can try to let JS store things in a client cookie and let the BSP read that cookie.
    I didn't try that out yet though.
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • Why has page scrolling with touchpad stopped after upgrade?

    I use an Acer Aspire 7540 laptop. Page scrolling with the touch bar seems to have stopped after I upgraded to the latest version of Firefox.

    http://www.bulletsandbones.com/GB/GBFAQ.html#scrolltimeline
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Call an applet in other page html with javascript

    Hi
    I found many exemples with javascript, to call applet method in the same html page, but never cross pages
    There is a way to call with javascript an applet in other window/page?
    Thanks

    By other WORKSPACE do you mean another location (as defined in dads.conf)?<br><br>Either way, you just have to make the url relative or just hard code the entire path. If location 1 is pls/htmldb and location 2 is pls/htmldb_two then all you need to do is:<br><br>
    owa_util.redirect_url( '/pls/htmldb_two/f?p=TLL:3:&SESSION.::::F119_TAB_CONDITION:1');<br>
    that is if I understood your question correctly...<br><br>
    chet<br>

  • ADF pages autentication with OID

    How to authenticate ADF application against Oracle Internet DIrectory. We are using Oracle Application Server 10.1.2.0.2 and JDeveloper 10.1.2. Basically in a simple scenario, we will have a login page where the user will enter username and password. It needs to authenticate against Oracle Internet Directory and if successful, it needs to forward to the next ADF page.
    Thanks

    hi bala
    Maybe you can use the example code in CustomAuthorizationInUIStuff-v0.02.zip that I have recently posted in Re: ADF Faces: on page refresh, property is null. Why?, to work with together with the documentation.
    It has been created using JDeveloper 10.1.3.3.0, so I'm not sure how it translates back to JDeveloper 10.1.2 you refer to.
    success
    Jan Vervecken

  • Making the Webcenter ADF pages compatible with Mobile browser

    Hi,
    I'm trying to make the already developed ADF pages compatible to Mobile Browser (like blackberry etc).
    I have tried with the way what oracle ADF specification says like have to create a Fusion proj then have to add a new project into that and develope the mobile browser pages. In this way, it is working absolutely fine. But the problem is, i have already developed an application which uses lot of web center stuff and we have created so many pages in the application. Making this pages compatible to Mobile browser will take hell of effort.
    Is there anyway that these pages can be made compatible to mobile browser (like blackberry etc).
    Suggestions and Help is highly appreciated.
    Thanks in advance.
    Mahipal
    Thanks,
    Mahipal

    Hi Wiebke,
    You need to change the property Supported User Agents for all objects you need to access with MS Mobile IE. The procedure is the same as enabling your portal to be indexed by Web Search Engines for external facing portals, which is described here: http://help.sap.com/saphelp_nw04s/helpdata/en/44/ccf6bf687f3b9ae10000000a1553f6/frameset.htm.
    This will technically allow all browsers to access the portal. Note that SAP does not support them, and especially in the case of mobile browsers, you may have issues regarding screen size and scripts (maybe fix this by creating a custom framework page+custom navigation iviews?).
    Regards,
    Johan

  • Retaining BSP page chages with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design = "DESIGN2002+DESIGN2003"
    sessionManagement = "TRUE"
    controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
    disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a parameter to setTimeout

    duplicate post locked.
    Raja

  • Retaining BSP Page values with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design            = "DESIGN2002+DESIGN2003"
                   sessionManagement = "TRUE"
                   controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
                  disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a  parameter to setTimeout
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:32 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:34 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:35 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:37 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:38 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:39 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:44 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:46 AM

    If the BSP page is refrehed, all the user input it sent back to the server. If you don't do anything special, the input is lost and not sent back to the client again. You can go to your controller class' DO_HANDLE_DATA to read the user input, and store it in the controller class to send it back to the client.
    If you don't use controller classes, the equivalent would be onInputProcessing. A more advanced alternative would be to use MVC model binding, which would do most of the stuff automatically for you.

  • No Two Finger Page Scrolling with Firefox

    Just downloaded OSX Lion and cannot scroll between web pages using Firefox. Used to work with three fingers but now three fingers switches between apps in Mission Control. I can scroll a page up/down in a window with two fingers as before. Is this a bug in Firefox?

    Works ok for me in iTunes 12.0.1.26 and OS X 10.10.1, and it's always worked in previous versions of iTunes and OS X as well. Does 2-fingered scrolling work in other programs e.g. Safari ? If it doesn't then you may be better off asking in the relevant Mac forum on here for the Mac that you are using, if it does then possibly the iTunes For Mac forum

  • Page scrolling with keyboard not working

    Scrolling not working using keyboard. Page Up / Page Down, Arrow Keys - Up, Down, Left & Right - keys do not work.
    Scrolling is possible only by using the scroll bar.

    hey rmurthy, please press f7 in order to switch off caret browsing mode, then the arrow keys should work as known before.

  • Hide Page Controls on Page Load with JavaScript

    Good Morning, I am trying to use a peice of code that I found on another thread:
    HTML Header
    <script language="JavaScript1.1" type="text/javascript">
    function setDisabled(PageItem) {
    document.getElementById(PageItem).style.visibility = "hidden"
    </script>
    HTML Body Attribute
    onLoad="javascript:setDisabled('P36_COMMS1_0');
    The code works if I change the "onLoad" to "onClick" and click the control. But when I use it as written, it doesn't trigger when the page loads. Does anyone have any ideas?
    Here is the original thread: http://forums.oracle.com/forums/thread.jspa?messageID=2760790&#2760790, but the thread didn't really relate to my question.
    Donald

    Hi Donald,
    As the code is within a function block it is has to be called by something when the page loads.
    The simplest method would to be ensure that you have a piece of javascript at the bottom of the page (ie, underneath the function and the field it refers to):
    &lt;script type="text/javascript"&gt;
    setDisabled('itemname');
    &lt;/script&gt;When the browser loads this piece, because you haven't wrapped it within a function block, the code is executed immediately (hence needing to be loaded after the function and the field).
    Andy

  • I'm having problems with controlling page scrolling with my trackpad in iTunes 11.0.4

    When I do upward or downward swipes in my "Music" section in particular, my list continues to scroll and scroll even after tapping to stop - never used to do this. It even starts getting away from me when I'm creeping up or down the list. It doesn't do this in my podcasts list which is much shorter - I've got thousands of music files and only hundreds of podcast files. This is making navigation through my music list very difficult and frustrating.
    OSX 10.6.8
    Model Name:
    iMac
      Model Identifier:
    iMac8,1
      Processor Name:
    Intel Core 2 Duo
      Processor Speed:
    2.66 GHz
      Number Of Processors:
    1
      Total Number Of Cores:
    2
      L2 Cache:
    6 MB
      Memory:
    4 GB
      Bus Speed:
    1.07 GHz
      Boot ROM Version:
    IM81.00C1.B00
      SMC Version (system):
    1.29f1
      Serial Number (system):
      Hardware UUID:

    Have you try the same code on a different clean machine (system.data.dll failing, it might be .net framework mismatch)?
    Where exactly is the code failing (which line is throwing the exception?)
    It is only failing with a blob?
    Arnold

  • Is this a bug for using DIV tag in adf page?

    I'm using the version 11.1.1.2.0. And when I write the adf page code with empty content in div tag like this :
    <div id="ex"></div>
    <othertags>123</othertags>Then the code in randered page :
    <div id="ex">
    <othertags>123</othertags>
    </div>Bug ?
    Edited by: Derek.Jaa on 2010-4-21 上午4:00

    Hi Simon
    Thanks for you help and I can't see the tag you suggested. Maybe you should make you code between tag, replace the [] with {} .                                                                                                                                                                                                                                                                                                   

  • Calling ADF page in E-biz 11.5.10

    Hi,
    I developed a simple ADF Fuson web page using JDeveloper 11g. I would like to call this thru Oracle E-Biz 11.5.10. I was told that in E-boz 12 there is a profile option FND_EXTERNAL_ADF_URL to be set. But in 11i they are not sure what is the equivalent profile option to set. Does anybody know how to call an ADF page in E-Biz or what is the profile option similar to the one in 12i (FND_EXTERNAL_ADF_URL)? Thanks.
    Edited by: user9935659 on Jan 19, 2011 7:05 PM

    Hi,
    I am sure the ADF will be running in a different server, and you might be having a standalone URL to access your ADF page.
    Have you tried register a function in Ebiz 11i, of type "SSWA jsp function" or "Unknown Type" function and give the full URL of your ADF page?
    With regards,
    Kali.
    OSSI.

  • AAaarargh, hep with javascript in Dreamweaver Please!!!

    I am getting so frustrated - usually I can figure things out,
    but I am tearing my hair out.
    I have sliced a site up in Photoshop and now I am trying to
    put some content in which uses a java script with the site I used
    as a background.
    First: I can;t overlay the code - I just get the IMG SRC and
    no content.
    Second: If I remove the IMG SRC then my site explodes as the
    generated content pushes the slices all over the place.
    Please does anyone have any ideas. I have included my code
    below,

    One way to do this is to create two identical pages - one with Javascript and another without.  So when somebody loads a page without the javascript, he can click on the button to load the page with the javascript and it should run automatically provided the browser has been configured to run scripts.  The button effectively is a link to the page with javascript - nothing special about this. Some people deliberately block all forms of scripts but there is no solution for this as users can do whatever they think fit for them.
    Hope this gives you some ideas to think about.

Maybe you are looking for

  • How can I chane my icloud mail user name

    I Change my email for my Apple ID bit I can't change my iCloud email username  tot new apple idea user name

  • Problem downloading songs with itunes +?

    I have purchased 2 songs with new itunes + but they won't download. Anyone else have this problem? And what can I do? Toshiba   Windows XP  

  • Help!  code for specifying .vtt caption file doesn't work!

    Hi folks, I hope this is something simple..... I'm writing plain jane HTML5 code to play .mp4s on mobile devices that won't play Flash content.  I HAVE to have them accessible to the deaf and hard of hearing, so they have to be captioned.  I have the

  • My MacBook Pro version 10.6.8 won't update.

    Every time I go to software update it asks me to restart my macbook pro and have it charging. It is supposed to update the software but it just restarts normally and doesn't update. What can I do? Please help me fast.

  • How can i do it in PLD

    Hi Dear; i have a system report (by exp: sales analysis by sales employee). there is a sales invoice no column. how can i add a new column from the invoice (by exp: customer ref no) related to the invoice? regards;