[WebView] external HTML loaded, but without styles and scripts...?

Hello again :)
I am using WebView to load an external HTML document for layouting and styling my application. Thereby I generated an executable .jar to use this as a sstand alone application. Here it snaps.
When I load the HTML, its loaded without styles and scripts, mentioned in the <head> part of the doc. Scripts, pics and styles are referenced relatively. That works indeed: laoding the doc in Chrome results in a fully functional website, but doing so with the .jar does not.
This is how I load the page:
URL markupURL = null;          
markupURL = getClass().getResource("/mockup.html");
browserEngine.load(markupURL.toExternalForm());
getChildren().add(browser);Thats how the styles are linked in the HTML:
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/metrostyle.css">So consider the following folder structure:
- commport
# mochup.html
# comm.jar
- css
# bootstrap.css
# metrostyle.css
/css
/commport
I repeat: this structure works in a browser. Why not in the jar?
thanks :)
Edited by: W4tson on 22.01.2013 16:59
Edited by: W4tson on 22.01.2013 17:02

Unfortunately you need to form your xml a little differently.
<data>
<title>HelloWorld</title>
<content>Here
is some &lt;i&gt;html&lt;/i&gt; text I want to assign to a text area.</content>
On the server I use a java utility to replace the html less than (<) and greater than(>) and other characters with the amper html equivelants.
However I am sure that there must be a regular expression syntax somewhere out there that will do this in Flex.  

