Using an iframe is causing a javascript error

Hi Folks.
I have the following issue.
I have a page with two regions in it.
One region uses an iframe to display documents stored in the database.
Another region has calls to JavaScripts which are used for item level updates.
When the iframe region displays, the javascript fails.
If I set the iframe region to Conditional Display = Never, the JavaScript runs perfectly.
More information.
As an alternative, I changed the region that displays the documents using an "iframe" to one with the region defined using "embed". This worked fine for displaying PDF files and did not affect the JavaScript. The only issue with the region defined using "embed" is that it would not work with Word/Excel files.
I need to be able to either...
a) Stop the iframe affecting the JavaScript execution
or
b) Get a region defined with "embed" to display Word or Excel files.
Any suggestions gratefully received.
Many thanks
Kind regards
Simon Gadd

OK
Found the solution.
The problem was the syntax of the iframe definition.
My iframe definition was...
<iframe src="f?p=&APP_ID.:1:&APP_SESSION.:APPLICATION_PROCESS=GET_DOCUMENT" width="800" height="1000" name="&P555_FILENAME." type="&P555_MIMETYPE." />and it should have been
<iframe src="f?p=&APP_ID.:1:&APP_SESSION.:APPLICATION_PROCESS=GET_DOCUMENT" width="800" height="1000" name="&P555_FILENAME." type="&P555_MIMETYPE."></iframe>As soon as I added the end tag
</iframe>the problem was solved.

