Java Script in Templates issue

I have created a help system for our new financial reporting
system and a developer has created a template which includes Java
scripted 'Rate this page' radio buttons and a comments field in the
header. I have imported the template into my project and attached
all the topics to this template. When I preview or regenerate/view
the HTML output and click on the comments field an error is
returned.
Our developer can get this to work on his machine but not
mine (I.E security setting have been set to low but it still wont
work).
When I generate on the developers machine, we get our Java
script code in the headers but not when we generate on my machine.

Sorry - v rude of me:
Any help/suggestions would be gratefully considered

Similar Messages

  • Not only does Adobe flashplayer continue to crash on my operating system (windows 7) but now java script is having issues .... what is wrong with firefox????

    for months I have checked the forums, and seen the same issues with Adobe Flash Player ... I have uninstalled and reinstalled too many times now and am totally frustrated with Firefox,. I just get it working again and Firefox updates and then I have the same issues ... and now my java script is screwing up and it never did before .... this all came after the latest update .... is anyone else having these issues or is my operating system under attack???

    Recent crashes of certain multimedia contents (this includes Youtube videos, certain flash games and other applications) in conjunction with Firefox are most probably caused by a recent Flash 11.3 update and/or a malfunctioning Real Player browser plugin.
    In order to remedy the problem, please perform the steps mentioned in these Knowledge Base articles:
    [[Flash Plugin - Keep it up to date and troubleshoot problems]]
    [[Flash 11.3 crashes]]
    [[Flash 11.3 doesn't load video in Firefox]]
    Other, more technical information about these issues can be found under these Links:
    http://forums.adobe.com/thread/1018071?tstart=0
    http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html
    Please tell us if this helped!

  • Java Script: Form Submit issue.

    Is there a way where I can submit two forms ?
    Thats is submit 2nd form only when the first form is submitted.
    I tried this it works.
    function formSubmit(){
    document.form1.submit(); //Submit First Form
    alert(); //This will stall the execution thus form2 will not be submitted till I click on OK
    document.form2.submit();
    }But If I dont put an alert in between, only the second form is submitted.
    If I put a delay of say 3 seconds in between then it will throw a SOCKET CLOSED error in the action event triggered due to first form submit.
    Well Basically when the Alert pop's up the parent page "STALLS" and thus the form2 does not submit till I click on OK, Is there a way I can stall the browser/Parent JSP page using JAVA SCRIPT ??

    Relax people... Ok I will move my querries else where :) ..
    But whats wrong if somebody can provide me an answer ? I am sure most of you know java script , if you dont know then don't answer simple as that.
    You do know that Sun did not create JavaScript, right? So the Sun forum sites may not be the best place to look for a JavaScript forum " {code} 
    You mean to say if something is not from sun I am not supposed to ask a question on that, I agree that this is JAVA Programming forum.
    Peace,.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • CC has Java Script Plug in issues... CS5 won't let me see all my NEF files... help.

    In CC I am trying Photoshop (I currently use CS5), and it says it doesn't have the java script plug in... am I supposed to magically pluck it out of thin air to get it? I'm not a computer programmer and I am finding CC to be a maddening experience. CS5 won't let me see all the NEF files I have, and I have a client waiting on the images... RAWRRRR... How can I see this images if CS5 only shows me half of my images, and CC won't even let me open anything, not bridge, not files, nothing... help!

    Prompted to install Java SE 6 Runtime | Mac OS 10.9
    Mylenium

  • Java script browser resize issue

    i'm building a website in dreamweaver for a friend and he
    wanted the browser to resize to a specific size once the user goes
    to the site. the script i have now works fine, but then when i go
    to another page, the browser bounces out and then resizes. is there
    a script that would just keep the browser the same size without
    having to bounce out? thanks.
    and click on any of the left side nav links to see the
    browser quickly bounce out and then resize. thanks.

    How rude.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "oiruop" <[email protected]> wrote in
    message
    news:fpki5e$2f5$[email protected]..
    > i'm building a website in dreamweaver for a friend and
    he wanted the
    > browser to
    > resize to a specific size once the user goes to the
    site. the script i
    > have now
    > works fine, but then when i go to another page, the
    browser bounces out
    > and
    > then resizes. is there a script that would just keep the
    browser the same
    > size
    > without having to bounce out? thanks.
    >
    > here's the link to view the issue yourself.
    >
    http://www.ohhello.tv/index2.html
    >
    > and click on any of the left side nav links to see the
    browser quickly
    > bounce
    > out and then resize. thanks.
    >
    > <SCRIPT>
    >
    > window.resizeTo(724,1000);
    >
    > </SCRIPT>
    >
    >
    > <SCRIPT LANGUAGE="javascript">
    >
    > var width = screen.width
    >
    > var height = screen.height
    >
    > document.write("<body
    onUnload=window.resizeTo("+width+ "," +height+")>")
    >
    > </SCRIPT>
    >

  • Java Script and PHP Issue

    I am using a JS date picker and it works great all by itself. However when I link it to a  MySQL db the JS no longer works.  Here is my source code below any help would be appreciated.
    Thanks
    Joe
    <?php require_once('Connections/Runin_db.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO `time` (`Time 1`, `Time 2`) VALUES (%s, %s)",
                           GetSQLValueString($_POST['Time_1'], "text"),
                           GetSQLValueString($_POST['Time_2'], "text"));
      mysql_select_db($database_Runin_db, $Runin_db);
      $Result1 = mysql_query($insertSQL, $Runin_db) or die(mysql_error());
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <table align="center">
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Time 1:</td>
          <td><input name="Time 1" type="text" id="Time 1" value="" />
          <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"><img src="images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp" /></a></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Time 2:</td>
          <td><input name="Time 2" type="text" id="Time 2" value="" />
          <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"><img src="images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp" /></a></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"> </td>
          <td><input type="submit" value="Insert record" /></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form1" />
    </form>
    <p> </p>
    <p> </p>
    <p> </p>
    </body>
    </html>

    I would like to know how to do this process.  I would like my students to complete the module and then enter there name in the certificate line.  Then have them enter their email address so that the certificate can be emailed to them and they can print it off.  I would like to have the certificate be a PDF file so they cannot alter the name of the person who took the course.

  • Issue with Java script associated with WAD template

    Hi Experts,
    I made some changes in the Java Script in Tcode SE80. I actually downloaded it, made changes, saved it and then clicked on Upload and replace in SE80. When I opened the Web cockpit, the changes were relecting as anticipated.
    But the changes are still showing up even after reverting the changes in java scripts and uploading it again.Please let me know what needs to be done to revert the changes such that it will  ot show up in the Web Cockpit.
    I think the "Upload and replace option" worked only once in my case. Kindly suggest. Thanks
    Regards,
    Kavitha Jagannath

    I would like to know how to do this process.  I would like my students to complete the module and then enter there name in the certificate line.  Then have them enter their email address so that the certificate can be emailed to them and they can print it off.  I would like to have the certificate be a PDF file so they cannot alter the name of the person who took the course.

  • WAD Java script issue after upgrade to 7.3

    Dear all,
    We have just upgraded our system from BW 7.01 to 7.3 SP4. One of the custom web templates in the system uses java script to hide few items on every screen refresh. Post upgrade, this functionality is behaving strangely, as the hidden items automatically get 'un-hidden' on page refresh.
    Please let me know if there are any known script issues in web templates in system upgrade scenarios. Any pointers would be appreciated.
    Thanks,
    Abhishek.

    Pls check out this link
    http://www.google.co.in/url?sa=t&rct=j&q=java%20script%20issue%20after%20upgrade%20bw%20to%207.3&source=web&cd=7&sqi=2&ved=0CEsQFjAG&url=http%3A%2F%2Fcsc-studentweb.lr.edu%2Fswp%2FBerg%2Farticles%2FBIIT_2011%2FBIIT_Amsterdam%2FBIIT_2011_Berg_BW_73_upgrade_v16.pptx&ei=TT7iTtLgJ8LwrQf2oLDJAQ&usg=AFQjCNEUg1EvXM82AmBaGntD4YY7FZwHXw&cad=rja
    Pls assign points if it was useful.

  • How to  build a  Calculator in WAB Template  by using  Java Script......

    Hi ,
    I am  trying   to build a dynamic  calculator in WAD which is as  similar to one in Executive view in Cognos. The  problem i am  facing  is,  i can  able to build a normal  calculator  by using  java script  but  i am  unable  to read the  key figure  values from  the  analysis  item  on from the  data  provider  in to  by  calculator  by using  on click  function. I wanted  to get the all  the  values in to a internal excel , so  that  my calculator can read the  values from  that. can  any  one  help  me  on getting  values in to internal excel by using   java before the  executing the  web template ?...
    Thanks in advance....
    Jhon.
    Edited by: sap bw on Jul 31, 2008 5:51 PM
    Edited by: sap bw on Jul 31, 2008 5:52 PM

    I might not be understanding your question completely since you mention WAD and then Excel, but if you are asking how to get the key figure values using Javascript in WAD, you can go to the Dataprovider properties and enable 'Output Result Data'.  This will embed an XML element into the HTML output that you can then parse using standard Javascript DOM navigation.
    Hope this helps.

  • Java Script for enhancing Web Template

    Hi
    I had a Java Script Error when trying to customize WEB Template
    I had a Sales Fore Cast report in 3 different versions
    Weekly View
    Monthly View and
    Quarterly View.
    The Rows and Free Chars for all the 3 reports are same only the calculactions in the coulmns changes accordingly.
    My requirment is when user selects the query in portal.The first screen would be 3 Radio Buttons
    (User has to choose either Weekly r Monthly r Quarterly radio button) which takes to the revelevant results
    As mention in the below How to do Doc
    www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0e11be0-b925-2c10-7991-daf9122a9918
    could you please update me the required JAVA Script
    Thanks

    please update

  • Javascript/vbscript functionality (java script functions are not running) issue in Internet Explorer 10 and 11

    We have developed web portal using classic ASP and java/vb script.  We used to run it absolutely fine using Internet Explorer 8.  Now we just migrated to Internet Explorer 11.  But after that no java script functionality is working in our
    web portal.
    Our web server is configured on windows 2003 server and IIS version 6.0 and has .net Framework (Microsoft.NET\Framework\v2.0.50727).  
    Could you please suggest us that is there any workaround to this? 

    Hi,
    Have you tested this web portal in compatibility mode, Tools\Compatibility view settings? or click F12 to use the developer tool, change the the document mode and user agent string to 8, check the result.
    And under Tools\Internet Options\Security\Custom level, scroll down to "Scripting", enable "Active Scripting".
    Since you're developer of the web portal, it's recommended to post issue in IE development forum
    https://social.msdn.microsoft.com/Forums/ie/en-US/home?category=iedevelopment
    Regards
    Yolanda Zhu
    TechNet Community Support

  • Expand Collapse Feature in OBIEE 10.1.3.4 version using Java script Issue

    Hi All,
    Tried to implement this script in OBIEE 10.1.3.4, but throughs error. Can any one help me in this regards
    Steps followed
    1. Create an answers report pulling Top Relations, Sub Relationship and Customer from the dimension and sales amount from the Sales fact
    2. For Sub Relationship and Customer give the left padding as 25.
    3. Create a pivot table view make Top Relationship, Sub Relationship hidden and select show the total before and select labels only (no totals) in the pivot table.
    4.Add the image files in and the following code for Top Relationship, Sub Relationship columns select the data format to as HTML image and change it to custom text and add the following.
    @[html]<img onclick="ExpandCollapse(this)" src="res/s_oracle10/images/PropertyGroup_minus.gif">@H
    5. Add a narrative view and add the following java script.
    // Java Script
    function ExpandCollapse( el )
         // Grab the ROW that was clicked and the TABLE that contains it
         var tr = el.parentElement.parentElement;
         var tbl = tr.parentElement.parentElement;
         // Set the alternating display values for hiding/showing the row
         var sDisplay = ( el.src.indexOf( "minus" ) == -1 ) ? "" : "none";
         var sDisplayReverse = ( el.src.indexOf( "minus" ) == -1 ) ? "none" : "";
         //Switch the icon for the clicked row
         el.src = "C:/Manohar/HTMLTest/PropertyGroup_" + ( el.src.indexOf( "minus" ) == -1 ? "minus" : "plus" ) + ".gif";
         // Starting with the row below the clicked row, start checking each row
         for ( var i = tr.rowIndex + 1; i < tbl.rows.length; i++ )
              // Set the Current row indicator nad the left padding value
              var trCurrent = tbl.rows( i );
              var trCurrentLeft = trCurrent.cells(0).style.paddingLeft;
              // if the current row contains an IMG in it, it's a clickable level and we either have to stop processing,
              // or reset the icons to a + as it's being collapsed
              if ( trCurrent.cells( 0 ).firstChild && trCurrent.cells( 0 ).getElementsByTagName( "IMG" ).length )
                   // If the current row is at the same level or above in the tree, then stop processing,
                   // else reset all the signs below it, essentially collapsing all branches underneath the one that is beig collapsed.
                   if ( stripTrailing(trCurrentLeft , UOM_SIZE) <= stripTrailing(tr.cells(0).style.paddingLeft , UOM_SIZE) )
                   { break; }
                   else
                        if (el.src.indexOf( "minus" ) == -1 )
                             trCurrent.cells(0).getElementsByTagName("IMG").item(0).src = "C:/Manohar/HTMLTest/PropertyGroup_plus.gif";
              // Now, we determine if the row should be hidden or shown.
              if ( eval(stripTrailing(tr.cells(0).style.paddingLeft, UOM_SIZE)+ INDENT_SIZE) < stripTrailing(trCurrentLeft, UOM_SIZE) && el.src.indexOf( "minus" ) >0 )
                   trCurrent.style.display = sDisplayReverse;
              } else
                   trCurrent.style.display = sDisplay;
    Thanks,
    Kumaravel
    Edited by: 840515 on Feb 28, 2011 10:00 PM

    Since the SP is on connection pool (and looks like expecting a input value), that may causing for error.
    Column in the report, pass PS variable and hide it if it not required in the report.
    Pls mark if helps

  • Java script issue on screen rendering for all-11-otn4.js

    Hello,
    I am getting java error on screen rendering for all-11-otn4.js line no 12277 and 16073. The java script error I get is, *"A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in debugger, or let the script continue"*. After this page stops responding, i have to close the browser and reopen it.
    I have a table inside my screen. The table is added inside a af:panelCollection and have few toolbar buttons added inside the secondayToolbar facet. This error is commng due to the table toolbar buttons.
    When i check the java scirpt using debugger, it stops at following java script at the bold line,
    AdfUIComponent.prototype.getParent= function()
    var x147=this._parent;
    if (x147===undefined)
    var x148=this._peer;
    if (x148!=null)
    x147=x148.getComponentParent(this);
    this._parent=x147;
    return x147;
    Any idean why this could be happening and any ways to tackel it?
    - Sujay

    Hi,
    did you try with a production build. Sems to me that you use Technology Preview, which is almost 2 years old
    Frank

  • KM document iView issue (Java Script) :(

    Hi Developers,
    I have following java script to call a ICWC iView .
    <html>
    <head>
    <title>JavaScript Window Close Example </title>
    </head>
    <SCRIPT language="JavaScript1.2">
    my_window = window ;
    function closepopup()
    if (my_window != window)
               if(false == my_window.closed)
                    alert('Window already Open!');
                              else
    my_window = window.open("http://rp1118.india.rapidigm.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fVeena!2fKMDOCiview?sap-config-mode=true","mywindow","status=1,width=350,height=150");
    else
    my_window = window.open("http://rp1118.india.rapidigm.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fVeena!2fKMDOCiview?sap-config-mode=true","mywindow","status=1,width=350,height=150");
    my_window = window2 ;
    </SCRIPT>
    <body>
    <P>
    <A href="javascript: closepopup()">Open BSP</A>
    </P>
    </body>
    </html>
    I have created a KM document iView to call this HTML page in portal and assigned that iView to a role .
    Now the problem is when I click the iView for second time (when one ICWC window is already open) , it reloads the java script and it initializes the value of parameters .
    So next time when I click on the link  'Open BSP' it again opens a new ICWC window
    instead of the warning message 'Window already Open!' .
    Is there any way to acive this .
    Thanks & Regards,
    Amit Kade

    Hi Martin ,
    Thank you very much for your help , I have gone through the document for Client Data Bag API , but as you told I am not be able to clear the key value on close of child window .
    Now I have thought of a different approach and written  the following code :
    <html>
    <head>
    <title>JavaScript Window Close Example </title>
    </head>
    <script language="JavaScript">
      window.onbeforeunload = confirmExit;
      function confirmExit()
         if(false == my_window.closed && my_window != window)
        return "You have attempted to leave this page.  Please DO NOT click on the OPEN BSP tab again before closing the active BSP window as this will open new BSP window.  Are you sure you want to exit this page?";
    </script>
    <SCRIPT language="JavaScript">
    my_window = window ;
    function closepopup()
    if (my_window != window)
               if(false == my_window.closed)
                    alert('Window already Open!');
                              else
    my_window = window.open("http://rp1118.india.rapidigm.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fVeena!2fKMDOCiview?sap-config-mode=true","mywindow","status=1,width=350,height=150");
    my_window.focus();
    my_window = window2 ;
    else
    my_window = window.open("http://rp1118.india.rapidigm.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fVeena!2fKMDOCiview?sap-config-mode=true","mywindow","status=1,width=350,height=150");
    my_window.focus();
    my_window = window2 ;
    </SCRIPT>
    <body>
    <P>
    <input type = "button" onclick="javascript: closepopup()" value="Open BSP Page"></button>
    </P>
    </body>
    </html>
    Here on <b>onbeforeunload</b> event I am giving an warning message to user giving them two options , OK CANCLE .
    This is working fine but as I click on CANCLE tab the portal doesn't load the KM document iView . Instead it just says 'loading' forever.
    Am I missing something in this code . Can you please help.
    Thanks & Regards,
    Amit Kade

  • Problem with Java Script after upgrade from BW 3.5 to BI7

    Dear Colleagues,
    We're facing the issue with Java Script after upgrade of BW 3.5 to BI7.
    Just after update we checked the basic functionality and it occured that some of web templates that use Java Script don't work. They generate seelction screen, but after selection the screen becomes blank without any error messages.
    We're currently stucked since web templates weren't converted to BI7 version so they should work exactly as before the upgrade.
    We compared the Java code with other environment that was not upgraded - it's perfectly the same.
    The only explanation that comes to my mind is that some Java Script settings on the server level were changed during the upgrade but I have no idea where I can check that.
    Thanks in advance for any suggestions,
    Andrzej Bobula

    Hi Deepu,
    Thanks, it was great to read your reply and then few minutes later talk to you live on SDN Day!
    Unfortunately, http cache clean-up did not help. But there is another funny thing I found - for exactly the same 3.5 webtemplate html code returned from WebAS 3.5 was different then from 7.0.
    Unfortunately, this editor does not allow to paste complete code, even in CODE brackets, but here are main differences:
    <b>3.5</b>
       if (navigator.appName == "Microsoft Internet Explorer")
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=1&CMD=GET_TEMPLATE"
    name="Content">
    and
    <b>7.0</b>
       if (navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=8&REQUEST_NO=0&CMD=GET_TEMPLATE"
    name="Content" 0nLoad="javascript:loadTitle()">
    (I intentionaly put 0 i/o o in 0nLoad, otherwise Forum's editor does not accept the text.
    How about SAP's claim that technical upgrade from 3.x to 7.0 changes nothing?
    Regards,
    Vitaliy

Maybe you are looking for