Getting application to work on web page

I am sure this is going to seem like a dumb questions, but I
am having a heck of a time getting a flex applicaiton (.swf) file
to work on a web site. It works just fine when I run it (the
newsreader app from the documentation), but when I upload it to my
web site, I keep getting all kinds of errors saying all kinds of
files are needed, that as far as I know have nothing to do with the
app I wrote.
I followed the insturctions in the doc, and uploaded the
.html and .swf file what am I doing wrong?
thanks
John

1) Applets that run in web browsers used to be "hip" in at one point in the dark 1990's. That time is forever gone and good riddance. Today big enterprise applications and sophisticated special purpose desktop applications are the Right Way™ to go with Java.
If you want action in your browser, look into Macromedia's Flash technology.
If you want to deploy your application easily in an applet-like fashion (one click from a browser), look into Java Webstart.
Demos: http://java.sun.com/products/javawebstart/demos.html
Documentation: http://java.sun.com/products/javawebstart/developers.html
2) It's a trivial task to write a launcher applet for any given application so that the applet starts the application in a new window. The security restrictions imposed on applets ("sandbox") might make it impossible to use the application; for instance you cannot write or read files on the local hard drive or make network connections to other servers than where the applet was loaded from. You cannot call System.exit to quit the virtual machine.
At its simplest the lancher applet code would look ilke:public class Launcher extends java.applet.Applet {
    public void start() {
        YourApplicatioMainClass.main(null);
}and in the html you would write:<applet code="Launcher" height="1" width="1">
</applet>See the "Writing applets" tutorial for further information http://java.sun.com/docs/books/tutorial/applet/index.html

Similar Messages

  • I keep getting an intermittent error on web pages where a blue box with a question mark appears instead of pictures.  For example Facebook and Zappos would load normally on one visit, but if I visit other websites and return I get the blue box.

    I keep getting an intermittent error on web pages where a blue box with a question mark appears instead of pictures.  For example Facebook and Zappos would load normally on one visit, but if I visit other websites and return I get the blue box instead of pictures. If I restart the problem will go away temporarly. However, normally returnes in time.

    HI,
    From the Safari Menu Bar click Safari/Preferences then select the Appearance tab. Tick the box next to: Display images when the page opens.
    If that box is already ticked, from the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset. Relaunch Safari. If you still have problems loading images, go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    Make sure Safari is not running in Rosetta. Right or control click the Safari icon in your Applications folder then click Get Info. In the Get Info window click the black disclosure triangle so it faces down. Where you see Open using Rosetta... make sure that is NOT selected.
    If you still have problems, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop. Relaunch Safari. If it's a successful launch, then that .plist file needs to be moved to the Trash.
    Carolyn

  • How can I get a list of open web pages in Firefox (in Linux)?

    I would like to know how to get a list of open web pages in Firefox (in Linux), because I have a shortcut to open a web page and I want to get it to see if Firefox has the page open first so that it doesn't open duplicates.

    You see the "List All Tabs" button in current Firefox versions if there are that many tabs open that you get the Tab bar scroll buttons appearing.
    Add code to the userChrome.css file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #tabbrowser-tabs ~ #alltabs-button { visibility:visible!important; }
    </nowiki></pre>
    * Permanent List-all-tabs Button: https://addons.mozilla.org/firefox/addon/permanent-listalltabs/

  • Why cant i get automatic translations of forain web pages like i do from chrome.

    why cant i get automatic translations of forain web pages like i do from chrome from Firefox

    You can look at extensions like these:
    *FoxLingo: https://addons.mozilla.org/firefox/addon/foxlingo-translator-dictionary/
    *ImTranslator: https://addons.mozilla.org/firefox/addon/imtranslator/
    *Translate This!: https://addons.mozilla.org/firefox/addon/translate-this/

  • I want to upload my Jewelry photos and drop out their background to appear they are floating on a white background.  Can I do this in I web or I Photo to get that look on my Web Page?  Have 3.01 ver of I Web

    I want to upload my Jewelry photos and drop out their background to appear they are floating on a white background.  Can I do this in I web or I Photo to get that look on my Web Page?  Have 3.01 ver of I Web

    You will need a 3rd party image editor that can seletively remove the background and let you create a transparent background png file. Maybe with a drop shadow (or not) something like this:
    A photo of me during one of my therapy sessions.   If you have Pages (part of iWork) you can also make transparent background images with the Alpha tool..
    OT

  • I keep getting internet explorer cannot display web page when trying to download itunes. This only shows on half the page where the download link would be. My internet connection is fine.

    I keep getting internet explorer cannot display web page when trying to download itunes. This only shows on half the page where the download link would be. My internet connection is fine.  Any idea what the problem may be?

    You won't see anything obviously related to iCloud, Jimmy. But if you go to the home iTunes Store page while logged into your iTunes Store account, you should see a Purchases link now under the Quick Links header. That's the only part of iCloud active at this time.
    Regards.

  • Need help getting my applets to work on web pages!

    I've been trying to get it to work for a while now, and I no idea why it won't work! I've tried all kinds of things to get it to work, but it still won't work. All I want to do is make a simple applet, don't care what it does, and put it on a web page.
    Here is my HTML code:
    <applet code=?Slime2P.class? height=?300? width=?400? codebase=?http://www.spinarcade.com/tests?>
    </APPLET>
    Here is a link to what happens:
    [http://www.spinarcade.com/tests/duk.html|http://www.spinarcade.com/tests/duk.html]
    Here is the errors:
    load: class ?Slime2P.class? not found.
    java.lang.ClassNotFoundException: ?Slime2P.class?
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         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)
    It works fine when I run the applet in eclipse, and I've tried many different applets. I tried using a cool program I wanted to put online first, then I made a simple program to try, and then I even downloaded the file from a tutorial and didn't edit it at all... nothing works!
    Here's code from one of the applets (Simple applet with green lines):
    import java.applet.*;
    import java.awt.*;
    public class Duck extends Applet {
    int width, height;
    public void init() {
    width = getSize().width;
    height = getSize().height;
    setBackground( Color.black );
    public void paint( Graphics g ) {
    g.setColor( Color.green );
    for ( int i = 0; i < 10; ++i ) {
    g.drawLine( width, height, i * width / 10, 0 );
    I have all the .class file and the html page in the same place (http://www.spinarcade.com/tests).
    Thank you for your help! It is most likely something simple...
    Edited by: Donv7 on Jul 17, 2008 2:27 PM

    Here is your html:
    <HTML>
    <HEAD>
    <TITLE>Duk!</TITLE>
    </HEAD>
    <body bgcolor="#DAE9F3">
    <center>
    <applet code=?Slime2P.class? height=?300? width=?400?>
    </APPLET>
    ducks these dayz...<br>
    codebase=?http://www.spinarcade.com/tests?<br>
    C:\Documents and Settings\Don\Desktop<br>
    http://www.spinarcade.com/tests<br>
    </center>
    </BODY>
    </HTML>Look carefully at the double quotes surrounding the red text (bgcolor).
    Look at the double quotes used in the applet tag now!!!

  • Javafx application integration in a web page

    Hello, I did javafx application with a database, and now I want to publish on the net.
    I have uploaded the files:
    - project.html
    - project.jar
    - project. jnlp
    - project.jar.pack.gz
    - index.html:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>>TravelsGo</title>
    </head>
    <body>
    <h1>TravelsGo</h1>
    <script src="http://dl.javafx.com/1.3/dtfx.js"></script>
    <script>
        javafx(
                  archive: "project.jar",
                  draggable: true,
                  width: 640,
                  height: 480,
                  code: "project.Main",
                  name: "project"
    </script>
    </body>
    </html>I did not understand what do I do with the database, it works locally, but trying to view the application on a web page gives me error
    you can watch here: http://travelsgo.altervista.org/
    I hope someone can help me.
    Thank you.

    Hi,
    Thanks for answering. I must tell us that I'm so newbie in these themes and I have a little knowlegde of this.
    I've browsing through the JNLPAppletLauncher option, but I have more questions about that.
    First of all, I'll expose the application I'm working. The application is a SIP-client, specifically SIP-Communicator (http://sip-communicator.org/), and I want to embeebed in a web browser. I've been trying to make an applet from the application with helping by a tutorial, but it's impossible because I have other version than version which was used to build the applet. So that option, we could say that is closed.
    The another option is to use Java Web Start, there is another tutorial for that and I can say that It should work more or less.
    Thus, I need to give the java web start application an appearance of applet (but it can't be an applet), i. e., the java web start application has to run in the web browser.
    As I far I know if I use JNLPAppletLauncher I have to build an applet that would be launched through a jnlp archive. havent't I?
    What do you think about that, Do you see that java web start application integration in the web browser is possible?
    Thanks a lot and best regards
    Pedro

  • Entourage Works, But Web Pages Do Not Load

    I work at a school that has several MacBook's that were setup with the same disk image. One of them has stopped loading web pages (using both Firefox and Safari), but Entourage can still send and receive email without a problem (POP/SMTP). All other computers on the school network are getting online just fine. When I connected the problem MacBook to a different network the same problem arose. I have tripled checked network settings, rebooted,etc. to no avail. Any ideas on how to fix this will be greatly appreciated.

    Which changes did you make to remove MixiDJ?
    You can try basic steps like these in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Application Server Redirect one Application to a static web page

    We have an OAS installation that contains two applications. One contains both Portal and Oracle Forms components whilst the second is purely Oracle Forms. We want to redirect users to a static web page if an application is down for maintainance.
    It has been easy to modify httpd.conf to add lines to redirect the elements of the application that uses portal. The elements that use Oracle forms seem to use MOD_OC4J and I cannot redirect calls to these forms.
    I have tried a redirect based on /forms/frmservlet?config=app1 but this did not work as /form/servlet requests are handled by redirecting to MOD_OC4J.
    Looking in Forms.Conf I found some lines where the frmservlet is mapped:
    AliasMatch ^/forms/frmservlet(.*) "/servlet.frm"
    Would it be possible to create regular expressions to either allow all /forms/frmservlet?config=XXXX through except for app1 as an example? The plan would be to comment these lines out until required and then activate them by removing the comment # and bouncing the Forms element of OAS.
    If this idea is not reasonable could anyone suggest a better way that does not require connection to the database nor the need to start up the forms runtime within the client browser?

    <cflocation> will always give you that result, as it
    has no concept of the browser window(s) or frame(s).
    i don't know if the <meta> has a concept of frames or
    not.
    you could always use a JavaScript solution, which would be:
    new window:
    <script type="text/javascript">
    <cfoutput>window.open("#newURL#");</cfoutput>
    </script>
    same window, breaking frameset:
    <script type="text/javascript">
    <cfoutput>top.location.href="#newURL#";</cfoutput>
    </script>
    i think that'll do it. been a while :)

  • Cannot get multiple tabs with multiple web pages

    Hi, My plain vanilla firefox browser in Win 8 has stopped giving me multiple tabs when I access more than 1 web url. Before say I access 5 sites, then for each site I get 5 tabs so I can easily switch between web pages. Now they all appear under 1 tab only. Ticking the box in Tools/Options/Tabs/open new window in a new tab instead, doesn't work...very frustrating....any ideas? Many thanks

    I'm not sure I understand the change, so let me mention a few things and you can reply with comments and clarifications.
    How are you directing links to new tabs: do you use one of these methods?
    * right-click > Open Link in New Tab
    * Ctrl+left-click
    * middle-click (using a mouse scroll wheel)
    Other issues:
    * Is Firefox's tab bar not showing or behaving strangely? (Please describe in more details if applicable.)
    * If the problem is that the Windows Task Bar is not working the way it used to, check the ''last'' setting on the Tabs panel of the Options dialog: "Show tab previews in the Windows Taskbar" to see whether that is what got turned off.
    * If the problem is that Google results used to automatically open in a new tab but now they open in the same tab, you need to select "new window" in Google search preferences: https://www.google.com/preferences

  • How do I get auto superscript working again on Pages 5.1?

    In Pages 4 I had it set up so that when I typed a date like the 12th or the 21st it would automatically superscript the 'th' or the 'st'
    This no longer happens.  any ideas on how to get the functionality back?
    Thanks and kind regards - Gregor

    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • I'm using Safari 5.0.5 on a 13" MacBook Pro and can't get Safari to fully load web pages or pictures on web pages. Any suggestions?

    I bought a MacBook Pro in October of 2010 and it's been running greatly up to this month. Now I am experiencing problems with Safari loading web pages. Sometimes it will load web pages just fine and other times it doesn't load web pages at all. This only seems to happen with certain sites. Also, on some web pages Safari won't load pictures (only the blue "?" is visible). I've experienced the same problem when I use the Mac App Store. In addition to these problems, when I visit sites that have problems loading, sometimes I just get a notice saying "Not connected to the internet" or "Safari cannot find the server." I am beginning to wonder if the problem could be some setting with my wireless router. I'm really hoping my MacBook hasn't gotten a virus. Any help would be greatly appreciated.

    Hi.
    Try putting these numbers in Network>TCP/IP>DNS Servers, for the Interface you connect with...
    208.67.222.222
    208.67.220.220
    Then Apply

  • How can you get firefox to refresh a web page like every few hours to keeep you logged into a account

    not really a trouble it would just be handy to be able to set firefox to refresh a page thats loaded at a set interval eg 1-5hours because I come home from work and I'm logged out of web page like if someone resets router etc

    also on pages like this so i could keep tab open and see replies without just by switching tabs and not needing to refresh when i do this I know this seems lazy but would be helpful if someone knows a way

  • Quicktime doesn´t work in web pages

    I have quick time pro. It was working fine but since a couple of days ago every time I open a web page, instead of seeing images I see the quick time logo with a question mark on top of it. Any advice?
    THANK YOU
    Candela
    Message was edited by: Host

    Never post your email address in a public forum. Spam bots roam public forums looking for "spam victims".
    If you insist on using your email address in a public forum & you want to "trick" the spam bots, then suggest that instead of using "@ "in the email address, use instead the actual word AT.
    Regarding responding to your emal addy, we ask that you post all questions to the appropriate discussion forum. This allows other users and other helpers to have a chance to view and respond to your post. That way, everyone benefits from the exchange.
    Thank you
    =============
    At the top right of this site you will see Search Discussions.
    In the blank search window w/the magnifying glass in the left corner type Quicktime and question mark.
    You will then find several troubleshooting solutions pertaining to your issue for you to try out.
    Good luck!

Maybe you are looking for

  • Can't Mount External HD, Greyed out in DU, Verifies fine

    I have a third-party hard drive enclosure I've been using for years with an IDE drive. I have two identical external HD cases and it does the same thing in both. So I know it's not the case. All of a sudden, I can't get the drive to mount. 1. It show

  • Can I change text in a tiff using Illustrator?

    I have a layout for an ebook with some important black and white bitmap illustrations in tiff., 300 dpi. These has appeared ok on print, but not on screen, reading the same pdf-file. This is partly because there are texts in fontsize 5-6 pt. People t

  • About credit card

    Hi, I had registered my credit card a week ago on Apple.and then that day  I remove all information about credit card off my apple acount.but today i learned that  2 dollars payment has been given off my credit card.but I never  buy any paid apps.Eac

  • SQL Statement needed for Query Generator

    Dear Experts, My view has the following three columns. 1, Start Date 2. End Date 3. Balance. I need an SQL statement to write in query generator, which has to check if EndDate is less than the Current date and balance is above zero. If so, it assumes

  • Cannot pass data from Web Dynpro to XI using a Web Service

    Hi All, We have been facing some issues when we try to pass on a SOAP / XML message via a WSDL from a WebDynpro App to XI - No data is reaching XI interface. The payload data details for the inbound message in XI is empty. When testing the WSDL separ