Javascript errors when iView is running in Portal Content Area

We have URL based iView which is running flex application. If this iView is running in separate window (by preview, link or setting "Launch in new Window" option) everything is fine.
However, if iView is running inside Portal Content Area there are bunch of JavaScript errors (missing object, permission denied). The iView itself is still running fine, but those errors are annoying and could be a problem for customers.
Are there any ways to fix it?
Thanks.

Hi,
So after a few days I managed to finally get a workable solution:
Whenever you are referring to a script file in your main page, you will not be able to open the file when in normal mode, even with relaxing the domain and all the other hints posted.
What you need to do is to include the actual content of the *.js file in the main html page.
For example, if you have a page called index.html that refers to a file AC_RunActiveContent.js which is located in your scripts directory, you will need to change the code in the index.html file as follows:
Initial HTML File:*
< HTML>
< HEAD>
< TITLE>Test Page</TITLE>
<!-- Collapsible Panel Java Script -->
< s c r i p t  s r c="../scripts/collapsiblepanel. j s" type="text/ j a v a s c r i p t"></ s c r i p t>
<!-- Collapsible Panel Java Script -->
< /HEAD>
< BODY>
< /BODY>
< /HTML>
New HTML File:
< HTML>
< HEAD>
< TITLE>Executive Committee - Balance Sheets</TITLE>
<!-- Collapsible Panel Java Script -->
< s c r i p t t y p e="t e x t / j a v a s c r i p t ">
your actual javascript code
< / s c r i p t >
<!-- Collapsible Panel Java Script -->
< /HEAD>
< BODY>
< /BODY>
< /HTML>
By doing this:
You will be able to use java scripts in your html file and applications without experiencing the problems mentioned. Keep in mind though that you will now have all your script file code in your actual html file and the number of lines in the files will increase dramatically.
The increase in size of the actual html files are not too bad, a normal 2Kb html file may increase to 70Kb if not more, depending on the code contained in the initial *.js file.
I have played around with this and have been able to include Macromedia Flash objects in my html files too, by pasting the actual code content in the html files as opposed to refereincing the script in the relevant directory.
I hope this helps.
Regards,
Freddie Botha.

