Calling javascript from swf (which is source file of frame) - problems with OPERA

hey,
right now i have the swf-file as the source file for a frame,
because i want the swf-width depend on the browser-size.
it looks kinda like this:
<frameset cols="10,*,10">
<frame src="border.htm" name="leftFrame">
<frame src="file.swf" name="mainFrame">
<frame src="border.htm" name="rightFrame">
</frameset>
from the swf i call a javascript-code that is located in the
'border.htm'
file.
the javascript simply opens a popup window.
function open_popup() {
MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars =no,resizable=no,width=400,height=500');}everything
works fine ine firefox, ie, netscape (at least in another tab),but
when it comes to the opera browser (and apparently also safari)i
don't get any reaction at all ...i told opera to allow
popup-windows, so that shouldnt be the reason.now i am thinking
maybe some browsers have a problem with callingjavascripts from
within swfs that are not located in that specifichtml-file?maybe
some of you encountered the same problem ...would be grateful for
any advices ...thanx,eva

hey,
right now i have the swf-file as the source file for a frame,
because i want the swf-width depend on the browser-size.
it looks kinda like this:
<frameset cols="10,*,10">
<frame src="border.htm" name="leftFrame">
<frame src="file.swf" name="mainFrame">
<frame src="border.htm" name="rightFrame">
</frameset>
from the swf i call a javascript-code that is located in the
'border.htm'
file.
the javascript simply opens a popup window.
function open_popup() {
MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars =no,resizable=no,width=400,height=500');}everything
works fine ine firefox, ie, netscape (at least in another tab),but
when it comes to the opera browser (and apparently also safari)i
don't get any reaction at all ...i told opera to allow
popup-windows, so that shouldnt be the reason.now i am thinking
maybe some browsers have a problem with callingjavascripts from
within swfs that are not located in that specifichtml-file?maybe
some of you encountered the same problem ...would be grateful for
any advices ...thanx,eva

Similar Messages

  • How to extract data from legacy system to source file

    Hi can anyone tell me the procedute to copy data from legacy system to source files....this data needs to be moved to base tables
    can any one tell me the procedure and any sample code i,e any example
    Thanks & Regards
    Krish

    You should post your thread to ...:
    http://forums.oracle.com/forums/forum.jspa?forumID=183
    providing all necessary info......!!!!
    Greetings...
    Sim

  • Calling Javascript from JApplet

    Does anyone know of a foolproof way of calling Javascript from an Applet on a Web page. I have heard of the JS Object but can't find much aboout it. Does anyone have any ideas?

    or...
    http://turtle.ee.ncku.edu.tw/~zulu/research/seminor02/
    http://turtle.ee.ncku.edu.tw/~zulu/research/
    JRG

  • Calling javascript from 10g Forms

    Hi,
    RE: How do I call Javascript from Forms 10g (v 10.1.2.0.2)
    Sorry if this post is to the wrong audience but was wondering (as I haven't had an update from the Forms forum) if anyone could tell me how to know
    when a user was navigating away from the current open form because they had entered a new URL in the address bar and were trying to navigate to it?
    The reason for this is that i would want to prompt the user to confirm that they wanted to exit the form as potentially they would have a record (in the form)
    flagged as being updated and as such no other user (including themselves) could susbequently access it.
    So, I'm basically wanting to know if there is a way (by using Javascript?) to catch the fact that the user is about to navigate to another web page.
    Kind regards,
    Tom

    Hi John,
    Well, I'm chasing my tail about this one as not getting any response from any area.
    Apart from the Oracle Forms forum, any other one that you would suggest?
    Kind regards,
    Tom

  • I have called my bank and they told me there is no problem with the credit its the appstore that jammed my account so please if you can try and deduct from my account ill be very gratefull thank you iPad 2 Wi-Fi   3G, iOS 6.1.3 iPad 2 Wi-Fi   3G, iOS 6.1.

    I have called my bank and they told me there is no problem with the credit its the appstore that jammed my account so please if you can try and deduct from my account ill be very gratefull thank you
    iPad 2 Wi-Fi + 3G, iOS 6.1.3
    iPad 2 Wi-Fi + 3G, iOS 6.1.3
    <E-mail Edited by Host>
    iPad 2 Wi-Fi + 3G, iOS 6.1.3

    Most of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here.
    If you need to contact iTunes Support then you can do so via this link : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I have called my bank and they told me there is no problem with the credit its the appstore that jammed my account so please if you can try and deduct from my account ill be very gratefull thank you iPad 2 Wi-Fi   3G, iOS 6.1.3

    I have called my bank and they told me there is no problem with the credit its the appstore that jammed my account so please if you can try and deduct from my account ill be very gratefull thank you
    iPad 2 Wi-Fi + 3G, iOS 6.1.3

    Jonijo88 wrote:
    I,m sory but whin i go to supprt  thay opin this bage and no another way that is let me wrait here and this problem is not first time it is happen with me evry time so jast whin thy fixed this problem i will stope wraiting here
    For God's sakes, look harder...
    http://www.apple.com/support/itunes/contact/

  • I have called my bank and they told me there is no problem with the credit its the appstore that jammed my account so please if you can try and deduct from my account ill be very gratefull thank you

    I have called my bank and they told me there is no problem with the credit its the appstore that jammed my account so please if you can try and deduct from my account ill be very gratefull thank you

    You have to contact iTune Support
    http://www.apple.com/support/itunes/contact.html

  • Hi, I have a version of CS4 on my Mac.  I can not longer open Raw files with it from my Canon 5D.   I never had problems with it in the past.  What can I do?

    Hi, I have a version of CS4 on my Mac.  I can not longer open Raw files with it from my Canon 5D.   I never had problems with it in the past.  What can I do?

    is that the eos 5d?
    if so, you only need cr 3.3 or greater.  what version do you have in your cs4? (help>about plugins>camera raw)
    if you need to update it, http://www.adobe.com/downloads/updates/

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • If I delete itunes completely from my computer and reinstall will I get problems with my account

    If I delete itunes completely from my computer and reinstall will I get problems with my account. I am trying to upgrade from Vista to Windows 7 and need to clear hard drive as I have problems. Will it give me problems with my account if I install Itunes from new with new Windows 7 operating system?
    Many thanks

    Deauthorize the computer and back up the iTunes library before proceeding.
    (64245)

  • Calling method from SWF file wtih javascript, when swf file is not loaded in any browser

    Hi There,
    I have a question regarding flex and javascript integration:
    1. We have created certain components and bundle them in swf. these swf file uses webservice to connect to backend code written in java.
    2. We have deployed swf file and backend on the same tomcat server.
    3. Backend server send some datapoint to UI and plot graph and displyaed to user.
    4. Now if user generate graph from datapoint and want to export it, we are tranferring image of that graph from UI to backend. No issues in this process.
    5. Now the question is. let say user has not open any swf file in browser and backend scheduling job want to generate the graph. How we will connect to swf file.
    6. Is ther any way we can connect or call method of swf from java/jsp/html/javascript code in this scenario without loading swf file in browser??
    Please help me!!!
    Thanks
    Sonu Kumar

    Both test sites work just fine for me.
    The "Update plugin" message is exactly what would be displayed if no .swfobject file at all was found... so it may not be the "version11" thing but rather, perhaps something else is messed up with the .swfobject file.
    File can be found in both folders:
    http://www.pureimaginationcakes.com/test/Scripts/swfobject_modified.js
    http://www.pureimaginationcakes.com/Scripts/swfobject_modified.js
    and file does download when downloading the html page (just check the cache).... but for some reason it doesn't seem to be working.... Hummmmm????
    Adninjastrator

  • Embedded .swf's calling javascript from air container

    1) I have an html/ajax air app version 1.5.1
    2) This air app embeds .swf files from an external source / web server & plays the embdded .swf inside air.
    3) The embedded .swf file has a button with an onClick event
    function onClick(event:MouseEvent):void {
    ExternalInterface.call("someJavascriptMethod()" );
    4) The javascript method to be called is already parsed inside the containing Air app and is waiting to be triggered.
    5) When the onClick is triggered, the following error is thrown.
    Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX,
    Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
    at Error$/throwError()
    at flash.external::ExternalInterface$/call()
    at stress_fla::MainTimeline/onClick()
    6) On investigation I found on your livedoc's website that Air does not support the ExternalInterface.call method.
    http://livedocs.adobe.com/labs/air/1/aslr/flash/external/ExternalInterface.html
    Look for Note: Adobe AIR currently does not support the ExternalInterface class.
    7) Does anyone here know how I can get an embbeded .swf file to call javascript methods in the containing air application? I have had a look at the getUrl method but this is now longer supported & even the FS command but still to no avail. I may have a work around by inserting a DOM element over the top of the embedded .swf but this is not an elegant solution & want the .swf to talk directly to the air app container.
    All help & comments welcome
    Thanks
    Kyle
    Additionally I have found
    http://help.adobe.com/en_US/AIR/1.5/devappsflash/WS5b3ccc516d4fbf351e63e3d118666ade46-7ed4 .html
    Using the Html Loader so that Actionscript can call/manipulate the dom objects. At first I was whopee but then I tried the examples listed in the help. The HTMLLoader class is only available in Air. When trying to use import flash.html.HTMLLoader; Flash C4 complains that the Definition cannot be found on compile time & therefore does not export my movie correctly. Has anyone else had this problem or have a solution??
    More additions:
    The reason the htmlLoader class was not compiling was due to the source action script provided being ActionScript 2.0 - the htmlLoader class is a 3.0 library.
    However, after more investigation I have found the current structure.
    The air app has an html base/root doc. On periodic javascript events - .swf files are downloaded via
    videos = new air.Loader();
    netStream     = new air.URLRequest(path + file);
    videos.load(netStream);
    So now I have a html container in my air app that creates a new air.Loader which downloads the external .swf file in which I want an onClick event in the action Script of the downloaded .swf file to call a Javascript method of the parent air container. Simple yea?
    Or am I making life to hard for myself? Have been looking at the security snadboxes but I don't see how I can get the .swf file to talk nicely with the outer air container. Please help if able.
    Thanks
    Kyle

    Hi Kenneth,
    Your explanation makes sense.
    I have a big JavaScript file full of special mathematical functions written by a mathematician who only knows how to program in Javascript.
    I need to call the Javascript functions from within an ActionScript library, which obviously has no UI, and thus HTML and/or HTMLLoader are not an option.
    Any ideas?
    TIA,
    mlavie

  • Calling JavaScript from a swf in wordpress

    Just started using wordpress for my site after years of standard HTML and hit a problemwith an old Flash file I've usedfor 10 years
    So I have a flash 6 swf file living in my media directory at
    http://www.wealthcoachinguk.com/wp-content/uploads/2012/03/wol.swf
    and the swf file wants to call a JavaScript function on my HTML page living at
    http://www.wealthcoachinguk.com/?page_id=4
    Now on my old non-wordpress web site I just put the html and swf file in the same directory and this call always worked
    javascript:top.fSendForm()
    But now the swf file is in another location I don't know how to reference my JavaScript function.
    Not done JavaScript for over 10 years so would appreciate any help with this!
    thx
    Kevin

    Thx Ned for you help. What I am trying to do is call a JavaScript routine that then populates an invisble form with data from the swf which then calls a CGI Formmail script on the server. There may well be a beter way to do this in CS5?
    HTML code is
    <HTML><HEAD>
    <TITLE>Life Cycle v3</TITLE>
    <script language="JavaScript">
    <!--
        // Copyright: Multimedia Creations Ltd., UK
        // Email: [email protected]
        function fSendForm(n,t,o,p,m,d){
            var myForm = document.frmContact;
            myForm.subject.value = "Life Cycle Results for " + n;
            myForm.name.value = n;
            myForm.email.value = t;
            myForm.comments.value = o;
            myForm.recipient.value = "[email protected]";
            myForm.redirect.value = "http://www.wealthcoachinguk.com/";
            myForm.wheelData.value = d;
            myForm.submit();
    // -->
    </script>
    </head>
    <BODY bgcolor="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFCC00" text="#FF6666">
         <p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="500">
              <param name=movie value="LC0026.swf">
              <param name=quality value=high>
              <embed src="LC0026.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="500" height="500">
              </embed>
            </object>
         </p>
         <p><font face="Verdana, Arial, Helvetica, sans-serif" color="#0000FF" size="2">If
            nothing appears above then <a href="http://www.macromedia.com/go/getflashplayer/" target="_blank"><font color="#0033FF">click
            here</font></a></font>
         </p>
              <!-- Replace the URL below with your servers address for the formail CGI script -->
              <form name="frmContact" method="post" action="http://cgi-pub.freezone.co.uk/cgi-bin/formmail.pl">
              <input type="hidden" name="subject">
              <input type="hidden" name="name">
              <input type="hidden" name="email">
              <input type="hidden" name="comments">
              <input type="hidden" name="recipient">
              <input type="hidden" name="redirect">
              <input type="hidden" name="wheelData">
              </form>
    </BODY>
    </HTML>

  • Calling javascript from subdomain

    I have the swf file on the main domain and I call them from a
    subdomain. All works fine except javascript. Does anybody ahve an
    idea why? The same code that I use on a subdomain I use on the main
    domain too, and there javascript calls work.
    Thanks

    or...
    http://turtle.ee.ncku.edu.tw/~zulu/research/seminor02/
    http://turtle.ee.ncku.edu.tw/~zulu/research/
    JRG

  • Calling javascript from JavaFX

    This is well documented, yet I am having trouble communicating with JavaScript from JavaFX. The relevant snippet is:
    WebView wv = new WebView();
    WebEngine we = wv.getEngine();
    String content = FileUtils.readFileToString(new File("test.html"));
    we.loadContent(content);
    we.executeScript("changeBackground();");Which reads the following content:
    test.html:
    <html>
    <body>
    <script type="text/javascript">
    document.bgColor = "#cccccc";
    function changeBackground()
      document.bgColor = "#ff0000";
    </script>
    </body>
    </html>giving error:
    netscape.javascript.JSException: ReferenceError: Can't find variable: changeBackground
         at com.sun.webpane.platform.WebPage.twkExecuteScript(Native Method)
         at com.sun.webpane.platform.WebPage.executeScript(WebPage.java:1438)
         at javafx.scene.web.WebEngine.executeScript(WebEngine.java:811)
         at com.javainc.tmi.WebTest.init(WebTest.java:30)
         at com.javainc.tmi.WebTest.start(WebTest.java:44)
         at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
         at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
         at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
         at java.lang.Thread.run(Unknown Source)I've tried it without the semi colons at the end as well as every permutation I can think of.
    When I remove the executeScript code, the webview displays and turns the screen grey as it should.
    Is this a bug or am I missing something obvious?
    I am using 64 bit jdk1.7.0_09 on Windows 7.
    - Pat

    The document loads into the WebEngine asynchronously.
    You have to wait for it to finish loading before you try to run a script on it.
    For example, you can listen to the document property:
    we.documentProperty().addListener(new ChangeListener<Document>() {
      @Override public void changed(ObservableValue<? extends Document> observableValue, Document document, Document newDoc) {
        if (newDoc != null) {
          we.documentProperty().removeListener(this);
          we.executeScript("changeBackground();");
    });Or you could grab the WebEngine's LoadWorker and listen for it's state change.
    Some shorthand where you provide the load or loadContent method with a CallBack to be executed in the event of a successful page load might be convenient, so you could file a request in jira if you'd like that, but the listener methods work ok too.
    Full executable example (using your test.html):
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Scene;
    import javafx.scene.web.WebEngine;
    import javafx.scene.web.WebView;
    import javafx.stage.Stage;
    import org.w3c.dom.Document;
    import java.io.*;
    public class ScriptExecutive extends Application {
      public static void main(String[] args) { launch(args); }
      @Override public void start(final Stage stage) {
        final WebView wv = new WebView();
        final WebEngine we = wv.getEngine();
        we.documentProperty().addListener(new ChangeListener<Document>() {
          @Override public void changed(ObservableValue<? extends Document> observableValue, Document document, Document newDoc) {
            if (newDoc != null) {
              we.documentProperty().removeListener(this);
              we.executeScript("changeBackground();");
        String content = FileUtils.readFileToString(new File("test.html"));
        we.loadContent(content);
        stage.setScene(new Scene(wv));
        stage.show();
      static class FileUtils {
        public static String readFileToString(File file) {
          try {
            StringBuilder builder = new StringBuilder();
            String line;
            BufferedReader reader = new BufferedReader(new FileReader(file));
            while ((line = reader.readLine()) != null) builder.append(line);
            return builder.toString();
          } catch (FileNotFoundException e) {
            System.out.println("Cannot find: " + file);
            return "";
          } catch (IOException e) {
            System.out.println("Oh snap, it broke: " + e);
            return "";
    }

Maybe you are looking for

  • USB to Serial port delay

    I have some LabVIEW code that communicates with a TI MSP430 development board via a USB serial port simulator. The hardware that does the serial to USB conversion is part of the development board. how the application works is the LabVIEW code sends a

  • Sort problem in a sql statement with Order by clause

    Hello, I execute this statement : Select keyart from article order by keyart desc; and i got this result : KEYART VI-ZFI/GN VI-WWAD110 VI-WV83 VI-WVLZ816 VI-WVLZ811 VI-WVLP6 VI-WVLA9C3 VI-WVLA4R5 VI-WVLA2.8 VI-WVLA12B VI-WVD9N KEYART VI-WVCP210 VI-WV

  • Recording with the SB Audigy 2 zs plat PRO external is horribly low volume... setup probl

    I have my guitar plugged into line /line 2 and whenever I enable recording, the sound that is recorded is incredibly low. I have to set my speaker and system volume to the max just to hear a little bit of sound(i have the 7. S750 creative speakers).

  • Is There any way to make a JVC GZ-HD7 compatible with Final Cut Pro X

    Hi I have a JVC GZ-HD7AA and i need it to work with my New Macbook Pro and a 30 day trial version of Final Cut Pro X Is there any way this will work? i have tried it with imovie and it wouldn't work either. If it could just work with one of these pro

  • Contabilizacion de descuento

    Hay forma de que los descuentos se registren contablemente? en un afactura venta que en su asiento figure una linea por el descuento