Similar Messages

  • TS1398 I have I-phone 4S - Since updating to IOS 6, when at home with Wi-Fi network with my I Phone connection is not responding sometimes – for example if I want to check my G-mail it shows loading but nothing happens and after few minutes it displays "C

    I have I-phone 4S - Since updating to IOS 6, when at home with Wi-Fi network with my I Phone connection is not responding sometimes – for example if I want to check my G-mail it shows loading but nothing happens and after few minutes it displays “Cannot Get Mail” – The mail server “imap.gmail.com is not responding, Verify that you have entered the correct account info in mail settings
    Other times the Wi-Fi connection works fine and it check e-mail or other within few seconds. The connection problems seems to be intermitted
    This issue never happened before with IOS 5 since I bought the new phone in Oct 2011.

    We suffered the imap.gmail.com server problem After an IoS 6 upgrade. The simple solution is to delete the problem account, shut down the iPad, start up again and reenter the account. Everything comes back normally. Good Luck everyone!

  • HT3964 MacBook 2007 won't start up all of the way it gets the loading circle thing then it just keeps going and a bar thing pops up to load but doesn't and about a few minutes and it shut off. I don't have a disk for the computer or another Mac so what do

    need help MacBook 2007 won't start up all of the way it gets the loading circle thing then it just keeps going and a bar thing pops up to load but doesn't and about a few minutes and it shut off. I don't have a disk for the computer or another Mac so what do I do?

    I don't have the disk and i tried the shift key and it didn't do anything, i have tried like everything but it won't work and i was givin this computer with a charger and that is all nothing came with it and i don't think that it had the lion thing on it either i never got to that it just won't turn on and i have another mac that was a family members but it won't turn on either at all it won't load anything the screen stays black. so i don't really know at all what to do is there anything else? i don't want to take it anywhere because i have no money for that, and i need this computer for school. Any sugestions?

  • My email attachments cannot been seen on my Ipad. I think they are mostly in quicktime. When I touch the icon, the start to load but thats all and after a while my Ipad goes in sleeping time! What can I do.

    I have problems with attechments of mails when it is a short movie (mostley humor). They come in my mailbox wot quicktime and i tru to open them but my ipad loads them but keeps showing "loading" but nothing happens. After a while my ipad goes in sleepingtime. So it doesn't give a faillure or some other choises. This is a problem because now i can only see those mails on my labtop (sorry not from apple) Is there any solution for this problem.
    Miranda jansen

    Install the Flex:Player App;  http://itunes.apple.com/app/flex-player/id451024857?alreadyRedirected=1&mt=8
    Then you can open the movies, keep tapping on them and choose Open in Flex:Player.

  • Ebook loads but is empty and freezes the program.

    Please. Have reloaded Digital editions after emptying and reloading my computer from the basement. Have registered and got itunes and NVDA exactly as it was last time I used it.It loaded and played my book the last time.  it loads and plays the free ebooks that are on offer but when I load My ebook    http://store.blurb.co.uk/ebooks/449919-some-doggie-poems-wot-i-have-writ    and put it into the library I then try to open it, it opens but is empty and it freezes everything and the only way of removing it is to switch off my computer. I have been in touch with Blurb who assure me there is no problem their end. can anyone help please. MICK.

    I have an XP and used Hotmail today and yesterday. There seem to have been some changes recently with how attachments are handled (for example you add photographs to emails) but the basic Hotmail and its inbox seem to be functioning fine.
    '' "I have the latest level MF" '' what is '''MF'''?

  • Mozilla pages load without style and pictures.

    Yes, I have tried the methods suggested but with no avail. This problem has happened before and solved by tinkering with Java, however, I do not remember or documented how to.
    Screenshots can be provided if needed.

    Application Basics
    Name
    Firefox
    Version
    23.0
    User Agent
    Mozilla/5.0 (Windows NT 6.2; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Anti-Banner
    13.0.1.4307
    false
    [email protected]
    Content Blocker
    13.0.1.4307
    false
    [email protected]
    Kaspersky URL Advisor
    13.0.1.4307
    false
    [email protected]
    Safe Money
    13.0.1.4307
    false
    [email protected]
    Virtual Keyboard
    13.0.1.4307
    false
    [email protected]
    Important Modified Preferences
    Name
    Value
    accessibility.blockautorefresh
    true
    accessibility.typeaheadfind
    true
    browser.cache.disk.capacity
    358400
    browser.cache.disk.smart_size.enabled
    false
    browser.cache.disk.smart_size.first_run
    false
    browser.cache.disk.smart_size.use_old_max
    false
    browser.cache.disk.smart_size_cached_value
    358400
    browser.places.smartBookmarksVersion
    4
    browser.startup.homepage_override.buildID
    20130625125232
    browser.startup.homepage_override.mstone
    23.0
    browser.tabs.warnOnClose
    false
    browser.urlbar.default.behavior
    1
    extensions.lastAppVersion
    23.0
    gfx.direct2d.disabled
    true
    gfx.direct3d.last_used_feature_level_idx
    0
    layers.acceleration.disabled
    true
    network.cookie.cookieBehavior
    1
    network.cookie.lifetimePolicy
    2
    network.cookie.prefsMigrated
    true
    places.history.expiration.transient_current_max_pages
    104210
    plugin.disable_full_page_plugin_for_types
    application/pdf
    plugin.importedState
    true
    privacy.donottrackheader.enabled
    true
    privacy.donottrackheader.value
    0
    privacy.sanitize.migrateFx3Prefs
    true
    privacy.sanitize.sanitizeOnShutdown
    true
    Graphics
    Adapter Description
    Intel(R) HD Graphics 4000
    Adapter Drivers
    igdumd64 igd10umd64 igd10umd64 igdumd32 igd10umd32 igd10umd32
    Adapter RAM
    Unknown
    Device ID
    0x0166
    DirectWrite Enabled
    false (6.2.9200.16433)
    Driver Date
    7-20-2012
    Driver Version
    9.17.10.2817
    GPU #2 Active
    false
    GPU Accelerated Windows
    0/1 Basic
    Vendor ID
    0x8086
    WebGL Renderer
    Google Inc. -- ANGLE (Intel(R) HD Graphics 4000)
    AzureCanvasBackend
    skia
    AzureContentBackend
    none
    AzureFallbackCanvasBackend
    cairo
    JavaScript
    Incremental GC
    true
    Accessibility
    Activated
    false
    Prevent Accessibility
    0
    Library Versions
    Expected minimum version
    Version in use
    NSPR
    4.10
    4.10
    NSS
    3.15 Basic ECC
    3.15 Basic ECC
    NSSSMIME
    3.15 Basic ECC
    3.15 Basic ECC
    NSSSSL
    3.15 Basic ECC
    3.15 Basic ECC
    NSSUTIL
    3.15
    3.15

  • OSX loads, but doesnt finish and does not go to the desktop.

    I have a powerbook G4 with OSX Tiger installed. For some reason it loads up to the blue screen with the OSX loader bar. The bar fills, but it does not prompt me to the desktop, it just sits there. Is it a hardware problem?

    Alright, well let's try this then.
    Restart your computer. After you restart your PC, let's try starting Firefox up in Safe Mode. Read [[Safe Mode|this article]] to see how to start in Safe Mode. If Firefox starts up normally, then this is likely a problem with your extensions, so we will need to disable them one by one (or disable them all and re-enable them one by one) to figure out the offender.
    Another thing is please update to Firefox 11 (go to [[www.getfirefox.com|www.getfirefox.com]] to download it since you can't get Firefox open to update). It does have some bug fixes that might help your problem.

  • App shows "loading" but it hanged and cant be opened nor removed

    I have this app "Leme Cam" which is bigger than 20MB and requires updating through wifi or computer. While I was updating other smaller apps using the iphone directly, the phone tried to update this app as well and it hanged with the wording "loading". I tried to update it through itunes on my com but it could not be updated nor removed. Anyone kind soul out there can advice me on what to do? Thanks alot!
    Ian

    Might be necessary to restore your iPhone at this point but restore as new, not from a backup.
    Connect your iPhone to your computer. Launch iTunes. Select the Summary tab. Make sure there's enough storage space.
    Try this ... Tap Settings / General / Reset / Reset Network Settings. Restart the iPhone, then try syncing that app again.
    Help here....   How to report an issue with Your iTunes Store purchase

  • Hotmail inbox home page loads, but is frozen, and I cannot open or use any of its functions. I have to revert to MSInternet Expl to use hotmail.

    I have the latest level MF. I have not used this particular PC for some 6 weeks, but by using a laptop elsewhere have accessed Hotmail OK, and not let a backlog of mail clog up the system. Having returned to this PC, where I have Hotmail as my home default page, I go on-line and cannot use my email on MF. All other websites access OK in MF. I have cleared all recent history etc but it has not changed anything. I am not a computer nerd, I just want to get my Hotmail back in MF, following simple advice!

    I have an XP and used Hotmail today and yesterday. There seem to have been some changes recently with how attachments are handled (for example you add photographs to emails) but the basic Hotmail and its inbox seem to be functioning fine.
    '' "I have the latest level MF" '' what is '''MF'''?

  • Load external html into a Layer?

    I've created a framework of a kids' site using CSS layers to
    overlap a Skyline image overtop of another 2 layers, one showing a
    BG image of the sky, the other showing the scrolling content.
    For another section of the site, I would like to load an
    external HTML into the layer behind the skyline. Specifically, I
    would like a Blog to load and scroll behind the skyline. Anyone
    know if it is possible to load an external html page into a layer,
    and if so, how does one go about it?
    The (unfinished) page in question can be seen here:
    http://www.marcsobservatory.com/mo_mainpage6.html
    The stylesheet can be found here:
    http://www.marcsobservatory.com/mo_styles2.css
    Thanks!

    is the first frame of your loaded swf's empty?  if yes, then no problem using _levels.
    if not, do you mind a momentary flash when your next swf loads and before its _alpha is assigned 0 and then faded-in?  if you don't mind, then no problem using _levels.
    if you do mind that momentary flash, then using _levels will be more complex than using empty target movieclips.  is there some good reason to use _levels instead of target movieclips?

  • How to keep music on external hard drive, but play on iMac?

    So, I have nearly 500GB of music on an external hard drive. I don't want to move them into my iMac, because it'd obviously eat up all my free space. My question is, how can I keep them on the external hard drive, but still access and play them while I'm on my Mac?
    How would I do so using itunes? Would it be simpler to use a different program? If so, which one? Cost?
    Could some please tell me how to do this step-by-step? I am at a loss for how to do this! Any help is appreciated, thanks in advance.
    (Also, on a slightly unrelated topic, does anyone know a good software to create album cover? I like to make them for mix cds I make. Name cost, preferably something cheap).
    Thanks again!

    How would I do so using itunes?
    Open the Advanced section of the iTunes preferences and set it not to copy content to the iTunes Music folder when it's added to the library. Alternatively, drag them onto the QuickTime Player in the Dock.
    (48130)

  • Problem loading the Add-ons and other personalization pages

    Whenever I try to bring up Firefox's "Add-ons" or "Personas" webpage I keep getting this error message: "The connection was interrupted" "The connection to addons.mozilla.org was interrupted while the page was loading." I am running the lastest version of Firefox. Anyone having this problem?
    == URL of affected sites ==
    http://addons.mozilla.org

    The result I received from using the first url was:
    "The connection was reset. The connection to the server was reset while the page was loading."
    The result I received using the second url the page loading, but without any formatting or background, it just didn't load correctly. When I refreshed the url to see if that would correct the page I received the same error message listed above.

  • How to remove Catalyst stylesheets and scripts

    How do I stop BC from inserting stylesheets and scripts into my layouts? I have been working on catalog and product layouts and templates but BC continues to insert scripts & stylesheets that I do not want to include, particularly borders and margins.
    I know about removing all code leaving it blank from the /StyleSheets/ModuleStyleSheets.css
    But here is an example of a product large which includes a number of these which effect the layout
    <link href="/StyleSheets/ModuleStyleSheets.css" type="text/css" rel="StyleSheet" />
    <script type="text/javascript">var jslang='EN';</script>
    <link rel="stylesheet" href="/CatalystStyles/Box.css" type="text/css" media="screen" />
    <script type="text/javascript" src="/CatalystScripts/Java_OnlineShopping.js"></script>
    <script type="text/javascript" src="/CatalystScripts/Java_Cookies.js"></script>
    <script type="text/javascript" src="/CatalystScripts/Java_Box.js"></script>
    Any suggestions would be greatly appreciated

    While I don't recommend using the Cloud Service you are talking about to speed up the site (you can just combine and minify your styles and scripts for faster performance instead) I think your best bet is to copy the contents of ModuleStylesheets.css above the CSS rules in your main CSS file that styles your site.  Then, delete all the CSS rules in ModuleStylesheets.css so that it's an empty file.  BC will still render the ModuleStylesheets reference in the HEAD above your script but it will only be quick connection to the server to return 0kb (an empty file). 
    Since you moved your modulestylesheet css to your main css file (and it's referenced after the Cloud Service script) then you should be good to go.
    Again, though I recommend not using that cloud service and just combine all your CSS and scripts into two files, one for all your CSS and one for all your js and then making sure all your images are optimized on the site and where there are instances of images that have a fixed width and height you can utilize sprite sheets so that a lot of your images are stored in a single image.
    Another option is to pay for the super cheap Amazon S3 and upload your main css file and your single minified and combined javascript files to there and update your page template to reference the CSS and JS on Amazon S3 so it's essentially like a CDN which will speed things up as well.

  • I have a new mini mac and i want to use my existing external hard drive but it needs to be reformated how do i do this without loosing all my old photos?

    i have a new mini mac and i want to use my existing external hard drive but it needs to be reformated how do i do this without loosing all my old photos?

    Formatting will erase the drive.
    You need to copy the photo's to either your old computer, the Mac Mini or to a new external drive and then decide what to do with your existing external drive.
    For example: You could use one External drive for Photo's and one external drive for Time Machine to backup both your Mac Mini and the Photo drive.

  • Hi, how to load mac without running windows (bootcamp)? The problem is this: the last time i ran the windows, but he hangs and died (can not run further  the logo). now i can not load not windows, not maс! how to be, what to do???

    The problem is this: the last time i ran the windows, but he hangs and died (can not run further  the logo). now i can not load not windows, not maс! how to be, what to do???

    can any body help me, plz!!

Maybe you are looking for

  • Tecra S11: Toshiba Detection Tool: Your product could not be found error

    Hi, I use Toshiba Detection Tool to find drivers quickly for my tecra, but for a month now the page gives this error Your product could not be found It is no problem to select my laptop from the drop down list again and again, but it was comfortable,

  • How to copy a Jdev project to another Jdev on a different machine

    I have an application running in JDev 9052 using uix and bc4j objects connecting to an Oracle database. It is running on a Terminal Server Windows 2000 machine. I want to move this project to a different PC in a different location running Windows XP

  • IPhoto crashes when trying to export images

    Hi I'm using iPhoto 8.1.2 and have been trying to export some high quality JPEG files from the library. The application has been repeatedly crashing for the past two days and I have tried sending the report to Apple too. Nothing seems to have worked

  • How to set the size of a Font in Pixel?

    Hi, i know how to get the screen resolution of the current monitor and I know how to use Fonts (and I know how to read the API, but that didnt help). Is there a way to set the size (or at least the height) of a Font in pixel rather then in points? Al

  • Can i check my emails on my apple tv?

    can i check my emails on my apple tv