Similar Messages

  • Give iView as link in portal content area

    Dear All,
    I have divided my portal content area into 4 section. In one section i got my GP process. I have created the process as iview. I have tried to give this iview link to the end-user to open the process. Is it possible to bring iview inside one section of content area. If any one did this or got knowledge on this, pls through some light on this.
    with Regards,
    Balachander

    Balachander,
    not sure what do you mean by "bring iview inside one section of content area". Are you willing to show only the single iView or you want to show it with some other iViews also? For first case URL to the single iView will work. For the second type of requirement you can add the iViews inside a page and give the Page URL to the users instead of iView URL.
    Regards,
    Shubhadip

  • IView not Visible in portal content Area

    Hi experts,
    i got a problem when i try to access to the Area 'Travel and Expenses' of the portal after logging in.
    The Area should be point to a Page involving 2 IView, one of them contain the visualization of 4 links and the other one pointed to a custom Application.
    If i try to reach the area through the quick link in the main page the Applications doesnu2019t come up and i receive a partial visualization of the page, while if i reach the Area clicking the Tab at the top of the page
    i get the right visualization of the Area. 
    Having a look to the resource pointed to the Area i'm really sure that the PCD is correct.
    Why do i get two different visualization of the same object?

    HI Stefano
    Please check the following links:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/59/d516690e854c7090ae15bf492a869f/content.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/EN/f5/eb50360e6a11d7b84900047582c9f7/content.htm
    I hope this helps
    Regards
    Chen

  • 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

  • Javascript error when opening CS3 on pc..?

    I cannot open ID on my CS3 package using my pc. The error appears twice in a box on screen stating
    'JavaScript Error'
    'Error Number 45'
    'Error string :Object is Invalid'
    'Line 387'
    also
    'JavaScript Error'
    'Error Number 45'
    'Error String; Object is Invalid'
    'Line 428'
    there was a problem initially due to program plug-ins reported missing so i tried going onto 'Help' and clicking on 'Configure Plug-Ins' from the drop down menu.
    Not sure what i did.. but now i cannot use ID as it shuts down after the javascript errors are reported.
    Anyone help?

    hi
    thanks for all the helpful info
    i tried to reinstall INDESIGN only... didnt work same problem.
    i tried by uninstalling INDESIGN and then reinstalling it only.... didnt work same problem.
    I guess im going to have to do a full reinstall.. not a problem, do i need to contact yourselves to get clearance for a reinstallation?
    I had a hard drive crash about 6 months ago and had to reinstall, had to phone Adobe and get an online clearance as id exceeded my sole installation for my CS3 hard copies.
    thanks again
    Date: Sat, 2 Jan 2010 09:50:57 -0700
    From: [email protected]
    To: [email protected]
    Subject: Javascript error when opening CS3 on pc..?
    I'd bet the original scenario was something like you tried to open a file and saw a message that you were missing plugins, or they were out of date, and that you should update or upgrade. That's the typical message you get when you try to open a file saved from a newer version of ID. Unfortunately it's quite misleading -- nothing you do to the plugins will help you in that case, and trying to use newer versions would be disastrous.
    You should be able to selectively reinstall just ID. If you have the DVD you can run the installer and do a "Repair" installation, and if that doesn't work, you should be able to uninstall ID, then reinstall without removing the whole suite. If that still doesn't work, bite the bullet, uninstall everything and run the clean script (http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402767&sliceId=1), then reinstall. I'm not sure what happens with a downloaded installer, but I suspect it works the same. I'm pretty sure I read somewhere that to uninstall from a download you need to have it in the same location as was originally used for the installation.
    Peter
    >

  • JAVASCRIPT ERROR WHEN DISABLED THE WELCOME AREA

    Hi sdn,
    I have modified our portal design. I set the welcome area and the logo area to the value none. Now I am always getting a javascript error when I call the side in my browser.
    I get the message that an object is missing and the browser can not set the focus to an element ==> because I have disabled two areas of the portal header.
    I have recognized this problem in all portal releases from EP6SP2 to EP6SP9.
    What can I do to prevent these error messages?

    I think this issue is fixed by this note : 798647. Suggested to go with latest hotfix.

  • Javascript error when send email using webmail

    Dear Sun,
    One of our user encounter javascript error when try sending email using webmail below is the error message:
    " +https://webmail.ubd.edu.bn/uwc/webmail/comp_fs_lr.html&rev=3&security=false&lang=en&popupLevel=undefined&cal=1&charset=escaped_unicode, Line 1755+
    +Permission denied+
    "

    Hi Shane,
    below is the answer you need
    What browser is the user using?
    => Firefox and IE
    What browsers have you tested where it doesn't occur?
    =>I tested all the browser (firefox,IE, chrome) it doesn't happen to me
    When did this problem first start?
    =>After the user finish compiled his message and click send
    What is the exact version of UWC you are running (./showrev -p | grep uwc)
    =>Patch: 122793-26 Obsoletes: 118540-43, 117287-99, 117819-13, 119156-07 Requires: Incompatibles: 118042-22, 126233-04 Packages: SUNWuwc
    Patch: 122793-29 Obsoletes: 118540-43, 117287-99, 117819-13, 119156-07 Requires: Incompatibles: 118042-22, 126233-04 Packages: SUNWuwc
    Patch: 122793-31 Obsoletes: 118540-43, 117287-99, 117819-13, 119156-07 Requires: Incompatibles: 118042-22, 126233-04 Packages: SUNWuwc
    Does this error occur all the time? Does it occur for every user, or some users or just one user?
    => Not all the time, so far i just receive one complaint .

  • Javascript Error When Loading Dreamweaver CS3

    Hi,
    Thanks for taking time to read my post.
    I have Dreamweaver CS3 installed. It was running fine till tomorrow and than suddenly I started to get javascript errors when trying to open file in DM. I reinstalled DM twice but issue was not resolved.
    Below is the image of error I get:
    Please advice.
    Sincerely,
    Zeeshan

    It sounds as though you have a corrupted cache file. Instructions on how to delete it: http://forums.adobe.com/thread/494811.

  • App File Server connection error when trying to run a BI Publisher report..

    hello Gurus...
    As above - App File Server connection error when trying to run a BI Publisher report.. FOR THE FIRST TIME.
    What does our DBA need to do..?
    error message reads..
    Template code: SUARXASR
    Template app:  AR
    Language:      en
    Territory:     GB
    Output type:   EXCEL
    [5/10/10 10:59:27 AM] [UNEXPECTED] [46321:RT1487572]
    oracle.apps.fnd.cp.util.RemoteFileException: An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_*****.ac.uk. There may be a network configuration problem, or the TNS listener on node FNDFS_*****.ac.uk may not be running. Please contact your system administrator.
    at oracle.apps.fnd.cp.util.RemoteFile.readURL(RemoteFile.java:241)
    at oracle.apps.fnd.cp.util.RemoteFile.transferFile(RemoteFile.java:194)
    at oracle.apps.fnd.cp.util.RemoteFile.transfer(RemoteFile.java:130)
    at  oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:264)at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [5/10/10 10:59:27 AM] [46321:RT1487572] Completed post-processing actions for request 1487572.I'm sure we never had to set anything up in our Test instance!??!!??
    many thanks for looking..
    Steven

    nobody experienced this before..?

  • I'm getting a -2003F error when trying to run the internet recovery after installing a new hard disk in my macbook pro, any suggestions?

    After installing a new hard drive in my 2011 macbook pro, I'm getting a apple.com/support -2003F error when trying to run the internet recovery.  Any suggestions?

    Did you format the new HDD?  What is the status of the old HDD?
    Do you have an early or late 2011 MBP?
    Ciao.

  • Error when trying to run Advisor

    Hi!
    I get the following error when trying to run the Advisor (Application Builder > Application xxx > Utilities > Advisor) over our application:
    Unknown type! View: APEX_APPLICATION_PAGE_PROC Column: CONDITION_EXPRESSION1 Value: WHEN_ANY_ITEM_IN_COMMA_DELIMITED_LIST_OF_PAGES_HAS_CHANGED
    ... this happens every time, even if I uncheck all boxes except one (e.g. "References with substitution syntax").
    I'm wondering if there is something wrong with our Apex installation as I can't see any other references to this problem in the forum. We don't seem to be suffering any other problems so I expect it's something small...
    Has anyone else ever encountered this and does anyone know of a solution? I would like to use the Advisor for some QA processes as it looks like a handy tool.
    Many thanks in advance,
    Alex.
    Versions:
    Apex 4.1.1.00.23
    Oracle DB 10.2.0.2

    Hi Alex,
    very interesting. Looks like one of your processes uses the WHEN_ANY_ITEM_IN_COMMA_DELIMITED_LIST_OF_PAGES_HAS_CHANGED condition which has been deprecated for a very long time.
    If you execute the following query in your workspace schema, you should find those processes which do use the condition. You might want to check if the reported pages/processes are still used in your application.
    select application_id,
           application_name,
           page_id,
           page_name,
           process_name
      from APEX_APPLICATION_PAGE_PROC
    where CONDITION_EXPRESSION1 = 'WHEN_ANY_ITEM_IN_COMMA_DELIMITED_LIST_OF_PAGES_HAS_CHANGED';Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Error when trying to run an application that worked when built with 8.6

    I have a simple program that I wrote in version 8.6 that I never had a problem building and running applications built with it in 8.6.  Two weeks ago I got 2009 in the mail because we had very recently purchased 8.6 and I am getting errors when trying to run an application built with the same code using 2009.  The error has to do with the Mean.vi.  It claims it cannot find it.  The error I get reads as follows:
    An error occurred loading VI 'NI_AALBase.lvlib:Mean.vi'.  LabVIEW load error code 3: Could not load front panel.  I don't need access to this vi's front panel, so I am wondering if it is a problem with the runtime engine and not my code.  Please respond as soon as possible as this will quickly start to impact my testing schedule.  Thank You.
    Solved!
    Go to Solution.

    Hi!
    The same problem ???
    I discussed it with my local NI technical support team. The application works without any problems now.
    Basic rule: when creating an installer be sure that option "Run Time Engine xxxx"  in "Additional Installers" category is checked in spite of the fact that Run Time Engine is already installed.
    Best regards.
    Attachments:
    ADDINST.png ‏13 KB

  • How do I fix a javascript error when opening Dreamweaver?

    DW CS6 recently started having 2 JavaScript errors while opening the application and at least 1 additional JavaScript error when using the Insert Image command.  Can someone provide some advice on fixing this issue?

    This will help -
    Index to Dreamweaver FAQ
    Look at the very first issue.

  • How can I get Firefox to display details about a JavaScript error when one occurs?

    When in Internet Explorer I can set it up to display JavaScript errors as follows. Select Tools then Internet Options… then the Advanced tab. Under Browsing, find '''Display a notification about every script error '''and be sure its box is checked.
    I cannot find out how to do this in Firefox. I would like for it to display details about JavaScript errors when they occur instead of doing nothing.

    *Web Developer: https://addons.mozilla.org/firefox/addon/60

  • HT4796 I keep getting a Windows Mail error when trying to run the assistant on my pc, but I don't have any email programs open.

    I keep getting a Windows Mail error when trying to run the assistant on my pc, but I don't have any email programs open.

    You could of course use Safari your default browser as a quick method of accessing gmail until you figure out the Firefox problem. (More than one browser may be used on a Mac or other computer).
    Is this the only site you have problems with ? and does Safari work ok ?
    Often this problem requires the page to be reloaded
    * try pressing the shift key as you reload the page
    Another problem is sometimes the cookies for that site need clearing
    * see [[Delete cookies to remove the information websites have stored on your computer#w_delete-cookies-for-a-single-site]]_delete-cookies-for-a-single-site
    * see also [[Firefox and other browsers can't load websites]] or[[Firefox can't load websites but other browsers can]]

Maybe you are looking for

  • How to place download link on jsp page to download files eg. Download PDF

    Hi, I have made an appliaction in struts 2 which creates PDF,its working fine now i want to place a link on my jsp page from where i can click and download that PDF file which i have created and store on my local location. Also i want to to know can

  • Maps not working in Calendar

    Hi folks, Another glitch I cannot seem to work around. I'm digging the new calender app in Mavericks. After I type in an address into the calendar, the map and weather don't pop up. Any ideas?

  • Installing BI Publisher Desktop as a machine startup script?

    Hello, Our company wants to deploy Oracle BI Publisher Desktop 10.1.3.4.1 to 60+ machines with Office 2010. Users on these machines do not have any admin privileges and therefore the installation is done via machine start up script. I managed to comb

  • XSQL output to file

    Hi, i've a simple xsql file like that: <?xml version="1.0"?> <xsql:query connection="demo" mlns:xsql="urn:oracle-xsql"> SELECT * FROM Aircraft </xsql:query> and i would like to redirect the output of the query in a XML file (like name.xml). Please he

  • Firefox browser is mirrored, however otherwise runs perfectly. How do I fix this?

    Firefox is mirrored, the web page appares correctly but the bar at the top appears backwards, even though all text appears normally. see http://img155.imageshack.us/i/firefoxbackwards.jpg/ Now that i've closed the browser, firefox refuses to start at