Javascript alert in Web Planning - timing when it pops up?

Hi all,
Javascript alerts such as
alert('Layout not available, check your header combinations?')
are easy to set up using the text component (html=true) in the web interface builder.
My problem is that when using 'Tabs' (tab component), if you navigate between the tabs and your alert condition is activated, then the alert appears BEFORE the rest of the screen is rendered.
Normally, the use of the 'onload' html statement in the <body> tag allows one to ensure some event only happens AFTER the entire page is downloaded/rendered into the web, but, because of the nature of our web BSP's used for planning web interfaces, it is really difficult to influence this html attribute.....!!
In simple words, on navigation from one tab to another, does anyone out there know how to make my popups only popup AFTER all images have been rendered into the web page.....rather than BEFORE......??
My guess is not one of you even know what I am talking about, eh?
Many regards,
Rael

Rael, there was a lot of requirements through my personal experience, which cannot be accomplished fully in WIB. And very often these requirements were very critical to client.
So just all web-planning applications, that I did, were extended through se80.
And this is quite normal approach, because even SAP itself recommends development of own planning interfaces in case of complex requirements to user interface.
>because the changes can be lost
The necessary additions: buttons, layouts and so on can be made manually in se80 at any time later.

Similar Messages

  • Javascript alert when showing all rows of a huge table ( 2000 rows)

    i've got this problem. I need to show all the rows of a table, i'm using ADF 10.1.3.4.
    What have i done so far?first of all i created a command link
    <af:commandLink shortDesc="Mostra Tutto" id="showAll"
    disabled="#{bindings.findAllVwEntePrmzRefrIter.estimatedRowCount == 0}"
    action="#{backing_editReferenza.onShowAll}"
    />
    In the backing bean i set the rangeSize of the table to -1
    public String onShowAll() {
    Object objShowAll = getSession().getAttribute("showAll");
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueBinding vb = fc.getApplication().createValueBinding("#{bindings.findAllVwEntePrmzRefrIter}");
    DCIteratorBinding dc = (DCIteratorBinding)vb.getValue(fc);
    int oldRangeSize = dc.getRangeSize();
    dc.setRangeSize(-1);
    int rangeSize = dc.getAllRowsInRange().length;
    dc.setRangeSize(oldRangeSize);
    if ("Y".equals(objShowAll)) {
    getSession().removeAttribute("showAll");
    Integer oldRange =
    (Integer)getSession().getAttribute("oldRangeSize");
    getSession().removeAttribute("oldRangeSize");
    getTable1().setRows(oldRange);
    } else {
    getSession().setAttribute("showAll", "Y");
    getSession().setAttribute("oldRangeSize", oldRangeSize);
    getTable1().setRows(rangeSize);
    return "";
    // AdfFacesContext.getCurrentInstance().addPartialTarget(getTable1());
    Everything runs smoothly, but i have a problem if the table has lots of rows: i get a javascript warning that a script has been running for too long. (The alert goes: "Stop the execution of the script?" the usual javascript alert you get when a script runs for too long)
    What i want to achievt is that, if the table contains a lot of rows, the page takes a lot of time to load, but with no javascript involved (it's just a normal slow page).
    It seems that in some way the rows of the table are fetched by javascript and since the call is synchronous, it trigger the alert.
    This is how i declared the method iterator
    <methodIterator id="findAllVwEntePrmzRefrIter"
    Binds="findAllVwEntePrmzRefr.result"
    DataControl="FePrmzSLESSEJBLocal" RangeSize="10"
    BeanClass="it.ws.sma.prmz.ejb.model.VwEntePrmzRefr"
    Refresh="deferred"
    />
    and this is how i declared the table
    <af:table value="#{bindings.findAllVwEntePrmzRefr1.collectionModel}"
    var="row" styleClass="tableRefr #{backing_editReferenza.tableReferenzeStyleClass}"
    rows="#{bindings.findAllVwEntePrmzRefr1.rangeSize}"
    first="#{bindings.findAllVwEntePrmzRefr1.rangeStart}"
    emptyText="#{bindings.findAllVwEntePrmzRefr1.viewable ? 'Nessuna referenza trovata' : 'Accesso negato'}"
    binding="#{backing_editReferenza.table1}" id="table1"
    banding="row" bandingInterval="1"
    partialTriggers="btnEliminaRefr btnSvuotaPromo btnRemove btnAdd insVeloce">
    has anyone an idea onwhat could i do to have the table load all the rows from the server but withouth the alert?

    Sorry i haven't explain it well...
    the app is used to replicate entire databases, or agrupations of tables, from one database to another and it will have to be vendor independent... I'm trying with DB2, Oracle and MySQL. Later i will test it with more.
    Then I couldn't use vendor dependent SQL neither configuration parameters. Also I prefer to make the import logging the actions: for restoring purposes; maybe the user will have the option but defaults to the ohter.
    I'm thinking about some "strange" query SQL Stardard, like delete from table where (select .... using some kind of counter....

  • When my Firefox language settings are fr_fr or fr_ca Firefox does not display the e with acute accent character correctly when it is displayed in a javascript alert box. However, it does display it correctly when my language settings are just fr. Please t

    Firefox does not display the e with acute accent character correctly from a javascript alert box when my browser language settings are fr_ca or fr_fr. However, it does it correctly when my browser language setting is fr. How do i get it to display e with acute accent and other iso8859 characters correctly in a javascript alert box when my browser language settings are fr_fr and fr_ca?
    == This happened ==
    Every time Firefox opened

    Use Unicode (UTF-8) for those characters.
    Then you will always be sure that they are displayed correctly.

  • Javascript alert script needed when calculation does not equal 100

    I have created a fillable form and have a total box which I've set to calulate the sum of Field1, Field2, Field3 and Field4
    which works well.
    I would like to add a javascript alert if the total amount does not add to exactly 100 to stop the user submitting the form or moving to next question.
    Any help would be greatly appreciated
    Thank you

    Hi try67,
    I have implemented successfully the following:
    event.value = ''; // clear field
    // get the values of field 1 and 2 as string
    var sField1 = this.getField("field 1").value.toString();
    var sField2 = this.getField("field 2").value.toString();
    // adjust for a field being 100 and the other is null
    if (sField1 == 100 & sField2 == '') sField2 = "0";
    if (sField2 == 100 & sField1 == '') sField1 = "0";
    // do only if field 1 and 2 are not null
    if(sField1 != '' & sField2 != '') {
    event.value = Number(sField1) + Number(sField2);
    if (event.value != 100) app.alert("Fields 1 and 2 must sum to 100!", 1, 0);
    } // end not empty
    Just wondered if you can let me know what I need to add to stop the form being submitted(email submit button) if the amount is not 100?
    So the same alert appears ("Fields 1 and 2 must sum to 100!")
    Currently if the fields exceed or are below 100, then the alert message  ("Fields 1 and 2 must sum to 100!")
    appears once and you can still tab to next field, or click on next field or submit the pdf.
    I was hoping to add validation on submitto be similar to required fields where you are alerted if not filled in and cannot submit until you imputted the correct calculation sum up to 100?

  • Date formating in web planning (calling from CRM)

    Hello gurus,
    I'm using SEM integration in CRM which is done by remote calling planning profile and showing result in classic web planning layout.
    Everything has worked fine until I had added a key figure type of date to my planning profile. Entered date is automatically converted into number by javascript (I suppose)- that means 15.08.2006 changes into 15.082.006 and because of this I can't save planned data.
    Please, can anybody help me where can I modify automatically generated html code or how to solve this problem?
    Thank you
    David

    Hi Manish,
    SOAP adapter does pass the message to XI (this message contains SOAP envelope although XI expects to get message without it), and during the mapping step i get "Runtime Exception in Message-Mapping transformatio~".
    I suppose it's because i created proxy manually. I did so because when i imported WSDL, and tried to generate proxy in CRM, i got an error message that said that proxy couldn't be generated because external definitions are only allowed in XI 3. But my XI version is 3.0! And when I generate the same proxy in my R/3 system that is installed on WAS 640, it works.
    What can I do?
    Cheers,
    Anya.

  • Is the appearance of Javascript alerts modifiable in Firefox 4.0?

    Firefox 4.0 allows users to do a lot of customizing, which is great. Does this extend to the appearance of Javascript alerts?
    Unlike Firefox 3.6, in version 4.0 when an alert pops up, the underlying web page is darkened, half opaque and half transparent. This focuses the user's attention on the alert box. Is there a way for me to change this setting to be 20% opaque, 80% transparent? That would make it easier for me to see what the alert is trying to tell me about the underlying web page.

    You can use code in [https://addons.mozilla.org/firefox/addon/stylish/ Stylish] or add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line to change the background color and the transparency.
    Some examples (first is the current default; only use one):
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    tabmodalprompt { background-color: rgba(25, 25, 25, 0.5) !important; }
    tabmodalprompt { background-color: rgba(224, 224, 224, 0.1) !important; }
    tabmodalprompt { background-color: transparent !important; }
    </nowiki></pre>
    * http://kb.mozillazine.org/Editing_configuration
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout).

    Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout). It is as if the server has decided that the client has timed out during the file upload. The default setting is 30 seconds for AcceptTimeout in the magnus.conf file. This should be ample to get the file across, even increasing this to 2 minutes just produces the same error after 2 minutes. Any help appreciated. Apologies if this is not the correct forum for this, I couldn't see one for iPlanet and Web, many thanks, Kieran.

    Hi,
    You didnt mention which version of IWS. follow these steps.
    (1)Goto Web Server Administration Server, select the server you want to manage.
    (2)Select Preference >> Perfomance Tuning.
    (3)set HTTP Persistent Connection Timeout to your choice (eg 180 sec for three minutes)
    (4) Apply changes and restart the server.
    *Setting the timeout to a lower value, however, may    prevent the transfer of large files as timeout does not refer to the time that the connection has been idle. For example, if you are using a 2400 baud modem, and the request timeout is set to 180 seconds, then the maximum file size that can be transferred before   the connection is closed is 432000 bits (2400 multiplied by 180)
    Regards
    T.Raghulan
    [email protected]

  • OBIEE 11g: Dashboard not invoking simple javascript alert

    Hi Experts,
    I'm trying to invoke one simple ALERT command with javascript in obiee 11g dashboard. The purpose is when it loads, it should print one ALERT message and also when we change something in the prompt and clicking Apply button.
    Here is code written in a text item (Checked html markup option) after prompts;
    <script language="Javascript">
    alert ("Hello");
    </script>
    The Javascript alert message is showing when the dashboard page loads, but its not coming when we click the Apply button after changing the prompts.
    Can anyone give helpful hint, how to check it and why its not showing up when we press Apply button?
    Any hint or some useful links will b highly appreciated.
    Thanks in advance.

    You just used code and I would say the default event is onload of the page, thats the reason you are able to see alert.
    Since you didnt ask or written code onClick event to show alert, its not showing.
    You need to tell to browser when to prompt alert message instead of onload.
    Hope you are more confuse about 'how to do'
    if yes, mark :)
    give some more info about your actual req. that helps any other gurus to help.
    Edited by: Srini VEERAVALLI on Mar 27, 2013 8:42 AM

  • Not able to display javascript alert message from within a pl/sql block

    Hello,
    Can anyone please help me out with this issue. I wanted to display an javascript alert message from within a pl/sql block for an update button. Below is sample code which i am using. P1_ITEM is my hidden item on the report.
    begin
    if :P1_ITEM IS NOT NULL then
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
    HTP.p ('</script>');
    end if;
    end;
    and I have made this code to be executed conditionally when request = Expression1
    Expression1: SUBMIT
    The thing is I am not able to display an alert message when the update button is clicked.
    Can anyone please help me with this one.
    Thanks,
    Orton

    varad but I also have an update statement within that block for the update button something like this i want to achieve.
    begin
    if :P1_ITEM IS NULL THEN
    update sample_tbl
    set col1 =:APP_USER,
    col2 = 'Y'
    where pk_col = ---;
    commit;
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Successfully assigned an item!'');');
    HTP.p ('</script>');
    end if;
    if :P1_ITEM IS NOT NULL then
    HTP.p ('<script type="text/javascript">');
    HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
    HTP.p ('</script>');
    end if;
    end;
    thanks,
    Orton

  • Change font size in Javascript alert.

    Hi All,
    Is there any way to change the font size in a Javascript
    alert box?

    Not that I know of.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "JED" <[email protected]> wrote in message
    news:edec72$ccv$[email protected]..
    > Hi All,
    >
    > Is there any way to change the font size in a Javascript
    alert box?
    >

  • Javascript Alert on download setup

    I just purchased Adobe Elements 6.0 for my IMac and have previously used a trial version. I have successfully downloaded the program, but when I run the setup file I get this error  "Javascript Alert: Critical errors were found in setup. Incompatible payloads already installed. See setup log file for details." I am assuming this error is because I have had a previous trial version on my computer.... I have tried deleting/uninstalling the older programs, but I don't know if I have found all of the old files, or if this is even the problem...also, my serial number is not working...I think this is also related to the old trial version... can anyone help with this???

    Hi,
    There is a known issue with installing retail version of PSE 6 on trial version. Removing files manually doesnt actually remove all the files, there are still some files which we do not directly relate but still need to be removed.
    You can follow the below link to get rid of the issue:
    http://kb2.adobe.com/cps/403/kb403796.html
    Let me know if this helps.
    Cheers,
    Ankush

  • Javascript:alert(1);

    javascript:alert(1);

    The first thing you have to do is to remove the ColdFusion conditional logic.  ColdFusion runs on the server.  JS runs on the client.
    The next thing is to call the function from an event that happens on the web page.  form onsubmit seems like a good choice.

  • Javascript alert wiping page clean - HELP

    Hi - I am using the javascript alert function in order to tell a user that information entered on a form is incorrect - however, the alert makes the page go away when all I want is to return to that page so the user can correct just that piece of information and resubmit it
    Anyone have any ideas on this? I'm scratching my head over this!!
    Thanks!
    Beth

    Hi Savitha,
    Yes, you are right, there is difference between alert and confirm. I will pose a small example, I have a page where the user / client must(!!!) enter his name, otherwise I don't allow him to go further (to my next page). Here in Javascript I will check for the name field,
    if(confirm(document.myform.field_name.value)) {
    //submit the form
    }. Here user didn't enter anything and clicks on 'OK' in confirm dialog, then I am forced to take him to the next page. So, I don't want to provide that chance to the user and decide it programatically, but prompt the user to enter the name with an alert dialog.
    Hope I am clear.
    PS:-
    I have shown a sample statement in the form of document.myform.field_name.length==0;
    'You can do all your validations there', is what my point here.

  • Javascript alert recording and testing

    I have a form on one of my recorded pages, if data in a particular field matches a certain combination of letters and numbers, a javascript alert is displayed after clicking on the submit button. However if the field is correct then the form will submit and execute the next page.
    Is there any way that I can check to find out if the dialog box has appeared and if it has go to a page later on in the script?
    Thanks in advance

    If I understand that right, if that alert pops up, the error has occurred, and the script won't continue because of the navigation failure. When the script fails, no other "next" page could possibly appear, so there is no point to save that information for later. Correct me if I am wrong.

  • Problem with javascript:alert(document.lastModified)

    After I upgraded to Firefox 6.0.1 and now today to 6.0.2, I'm unable to get any response to my using javascript:alert(document.lastModified)
    in order to get a web page date.

    A lot of websites are generated dynamically by a script (e.g. PHP or other server side script) that runs on the server and in that case you will always see the current date.

Maybe you are looking for

  • Problem viewing on-line video tutorial

    I just purchased iWork '08 and am trying to view the on-line tutorials. The audio plays, but I see no video. Can someone help me with this?

  • Supressing the "Inside this Community" + Subcommunity" + "Related Community" tabs

    I read the discussion thread on "How to hide the page links of a community on the 5.0.2 portal" and I looked at the UI Source code for "NavigationCommSectionDropDownView". And I was wondering about which portion of that code should be disabled/altere

  • Comm API and LPT addresses

    HI! I want to implement a little programe in Java. The programme looks something like this in asm: asm{ mov dx,37Ah mov al,3 out dx,al mov dx,378h mov al,3 out dx,al The main problame is that the getOutputStream() function is related to 378h (LPT's d

  • Stop losing battery from a bug

    I got a iPhone 4S and my battery keeps dying when I'm not using it like I start with 100% battery than after 1 hour it' goes to 75%.

  • Can't copy time machine folder

    Hi, I had to format the hd where I have time machine, so I copy the tm folder to a new folder in other external hard drive. Now that I format the 1st external hd I trying to copy the tm folder to the root of the formated hd, but after a long wait I g