Setting a property of a Media-instance crashes the browser

Hello,
I want to change some properties of a javaFx-Script via javascript.
All works, but when I want to set the Property "source" concatenating with "{FX.getProperty("javafx.application.codebase")}", the JVM crashes:
This is the relevant snippet from my xhtml-page:
<script type="text/javascript">
function setSource(source) {
    var app = document.getElementById("myJFXApplet");
    app.script.source = source;
</script>
This is my JavaFX-Main.class, where the Stage-Instance exists:
var codebase:String = "{FX.getProperty("javafx.application.codebase")}";
var source:String = ""
// This results the JVM-Crash: I only want that the source is concatenating with the codebase
var source2:String = bind "{codebase}{source}"

The reason it fails the first time is because there is no text in the string indicator to act upon. On the second and subsequent executions, if the text is left in the indicator, the property change will take effect. To test this, clear the indicator between each run, you will see that it does not set the colors as you desire.
So, put the text into the indicator first, then change the properties. Attached is a modification of your vi.
Tim
Attachments:
Setting_Substring_Colors_MOD.vi ‏35 KB

Similar Messages

  • Closing the Second instance of the browser.

    Hello,
    I am working on a project written in Java. When applet is running in Browser, we can open the new instance of the browser using File->window->new (or pressing CTR-N). Since the second window runns in the context of first window, It is causing some problem.
    Is there any way for me to close the second instance of the browser from my Java applet?? If not is there any way for me to disable both the File->new->Window and CTR-N options.
    I am new to java and java script. If it is not possible in Java Applet, is it possible in java Script. Please Provide me with full information.
    Thanks and Regards,
    Ratna.

    Hi,
    There is no way you can close the browser window that the user opens. Even if there is a way through some hack, it will not completely give u a solution, independant of browsers and all. And moreover it is not advisable to restrict the user like that.
    A more elegant way would be to handle it in the server side. I can give u one ligical way. U can make the page expire as soon as it gets loaded. U can do that by using the code below. And you have to have a server side function to check for a request from the same client machine for the same page.
    <%
        if (request.getProtocol().compareTo("HTTP/1.0") == 0)
            response.setHeader("Pragma", "no-cache");
        else if (request.getProtocol().compareTo("HTTP/1.1") == 0)
            response.setHeader("Cache-Control", "no-cache");
        response.setHeader("Expires", "-1");
    %>So when the user opens a new browser window, he will be shown page expired message, or the page will be requested again from the server. U can have a map storing the remote address and the session of the user.

  • Crash the browser

    I have a problem and need some advise.
    When I try to run my flash, is there a limitation (on system
    memory or calculation limits) that would crash the browser?
    I try using Flash player 9 but it get worse than Flash player
    8, any idea?
    Thanks in advance,

    Well, I tried changing the applet tag use to
    <object classid='clsid:CAFECAFE-0013-0001-0009-ABCDEFABCDEF'
    archive='<%=APPLET_ARCHIVE%>' code='<%=APPLET_CLASSNAME%>' width=0 height=0>
    (the sole change from the <applet ...> days being the addition of the classid; all variables had the same value, too).
    JInitiator started, and then said
    APPLET tag missing CODE parameter.
    java.lang.NullPointerException: name
         at java.util.zip.ZipFile.getEntry(Unknown Source)
         at java.util.jar.JarFile.getEntry(Unknown Source)
         at java.util.jar.JarFile.getJarEntry(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.lang.ClassLoader.getBootstrapResource(Unknown Source)
         at java.lang.ClassLoader.getResource(Unknown Source)
         at java.lang.ClassLoader.getResource(Unknown Source)
         at java.lang.ClassLoader.getResource(Unknown Source)
         at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
         at sun.applet.AppletPanel$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    (the exception repeated once)
    Needless to say, the CODE parameter is provided. I don't know quite what to think here.
    (This working without source code for critical components is like trying to read a translation of your favourite novel into a language you don't read, in the dark.)

  • Can I set an mx control property globaly for all instances of the control.

    Is there a way of setting the value of a variable on a control for all instances of the control in the application? 
    For example, I have several instances of an mx:Label and I want to change the enabled property for all instances at once rather than refer to each one individually by id.

    One way is to subclass Button and change its enabled getter to watch some static property.  You don’t really want to change Button itself because Buttons exist in lots of places like ScrollBars.

  • Acrobat 9 "Display PDF in Browser" on IE7 crashes the browser

    Hi,
    Here's what is happening. My company purchased a few licenses for Adobe Acrobat Professional 9, and they were installed on some of the company laptops. These laptops are in a UAC controlled SOE environment, so the employees are restricted to do any updates/installations that requires rights. The Adobe Professional 9 was installed through SCCM advertisement, and the "Display PDF in Browser" option was enabled.We discovered that when we attempt to download any pdf files off the web, the browser would stop responding/hangs during the duration of the downloads (shown at the status bar of IE), and we can only kill off the process.
    The current workaround is to disable the "Display PDF in Browser" and download the file directly. However, it came to some points where the pdf documents contains some dynamic links over https on the site is is residing. In which case, the pdf have to be open to view from the secured site for the dynamic link to works.
    Previously with Adobe Reader 9, we face no such issue. Only after we installed Acrobat Professional 9, this issue surfaces.
    We have tried uninstalling the Reader before installing the Acrobat to prevent any chances of conflicts, problem persisted.
    Here are the versions of the software involved.
    Adobe Reader v9.3
    Adobe Acrobat Professional v9.0.0
    Internet Explorer v7.0.6002.18005
    I have looked through the forums for similar cases, unless I have missed the keywords, I do not see any similar cases.
    Has anyone encountered similar issues? Would appreciate if you could share on what was done to circumvent this. Thank you!
    Jiang.

    Hi broger_1,
    Thanks for your reply.
    In regards to your query:
    Is the problem seen with both Reader and Acrobat?
    No, this is only seen when Acrobat is install. It is working fine when only Reader is installed.
    What is your definition of a dynamic link? Post example.
    At the moment, I cannot find a online example for reference. I will try to describe by example.
    Let's say if I goes to https://nonexistance_site.com/brochure_ folder/broc_1.pdf, and the "Display PDF in Browser" was already enabled.
    The content of the broc_1.pdf contains a hyperlink that points to "../broc_2.html"
    Our issue now is the we can only download the pdf file to a folder, say c:/pdfs/broc_1.pdf, so when we tried to access the dynamic link, it will tries to locate c:/pdfs/broc_2.html, which is non-existence. And direct access to https://nonexistance_site.com/brochure_ folder/broc_2.html would not work for some reason (possibily session restriction, or something else).
    What are your security settings? (is Enhanced Security enabled?)
    This setting is currently disabled in the Acrobat Pro 9 preference. Should this stays as disabled?
    This only happens when attempting to "download & display" any pdf files from the net, displaying of local pdf that is already downloaded is fine.

  • Onchange on a select that replaces the innerHTML of a encapsulating div crashes the browser

    webos browser under 1.3.5.1 crashes
    description:
    If a div includes a select and the select has an onchange which causes the innerHTML of the div to change, the browser crashes and reloads.
    You can see the below html at: http://quigleyjones.com/dropdown.html
    <html><head><title>dropdown test</title>
    <script type="text/javascript">
    function jstest() {
    document.getElementById("testdiv").innerHTML = "test";
    </script>
    <meta name="viewport" content="width=device-width; initial-scale=1.0;">
    </head>
    <body>
    <div id="testdiv">
    <select onchange="jstest();">
    <option value="one">one</option>
    <option value="two">two</option>
    <option value="three">three</option>
    </select>
    <div>
    </body>

    Palm has logged this in its software issue tracking system. We endeavor to continuously improve our software quality and thank you for bringing this to our attention.  We are grateful to the community and will evaluate options based on customer feedback and software best practices.

  • How can I keep a cookie for a certain site when I have set Firefox to delete cookies when I close the browser?

    I have set Firefox to delete all cookies when I close the browser. Some websites identify my computer with a cookie, so when I try to log in to these sites, they don't recognize my computer because the identifying cookie has been deleted. I understand that Internet Explorer has a feature that preserves specified cookies, but haven't been able to find that capability in Firefox. Is there a way to do it?

    Let all cookies expire when you close Firefox.
    * Tools > Options > Privacy > Cookies: "Keep until": "I close Firefox"
    Make an Allow exception for the ones that you want to keep.
    * Tools > Options > Privacy > Cookies: "Exceptions"
    You can inspect and modify the permissions for the domain in the current tab in "Tools > Page Info > Permissions"
    Make sure that you do not use "Clear Recent History" to clear the "Cookies" and the "Site Preferences" (Site Preferences includes the cookie exceptions)
    * https://support.mozilla.com/kb/Clear+Recent+History
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception.
    See also:
    * https://support.mozilla.com/kb/Cookies
    * https://support.mozilla.com/kb/Enabling+and+disabling+cookies

  • How can I close an Open PDF form without crashing the browser

    Hi
    We have build a webdynpro application in Java. In this application, we are make using of the Interactive form to bring up  a PDF form that the users can print. Our issue is that no matter what approach we take there is no gracefull way to exit once the PDF is displayed.
    Here are the approaches we took.
    1) Embed the PDF in the existing Window. The form comes up correctly with all fields, but there is no way to get out from it. A browser back doesnt help, nor is there a default close button in the PDF window.
    2) Bring up the PDF on a separate window.The PDF does come up fine on this new window. We were hoping to use the window.destroyInstanece() method on this new window to both close the window and gracefully exit the PDF form. This too dint quite work out and resulted in a browser crash.
    I am sure others must have faced a similar problem. Are there any suggestions on how we can handle this. I found a few other posts with similar issues but no clear answers.
    We are using Adobe 7.0.9 Reader on the client end.
    Regards
    Aju Paul

    I have been working with Aju on this issue. We are still experiencing the issue.
    We have tried using the destroyWindow() method and using a fireplug to redirect the application. When we have an Interactive form embedded on one of the views in the window, the application will cause a browser crash when we try to destroy popup window or redirect the applicaiton.
    If we remove the Interactive form from the view, we can destroy the window and we can redirect the application. The problem only  occurs when the Interactive form is present.
    We have recently upgraded our server to SP10. I have also reloaded the ACF on my pc. Neither of the steps resolved the issue. What else can we look at to see what may be causing the issue.
    Thanks.....Tommy Knight

  • Is it possible to export my bookmarks from Firefox and import to another instance of the browser but without any type of cookie being imported?

    For convenience I want to have my already created bookmarks imported into another Firefox user's browser. For security reasons I don't want any cookies or flash cookies to be imported when I do this and I don't want to Sync browsers. Is this possible? If so, how, or are cookies not part of the exporting of bookmark data anyway?

    You can transfer bookmarks using two different formats:
    * Backup format: if you want to preserve tags, this format can do that. However, the Restore process completely replaces all existing bookmarks with what is in the backup. If you want to merge different sets of bookmarks together, do not use this method. More info:
    ** [[Restore bookmarks from backup or move them to another computer]]
    * Export format: with this option, Firefox creates an HTML file with an ancient format compatible with most browsers. It is not as complete as the newer Backup format. More info:
    ** [[Export Firefox bookmarks to an HTML file to back up or transfer bookmarks]]
    ** [[Import Bookmarks from a HTML file]]
    Neither of these files contains cookies or passwords.

  • Every time I try to open you tube it crashes the browser, started yesterday, both mozilla and safari

    others site seem to load and work fine.

    Flash Player 10.1 Release Notes: (latest version for Mac G3 PPC)[SWFMP]
    * http://kb2.adobe.com/cps/838/cpsid_83808.html
    See (Released 11/04/2010) Flash Player 10.1.102.64 and 9.0.289.0 (126 MB)
    * http://kb2.adobe.com/cps/142/tn_14266.html Archived Flash Player versions

  • Media Encoder crash in Windows 7

    I just finished building a new machine to take the place of my old one. I'm using CS4 Master Collection. I don't use the video tools a lot but last summer I put together a presentation using Premier and created an avi file from it using Media Encoder. I worked on this for a couple of months and it always worked fine.
    Well a coule of days ago I decided to see how fast things would run on my new box so I ran the same project. I opened it up, clicked "export" and then "media" (I think that's it, I don't have it up and running at the moment). Media Encoder opens up at that point. About 20 seconds into it, my computer crashes and reboots. No BSOD, no freeze up, just pow, shut down and restart on its own. I've tested this a few times and even chose mp4 output to see if that made a difference. None. Same deal. One time when I opened up Premiere the whole machine froze but mostly I can get to that but Media Encoder crashes the system.
    I read that this was a problem in the RC days of Windows 7 but I figured the Adobe updates would have handled this by now (I did run the update so everythings current - CS4 and Windows 7). I've run several stress tests (Prime95, memtest, furmark, etc, including thorough drive tests with WD diagnostics) before loading up my programs and done a lot of stress testing after that too. in fact I'm running Prime95 now and no problems.
    What's going on with this? Anyone know? (I want to submit this to Adobe bug support as well but can't find a link for that)
    Here's my system:
    OS = Windows 7 Ultimate 64 bit
    Motherboard = GIGABYTE GA-X58A-UD5 (BIOS v 5)
    CPU = (1) Intel Core i7-930 Bloomfield 2.8GHz LGA 1366
    RAM = (12GB total) CORSAIR XMS3 6GB (3 x 2GB) DDR3 1333 (PC3 10666) 7-7-7-20 Model TR3X6G1333C7 G
    Cooler = Noctua/XION NH-U12P SE2 (2 fans)
    Video = (1) EVGA 512-P3-N871-AR GeForce 9800 GTX+
    Sound = HT | OMEGA CLARO Plus+
    Case = LIAN LI PC-P80 or PC-A77F
    PSU = CORSAIR CMPSU-HX1000
    Storage = (2) Intel X25-M 80GB SATA II MLC SSD RAID 0 (on the Intel controller)
    Storage = (4) yet to be determineed HDD's (probably going to use WD7502ABYS) RAID 10 (on the Intel controller)
    Storage = (1) Western Digigal WD1001FALS 1TB HDD for my DVDs
    Storage = (1) Western Digigal WD5001AALS 500GB HDD partitioned in 3 parts for clones of the OS drive in case of emergencies (this is in addition to clones and backups that are on spare drives outside the box)
    Optical = (2) LITE-ON DVD Writer - Bulk - Black SATA Model iHAS224-06

    Mea Culpa.
    I misread the big 7 as meaning PR7. Sorry to mislead you and to have misread your post.
    It could be a myriad of things, but look at the second link in this link: Some suggestions...
    There is some info requested, like Process Explorer (not Task Manager) and DXDIAG. Maybe that will shed some light, but temps and voltages are the first suspects.

  • Is mailto causing new instance of IE Browser to launch?

    In Captivate 3, I have a button defined to Open a URL like this:
    mailto:[email protected]?subject=Important
    I have the button set to allow one attempt and After last attempt = No Action
    The problem is that an instance of the IE browser opens, and then an email (Outlook) opens. The email instance looks fine.
    How can I prevent the instance of the browser window from opening?
    Thanks!

    Hi Charlie,
    I just tried this in Firefox and you are absolutely right. Very strange indeed. There must be a difference in how IE and FF process the mailto command.
    Anyways it shouldn't be too much problem to set up the JavaScript function for it to work in IE.
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Chinese not displaying, unless encoding is set explicitly in the browser ?

    Hi,
    Our application is working fine at my work place, end user is able to see our application either in english/chinese/malay based on his laguage choice. But in some client place chinese is not being displayed, unless they set encoding to GB2312(Simplified Chinese) explicitly in the browser.
    They are not able to see our application in chinese, unless they set encoding explicitly in the brower, in all their systems(Computers), where in different vertions of Internet Explore including 5.0,5.5,6.0 installed.
    Even they installed some fonts namely, Arial Unicode MS, and SimSun, this problem is not get rectified.
    The characterset is UTF-8 in our JSPs.
    Could you please tell me the solution for this problem ......
    Thanks in advance
    Srinivas

    Hi,
    And For one page, we compare the 'View Source(HTML)'
    of both ends pages, it is different.....why..?
    In these HTML pages, obviously some unreadable characters are
    there(which represent Chinese characters). That unreadable characters are different in
    both pages, one is created in our end, and other is
    created in my client place.
    is the problem in browser or server (Weblogic 5.1)?
    Thanks in Advance
    Srinivas.

  • Selecting  views in object browser crashes IE browser

    in HTMLDB v2 navigate as follows:
    SQL Workshop > Object Browser
    in the select list (which defaults to Tables) select Views. This crashes the browser!!
    Have installed the MS script debugger and this pops up the message:
    A Runtime error has occured. Do you wish to debug?
    Line: 50
    Error: Object Required
    The problem occurs for all options in the select list which do not have any objects of that type created in the schema. (ie if no views are created then it will crash. If you then create a view this option works fine)

    Hi
    I have the exact same symptoms as described in this thread.
    I thought I had found the solution, but I use the HTTP Server that is included with Oracle RDBMS version 9.2. This config doesn't have any marvel.conf file. But I think this is the same as httpd.conf in my configuration (?). I had the AddType rows in there but they did not have any dots before "xbl" and "htc". So I changed the rows to:
    AddType text/xml .xbl
    AddType text/x-component .htc
    ... and restarted the HTTP Server but I still get the runtime error as you describe it.
    Any ideas of what to do?
    regards // Frederic

  • My homepage is set to google, but firefox always open to the previous page I was on. How do I fix this problem??

    I have my homepage set to Google, but after I have closed the browser and come back to open it up another time, it goes tot he previous page I was on. I have checked all my settings and it shows that I have it set up properly, but it refuses to work.

    Google may have put in a program that overrides what you want.
    It could be the work of one of your add-ons, or even add / mal-ware.
    Open your '''Add-ons Manager <Control><Shift > A''' and make sure you
    know what each one is and what it does.
    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    Also, check the programs that are on your computer
    '''Windows:''' Start > Control Panel > Uninstall Programs.
    '''Mac:''' Open the "Applications" folder.
    '''Linux:''' Check your user manual.
    Go thru the list. If you find something that you don't
    know what it is, use a web search.
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-caused-malware Troubleshoot Firefox Issues Caused By Malware]''' {web link}

Maybe you are looking for