Iframe content disappear if script loaded from string

I've got strange behaviour of FireFox 3.6-14 (have no 3.0 for now) with whis sample of code
http://pastebin.com/CzzfB709
Short explanation: if we create SCRIPT element and push script text from string and at the same time this script (that comes from string) create IFRAME, then iframe content is reloaded after script finished;
In sample code you can see that we have `scriptText` variable that contains JS code. Then we create SCRIPT tag and put string code there.
What you see: till you not close alert windows, you see text in iframe, but when you close it, iframe became blank.
I also have an example of the same code from string if it pasted directly into HTML. Everything seems fine there.
http://pastebin.com/4JcajiDQ
I ask if anyone can just explain me, why is it hapend.

As I think, this is some kind of a problem inside FireFox. So I just didn't know where to post it. Usually I'll prefer developer discussion group or maillist but I could not find such for FireFox. If you shure that mozillaZine is a best place for it than I'll wait. But I'm not shure whether it is still active community based on it's main page.

Similar Messages

  • How do I get back 5.3 library disappeared after I loaded from android to Premier Element 12?

    I recently upgraded to Premier Elements 12 and loaded my photo and videos from my android (Galaxy 4G Samsung) into the new program. After which when I went to my Lightroom 5.3 I found my entire library folders except one picture with a missing file statement, gone, disappeared. All gone but the one picture. The original files are still on my hard drive, but can I get them back with my Lightroom changes that haven't been saved? How do I do this? or are they all  gone?

    Are you sure you are opening the correct catalog? Search for .lrcat files and if you find the right one double click it.
    Do you have backup catalogs (you do, right)? Open your most recent backup catalog and see what you've got.
    I don't know about Premier Elements 12 but I can't see how that would be related to loosing you LR catalog.

  • Dynamic class loading from String name

    Hello all,
    I have a question for dynamic class loading:
    If I have a String variable that represents a class name, how can i use it to make dynamically an object of the class tha the string variable represents?
    For example i have a string like this
    String classname="String";
    Using this i want to make a new String object .
    Can anyone tell me how can i do this(example plz)?

    I have worked out the code and this works fine:
    import java.lang.*;
    class dynamictestname{
         public dynamictestname() {
        public static Class test(String objname){
             try{
             Class theClass = Class.forName(objname);
                 return theClass;
            } catch (ClassNotFoundException e)
                throw new NoClassDefFoundError (e.getMessage());
         public static void main (String [] args){
              String classname="java.lang.String";
              Class thisClass=dynamictestname.test(classname);
              try{
              Object instance = thisClass.newInstance();
              }catch(InstantiationException e){
              }catch(IllegalAccessException ie){
    }The new problem i 've faced is that i can't instatiate a new object by the class i have created.I saw some examples with use of the java.lang.reflect but this class i used with user created classes which have methods that the user wants to run dynamically.
    I just want to make an object from the class and give it a value.
    For example if the object i have created with the
    Object instance = thisClass.newInstance();is an object of java.lang.String class
    how can i do something like this below dynamically from instance object :
    String x="TEST ";
    Thanks for the help..

  • Iframe content in YUI tab disappearing - only in firefox 11

    We have an internal web site developed with YUI which uses the tabview control along with some content provided through an iframe. When the page initially loads the iframe is displayed but when switching between the YUI tabs the iframe content disappears. This stopped working with the upgrade to Firefox 11. It was working with all previous versions including up to 10.0.2.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Flash content loaded in IFRAME gets disappeared while applying transform:scale css property

    I have an iframe loaded with a flash content inside, and i have to resize the iframe while browser window width changes. So i tried changing transform:scale() property on different media query cut-offs. But unfortunately firefox makes the flash content disappear while applying transform-scale property. Is there any way to overcome this?

    Sorry, i don't know how to visualize this. I can paste a sample code here, will it help?
    '''HTML:'''
    <iframe width="900px" class="iframeStyle" align="middle" height="1200px" frameborder="0" src="http://linktoFlashContainingHtml.html"> </iframe>
    '''CSS'''
    .iframeStyle {
    transform:scale(0.5);
    While applying this tranform:scale property, iframe get scaled but flash content inside the page loaded in IFRAME disappears

  • Loading JavaFX code from string

    Hi,
    Here is my JavaFX code that I put to the SimplePainter.fx file:
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.paint.*;
    import javafx.scene.input.*;
    import javafx.scene.shape.*;
    var elements: PathElement[];
    Stage {
        title: "Simple Painter"
        scene: Scene {
            content: Group{
                content: [
                    Rectangle{
                        width: 400
                        height: 300
                        fill: Color.WHITE
                        onMousePressed: function( e: MouseEvent ):Void {
                                insert MoveTo {x : e.x, y : e.y } into elements;
                        onMouseDragged: function( e: MouseEvent ):Void {
                                insert LineTo {x : e.x, y : e.y } into elements;
                    Path{
                        stroke: Color.BLUE
                        elements: bind elements
    }I am trying to use the ScriptEngineManager to evaluate the SimplePainter file:
    import java.io.FileReader;
    import javax.script.ScriptEngineManager;
    var path = "C:/Temp/fx/SimplePainter.fx";
    var manager = new ScriptEngineManager();
    var engine = manager.getEngineByExtension("fx");
    engine.eval(new FileReader(path));It throws AssertionError:
    java.lang.AssertionError
    at com.sun.tools.javac.jvm.Gen.visitBreak(Gen.java:1631)
    at com.sun.tools.javac.tree.JCTree$JCBreak.accept(JCTree.java:1167)
    at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
    at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:714)
    However the simple 'println("Hello World!")' code is invoked fine.
    Do I do something wrong?
    Is it possible to use JavaFX compile methods to execute a JavaFX code from string?
    Thanks in advance.

    I experimented with that a while ago with JavaFX 1.1, with success: [Creating JavaFX Classes from Java Classes then running?|http://forums.sun.com/thread.jspa?threadID=5368159]
    I tried again:
    import java.io.*;
    import com.sun.javafx.api.JavaFXScriptEngine;
    import javax.script.ScriptEngine;
    import javax.script.ScriptEngineManager;
    class RunJavaFXScript
      static String SCRIPT_NAME = "Test.fx";
      public static void main(String[] args)
        // Get the current directory
        File curDir = new File(".");
        // Get the script's file content
        BufferedReader reader = null;
        File fScript = new File(curDir.getAbsolutePath(), SCRIPT_NAME);
        System.out.println("Reading the " + fScript.getAbsolutePath() + " script");
        try
          reader = new BufferedReader(new FileReader(fScript));
        catch (FileNotFoundException e)
          System.err.println("File not found: " + fScript.getAbsolutePath());
          return;
        // Create a script on the fly
        String script = "function Demo() { println('Hello World!'); return 'It works!'; }";
        System.out.println("Getting the engines");
        ScriptEngineManager manager = new ScriptEngineManager();
        ScriptEngine engine = manager.getEngineByExtension("fx");
        System.out.println("Getting the generic ScriptEngine (by extension): " + engine);
        JavaFXScriptEngine fxEngine = (JavaFXScriptEngine) manager.getEngineByName("javafx");
        System.out.println("Getting the JavaFXScriptEngine: " + fxEngine);
        // Try to run it
        try
          System.out.println("Running the script read from a file: " + reader);
          Object readScript = engine.eval(reader);
          System.out.println("Running a built-in script");
          Object internalScript = fxEngine.eval(script);
          Object r = fxEngine.invokeFunction("Demo");
          System.out.println("Returned: " + (String) r);
        catch (Exception e)
          e.printStackTrace();
        finally
          try { reader.close(); } catch (IOException e) {}
    }Compiled with:
    javac -cp %JAVAFX_HOME%/lib/shared/javafxc.jar RunJavaFXScript.java(with JAVAFX_HOME pointing at javafx-sdk1.1)
    Ran with:
    java -cp %JAVAFX_HOME%/lib/shared/javafxc.jar;%JAVAFX_HOME%/lib/desktop/javafxgui.jar;%JAVAFX_HOME%/lib/desktop/Scenario.jar;. RunJavaFXScriptIt works:
    Reading the E:\Dev\PhiLhoSoft\Java\_QuickExperiments\.\Test.fx script
    Getting the engines
    Getting the generic ScriptEngine (by extension): com.sun.tools.javafx.script.JavaFXScriptEngineImpl@758fc9
    Getting the JavaFXScriptEngine: com.sun.tools.javafx.script.JavaFXScriptEngineImpl@1113708
    Running the script read from a file: java.io.BufferedReader@133f1d7
    Running a built-in script
    Hello World!
    Returned: It works!(and it shows a Stage with a small FX script showing an animation).
    Now, I try to do the same of JavaFX 1.2: same command line for compiling (except of course pointing to javafx-sdk1.2), run command is:
    java -cp . -Djava.ext.dirs=%JAVAFX_HOME%/lib/shared;%JAVAFX_HOME%/lib/desktop RunJavaFXScript(more jars to take in account, I take everything...)
    And when I run it I have:
    Reading the E:\Dev\PhiLhoSoft\Java\_QuickExperiments\.\Test.fx script
    Getting the engines
    Getting the generic ScriptEngine (by extension): com.sun.tools.javafx.script.JavaFXScriptEngineImpl@8813f2
    Getting the JavaFXScriptEngine: com.sun.tools.javafx.script.JavaFXScriptEngineImpl@1d58aae
    Running the script read from a file: java.io.BufferedReader@83cc67
    An exception has occurred in the OpenJavafx compiler. Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates. Include the following diagnostic in your report and, if possible, the source code which triggered this problem.  Thank you.
    java.lang.AssertionError
            at com.sun.tools.javac.jvm.Gen.visitBreak(Gen.java:1631)
            at com.sun.tools.javac.tree.JCTree$JCBreak.accept(JCTree.java:1167)
            at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
            at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:714)
            at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
            at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:751)
            at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:735)
            at com.sun.tools.javac.jvm.Gen.visitSwitch(Gen.java:1210)
            at com.sun.tools.javac.tree.JCTree$JCSwitch.accept(JCTree.java:943)
            at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
            at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:714)
            at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
            at com.sun.tools.javac.jvm.Gen.genLoop(Gen.java:1076)
            at com.sun.tools.javac.jvm.Gen.visitForLoop(Gen.java:1047)
            at com.sun.tools.javac.tree.JCTree$JCForLoop.accept(JCTree.java:856)
    (and so on)So I have the same issue.
    Looks like something have been broken in 1.2... :-(
    Of course, the tested scripts compile without problem.
    If I put only my simple built-in script in the Test.fx file, it works... I can put an empty Stage in the script (it is displayed), but if I add an empty Scene to it, I have the same error.

  • While trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'

    Hi,
    Our PI is getting data from WebSphere MQ and pushing to SAP. So our sender CC is JMS and receiver is Proxy. Our PI version is 7.31.
    Our connectivity between the MQ is success but getting the following error while trying to read the payload.
    Text: TxManagerFilter received an error:
    [EXCEPTION]
    java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'
           at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:73)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
           at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:348)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
    I have searched SDN but couldn't fix it. Please provide your suggestion.
    With Regards
    Amarnath M

    Hi Amarnath,
    Where exactly you are getting this error?
    If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
    for reference follow below blogs:
    Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
    Michal's PI tips: XPI inspector - help OSS and yourself
    XPI Inspector

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • Unresponsive script error from "chrome://browser/content/browser.js:5582"

    I always get a unresponsive script error from chrome://browser/content/browser.js:5582 . If I uninstall and reinstall firefox, It'll stop for awhile. My os is ubuntu 10.04 64 bit.
    == User Agent ==
    Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How can i disable "browser-auto-load" for different iframe-contents in a composite widget?

    Hey there,
    i´ve got a lil topic going on with a Website (One-Site-Layout with anchors), created with muse
    i putted 20 iframes (each one routed to its own trigger) in a composite widget. Everything is working perfect for me and the users, but :
    The deliverer of the iframe-contents (pretty big picture galeries) told me, his server crashes, because every single time, someome enter the Website, the browser i loading every single iframe-content in this widget automatically > so the traffic is way to large, and i need a solution that simply load every single content after a click on the right trigger, not before.
    thank you so much!
    Werner
    Gonna let you see the the "trouble-area" http://werner-ag.com/#produkte

    That is not possible.
    You can look at this extension:
    *https://addons.mozilla.org/firefox/addon/toggle-mixed-active-content/
    *https://developer.mozilla.org/Security/MixedContent

  • Content disappearing from Apple TV

    I am running the latest version of iTunes on my MacBook Pro and syncing this with Apple TV (also fully updated). I have noticed that purchased content disappears from the Apple TV, and in some cases, from the MacBook. For example, I have purchase a season of Stargate Atlantis, downloaded and successfully synced, but then the following day episodes 3 and 5 will be missing from iTunes and Apple TV. They still exist in the backup (within the music library under "TV Shows," but what gives? Why so buggy? Thanks in advance for any comments!!

    Well nothing should ever disappear from iTunes, but for the AppleTV. Syncing doesn't really mean all content will always be there. It will sync, Movies, then TV, Music, then Photos in that order. If more spaces is needed for lets say a Movie, it will pull off photos, music, then TV shows in that priority order. The AppleTV I believe is going to try to save room on itself never knowing when you may download a rental or new content from the online store via the AppleTV. It will sync back content if there is room, if not then it will leave it on your computer and then stream when needed. Synced content just allows for faster access and access when computer is not on.

  • Aperture 3.2.4 macbookpro lion: image disappears after loading from any project; repairing everything on starting app doesn't fix it. Only restarting the computer works. Any help, please? ... in non-technical language please. Thanks

    aperture 3.2.4, macbookpro lion: image disappears after loading from any project; repairing everything on starting app doesn't fix it. Only restarting the computer works. Any help, please? ... in non-technical language please. Thanks

    “Hi Kirby, thanks a lot for your answer.
    I got one answer, from DMoore, saying:
    “Try Safe boot and then restart with only Aperture open.  Still doent work write back with more details like Ram, HD capacity/free space.  Are these thumbnails or Previews? Have you turned off building previews in AP preferances?
    Safe boot   http://support.apple.com/kb/HT1564
    Starting up into Safe Mode does several things:
    1  It forces a directory check of the startup volume.
    2  It loads only required kernel extensions (some of the items in /System/Library/Extensions).
    3  In Mac OS X v10.3.9 or earlier, Safe Mode runs only Apple-installed startup items (such items may be installed either in /Library/StartupItems or in /System/Library/StartupItems; these are different than user-selected account login items).
    4  It disables all fonts other than those in /System/Library/Fonts (Mac OS X v10.4 or later).
    5  It moves to the Trash all font caches normally stored in /Library/Caches/com.apple.ATS/(uid)/ , where (uid) is a user ID number such as 501 (Mac OS X v10.4 or later).
    6  It disables all startup items and login items (Mac OS X v10.4 or later).
    7  Mac OS X v10.5.6 or later: A Safe Boot deletes the dynamic loader shared cache at (/var/db/dyld/). A cache with issues may cause a blue screen on startup, particularly after a Software Update. Restarting normally recreates this cache.”
    As I don’t know much about the technical aspects of computers, I don’t really understand the first answer, and it sounds like following it might produce unwanted changes.
    But I understand your questions, so I’ll try to answer them;
    "loading from any Project" means that I encounter the problem when I’m using a project, possibly after/because I’ve left the Mac on overnight, and/or  I’ve made a lot of adjustments, and, once the problem is there, it happens in any other project which I open – the images load then disappear.
    I can see images in the Browser, so it only happens in the Viewer(s).
    I’m afraid I don’t understand what you mean by: “If you select "Photos" from near the top of the Library tab of the Inspector, does it show you all of your Images?”. I am a newcomer to Aperture, so I don’t know what some of the buttons are for yet, but when I want to look at and adjust my pictures, I import them, as referenced images, then Aperture creates a folder/project in the Library. When I click on that Project (when it’s working properly), all the images appear in the Browser or the Viewers  – without me needing to “select Photos from near the top of the Library tab of the Inspector”. I selected it and looked at all the items in the dropdown menu, but none of them seems to offer the option to ‘show all the images’. So I’m not sure how to answer your question except to say that – yes, I can see all the pictures in the Browser or the Viewers (when it’s working properly), but I don’t seem to need to use the Photos button to achieve this.
    Did Aperture work before?
    Yes it worked ok for a while, but I only purchased it on 24th May.
    If I understand correctly, the difference between thumbnail and preview is that the thumbnail is what I see when the “Loading” wheel is turning, and the disappearance of this wheel after a few seconds means that I am now looking at the preview (also, the thumbnail cannot be adjusted).
    So I think the problem occurs when the thumbnail has finished loading; the viewer going blank/grey might mean that it is not showing the preview.
    But I have not changed the default Preview settings in Aperture Preferences.
    My macbookpro details:
    2.7 Ghz Intel Core i7
    Memory: 8 Gb 1333 MHz DDR3
    Hard Drive capacity 499.25 GB
    Available 387.36 GB
    I have noticed another problem: I cannot apply the same rating to multiple images: following the instructions, I select a group of contiguous (or non- contiguous) images, choose a selection eg “5stars” using the keyboard, but the stars only appear in the last selected image – even though all the images are still showing as selected.”
    I hope this helps you to understand more.
    Thank you for trying to help me.
    Tony

  • HTMLEditorKit SCRIPT content disappears after read

    I am trying to read and display an HTML Document using JEditorPane and HTMLEdiorKit. I am overridding javax.swing.text.html.HTMLDocument.HTMLReader class to read HTML document. My javascript content(functions) disappers when I read the html document. It only displays
    <script type="text/javascript">
    </script>
    All the content of the script disappears.
    I tried to register script tag with a tag action class, still I can't see content.
    I tried to use the orginal HTMLReder. It didn't help.
    Any help is appreciated.

    If your script code is wrapped by a comment the HTMLEditorKit is going to throw away the script - it doesn't understand any scripting language. If you take out the comment tags that wrap the script content, you'll probably see the script content as plain text. I'm not sure if there's a way to tell the HTMLEditorKit not to throw away comments.

  • IPhone Error on startup "Script error from content provider"

    When I turn on my iPhone (and when reboot) my iPhone goes black and it says "Script error from content provider". This is a brand new iPhone that Apple gave me today as a replacement of my old one. What's wrong with it? I've done all updates.
    This is an image of what I got
    Thank you

    Took my iphone 4 back to Apple this AM. They removed the sim card and tried it in 3 diffrent phones and the error occured on all the phones. Then they tried a sim from Rogers and the error did not occure.
    Apple gave me a new sim and i came home and activated the new sim  Still had the same error.
    Spoke to Telus tech support. After a long conversation they finally advised me that is a network problem and not a problem with the iPhone. They are working to resolve it.  I was told it was top priority as it was affecting a large number of customers country wide. They have no idea how long it will be.
    It seems to be only happening on Telus network.
    All we can do now is wait.
    At least we know it is not the iPhone.

  • Manipulating iframe content

    Hello,
    I face some problem, i am using jquery as my framework, and i got an issue with the iframe content.
    What i want to do is the load external website into my iframe (random website url from my database), and to insert my script into header (i want to do something like greasemonkey does on firefox).
    Here's my code:
    $('iframe').contents().find('header').append('<script>My user script</script>');
    The problem is that this doesn't work, when i tried to do $('iframe').contents().find('header').html() returns nothing...
    I knew this was a limitation in html because of cross domain, but adobe air isn't restricted to that, so what am i doing wrong here?

    I'm not versed in the AIR html security model, so I'm going to forward this over to our webkit team.  My hunch is you are running into a security related restriction.  If you haven't already, please take a look at the following pages:
    HTML Security in Adobe AIR
    Cross-scripting content in different security sandboxes
    Thanks,
    Chris

Maybe you are looking for

  • SOLVED -Newbie with Bind Variable Issue in Data template

    My XML output looks the way I want it structure-wise, but the data is the same for each group. Obviously my bind variable never gets updated. How can this be achieved? Here are the dataquery and data structure parts of my template: <dataQuery>       

  • Error in IE while starting PC-UI

    Hi all, I get the error  "<b>Bad Gateway The following error occurred: [code=DNS_HOST_NOT_FOUND] The host name was not found during the DNS lookup. Contact your system administrator if the problem is not found by retrying the URL.</b>" while trying t

  • Hasselblad Thumbnails (*.fff) not displayed in CS4

    Hasselblad thumbnails (*.fff) not displayed. Older file-versions created from *.3fr to *.fff by FlexColor are displayed. Newer versions created by Phocus are not displayed. In Apples finder they are all displayed well and you can zoom in to full scre

  • Populate vo values in multi colum format

    Hi, I created a VO and now i want to present the values in multi column format with radio button for each value fetched from query . I tried using message component layout.But i was not successful in doing . I want in the following format attibutenam

  • Problem Method CHECK_ADD_ON_ACTIVE in MKO2 tcode

    hello experts, In 4.6 environment i add button in transaction MK02 with method CHECK_ADD_ON_ACTIVE. Like this: CALL METHOD G_ADDITIONAL_DATA->CHECK_ADD_ON_ACTIVE     EXPORTING       I_SCREEN_GROUP  = IP_SCREEN_GROUP     CHANGING       E_ADD_ON_ACTIVE