Javascript not working when JSP container changed. Why?

I'm migrating from Resin (if you happen to know what it is) to Tomcat.
My web app runs fine on Tomcat, without any change in the code. What surprises me is that, javascript, which works perfectly fine while the webapp runs on Resin, seems to have problems when the webapps runs on Tomcat.
This does not seem to make sense to me: javascript is executed on the client (browser) and should have nothing to do with the JSP container.
Can someone tell me why, and how to fix this? Thanks!

see if your browser supports something like a javascript console or debugger.
e.g.:
- MS InternetExplorer shows a warning icon in the left bottom corner if there is a javascript error. doubleclicking on it shows the error type and the location (url, line, char) where the error occured.
- Mozilla supports a javascript console which shows up javascript errors or warnings.
have a look at what the browser says on your errors.
if your javascripts are hardcoded it HAS TO BE a browser (misinterpretation) or javascript error. serverside has definitively nothing to do with javascript...
greetz,
Thof

Similar Messages

  • Help! Javascript not working when object moved from one page to another!

    Hello all:
    I am new to Adobe Livecycle Designer (version 8.0). I have created a 3 page interactive pdf form with numerous objects (text fields, radio buttons, drop-down boxes, etc.), that our business wants to begin using soon.
    I am having difficulty with some of my Javascript not working with a few of my objects on page 2 of the form. Specifically, there is a drop-down box for "Country" on page 2 of my form. When the user selects, for example, "United States" from the list, I have Javascript that is supposed to change the "Currency" drop-down box rawValue to "US Dollars" accordingly (upon the change event).
    I think my Javascript syntax is proper, but I am not certain. Here is my simple Javascript associated with the "Country" drop-down box (Note: rawValue 80 = "United States" and rawValue 105 = "US Dollars"):
    form1.Page1.cmbContactInfoCountry::change: - (JavaScript, client) -
    if (this.rawValue == 80) {     
         cmbCurrency.rawValue = 105;
    This seems pretty straight forward and it WORKS when my "Country" drop-down box is moved to page 1 of the form, but it WILL NOT WORK when I move the "Country" drop-down box back to page 2 of the form (which is where it belongs).
    Does anyone have any suggestions or solutions? I have spent probably 6-8 hours racking my brain trying to figure out why it works when on one page, but it does not work when move to a different page. I am guessing that I may have corrupted something OR that I am not fully addressing the proper name of the object?
    Please help!
    Frustrated and helpless near Chicago!
    Taylor T

    Hi Jono:
    Thank you for your quick reply.I was able to obtain the full name of the cmbCurrency object using the method you taught me. That is brilliant! Great short-cut tool.
    Unfortunately, I am still having issues with getting Javasript for the cmbCountry object to work with the cmbCurrency object. I haved pasted my new Javascript below.
    JavaScript for cmbCountry object:
    //UNITED STATES
    if (this.rawValue == 1) {
              xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 1;
    else
    //CANADA
    if (this.rawValue == 2) {
              xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 2;
    I have checked the "Specify Item Values" checkbox of the cmbCurrency drop-down object and Value 1 = "US Dollars" and Value 2 = "Canadian Dollars".
    When I select "Canada" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object is changed to "US Dollars" (when it is clearly defined as "Canadian Dollars"). When I select "United States" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object stays blank for uknown reasons. Very strange.
    Since I am not able to further explain in detail on what I am experiencing, I have posted a link to my file below (I just signed up for an account at ShareFile). I would forever be indebted to you if you can help me figure this out!
    https://thomptk.sharefile.com/?cmd=d&id=07ede2fe11db4549

  • When I downloaded Lion why did my microsoft word not work, When I downloaded Lion why did my microsoft word not work

    Help!!  My Microsoft Work does not work with Lion!!  Now all my doc will not open

    Because Office 2004 is a PPC-only suite and will not work with Lion. Upgrade to Office 2011 for OS X. Or you can try the freeware suite, Libre Office, whose functionality is similar to Office 2007 for Windows.

  • Track Changes colors not working when story contains table

    Can anyone duplicate this problem/bug, or let me know if it is just my machine?
    Steps to reproduce
    Make sure your Edit > Preferences > Story Editor has non-black text colors defined for Added Text, Deleted Text, and Moved Text.
    Create document, and draw a text box
    Inside the text box, Right-click > Fill with Placeholder Text
    With the cursor in the text box, turn on Track Changes and Show Changes from the Track Changes pallette:
    Open the Story Editor with Ctrl/Cmd-Y
    Cut/paste, delete, and insert some text.
    Confirm colors appear in Story Editor as defined in step 1:
    Now insert a table anywhere in the story. For me, all non-black text coloring (bg stays fine) disappears:
    Is this an InDesign bug, or something I'm experiencing on my own machine? I've been able to duplicate the issue in InDesign CS6, InDesign CC and InCopy CC on my Win7 Pro 64-bit machine.

    I'd recommend filing a bug report here to make sure it gets reported:
    Adobe - Feature Request/Bug Report Form

  • Data table not working when jsp is in a subfolder

    In order to organize my jsps I created a few subfolders and placed my new jsps in there. The problem is that when I drag a data table onto the page it does not display correctly. Only the headers show up. Draging a datatable onto a jsp that is not in a subfolder works fine. What gives?

    There are known issues with moving the pages into subfolders as well as renaming subfolders... from release notes:
    Creating a web page in a subfolder causes a page bean to be created in a corresponding sub package in the Java Sources folder. When renaming a subfolder containing web pages, Creator might not properly update the package names of the page beans in the Java Sources directory. In addition, the
    managed-beans.xml file might contain leftover references to the old bean names.
    Workaround
    Use the code editor to change the package names of the Java page beans and delete obsolete
    references to the renamed beans in the managed-beans.xml file.
    http://developers.sun.com/prodtech/javatools/jscreator/community/forums/index.jsp
    This is one area where we know we need to do more testing - so there may be additional gotcha's we haven't identified yet.
    If you create the page initially in the subfolder, is all fine?
    v

  • It is not working when jsp is outside of the Controller(.jpf) directory

    Hello,
    I am new to Portal. I am using Weblogic 8.1SP2. The problem is when there is a general jsp I want to put it common directory. It is working fine when I run starting from individual Controller but When I put its portlet in Portal, then the action is NOT falling into its caller's Controller but into the root Controller. Is this normal ? Is there a way to have the action call back to its caller Controller ? The director structure is :
    ../portalWeb
    + flowControllers
    + common
    search.jsp
    + portlet1
    Portlet1Controller.jpf
    Portlet1Controller.portlet
    + portlet2
    Portlet2Controller.jpf
    Portlet2Controller.portlet
    Controller.jpf
    And in the search.jsp file I have javascript snippet code like :
    if ( <%= type%> == 1 ){
    document.forms0].action="startPersonSearch.do"; //Portlet1Controller action
    if ( <%= type %> == 2) {
    document.forms[0].action="startCompanySearch.do"; //Portlet2Controller action
    document.forms[0].submit();
    Please help. Any thought will be greatly appreciated.
    Christina
    Thanks in advance.

    Yes. I did try to put directory path in front of the action to tell which Controller it should go. It didn't throw exception but It acted like called directly from that Controller. It is not under portal.
    Does anyone think the approach to have the common used jsp outside the Controller feasible ?

  • Javascript not working when pdf is rendered in the browser IE9

    I have a javascript on the initialize event of a field and it works fine when doing a Preview PDF but not when i render the PDF in the browser
    if(F.Page_1.field1.rawValue == null)
               F.Page_1.field1.presence = "invisible";
               F.Page_1.field2.presence = "visible";
    Can some one pelase help?
    Thanks,
    F.Page_1.field1::initialize - (JavaScript, client)

    Hi,
    The initialize event is supported in browsers, but the issue may be if the form is saved as a Dynamic XML Form in the save-as dialog in LC Designer. Or if you using LC Enterprise Suite to render the forms at runtime, if you have set the render in LC Designer: File > Form Properties > Defaults to Dynamic XML Form:
    Changing an object's presence requires a dynamic form.
    Niall

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Javascript is not working in JSP

    Hi everybody,
    My javascript is not working in JSP.I m not able to fix this problem.Please tell where the problem in code.
    thx in advance.
    <%@page import="javax.servlet.http.*" %>
    <%@page import="java.sql.*" %>
    <html>
    <head>
    <script type="text/javascript" >
    funtion checkentries()
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)
    alert("Please fill all entries")
    else
    document.LForm.submit()
    </script>
    </head>
    <body>
    <table width=100% height=100% valign="center" align="center" border=0>
    <tr height=10% ><td>
    <%@ include file="Header.jsp" %>
    <hr>
    </td></tr>
    <tr height=1% width=100%>
    <td align=right>Register
    <hr>
    </td>
    </tr>
    <tr height=77% width=100% ><td>
    <table>
    <tr><td width=65%>
    </td>
    <td bgcolor="black" width="1" ></td>
    <td align="right" valign="top" >
    <form method="POST" action="/EIS/Home.do" name="LForm">
    User Name: <input type="text" align=right name="uname"><br>
    Password: &nbsp&nbsp&nbsp<input type="password" name="upassword"><br>
    <input type="submit" name="submit" value="Submit" onclick="checkentries()">
    </td>
    </tr>
    </table>
    </td></tr>
    <tr height=10% ><td>
    <hr>
    <%@ include file="Footer.jsp" %>
    </td></tr>
    </table>
    </body>
    </html>

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • Why is my password not working when i want to update apps?

    Please tell me why my Apple ID is not working when i want to update apps?(just the purchased apps are not working).I now have an acount that dosen't have a card entered.

    For examle i have iGO primo and my password is not working (i already reset it).

  • Why does the internet on my new macbook pro not work when my old macbook's does?

    Why does the internet on my new macbook pro not work when my old macbook's does? I'll have to turn the wifi off and back on multiple times to get the internet to continue to work on my Macbook Pro (running mountain lion but did it on lion also) when it runs fine on my old white Macbook (running lion). Is there something I can do to fix it or do I just have to deal with it?

    Here is your fix .. I have uploaded my properly calibrated profile get it here :
    http://www.megaupload.com/?d=YAJL6A9X
    And it should go to your user folder/Library/ColorSync/Profiles
    if you have one already you can rename either one ..
    and then go to system preferences - displays - color to select the profile .
    you will get rid of the blue tint while keeping correct color and gamma
    This is for the newer 2010 MBP's altho if same display was used might also give good results in the previous models as well . .

  • I have F.F 3.6 and windows 7.: 1) When i want to buy a airplane ticket and want to select 2 adults or 2 children, the draw down select, does not work in any websides,? WHY?. 2) Have FF any problems with SKYPE

    I have F.F 3.6 and windows 7.: 1) When i want to buy a airplane ticket and want to select 2 adults or 2 children, the draw down select, does not work in any websides,? WHY?. 2) Have FF any problems with SKYPE
    == This happened ==
    Not sure how often
    == After innstalling windows 7

    As a suggestion I'd put the Text_io segments into their own begin - exception - end sub-blocks within the main code. This way if Text_io does raise an exception you can catch it earlier as it may be able to recover - That is if it is a text_io exception.
    Other than that you;ll have to step through in Debug.

  • HT4993 why does my internet not work when not connected to wifi?

    why does my internet not work when not connected to wifi

    Hi farmgirl0812,
    Thanks for using Apple Support Communities.  This article has steps to try if you are unable to connect to a cellular network:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Cheers,
    - Ari

  • Why does the alarm not work when the iphone 4 is turned off

    why does the alarm not work when the iphone 4 for is  turned  off works fine when on most other phones work when off

    The only phone I've ever had that would turn on and sound the alarm is a Blackberry. So, I'd hardly say "most phones" have this function.

  • Why does the mail not work when i updated my 5s to iOs 8?

    why does the mail not work when i updated my 5s to iOs 8?

    Thank you for the reply. But can you tell me what this configuration is about and how I should do this?

Maybe you are looking for

  • On the latest version of itunes, how do I import music from my library to my iPhone?

    Please help meeeee

  • Kill Users Batch job

    Hi, Oracle 11g Windows/Unix I have a program that kill all users before doing export dump. This is the select statement that will spool to kill_user.sql select 'alter system kill session '||''''||sid||','||serial#||''';' from v$session where type='US

  • Finder icon previews noisy

    In the past week, all my Finder's icons for documents, as opposed to applications, stopped displaying properly. The problem is most noticeable for movie and image files, which have the correct preview image surrounded by a field of multicolor noise.

  • Import turtle problems

    Hi, I'm trying to run a basic turtle script. i have a folder called pps which has classes including a folder containing the turtle classes in it. i've saved the pps folder to C:\kxt101\classes my user and system variable CLASSPATH (under: control pan

  • Report 0SAPBSPL-01 puts non-funct.area finstatvers. lines to unassigned

    Hi Experts, I am struggling with the following question and not sure whether it is SAP standard behavior or I miss something. 1. Cost of Sales Accounting and NewGL are active 2. I created a financial statement version in FSE2 with functional areas as