JavaScript fails to work in JDeveloper (but works in Eclipse)

Hi all,
I'm going crazy over this. Hope someone here can help me out.
I'm in the process of migrating a JAVA web application from WebSphere to Oracle App Server 10g.
Two days ago, I ran into an issue which is driving me nut. My javascript code which works fine
in Eclipse (WebSphere) fails to work in JDeveloper !!!
I've tried to figure this out by creating some simple .jsp test pages and the same thing happens.
They work in WebSphere but don't work in JDeveloper !!!
What I'm trying to do is to use a javascript function to reassign the "action" of the current .jsp page.
In Eclipse, I click the button, the action is reassigned and the submit() function loads the new page.
In JDeveloper, the action is reassigned. HOWEVER, the OLD page is loaded!!!
I'd really appreciate any pointers. Thanks in advance.
-S.C.-
P.S. I've noticed that if I change the action to execute an html file (example: form.action = "index.html")
this will work. So, I'm thinking it has something to do with JavaServer Faces.
My sample codes:
=========================================================
one.jsp
=========================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<script language="javascript">
<!--
function doClick(source)
     var form = source;
     var formId = form.id;
     // get form id
     while (form.tagName != 'FORM')
          form = form.parentNode;
     alert("formId: " + formId);
     alert("current form action = " + form.action);
     // change action so to load two.faces
form.action = "/adis/two.faces"
alert("new action = " + form.action);
// this should load up the GRAY page (two.faces)
form.submit();
//-->
</script>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>two</title>
</head>
<body bgcolor="cyan">
<h:form id="frmone" >
<h:outputText id="txtone" value="This is form ONE"></h:outputText>
<h:outputText value="<br>" escape="false"></h:outputText>
<h:commandButton id="btnSend" value="Submit" onclick="return doClick(this)"></h:commandButton>
<h:inputHidden id="eventId" value=""/>
</h:form>
</body>
</html>
</f:view>
================================================================
two.jsp
===============================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<title>two</title>
</head>
<body bgcolor="gray">
<h:form id="frmtwo">
               <h:outputText value="This is two.jsp"></h:outputText>
               <h:outputText value="This page should appear after then action change."></h:outputText>               
</h:form>
</body>
</html>
</f:view>
Edited by: EsCee on Sep 15, 2008 6:50 AM

I've found that sometimes I have to force my browser to dump the cached version of some Javascript, and load a fresh copy from the web server. You can do that by clearing private data, or by finding the names of all the *.js files being loaded by your page (view source), typing their URLs and pressing the refresh button.
I'm thinking that maybe deployment to OAS does not reset the last modified date on these files so that the web browser doesn't know that the file has changed and it shouldn't use the cached copy.