Similar Messages

  • Skillbuilder modal page 2.0 causes a javascript error in APEX 4.2

    After installing the Skillbuilder's modal page 2.0 plugin in APEX 4.2, the following javascript error is shown.
    Line: 194
    Error: Object doesn't support this property or method
    Using IE8 debugger the following code seems to be at fault.
    function(){apex.jQuery(document).apex_modal_page({
       "transition":"fade",
       "draggable":true,
       "initialHeight":100,
       "initialWidth":300,
       "overlayOpacity":.5,
       "scrolling":true,
       "loadingImageSrc":""
    (function(){apex.da.initDaEventList();})();
    (function(){apex.da.init();})();
    The modal page work flawlessly in APEX 4.1.
    Any help will be greatly appreciated.
    Thank you,
    Del

    Check your popup page. You probably have an after-processing branch defined which will redirect to your original page. That is not necessarily bad, although i usually set it to redirect to the same page when using a popup. What will probably not work for you is the success message selector. If you defined "#success-message" as the auto-close selector, this means that the plugin will look for an element on the page in the popup for an element which matches this selector.
    - What did you define for auto-close selector
    - And on the page you redirect to after-processing of the form, how is the success message defined there
    If (IF) you have set #success-message as the auto-close selector, and the popup is not closing, then this would mean that the popup message on the page does not match this selector!

  • CSS issues....get Javascript error on click event

    Trying to finish up this navbar. Got it where my navigation works pretty much great. However, the code I expected to work when I fire a click event on the logo (represnted currently by a gray circle) causes a 'Javascript error in event handler! Event Type = element' error instead. Not sure why. I know I had an issue with one of my button references (spelling issue) but beyond that, everything seems to be in order.
    This is the code I'm using. The first five lines work right. The second series does not.
    sym.getSymbol("btnVision").$("back").css({opacity: 0})
    sym.getSymbol("btnIndustires").$("back").css({opacity: 1})
    sym.getSymbol("btnResp").$("back").css({opacity: 1})
    sym.getSymbol("btnCommunity").$("back").css({opacity: 1})
    sym.getSymbol("btnDiscovery").$("back").css({opacity: 1})
    var stage = sym.getComposition().getStage()
    stage.$("navVision").css({top: 65});
    stage.$("navIndustries").css({top: 65});
    stage.$("navResp").css({top: 65});
    stage.$("navCommunity").css({top: 65});
    stage.$("navDiscovery").css({top: 65});
    I should mentioned I tried sym.getSymbol for the bottom entries but that simply produced the same exact error. Sign.
    Anyone know what might be causing this? It doesn't seem to make sense to me. Here's the files.
    https://www.dropbox.com/s/xo90u6hvj65ix78/nav.zip

    Hi ladobeugm,
    The error message is rather cryptic, but this occurs when trying to access something not defined, as you already experienced with your misspelling.
    You should use Firebug to localize the error via step by step execution. There is a Scripts tab. In its menu, select <youProject>Actions.js. Then, define a breakpoint by clicking in the line number of statement var stage= etc. In the Spies area, you can look for the offending statement by monitoring variable values.
    Gil

  • Javascript error in interactive reports  chart - 3.1

    I created an application with the new interactive reports.
    http://apex.oracle.com/pls/otn/f?p=33003:1
    When I use the Chart option in IE I get a javascript error.
    'null' is null or not an object
    It is working fine in Firefox.
    I tried with 3 different themes and it is always giving me that javascript error on the charts. I also tried on different machines.
    Thanks
    Francis.

    Francis,
    I just tried with the exact same version of IE and didn't get any errors. Do you have version 9+ of the Flash Player? I'm not sure why an earlier version would cause a javascript error, but it's worth checking. You can check by right-clicking any Flash content and clicking "About Adobe Flash Player X..."
    - Marco

  • Javascript error when editing PCD-Objects

    Hello,
    suddenly I get a JavaScript-Error when I try to edit rules or pages within the PCD (EP6.0.2.35).
    When I use the script debugger I see an "access denied" error when the function
    window.frames["ivuFrm_page0ivu1"].document.close();
    is called. Sometimes it works though (after a server restart, the 1st edit seems to work).
    Any ideas?
    Thanks in advance,
    Reinhard

    Solved it on my own:
    We have the portal running as windows service, and therefore had "-Xrs" configured in the java parameters. According to a SAP-Note (to configure ThreadDumps) we deleted the "-Xrs"-Parameter and this seemed to have caused the JavaScript-Errors (!!!!!).
    Reinhard

  • Fix for Dreamweaver CC 2014.1 JavaScript Error With All ASPX Files

    Entire morning wasted.
    Adobe's upgrade to Dreamweaver 2014 to 2014.1 on Windows 7 Professional has broken the product across the board and it no longer opens any .aspx pages correctly.  A large number of people use .NET and now we can no longer access/use these files/pages without multiple JavaScript errors.  Particularly those that have edited the MMDocumentTypes file to make the product work in the first place since they stopped supporting the users that develop in ASP.NET.
    Every time a .aspx file is now opened, the following JavaScript error is received: "While executing translateCustomControl in ExternalRenderers.html, a JavaScript error occurred.  Click 'close' and it appears again...over and over.  Our sites are all unable to open in DW because of this.  It worked fine in earlier versions of DW, including 2014.  It's only 2014.1 that broke everything.
    The fix for this:
    1. Follow instructions on this out-of-date help file: Change, add recognized file extensions | Dreamweaver
    2. (and the part that's new): The MMDocumentTypes file is located in  C:\Users\*your username*\AppData\Roaming\Adobe\Dreamweaver CC\Configuration\DocumentTypes directory. Open that file and add aspx back to the <documenttype id="HTML"> declaration at the top.
    I am posting this issue here in hopes that some of the users won't waste most of the day trying to figure this out.
    Chris Lee

    Hi Ivan,
    I'm having that exact same problem now...in addition to that JavaScript error message coming back.  I submitted a bug report last week about this and received the following reply:
    Hi Chris,
    We would like to let you know that we able to reproduce this issue at our end. Thanks for reporting this.
    We will try to prioritize it for fixing. This might take some time. We thank you for your patience with us in this regard.
    Please let us know if you need help regarding anything else. We will be more than happy to help you.
    Thanks,
    Arindam Ghosh
    Dreamweaver Team,
    Adobe Systems
    Hopefully they can get this fixed soon, as it's ground my work in the software to a halt.
    Chris

  • Javascript Error for Dropdown: oAccessibilityHelper is Undefined

    I have developer a WebDynpro (ABAP) component that has a DropdownByKey.
    The component is embedded in two different compoents that are part of different WD aplications.
    In application A, everything works fine, but in application B, I am getting a JavaScript Error when clicking on the dropdown.
    The error message is "oAccessibilityHelper is undefined".
    What can I do? Why are the two applications behaving differently? I could find no difference so far.

    Because of Web Dynpro's closed rendering system, nothing you do should really be able to cause a JavaScript error.  Anything of a mistake should be caught and reported by the Web Dynpro layer.  So if you have a reproducable JavaScript error you should really search for support notes/open a support ticket.

  • Javascript Error in Firefox that works fine in Chrome and IE

    The source found by clicking on "More System details" to the right works fine for IE and Chrome but causes a Javascript error in Firefox, as follows:
    Error: CurrentRoleId_OnChange is not defined
    Source File: Line: 152

    -> Update Firefox to the latest version 10.0.1
    * [[Installing Firefox on Windows]]
    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[JavaScript]]
    * [[Troubleshooting extensions and themes]]
    Check and tell if its working.
    May not be related to your problem but some of your Firefox Plugins are out-dated
    * Update All your Firefox Plugins -> https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • Javascript error after last sharepoint 2013 update : unable share single list element

    After yesterday update of SharePoint 2013 using Windows update we receive a JavaScript error when we try to share a single list element. Our IE is Italian the error is "Properties or field not inizialized"
    This is the user interface "hanged" and wait ....
    The problem not exist if we share an entire list or website.
    LSo Lorenzo Soncini Trento TN - Italy

    Hi Lorenzo,
    Glad that you solved the issue and thanks for sharing, this will benefit others who have similar issue.
    Regards,
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • JavaScript error using UIXML to generate frames

    Hello all,
    I am trying to use the uix:frameBoderLayout and uix:frame elements to generate an HTML page with frames. I get a Javascript error when running the testFrame.uix in JDeveloper 9.0.3. Both MSIE and Netscape yield the same error.
    The JavaScript error is:
    JavaScript Error:
    http://20.19.205.86:8988/pssWeb-pss-context-root/testFrame.uix,
    line 1:
    _checkLoad is not defined.
    The HTML generated is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html dir="ltr" lang="en-US">
    <head>
    <title>Property Security System Application</title>
    <link rel="stylesheet" charset="UTF-8" type="text/css" href="/pssWeb-pss-context-root/cabo/styles/cache/blaf-en-netscape.css">
    </head>
    <body class="xc" style="background-color:#FFFFE1" onload="_checkLoad(event)" onunload="_checkUnload(event)">
    <script src="/pssWeb-pss-context-root/cabo/jsLibs/MarlinCore.js">
    </script>
    <frameset border="0" rows="100%,*">
    <frameset rows="*,0" onresize="if(!frames['_uixJS'].cached){location.reload();}">
    <frameset rows="null,*,null">
    <frame name="top" marginwidth="5" frameborder="0" marginheight="0" noresize src="topFrame.uix">
    <frame name="center" marginwidth="5" frameborder="0" marginheight="0" noresize src="centerFrame.uix">
    <frame name="bottom" marginwidth="5" frameborder="0" marginheight="0" noresize src="bottomFrame.uix">
    </frameset>
    <frame frameborder="0" marginwidth="0" marginheight="0" title="" name="_uixJS" noresize src="/pssWeb-pss-context-root/cabo/jsps/a.jsp?_t=jsCache">
    </frameset>
    <noframes>
    </noframes>
    </frameset>
    </body>
    </html>
    <!-- Created by Oracle UIX 2.1.7 -->
    _checkLoad is contained in the MarlinCore.js file.  That file should be in cabo/jslib/ directory.
    Two things strike me odd about the generated HTML code with relation to JavaScript. First, I expect to see JavaScript source files declared in the head portion. Second, the source files is declared after the onload call is made to the _checkLoad function.
    The third thing that I can see possibly causing the error is that the MarlinCore.js file is not visible to the server and therefore not delivered to the browser. But I am not certain where to find the files used by the embedded OC4J server.
    Is this a bug in 9.0.3?
    The uix files follow. All three framed pages (topFrame.uix, centerFrame.uix and bottomFrame.uix) display nicely in the uix preview and run nicely in the embedded OC4J.
    testFrame.uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title="Property Security System Application"/>
    </metaContainer>
    <contents>
    <body>
    <inlineStyle>
    <property name="background-color">#FFFFE1</property>
    </inlineStyle>
    <contents>
    <frameBorderLayout xmlns="http://xmlns.oracle.com/uix/ui">
    <top>
    <frame name="top" source="topFrame.uix">
    </frame>
    </top>
    <center>
    <frame name="center" source="centerFrame.uix">
    </frame>
    </center>
    <bottom>
    <frame name="bottom" source="bottomFrame.uix">
    </frame>
    </bottom>
    </frameBorderLayout>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    </page>
    topFrame.uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <pageLayout>
    <contents>
    <text text ="Top frame"></text>
    </contents>
    </pageLayout>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    center Frame.uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <pageLayout>
    <contents>
    <text text="center frame"></text>
    </contents>
    </pageLayout>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    bottomFrame.uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <pageLayout>
    <contents>
    <text text="bottom frame"></text>
    </contents>
    </pageLayout>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    Your assistance is appreciated,
    Bill

    Did you create the files with JDev 903 preview or JDEV 902? If you created with JDEV 902 and upgraded your project to
    903 you need to delete all the files in the cabo directory in your public_html directory. That should get rid of your
    javascript errors.

  • Javascript errors using Checkpoint Mobile Access VPN: Workaround needed

    Hi,
    We are currently in the process of upgrading from APEX 3.2 to 4.2.1 at our organization. We are done with fixing all applications and tests have been successful so far.
    However we are facing one issue when we use applications by passing through a web proxy called Checkpoint Mobile Access VPN. The issue never occured in APEX 3.2 when using this proxy.
    Before explaining the issue here is a quick description of how this proxy works. I first authenticate through the proxy's login page. Once authenticated, there is a list of shortcuts I can choose to access our Portal.
    From the portal, I then have links to my APEX applications (APEX authentication is done with Oracle Single-sign-on).
    The proxy modifies all URLs to something like this:
    https://my-proxy-host/axess/Web/pls/apex/f,CVPNHost=my-apex-host,CVPNProtocol=http,CVPNOrg=rel?p=10001:101:2345777452066514
    It also modifies HTML content and javascript libraries in order to work with its translated URLs (and maybe for some other reasons which I don't know). In javascript files, it replaces some functions and variables with some of its own.
    Now here is the issue. This javascript rewriting causes a syntax error to occur in desktop_all.min.js , more precisely in the code that concerns apex.security . This causes all apex and jquery functions to break.
    To investigate deeper, I removed the #APEX_JAVASCRIPT# placeholder in a template and included one by one all the uncompressed libraries that are used by desktop_all.min.js .
    This resolved the issue.
    After this I tried to include again all the same libraries but in their minified version. I then got the issue back. After searching a bit I realized that the issue is located in security.min.js .
    The minified version of the library has a syntax error but the uncompressed version works well.
    I analyzed the syntax error and it's caused by the proxy that closes a parenthesis at the wrong place. I've never had this kind of javascript rewriting issue before but the proxy software definitely failed in this case.
    I understand that the error is caused by the proxy software and has nothing to do with APEX. However I need to put a workaround in place since we have no choice of using the proxy in many situations.
    -Does anyone here ever got or heard about this issue? If yes, did you find a workaround?
    -I may have found my own workaround and would like to know your opinion on it:
    I took the uncompressed security.js file and minified it with a tool found on internet. The result code is different from the one bundled with APEX.
    I then refered to this new file in my template and had no error this time.
    What I finally did is edit desktop_all.min.js and replace the line concerning apex.security with my new file. It seems to work quite well.
    I know it's not a good approach to overwrite files provided by APEX like this but I would prefer this than including all the dozens of files.
    I would like to keep #APEX_JAVASCRIPT# so APEX continues controlling which libraries to include.
    What do you think about this? Maybe is there something similar that would be a better approach?
    Thanks in advance

    Hello
    I have similar problem - difference is just in using PPTP instead of VPN client but basicaly it is the same setup.
    Simply ip local policy doesn't work when you have some encrypted traffic.
    Can you post your configuration for the internet-redirect-rmap route map.
    I have tried with match gre protocols and ports 1723 for pptp but it simply doesn't work so I am wondering is this even feasible on cisco router.
    Dusan

  • I am getting JavaScript Errors when I attempt to use the Multiscreen Preview function in DW CS 5.

    When I attepmpt to use the Multiscreen Preview button in DW CS 5 I get the following error:
    "While executing onShow in MultiscreenPreview.htm, the following JavaScript error(s) occured:
    In file "Multiscreen Preview":
    onShow is not defined"
    This leads to either an unusable multiscreen preview box or another series of similar JavaScript errors.
    Is there a solution to this problem and if so what is it?
    Thank you for your time.

    Follow this KB article:
    http://kb2.adobe.com/cps/405/kb405604.html
    Start with 12 & 4 and then go through the rest if needed.

  • Internet Explorer MS04-038 patch causes javascript error in EP5 SP4

    The problem in a nutshell that we are experiencing is that the portal Top Level Navigation returns a 'permission denied' javascript error. This is stemming from Microsoft's Internet Explorer Patch MS04-038 <i>(MS04-038 Cumulative Security Update for Internet Explorer
    This update addresses 8 vulnerabilities in systems running Microsoft Internet Explorer [all supported versions], all of which can allow an attacker to take complete control of the system.  Microsoft has rated this patch as CRITICAL).</i>  We also can't get IE to recognize that the portal is a trusted site.
    Any help would be appreciated!

    It's a known problem, and can cause symptoms besides the one you mention, as described in
    SAP Note 785308. Solutions and work arounds will be documented in this note as soon as they
    are available:
    <http://service.sap.com/~sapidb/012006153200001521102004E.ITF>.
    This Note applies to EP5 and EP6, as well as ITS, BSPs, and Visual Composer.
    The latest advice in the Note is, "do not apply MS Security Hotfix KB834707". Information on
    "MS04-038: Cumulative Security Update for Internet Explorer" available at:
    <http://www.microsoft.com/technet/security/bulletin/MS04-038.mspx>).
    Regards,
    Sean

  • The latest update has caused a runtime error and cannot use i tunes

    i have just tried to put the latest update on my laptop and it has caused a runtime error and now cannot install i tunes at all.

    have you use latest version of nvidia driver, you have a compatibility issue here. 

  • Javascript Error When Using ADDT

    When I try to use the User registration wizard I am getting the following error :
    While executin onLoad in CreateActivationPage.htm, the following JavaScript error(s) occured :
    At lin 26 of file : "C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS4\Configuration\Translators\Cookie_translator.htm":
    patterMatch has no properties
    It seems to only happen when I use this particular part of ADDT, everything else is working.  I have tried :
    Deleting the cache file
    Re-Creating the configuration folder
    Neither have worked, can someone help me get past this?  I need to use this part of ADDT bad now....

    Hi,
    I am getting the same problem when trying to use the Update Record Form Wizard.
    While executing onClick in ServerObject-UpdRecPHP.htm the following Javascript error(s) occurred.
    At line 26 of file "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Configuration\Translators\Cookie_translator.htm": patternMatch has no properties.
    This has only just started to happen.
    Any solutions?

Maybe you are looking for

  • How do I get a cursor to work in a cell?

    I am new to numbers, having switched from Excel, and using it largely for text.  I find that at least half the time when I click on a cell to begin typing or dictating that I am unable to get the cursor to show, despite repeated attempts.  I have swi

  • Merging  3 select in one query

    Good Day!!! Got a little problem guys, i got 3 tables and i need to get get the count of plate_no on each table but all table have where condition im using oracle xe 11g here is my 3 query: SELECT COUNT(PLATE_NO) FROM EX_DEPOT WHERE PLANT_ORIGIN IN (

  • All Materials Completely picked but Delivery status still partially Picked

    Hello all, I am facing an issue where in a delivery of which all line items have been completely picked (Status of line items C completely picked) But still the delivery header has pick status B Partially picked. While doing POD an error message come

  • Password protecting the MAC?

    How do I password protect the Mac? I want to leave programs running in the background, but password protect it so no one can hop on my computer while I'm away.

  • Undo a cancelled job

    I accidentally cancelled a job I was compressing...one that takes VERY long to compress...I'm wondering if there's any way to "undo" the cancellation and have compressor pick up where it left off on that cancelled job.