Corruption of non-HTML files with oracle_smp_chronos.js script element

When serving a JavaScript file through the portal, the server always appends:
<SCRIPT SRC="/oracle_smp_chronos/oracle_smp_chronos.js"></SCRIPT>
which causes a JavaScript syntax error in the browser.
Why does it append this HTML element to a JS file ?
How can I stop it ?
Mik

The script only uses the event to find the HTMLEntity where the handler was originally called - it then uses this reference to locate the original handler which it replaced - and calls it.
Things really start to get messy when you use a LINK to submit a form....the original javascript probably does something like this:
if ((!form.onsubmit) || form.onsubmit()) form.submit();
Chances are, the original onclick handler did not pass the event, and the event does not get passed to form.onsubmit(). Even if it did that just pushes the error further down - because oracle_smp_chronos.js replaces the onsubmit for forms too. So what happens is:
user clicks link, this calls Oracles handler
Oracles Handler does its thing, then identifies the link from the event and calls the original handler
Original Handler calls form.onsubmit, passing on the event
but since the onsubmit method has been replaced, its actually calling Oracle's handler again, which does its thing again, then sees that the event references the LINK (not the form) so it calls the backed up Original handler
Original Handler calls form.onsubmit()
...and so on until the stack overflows.
In the version I've got, this only happens where oracle_smp_chronos thinks the browser is Netscape Navigator or one of its descendants. There is a seperate branch of code for MSIE - it uses 'this' to track back to the original code, ignoring the event. Ironicaly, the MSIE code runs fine in Mozilla 5, and any version of Firefox (I don't have a copy of Navigator v4 to test) so a better solution would be to change the browser identification code to treat everything as MSIE
HTH
C.

