Flash file dissapears on JavaScript function call in IE

I am not quite sure what is going on, and I have tried for
several days to get this fixed. I can't find much on how to fix
this except for the fact that the bug exists. In IE6 (on Windows
98SE, 2000, and XP), the flash file disappears after I make a call
to a JavaScript function. I am currently using the JavaScript
gateway, but it also exhibits this behavior when I use
getURL("javascript:"). I am using SWFObject, but it still happens
when I put the <OBJECT> and <EMBED> tags in manually.
It did not start doing this until about a week ago. Does anyone
have any idea of what is going on and how I can fix this? The link
to my page is:
www.SeeMySites.net/index.php?flash=true.
Right now I only have Flash enabled for non-IE browsers.

Never mind - I found out what the problem is. It's the latest
version of SWFObject. Once I reverted to an older version, the
problem disappeared. Now to go report this to the creator... I
reverted to 1.4.2 (from 1.4.4).

Similar Messages

  • Is it possible to embed JavaScript functions into a Flash file (AS 3.0) and call within flash itself, without using the external .js file

    Scenario:
    I have a text area in flash. The user will copy paste any JavaScript  function in the text area and click execute button. The JavaScript function pasted in the text area should be executed with in the flash itself and the return value will be shown in another text field.

    yes,
    function testF(s:String):XML{
        var js:XML = <script>
        <![CDATA[
        ]]>
        </script>
        js.appendChild(XML(s));
        return js;
    ExternalInterface.call(testF(your_tf.text));

  • Javascript function call from PL/SQL block

    Hello,
    I am writing this pl/sql block that has checkbox and onselect, it calls javascript function.
    I defined javascript function in page header, even though I get error that says function is not defined.
    Please help.
    Thank you,
    H.

    I got it resolved...!!!

  • PL/SQL Javascript Function Call

    Can anyone offer some help on this? I am attempting to get a javascript tool tip to work on an application I am developing. I have developed a line calendar using PL/SQL outputting HTML. When I embed a javascript function into my PL/SQL htp.p function, the javascript appears to go a little crazy. Here is an example of my code:
    "htp.p('<td onMouseover="ddrivetip("Yahoos Site", "yellow", 250)"
    onMouseout="hideddrivetip()">Yahoo</td>')
    I have tried a few iterations, using different javascript, and I always get the same result. The double quotes used in the onMouseover and onMouseout function calls are a result of PL/SQL not liking single quotes. The entire code for the tooltip can be found on dynamic drives page:
    http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
    The CSS and javascript code is placed as appropriate in the HTML page header. Am I missing something on the htp.p command?
    Message was edited by:
    jason97m
    Message was edited by:
    jason97m

    This post covers it well.
    http://inside-apex.blogspot.com/2007/08/using-tooltips-in-oracle-apex.html
    Good luck.
    Brian

  • JavaScript Function Calls it is called twice only when add the component

    Hi,
    I am developing a SAP Design Studio Extension and I noticed that when I add the component on Application, SAP Design Studio calls the JavaScript SDK Functions twice only when I drag and drop the component.
    I found out about this just put an alert message in which JavaScript Function (init, beforeUpdate and afterUpdate).
    Is it ok to work this way?
    I am really curious if anyone else has come across this issue.
    Thank you,
    Fabio Almeida

    Hi Fabio,
    Yes, there does appear to be an issue with SDK component functions being called twice.  Mike Howles has implemented a workaround in this Toolbar example code. Refer to the code in the this.init function at the end.
    Regards,
    Mustafa.

  • Javascript function call

    i am writing a jsp code, where i have put 2 functions in jscript, lets say f1() and f2(). I need to call f1() only once in the start of the program, while i have to put the second function f2() in a loop after that, lets say 100 times.
    I dont know how to call them seperately in the body (i am familiar with the <body onload = "f1()'> but am not able to solve my problem.
    Also is it possible that i put a thread in the f2() loop, as f2() is constantly updating some values while preserving the immediately previous values and i want them to be displayed on the screen. I guess threads would be the best solutions. Any suggestions to how to put them.
    Thanks
    Anuj

    Cross-posted here: http://forum.java.sun.com/thread.jsp?thread=415737&forum=45&message=1835945
    (WHY can't you guys figure out how to just post a link instead of duplicating the question and thus potentially waste people's time duplicating answers?)

  • Calling jsp file from javascript function

    How can i call a jsp file itself from javascript function written in it?

    I do not think you can invoke the current jsp directly using javascript.
    If the effect you are trying to achieve is to reload the page, then you could execute the servlet / code which called the current jsp.

  • Calling javascript function with StageWebView problems

    I have a test html page I made to R&D some functionality, in my view I have a stageWebView and am calling a local html file from inside the app like this:
    stageWebView.loadURL(new File(new File('app:/assets/html/reports.html?stuff=1234').nativePath).url);
    I then try and call a javascript function called tester() from the html page like this:  stageWebView.loadURL("javascript:tester()");
    And the only thing I see in the debug console is:
    ReferenceError: Can't find variable: tester
    From what I have found online this is the way that this should be done.  Does anyone have any ideas?  I am not running this on a device yet, just in the FlashBuilder emulator.
    Thanks for any pointers.

    Are you able to load the local html file? I have been trying to load a local file, test.html, using the web view have have not been able to get it to load at all. It always gives me a blank page using file: or app:
    If you have gotten it to work could post a snippet for me to check out?
    Thanks,

  • Calling Javascript function from PL/SQL Page Process

    Hi All,
    So far I have seen many threads that answered the question: Calling a PL/SQL from a Javascript function. I would like to know if it's posiible to do the reverse process as follows:
    DECLARE
       v_name APPLICANTS.NAME%Type;
       v_surname APPLICANTS.SURNAME%Type;
       v_idNumber APPLICANTS.ID_NUMBER%Type;
    BEGIN
       select name, surname
       into v_name, v_surname
       from APPLICANTS
       where id_number = :P2_ID_NUMBER;
       //Javascript function call Syntax is what i'd like find out
       onchange="javascript:show_Name(v_name,v_surname);";
    EXCEPTION
       WHEN OTHERS
       THEN
       onchange="javascript:show_Exception(v_name,v_surname);";
    END;& Javascript function to shiow applicant's details is:
    function show_Name(item1,item2){
       alert('Applicant's Name is: '  + item1 + ' & Surname is: ' + item2);
    }THANK YOU!
    Regards
    Kamo

    Hi Dinesh, Thanks for the response!
    I've also tried doing the following without success:
    DECLARE
       v_name APPLICANTS.NAME%Type;
       v_surname APPLICANTS.SURNAME%Type;
       v_idNumber APPLICANTS.ID_NUMBER%Type;
    BEGIN
       select name, surname
       into v_name, v_surname
       from APPLICANTS
       where id_number = :P2_ID_NUMBER;
       htp.p('<script type="text/javascript">');
       htp.p('
                alert('Applicant's Name is: '  + v_name + ' & Surname is: ' + v_surname);
       htp.p('</script>');
    EXCEPTION
       WHEN OTHERS
       THEN
       htp.p('<script type="text/javascript">');
       htp.p('
             alert('Exception.');
       htp.p('</script>');;
    END;Do you know why this is not working?
    Regards
    Kamo

  • Where to call the javascript function

    Hi,
    I am using JSF and ADF.
    I have a javascript function called by the body onload.
    The javascript is to set the first the first column of a table fixed.
    But when I click the next page link which is generated by defaut,
    the function from the javascript disappears.
    Can I call a javascript function when pressing the next page link which is
    generated by default ?
    Thanks.
    Ivan

    Hi Frank,
    My javascript function is to make the first column of the table fixed which
    is something like the function in the Excel.
    The function is called by body onload.
    But when the 'next page' link is clicked, it will not refresh the whole page.
    The above cannot be called.
    So I wanna add it during the action of pressing the link.
    any alternatives ?
    Ivan

  • Flash files displayed in browser before-don't any more

    I have already spent hours trying to figure out what's going
    on here, and I've searched the forums for an answer. Either I'm not
    searching for the right words or I'm the only person in the whole
    world with this problem. I have been inserting simple .swf
    slideshows in a Rotary bulletin for months now using Dreamweaver 8.
    No problems. In the last two weeks none of my .swf files display in
    any browser. Like they don't exist at all. Regular images are fine,
    but the .swf files simply aren't there.
    This is a page that should have a flash file playing in the
    article called "A Golfing We Will Go."
    http://bbrc.net/archives/Vol18/061206/rev.html
    When I look at the code, it shows the reference to the flash
    file (
    http://www.bbrc.net/archives/Vol18/061206/RTWCletus),
    but it's not displaying. I also noticed that even though the DW
    code has the .swf tag on the end of the string, it's not showing up
    in the code I'm viewing after I've published the page to the
    server. So, I updated the page and added .swf after the flash file
    name (RTWCletus.swf). It didn't make any difference.
    The only thing I've done differently in the past few weeks is
    to install the latest DW updater. I have seen references to that
    screwing up things with IE, but that isn't the problem I'm having.
    My files aren't displaying in ANY browser and I don't get any
    message window. It's not just this page, either. I made one page
    with one simple .swf file and it doesn't show up. Yet, I can click
    the Play button in DW and it plays the video just fine. What could
    have changed?

    I decided there is no need to make anyone wade through that
    whole page of code since even a simple page is not displaying the
    .swf file. I created this tiny test page with just some text and
    the flash file.
    This is the page:
    http://bbrc.net/archives/Vol18/061206/Test.html
    This is the code from Dreamweaver:
    <!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>
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    <title>Untitled Document</title>
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    <style type="text/css">
    <!--
    .Body {font-family: Verdana,Arial,Helvetica,sans-serif;
    color: #666; font-size: 11px; }
    -->
    </style>
    </head>
    <body>
    <table width="289" height="164" border="0" cellpadding="2"
    cellspacing="2">
    <tr>
    <td width="281"><span class="Body">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','nam e','Rotating','width','175','height','142','hspace','5','align','left','id','Rotating','ti tle','test','src','RTWCletus','quality','high','pluginspage','http://www.macromedia.com/go /getflashplayer','movie','RTWCletus'
    ); //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=7,0,19,0"
    name="Rotating" width="175" height="142" hspace="5" align="left"
    id="Rotating" title="test">
    <param name="movie" value="RTWCletus.swf" />
    <param name="quality" value="high" />
    <embed src="RTWCletus.swf" width="175" height="142"
    hspace="5" align="left" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash"
    name="Rotating"></embed>
    </object>
    </noscript>
    There is a raft of prizes for the golfers. One hole-in-one
    prize is a BMW Roadster. There are also three other golf vacation
    packages for two with airfare and lodging included at either Reno,
    PGA Village or Cabo San Lucas. Lowest score gets a Wolf Pack
    membership to the Woodland Park Zoo and Seattle Aquarium, an annual
    family pass. A private golf lesson from the Willows Run golf pro is
    a prize for someone who might need a brush-up. Cash prizes are
    offered for holes-in-one on the 9th and 18th holes, plus other cash
    bonuses. </span></td>
    </tr>
    </table>
    </body>
    </html>

  • Getting status Pending when calling rest function call

    Hi,
    Coldfusion version 10.
    The app hangs using IE9 when I do a REST cf function call from js file. Observing the console, I see Pending status. However, it works fine in later versions of IE, Chrome and Mozilla.
    When I changed cffunction httpmethod from DELETE to PUT it worked. So, I figure that maybe javascript function call and cffunction header mismatch.
    Here is cffunction;
    <cffunction output="no" name="zeroUpdateCredits" access="remote" produces="application/json" consumes="application/json" returnType="struct" httpmethod="DELETE">
    <cfargument name="DATA" type="struct" required="yes"/>
    <cfset var retStatus = StructNew() />
    <cfset retStatus["success"] = true />
    <cftry>
    <cfset var qSponsDetails = APPLICATION.cfc.properties.getsettings(DATA.employee_id)>
    <cfif qSponsDetails.allow_credits>
      <cfset temp = saveCredits(credits = 0, employee_id = DATA.employee_id, effective_date = DATA.effective_date)>
    </cfif>
    <cfcatch type="any">
    <cfthrow errorcode="401" message="error zero credits" />
    <cfreturn>
    </cfcatch>
    </cftry>                  
    <cfreturn retStatus>
    </cffunction>
    Here is the function call:
    exports.clearCredits = function(employeeId, effectiveDate){
    data = {
      employee_id: employeeId,
      effective_date: effectiveDate
    var promise = rest.DELETE({
      url: appConfig.restPrefix + 'selections/unusedcredits?t=' + new Date().getTime(),
        contentType: 'application/json'
      }, JSON.stringify(data)
      return promise;
    Thank you,
    Gena

    Hi,
    Are you sure your Sender SOAP adapter is configured properly. Also ensure that the SIEBEL team is using the right URL to communicate to the SOAP adapter.
    First try using SOAP Client and see if the scenario is working fine. If so then the problem lies in SIEBEL.
    Check this link for confiuring SOAP sender
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    Thanks,
    Pakash

  • Javascript function undefined error

    Hi developers,
    I am generating a html file on the fly using a perl program. The main form to be used is generated by a javascript function called loadPage(). loadPage writes the <form> <input type="checkbox"> blah..</form> into the document by using document.write When the checkbox is unchecked, a javascript function called delFromList is called. This function is generated when the html is generated(by the perl program). The problem now is that the form comes out well but when I uncheck the checkbox, the javascript error says delFromList undefined...the same problem occurs for each function call...what am I missing here...any help will be highly appreciated...
    tia.
    vish
    PS: the sample html is inlined below
    Content-type: text/html
         <html>
         <head>
         <title>Level Refinement</title>
         <script Language=JavaScript>
    function delFromList(box) {
    blah blah....
    function addToList(box) {
    blah blah....
    ....and many other functions...all function that are used are defined....
    function loadPage()
                        document.write("<form name=layout action=\"http://software.somesite.com:81/cgi-bin/parser.pl\" Method=post>");
              document.write("<INPUT TYPE=CHECKBOX NAME=\"European\" VALUE=\"European\" onClick=\"if(this.checked){addToRankList(this)}else{delFromRankList(this)}\" CHECKED>European<BR>");
              document.write("<INPUT TYPE=CHECKBOX NAME=\"Canadian\" VALUE=\"Canadian\" onClick=\"if(this.checked){addToRankList(this)}else{delFromRankList(this)}\" CHECKED>Canadian<BR>");
              document.write("<INPUT TYPE=CHECKBOX NAME=\"Japanese\" VALUE=\"Japanese\" onClick=\"if(this.checked){addToRankList(this)}else{delFromRankList(this)}\" CHECKED>Japanese<BR>");
              document.write("<h4>Rank your preferences:<ul type=circle><li> Select the attribute to move<li> Use the \"Move Up\" and \"Move Down\" buttons to move the attribute ranking HIGHER and LOWER respectively.<br></h4>");
              document.write("<div align=center><center><table width=100% border=1><tr><td width=30% valign=top align=center>Ranking (High to Low)<br><select name=col1 size=10 onChange=checkSelectCol1()>");
              document.write("<option>European");document.write("<option>Canadian");document.write("<option>Japanese");               
              document.write("</select><p>");
              document.write("<INPUT TYPE=button value=\"Move Up\" size=4 onClick=javascript:col1Up(document.layout.col1)>");
              document.write("<INPUT TYPE=button value=\"Move Down\" size=4 onClick=javascript:col1Down(document.layout.col1)>");     
              document.write("</td></tr></table></div><br>");
              document.write("<INPUT TYPE=button value=\"Next\">");     
              document.write("</form>");
         </script>
    </head>
         <body onload="loadPage()">
         </body>
         </html>

    As mentioned above javascript and java are 2 different thigns. How ever after looking at your code I would have to guess that you missed a '{' or '}' some where in you actual code. Other than some minor html syntax errors I realy didn't see anything wrong with the code above. But since you didn't post the actual code it hard to say if fixing the few minor errors would make any diff. I'm going with missed curly braces.
    Ron_W

  • How do I find the AS that this links to in my flash file via "find"?

    I have a flash file that I have on a web page. When I hover over the Join Us image, the mouse changes to a hand. I can click on the "button" but it doesn't take me anywhere. I'm trying to find out if there is a way to find the link in my Flash file via the "Find" function. What is causing the "hand" to appear, is there a goto or click actionscript that I can search? It's a pretty complex file which I didn't create, and I've had no luck finding this button layer, or AS.
    I'm hoping to find where this AS is and link it to a page on my site. Thanks!

    Ned, you're back to save the day for me again. You helped me with the mask issue I had a few days ago and I'll have you know, the flash ad came out brilliantly. Everyone loved it.
    So you were right, I did find the code AS3.
    onClipEvent (load) {
        this.hitArea = this.area;
    on (rollOver) {
        this.gotoAndPlay("s1");
    on (releaseOutside, rollOut) {
        this.gotoAndPlay("s2");
    on (release) {
    s1 and s2 are animations where the Join Us text rolls out and Rolls in as different colors.
    I added the following to the code and it seems to work great.
    onClipEvent (load) {
        this.hitArea = this.area;
    on (rollOver) {
        this.gotoAndPlay("s1");
    on (releaseOutside, rollOut) {
        this.gotoAndPlay("s2");
    on (release) {
              getURL("http://mysite.html", "_self", "GET");
    Thanks again for pointing me in the right direction. I think I may owe you a lunch or something after this is all said and done!

  • Javascript function not working

    Hi I am new in development.
    Could you tel me what problem may be in my jsp code.
    previously my .jsp file have some javascript functions all was working properly. Now i have made changes on one function which was working properly but now it is not working and the after clicking the button to which it is associated no action is taking place. .What may be the problem
    Thanks with regards

    The problem would be that you have introduced a syntax/runtime error into your javascript code with your changes.
    Unfortunately my mind reading powers are not working today, so I can't tell you exactly which line of code it is that you have broken.
    Maybe if you posted some code? (note I say some and not all) If you paste your whole page here unformatted, don't expect any help.
    Debugging javascript is not a nice thing to do.
    Try getting Mozilla/Firefox - it has a javascript debugger integrated with it.
    Myself I normally go along the lines of alert("step1") alert("step2") peppered through the javascript code. At the point the alerts stop, is where I focus my attention to find the error.
    Good luck,
    evnafets

Maybe you are looking for