Similar Messages

  • BPEL process fails in SOA (in UNIX), but works fine in SOA (in Windows) env

    Hello,
    BPEL process fails in SOA (in UNIX), but works fine in SOA (in Windows) environment
    Step 1: Build a asynchronous BPEL process which has no extra node. Make and deploy it in 'local windows desktop SOA' server
    The BPEL process has three nodes:
    a. client - on the left side of the swim lane
    b. receiveInput - first node in swim lane (client calls 'receiveInput')
    c. callbackClient - second and last node in the swim lane ('callbackClient' calls client)
    Step 2: Go to BPEL console and 'Initiate' the BPEL process -> 'Post XML Message'
    Step 3: Now, I can see the successfully completed BPEL instance in the BPEL console.
    Now,
    Step 4: Deploy the same BPEL process (dummy asynchronous) in the SOA server (hosted in unix box)
    Step 5: Go to BPEL console and 'Initiate' the BPEL process -> 'Post XML Message'
    Step 6: I find that the BPEL instance appears to have ended in error (on the second node i.e. callbackClient )
    With the following error message
    +<invalidVariables xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>9710</code>+
    +</part><part name="summary"><summary>Invalid xml document.+
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-complex-type.2.4.b: The content of element 'DummyBPELProcessProcessResponse' is not complete. One of '{"http://xmlns.oracle.com/DummyBPELProcess":result}' is expected.
    Please make sure that the xml document is valid against your schemas.
    +</summary>+
    +</part></invalidVariables>+
    Has anyone faced similar issue as above ?
    i.e. process works find in windows environment (local SOA), but fails in SOA server in UNIX environment
    Appreciate your help in understanding this issue.
    Thanks,
    Santhosh

    Hello,
    The fix to this issue appears to have been as follows:
    +<schema attributeFormDefault="unqualified"+
    +     elementFormDefault="qualified"+
    +     targetNamespace="http://xmlns.oracle.com/DummyBPELProcess"+
    +     xmlns="http://www.w3.org/2001/XMLSchema">+
    +     <element name="DummyBPELProcessProcessRequest">+
    +          <complexType>+
    +               <sequence>+
    +                    <element name="input" type="string"/>+
    +               </sequence>+
    +          </complexType>+
    +     </element>+
    +     <element name="DummyBPELProcessProcessResponse">+
    +          <complexType>+
    +               <sequence>+
    +                    <element name="*:result*" type="string"/>+
    +               </sequence>+
    +          </complexType>+
    +     </element>+
    +</schema>+
    In DummyBPELProcess.xsd,
    modifiying "result" to ":result" appears to have resolved the issue in SOA under unix environment.
    If anyone can explain why "result" works in SOA under windows and ":result" works in SOA under unix environment, I would really appreciate your help.
    Thanks,
    Santhosh

  • The "new" hotmail no longer works with safari, but works with firefox. Hmm.

    The "new" hotmail no longer works with safari, but works with firefox. Hmm. i find this very convenient being a microsoft product. anybody else wonder why this new version happens to not be safari compatible? does anybody know if it works on the PC version of safari? if not, i find this to be a blatant move on microsofts part to bias the safari browser (especially since its basicly new on the window platform). forcing safari/hotmail users to "have" to use another browser to access their hotmail accounts.

    I have been successfully using Hotmail and Gmail with Safari for a long time. For roughly the past month, that relationship is rocky at best. At times, one of the following actions suddenly opens Hotmail, but it is a short-lived solution:
    (a) Hotmail directly
    (b) Hotmail Home>Hotmail
    (c) Sign up to Windows Hotmail
    (d) Deletion of prescribed cookies, resetting, etc. - made no difference
    Both Firefox and Opera work fine with Hotmail - especially Opera is very fast.
    In addition, Safari and Gmail does not work with Attachments, but otherwise Gmail is OK.
    I suspect I have to wait for a Safari fix because in my case I do not wish to abandon Hotmail, and Safari is a given. I would think that Safari would want to stay competitive with the two biggies, Hotmail and Gmail, which must have large numbers of users.
    I certainly would appreciate any other suggested fixes.

  • People picker is not working for ie11 but working fine for other lower version

    i am using sharepoint 2010 and windows authentication
    recently i have updated my ie to ie11 and problem goes here.
    when i try to select from people picker, there are an unexpected error happened 
    however when i use other ie version, people picker work fine, what goes wrong?
    i have already added my system as trusted site
    if there any others thing i miss out?

    Hi,
    According to your post, my understanding is that People picker is not working for ie11 but working fine for other lower version.
    IE 11 is known to have compatibility issues on SharePoint 2010, please make sure to:
    first of all, try installing latest update for IE 11 (several compatibility issues were fixed since the first release)
    add the site to compatibility view (in IE> Tools> Compatibility view settings> type site name> add)
    add the site to trusted sites and set the zone security level to low (in IE> Internet Options> Security> trusted sites> sites>add your site there> ok> custom level> select low> reset> ok)
    You can use developer tools (f12) and set browser mode to the version that is most compatible with your environment.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • My keyboard is not working in "Pages" but works with all other applications.  Please provide resolution advice.

    My keyboard is not working in "Pages" but works with all other applications.  Please provide resolution advice.

    What version of Pages?
    There are one or two of us here who are not intimately acquainted with your particular set-up.
    Peter

  • Motion tracking is not working for videos but works for images?

    Motion tracking is not working for videos but works for images. When the videos is drop onto the tracking object the videos corner don't appear highlighted. I am working on windows 7 with version 13.1.

    ivanhoeeurope
    Are you within 30 days of purchase for the Premiere Elements 13? And, did you purchase as a download from Adobe? If so, you can
    apply for a return/refund for 13. If you purchased elsewhere, then you would be governed by the return/refund policy of the seller.
    Adobe no longer sells version 12, so you would have to find a vendor who still has it in stock and purchase it. There is no way to "downgrade"
    13 to 12.
    What you may want to do is to download and install the Premiere Elements 12 tryout from the following web site to verify that 12 Motion
    Tracking works for you; whereas 13 cannot with regard to use of video for the Motion Tracking source media.
    Adobe Photoshop Elements 12 Direct Download Adobe Photoshop Elements 12 Direct Download Links, Premiere too | ProDesignTools
    Apparently this web site does not sell the tryout. It just makes it available for use.
    Before I posted my reply to you I looked at Motion Tracking with video source media on both Premiere Elements 12/12.1 and 13/13.1 on the same Windows 7 64 bit computer.
    If any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • Extended Class doesn't work in Apps, but works in JDeveloper

    Hi,
    I extended the controller class. Tested in JDeveloper, everythings works good. I ftp the controller .class file to unix box and using personalization, updated the controller class path to the new class path file. Bounced the apache server.
    Now when I test the page, by clicking the button, nothing happens. The page remains same. What might be the issue. Any idea.
    Thanks,
    HP

    HP
    First try to check About this Page link and confirm that your page is accessing new controller.If it is accessing new only then i would suggest try to add some Logs to your extended controller like
    Debug.log(pageContext,"ControllerclassName","message " ,1);or use
    pageContext.writeDiagnostics(this,"message",2)Finally enable the FND debug as mentioned in below link
    http://oracleanil.blogspot.com/2009/04/favourite.html
    Thanks
    AJ

  • @font-face not working in FF, but working elsewhere.

    Hey, I've been trying to get @font-face working in Firefox, but it just won't work. I'm hosting the font externally and the way I'm doing it works on other browsers. This is my code:
    <body bgcolor="CA2E28" style="margin-left: 0px; margin-right: 0px;">
    <style type="text/css" media="screen, print">
    @font-face {
    font-family: "Blackout";
    src: url(woff link is here, don't want to put it here though.);
    body { font-family: "Blackout" }
    </style>
    <center>THIS SHOULD BE BLACKOUT.</center>
    </body>

    ''jscher2000 [[#answer-709096|said]]''
    <blockquote>
    Can you check to see whether Firefox is downloading the file? To do that, first open the Web Console in the lower part of the tab below your page using either:
    * Ctrl+Shift+k
    * "3-bar" menu button > Developer > Web Console
    * (menu bar) Tools > Web Developer > Web Console
    Click the "Network" button/tab along the top of the console and reload the page. Here you can see whether Firefox is requesting the file and, if so, whether it is retrieved.
    If that checks out, then click the Console tab and reload the page and watch for any error messages that might relate to the font. Anything strange?
    If the font is downloading and there are no error messages, use the Inspector tab to look at the body element and see whether the style is there and is being given effect (i.e., no line-through).
    If all that is good, you might double-check your personal settings to make sure you aren't overriding website fonts. Either:
    * "3-bar" menu button (or Edit menu) > Preferences > Content
    Click the Advanced button and make sure you have a checkmark for "Allow pages to choose their own fonts".
    If all of that is good, then... it's a mystery. Have you checked Firefox on other machines or other operating systems?
    ''For reference:'' https://developer.mozilla.org/docs/Web/CSS/@font-face
    </blockquote>
    This message came upon refreshing:
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <my font like here>. This can be fixed by moving the resource to the same domain or enabling CORS. Blackout_Midnight-webfont.woff
    And this one soon after:
    downloadable font: download failed (font-family: "Blackout" style:normal weight:normal stretch:normal src index:0): bad URI or cross-site access not allowed
    source: <my font link here>

  • Cs4 serial number doesnt work in tiger / but works in snowleopard

    HI,
    I have a G5 and a MAC BOOK pro.
    1. I bought G5 and CS2
    2. I bought the CS4 upgrade / both were running on the machine
    3. I bought MAC BOOK PRO / I unistall / deactivate / and erase CS4 from G5 and install in my MAC BOOK PRO
    4. I bought CS6 I uninstall CS4 from MACBOOK
    5. I am trying to reinstall CS4 on my G5 Tiger / it does not work / but works in MACBOOK
    So If I deactivate / uninstall and erase
    what could happen???
    Thank You very much!!!

    programs may not install or work if there's a failure of your system to meet specs (here are the cs4 program specs, System requirements | CS4, Point Products), but serial numbers don't succeed/fail based on system specs.

  • Wireless not working in linux, but works fine in windows vista

    Hello!
    I have installed Unbreakable Enterprise Linux 4 in a dual boot config. with Window Vista on a Compaq Presario laptop. After install completed I found that my on board Broadcom Wireless Adapter (Dell 1390 Mini PC card) was not recognized. I have tried installing NDISwrapper versions 1.48 and later 1.47 (after uninstalling 1.48) because everytime I got to the "modprobe ndiswrapper" received a fatal error about an unknown symbol or parameter, and on install I also encountered a "CONFIG_4KSTACKS" error as well. The good part is the light on my laptop for the wireless adapter finally came on and the driver (bcmwl5.inf) appears to be installed and the wireless adapter identified as being present, but it still doesn't show up in the network manager gui interface. So I am out of ideas if any one can give me a suggestion for a solution I would appreciate it.

    Hi there,,,,,
    I have Oracle Enterprise Linux 5 installed and Intel wifi 5100 card installed on my laptop. Wireless card does not work in Linux it works fine with Vista, I have dual boot. I have downloaded and installed the microcode for the wireless card for Linux,,,it is now active but it does not take ip address from dhcp and nor does it connect when i supply manual ip. it does not even scan for any wireless network. I have WEP enabled on my wireless network. It just says disconnected.....
    Please help me.....i have been trying to get this thing work for 3 weeks.
    thanks.

  • Page is not working in serverside but working correctly in JDEV

    Hi,
    After deploying the page which is working propely in my local machine JDEV,
    its not working same at server side. i bounced apache couple of time.
    if any one faced similar issue, please share.
    Thanks,
    Mahesh

    Pages are working fine in my loacl machine, but whn i compile pages (javacode) at server and running the pages from apps instance, pages are not working correctly. But whn I transfer the class file from local machine to server side page is working perfectly, what would be the reason.How to check the Java/JDK version
    D:\>cd jdevbin
    D:\jdevbin>cd bin
    D:\jdevbin\bin>java -version
    java version "1.3.1_01" -- Java Version on local machine
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
    On server
    [apeafin19@camoraapp10 ~]$ cd $ORACLE_HOME
    [apeafin19@camoraapp10 8.0.6]$ pwd
    /u01/oracle/eafin19ora/8.0.6
    [apeafin19@camoraapp10 8.0.6]$ cd bin
    [apeafin19@camoraapp10 bin]$ java -version
    java version "1.4.2_12" -- Java Version on server machine
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)
    [apeafin19@camoraapp10 bin]$
    You can see the difference of JDK installed on server and on our local machine which can be root cause of the issue
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Videos will not work in Firefox but work fine in windows explorer. why?

    I tried to verify my plug-in's and all are enabled. I found where was suggested to remove and reinstall Firefox but that did not fix problem either. I tried to change viewer for videos but still no luck. Not certain why Quicktime doesn't work. Note, videos when browsing will not open but everything else works fine. Videos work fine with windows Explorer, but not Firefox.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Firewire 800 port doesn't work for cameras but works for Ext drives

    I have a Power PC G5 1.8 running 10.5.8
    I have a 9 pin FW 800 port on the back that does not work for cameras, trying to capture video into Final Cut Pro. But works fine when I hook up an external hard drive to it.
    Does anyone know why that is? It used to work, now it doesn't. Any suggestions?

    Does System Profiler>Hardware>Forewire tell us anything when the Cameras are plugged in FW/800 port?
    Do the Drives have an extra FW/800 port to plug the Camera in?

  • Top Nav buttons not working after publish, but works in app. WHY?

    I have tried to find out why these buttons will not work after publishing. They work fine while in the iWeb app, but not when publishing. I do not have any objects near the top nav buttons. The first site went off without a hitch
    <www.serenitycustompools.net> the second site began the problem with the last page, the nav buttons would not work. Now this 3rd site, none of the nav buttons at top will work after publish, but will work in app. Anyone else having the same probs? None of my pages have the same names or any punctuation marks, and they are simple one word named pages.
    mini intel   Mac OS X (10.4.9)  

    They all work for me, try clearing your browser cache or using another browser.

  • Select query not working in Dev but working in QA and PRD

    Hi All,
    I have a select query with inner join which is not working in the DEV but working in QA and PRD. Anyone has any idea why is it happening, I think it to be a basis issue. Just want to confirm if anyone has any other idea.
    Thanks in advance,
    Barjinder Singh.

    Hi Barjinder Singh,
    In development you can't find the records for the table.
    In testing system only you can test even the program(report).
    If it is the DEV system you can't get the data.
    Go and see into the table wether it has records or not(in DEV system).
    It doesn't has the records in DEV system.
    Regards,
    Balakrishna.N

Maybe you are looking for

  • I lost the menu/toolbar at top of Firefox window. No 'File', 'Bookmarks' etc. How do I restore it?

    I was trying to find the Edit Options button referred to in the ADOBE READER INSTALLATIONS INSTRUCTIONS FOR MOZILLA FIREFOX, and clicked on the first toolbar listed under the Tools button I think, because I did not see what the instructions were sayi

  • OMP_SET_NUM_THREADS in a conditional statement?

    I am having problems using OMP_SET_NUM_THREADS in a conditional statement. For example a code like following will make the program to hang indefinitely after starting to execute a parallel DO loop: if(mybool.eq.0) then call OMP_SET_NUM_THREADS(iproce

  • EDI to XI

    Hi All, I am working in XI 3.0 . Please give some inputs for the below scenario.- scenario (sap->XI->legacy ) This is related to SD module . From SAP , an EDIFACT message is going to XI . From XI , the output is ioi XML format for invoices  to some t

  • Ical delete duplicates

    Is there an easy way to delete duplicates in iCal?  I have a bunch of doubles they may have come from an old back up or some where I dont know but either way I would love to get rid of them.  thanks for your time Schu

  • Help With Downloading Drama Episodes

    I want to download an episode of a korean drama onto my ipodtouch 4th generation. I already downloaded it on my laptop but I when I drag it to the itunes place, it said "itunes doesn't allow this action". How else can I download an episode onto my ip