Similar Messages

  • Help Editing code from a published html file with flash detection enabled from flash

    hi guys ive publish a html file with flash detection enabled from flash
    heres the code from the publish html:
    <!-- saved from url=(0013)about:internet -->
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>main</title>
    <script language="javascript"> AC_FL_RunContent = 0; </script>
    <script language="javascript"> DetectFlashVer = 0; </script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Revision of Flash required
    var requiredRevision = 45;
    // -->
    </script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <script language="JavaScript" type="text/javascript">
    <!--
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
         alert("This page requires AC_RunActiveContent.js.");
    } else {
         var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
         if(hasRightVersion) {  // if we've detected an acceptable version
              // embed the flash movie
              AC_FL_RunContent(
                   'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
                   'width', '800',
                   'height', '600',
                   'src', 'main',
                   'quality', 'high',
                   'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                   'align', 'middle',
                   'play', 'true',
                   'loop', 'true',
                   'scale', 'showall',
                   'wmode', 'window',
                   'devicefont', 'false',
                   'id', 'main',
                   'bgcolor', '#ffffff',
                   'name', 'main',
                   'menu', 'true',
                   'allowScriptAccess','sameDomain',
                   'allowFullScreen','false',
                   'movie', 'main',
                   'salign', ''
                   ); //end AC code
         } else {  // flash is too old or we can't detect the plugin
              var alternateContent = 'Alternate HTML content should be placed here.'
                   + 'This content requires the Adobe Flash Player.'
                   + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
              document.write(alternateContent);  // insert non-flash content
    // -->
    </script>
    <noscript>
         // Provide alternate content for browsers that do not support scripting
         // or for those that have scripting disabled.
           Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
           <a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
    </noscript>
    </body>
    </html>
    now since the default codes places my flash movie on upper left corner, ive made my own tables with the flash on it, how or where do i place this code to the upper codes?
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th valign="middle" scope="col"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <th height="600" bgcolor="#333333" scope="col"><script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','800','height','600','src','main','quality','high','pluginspage','http://www.adobe.com /shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','main' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="600">
              <param name="movie" value="main.swf">
              <param name="quality" value="high">
              <embed src="main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="600"></embed>
            </object></noscript></th>
          </tr>
        </table></th>
      </tr>
      <tr>
        <td height="30" bgcolor="#990000"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <th scope="col"><table width="800" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <th scope="col"><div align="left" class="style1">Copyright 2009 St. Paul of the Cross Parish. All Rights reserved.</div></th>
                <th width="400" scope="col"><div align="right" class="style1">Usage outside our permissions guidelines requires our prior written consent.</div></th>
              </tr>
            </table></th>
          </tr>
        </table></td>
      </tr>
    </table>
    Tnx in advance!

    Hi
    Can you tell me which version of dreamweaver you are using (and flash pro, if you have it), as the code you provided has element of a number of different versions (e.g. your js flash files are reasonably new, but your flash inserted into the html body is old, but with the cs3 version of flash player indicated!). Also the detect flash file is no longer required.
    PZ

  • Hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    iPad do not support flash natively.
    Look in the app store, some browsers do support flash with limited functionality.

  • How to save HTML file with images present in the server to local machine

    Hi all
    In my application i have a option for the user to save HTML files with images present in the server. The HTML file is getting saved but the images are not being saved.
    The code i am using is below :-
    l
                        File fname = new File(filePath);
                        if(!fname.exists())                return;
                        FileInputStream istr = null;
                        OutputStream ostr = null;
                        response.setContentType("application/"+format);
                        response.setHeader("Content-Disposition", "attachment; filename=\"" + fname.getName() + "\";");
                        try { 
                             istr = new FileInputStream(fname);
                             ostr = response.getOutputStream();
                             int curByte=-1;
                             while( (curByte=istr.read()) !=-1)
                                  ostr.write(curByte);
                             ostr.flush();
    Can anyone suggest what i need to do
    regards

    The client should probably parse the html that comes down, and look for <img> links, and request those of the server as well.

  • Having problems: can't open an html file with textedit to change code

    Hi. I have been trying to open up both my index.html and my Welcome.html files with textedit in order to change the HTML codes for them - but it doesn't seem to work. When I open them using text edit I still get a discomboblutaed form of the web page and no html codes. HOWEVER when I open them with Word I can get at the HTML code. Will changing the code in Word work or must I use textedit to do it? ULtimately does anyone know how to fix the fact that your web URL always gets redirected to the home page because of the index file. For Instance, my web site is www.zanzibarhotelbeach.com but when you type that in it redirects to the opening page www.zanzibarhotelbeach.com/Home.html which is a problem for when you want to submit your web site to be found on the net. Any help would be MUCH appreciated! Cheers!

    Give TextWrangler a try. It's a free editor by the makers of BBEdit and is very well suited for editing HTML.
    But as far as your URL in the window, unless you have URL forwarding with masking you will always get the page name at the end of the URL in the browser's window. That's just how it works. With masking you will only get www.zanzibarhotelbeach.com in every window of the site. BUT visitors will only be able to bookmark the first page of your site. My tutorial site, http://toadstutorials.info/ is set up that way.
    This thread discusses how the different domain name forwarding works:
    http://discussions.apple.com/thread.jspa?threadID=1164519&tstart=0
    OT

  • Web browser for running locally saved html file with Marquee Text

    I have a html file contain Marquee text.
    I want to display that html file in oracle forms(10g).
    I already use simple html browser but it does not support marquee text.
    I already tried to convert the html file into Gif file but Marquee text not appear in gif file.
    Is there any browser which support the locally saved html file with marquee text and also it can be embedded in oracle form.
    Or is there any way for display that html file within the oracle forms.
    Remember I don't want to display that file in separate window.I want to display that html file within the form.
    Regards

    Actually that is what I was doing last night and got a bad flash and bricked my router..so its on its way back to Linksys...

  • HTMLLoader - local HTML file with remote access

    Hi,
    I use the HTMLLoader to load a local HTML file. (AIR
    development with Flash)
    In this local HTML file is a remote JavaScript, which I need.
    It doesn't work, because of the sandbox.
    But is it possible to deactivate the sandbox or anything
    else, that I can use the local HTML file with remote access?

    Hi,
    I use the HTMLLoader to load a local HTML file. (AIR
    development with Flash)
    In this local HTML file is a remote JavaScript, which I need.
    It doesn't work, because of the sandbox.
    But is it possible to deactivate the sandbox or anything
    else, that I can use the local HTML file with remote access?

  • Corruption of index.html file

    I am truly at my wit's end. My web site is hosted on Yahoo. I contracted with them before I was given a Mac for my birthday. I redeveloped my site using iWeb and have frequently had problems when uploading files. I made a small change to my home page the other day and after uploading, the page is corrupted--graphics are skewed, text is shrunken and misplaced, etc. I performed all the usual steps, clearing caches, etc., all to no avail. Uploaded several times--still no good.
    Here's the rub--the files look good on the Mac; the published to a folder site works fine. The first time I called Apple about this they told me that if it's fine on our machine the problem is in the FTP you are using. I went to Yahoo file manager and uploaded the index.html file directly from my hard drive. The same problem. I called Yahoo, and after toying with it the tech told me that the html code is corrupted. He changed the web site designation in the html, and we got a different result, still corrupted. He says it's an iWeb problem.
    I called Apple again--got the same answer, "It's a problem with your web host."
    Here's the html code from index.html:
    <?xml version="1.0" encoding="UTF-8"?><!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><title></title><meta http-equiv="refresh" content="0;url= http://raffellis.com/Home.html" /></head><body></body></html>
    Any help will be appreciated.

    Well, I solved my problem. Here's what I did. I don't have a clue as to whether this is useful to anyone but here goes:
    It seems only the home page has a problem. After many tries, I decided to dupe the home page and add it as the second page. I uploaded and lo and behold the second page was fine while the home was still corrupted. So, I went back to iWeb and deleted the original home page, making the 2nd page home. Uploaded again and guess what? The home page was corrupted again! What I did next was to go back to iWeb and make my home page a simple "Enter Site by selecting from the menu above." I uploaded and now my site is fine. Not the solution I wanted but I was desperate.
    The bottom line is? Beats the **** outa me,

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • Using Mac OS, Firefox 3.6 will not save nor open html files with spaces in the file name. Will version 4.0 do this?

    I have hundreds of saved files with names that have spaces in them (like movie 10 41.html). I could not use Firefox 3.6 because it would not open these files for viewing and had to reinstall Firefox 3.5.8 which I have now. If I install Firefox 4.o, will I have the same problem? I use Mac OS 10.5

    I have Firefox 3.6.6, and now that Firefox 4.0 is available, it crashes constantly. Sometimes less than 5 minutes after I open it. I have a Mac 10.4.11, so Firefox 4.0 isn't an option for me. When I asked Ff to check my plug-ins it said there was an error and to check back later. Twice.
    Because I didn't have any (any) problems with my Ff before the upgrade became available, I am forced to question if Ff has done something to make the earlier version crash so you'll upgrade, but I can't afford to upgrade my Mac right now.
    In the meantime, I do need a browser that works! I dislike Safari, Chrome is also not available on Mac 10.4.11, and Explorer is just plain not available on Mac.
    Do you have any suggestions on how to fix my Firefox 3.6.6?
    Ty

  • Custom html file with pix and links as Mac desktop display?

    Hi, in Windows it is possible to select an html file to use as your desktop display...pictures, web links, and links to network and local folders, files, and applications can be written directly into the html page. It was actually really nice.
    How can this be done on a Mac?
    It would be great to have personal pictures, text (poems and to do lists) displayed as the desktop background...with links to files (inspirational .mov files, recently used files, even the html file for the desktop itself for quick changes), links to start applications, and links to favorite websites...all accessible from the desktop itself.
    Alternatively, would these links need to be placed in the dashboard or expose or ? Would the text over a background image in html need to be composited into a static image file?
    thanks

    I don't believe there is a way in the Mac world to specify anything but image files to be used as your desktop.
    I might suggest that you open the HTML fileof your choice in a browser, and take a screen shot of the output. Then you can assign that screen shot to be your desktop.
    Command-shift-4 will give you a crosshair cursor to drag around the area you wish to capture.

  • Html files with included php: related files, code color?

    Hi there,
    Wow, what an active forum!
    I have two questions about html files that include php.
    Almost all my html files have this structure:
    <?php
    (php stuff)
    require_once 'somefile.php';
    ?>
    (html stuff)
    My first question is, is there any way for DW CS4 to display the files included this way? At the moment, they don't show up in related file view.
    My second question is, is there any way for DW CS4 to display the html and php code in the file in a pleasant way? The php is not red as it is in pure php files.
    Definitely not wanting to change the way I code or to change the file extensions...
    Instead, wanting to change the SW settings to make my work easier.
    With gratitude,
    Smiles
    Andy

    Hi Brad,
    Thanks for your reply!
    > The PHP coding in a regular HTML page likely won't even work in a  browser
    That's a standard coding technique...LOL... Maybe I didn't explain correctly...
    My hundreds of pages validate XHTML transitional...
    You are quite right that browsers do not interpret php code, but the  browser never sees php code.
    I will try to explain again
    The html file starts with <? php (code> ?>
    When the browser calls the html file, the server knows to process the file as php.
    It processes the php, then returns some html headers, and follows up with all the html that is after the <? php (code> ?> section.
    Thousands of php coders work like this.It's a very efficient way of building a modular website while keeping html extensions.
    By the way, related files already show in CS4 if they are in the html code.
    Are you 100% sure you are correct about the CS5 inclusion situation? You won't know unless you have built an html file that looks like this.
    <?php
    require_once 'myfile.php'>
    ?>
    <body>
    hello html
    </body>
    Your myfile.php might look like this:
    <?php
    echo 'hello php <br />';
    ?>
    If you have never used php in an html file, you will probably need to add something like this to your .htaccess file:
    AddHandler application/x-httpd-php5 .php .htm .html
    It tells your server that php processes not only php files but also html files.
    Warmest wishes to all,
    Andy

  • Unable to read file - opening a html file with excel

    Hi all,
    I have the next issue:   I have developed a report on HTML format, however when I export this one (to excel) I save the file with a 'xls' extension, however, (in excel 2007), when I try to open the file I get the error "Unable to read the
    file".
    can you help me with this issue?

    Hi,
    Did you create a PivotTable report in the file? As your description, the HTML format could be used correctly in Excel 2007. Did you get the other error message?
    Such as,Unable to read file.
    When you click OK,   you receive the following error message:
    Errors were   detected in '<var>filename</var>.xls', but Microsoft Excel was   able to open the file by making the repairs listed below. Save the file to make   these repairs permanent.
    PivotTable report   '<var>report_name</var>' on   '[<var>filename</var>.xls]worksheet_name' was discarded due to   integrity problems.
    Please try to use the workaround:
    Turn off AutoRecovery when you work with any workbooks.Click Excel button>Excel options>Save>Uncheck AutoRecovery
    Following this, if the issue exists, I recommend you fix the issue the following KB:
    http://support.microsoft.com/kb/943088
    http://support.microsoft.com/kb/929766
    Regards,
    George Zhao
    TechNet Community Support

  • I can't put swf or html files with external files like spritesheets on my website.

    Hello,
    I developed a small test-application for my website. I did this using Flash Builder and Starling.
    My website is created with Adobe Muse, if I try to place the SWF, it gives me an error. If I embed the .html file in an html-object, I get a blank screen.
    Every other swf I created that has no external files such as spritesheets works fine, I can either place it or embed in html.
    I have to say that I did not publish the website yet, as it is useless if I can't show my projects on it, but as I said the normal swf files work and the others not.
    Does anyone have a suggestion or solution?
    There must be one because there are a lot of Starling applications (e.g. Hungry Hero) that are embedded in a website.
    Many thanks.

    Hello,
    I developed a small test-application for my website. I did this using Flash Builder and Starling.
    My website is created with Adobe Muse, if I try to place the SWF, it gives me an error. If I embed the .html file in an html-object, I get a blank screen.
    Every other swf I created that has no external files such as spritesheets works fine, I can either place it or embed in html.
    I have to say that I did not publish the website yet, as it is useless if I can't show my projects on it, but as I said the normal swf files work and the others not.
    Does anyone have a suggestion or solution?
    There must be one because there are a lot of Starling applications (e.g. Hungry Hero) that are embedded in a website.
    Many thanks.

  • Saving html file with Unicode character(Japnese)

    Hello,
    I am having some data in table with japnese characters.
    I want to save html file which contains above data in table format and open this file in excel.
    I am using
    new String(str.getBytes("ISO8859_1"),"UTF8");
    which gives me desired output in browser(using servlet). but when i write to file, same output using BufferedWriter.
    it gives me "????".
    Is there in other way to do it.

    don't you need "UTF16" as the encoding if you want extended Unicode?
    I think the Writer might strip off upper 8 bits if you specify UTF8.
    Just a thought, though I haven't tried it, so it may be a red herring.

Maybe you are looking for

  • Creative cloud redemption offer

    Hi.  I have a 1 year free creative cloud redemption I received with a Canon product.  I have redeemed the code and signed up, but don't appear to be able to download any software without paying.  Any ideas?

  • Mass Transaction to delete a Transfer Requirement (TR) and cancel TO

    Hi All, I would like to know of any mass transaction or function module that can delete bunch of Transfer Requirements (TR). Currently using LB02 to delete each TR.I would also like to know a way to cancel the confirmation of bunch of TOs. We are cur

  • Home hub question

    The home hub 3 has 2 fields called Broadband Username & Password, what needs to be entered into them? Thx Solved! Go to Solution.

  • Do SoundBlaster X-Fi Xtreme Audio support O2ja

    The sound will be weird when playing some songs. Etc song :Identity Part 2 Hard Operating system : Windows XP Pro SP2 Speaker : Altec Lansing Vs42 Motherboard : Asus P4V800-X Soundblaster Driver : .4.78 P.S : o2jam is a music game, more information v

  • I can't sync my iphone calendar

    I went to itunes and synced my calendar from my iphone to my laptop, but no information transferred from my phone to my computer.  Help!