Javascript, or something in a JEditorPane, panel?

I have an html file that I display inside of a JEditorPane. If I run the html file in a windows browser, the javascript works, but if I run it in the JEditorPane it displays the html stuff, but the javascript functionality doesnt work.
Is their something that I need to add, or do I n eed to display it in something other than a JEditorPane?

Hi Anthony:
Have you tried simply applying iMovie's 'Flash" effect to the slug?
Sue

Similar Messages

  • Displaying javascript enabled web page into JEditorPane

    Hi,
    I want to display a javascript enabled web page into JEditorPane but it is giving me the error the please enable javascript.
    Any suggestions?

    JEditorPane is the only component in the base JDK used to display web pages, but it only supports HTML 3.2 (?). No java script and stuff like that.
    I would only use it to display "Help" files you have created for your application, not for downloading web pages from the internet.
    I'm sure if you search in Google you will find a 3rd party package.

  • When starting Firefox, I get Javascript error, something about a babelfish something or other.

    After closing 3 or 4 error messages, Firefox opens but I just get a page that says Restore Session with the Firefox icon. Bookmarks do nothing nor does the address bar work.
    Re-installing and rebooting has not helped.

    Hi,
    You can try to check this in a [https://support.mozilla.org/en-US/kb/Managing-profiles new profile]. You can later delete it.
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]
    [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder & Files]

  • When placing each search result in its own collapse panel, only first panel works (PHP foreach loop)

    Hi there,
    <?php foreach ($results as $result): ?>
      <div id="CollapsiblePanel1" class="CollapsiblePanel">
        <div class="CollapsiblePanelTab">
    <?php echo htmlspecialchars($result['name'], ENT_QUOTES, 'UTF-8'); ?>   
        </div>
        <div class="CollapsiblePanelContent">
      <?php echo htmlspecialchars($result['description'], ENT_QUOTES, 'UTF-8'); ?>
        </div>
      </div>
      <?php endforeach; ?>
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
      </script>
    Above is the segment where I want to generate a list of results using PHP/SQL. I know for sure that there isn't anything wrong with the PHP, there's something about the collapsible panels that I can't get my head around...
    WHAT I WANT IT TO DO:
    Display the result of my query, each in a collapsible panel with the Name in the panel's tab and the additional Description on the panel's content area. Do this for all results.
    WHAT IT DOES:
    The above, except that only the first collapsible panel works (collapses fine). The results following are still in collapsible panels with the exception that they don't collapse at all.
    So can anyone come up with a good solution to fix this? Something quick will do (that I don't have to make drastic changes to my code), I suspect that it has something to do with this line:
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    That it recognizes the first panel as CollapsiblePanel1, the other panels are just unknown... I don't know, that's all I can come up with. Thanks for your time.

    Thanks for the tip Gramps, got to the solution!
    <?php foreach ($results as $result): ?>
      <div id="CollapsiblePanel<?php echo htmlspecialchars($result['id'], ENT_QUOTES, 'UTF-8'); ?>"  " class="CollapsiblePanel">
        <div class="CollapsiblePanelTab">
    <?php echo htmlspecialchars($result['name'], ENT_QUOTES, 'UTF-8'); ?>  
        </div>
        <div class="CollapsiblePanelContent">
      <?php echo htmlspecialchars($result['description'], ENT_QUOTES, 'UTF-8'); ?>
        </div>
      </div>
    <script type="text/javascript">
    var CollapsiblePanel<?php echo htmlspecialchars($result['id'], ENT_QUOTES, 'UTF-8'); ?> = new Spry.Widget.CollapsiblePanel("CollapsiblePanel<?php echo htmlspecialchars($result['id'], ENT_QUOTES, 'UTF-8'); ?>");
      </script>
      <?php endforeach; ?>
    By allowing the script to loop and matching the id. Nice suggestion for the accordion but unfortunately the code above was just an example... the actual results will include tables, <hr> and whatnot.
    Being new to the Dreamweaver scene (actually to be honest, I've only started learning about web development a week ago) why are the Spry js (or just Spry in particular) files so large? Are there plugins/methods I can get to delete some features I don't need? I have absolutely no experience with JS... yet.

  • Degrade an Accordion Panel

    I have an accordion panel in the Products section of my
    website, which I have built in Dreamweaver. The Panel has a range
    of Subheadings for the different Product sections - and under each
    section is a list of Products. The panel appears on every Product
    page in my site to allow the user to quickly access any particular
    product.
    Due to client confidentiality I can't show you the site in
    progress, but the panel looks something like this:
    Accordion
    Panel
    This is really useful as there are hundreds of products, and
    it allows the user to look at one Section of Products at a time.
    However, there are those users that have javascript disabled.
    Maybe only 4%? When Javascript is disabled, the accordion panel
    expands and becomes very very long! For users who do not have
    javeascript enabled, I would like
    just the Product Section Headers to appear - without all the
    Product Names. Maybe something like this:
    Menu
    for Javascript Disabled
    Is there a way to do this using <noscript> tags? Or
    maybe even Optional Areas in Dreamweaver?
    Any ideas/examples appreciated.

    Have you tried to define a special CSS class for the
    noscript:
    <noscript>
    <style type="text/css">
    .AccordionPanelContent{
    display:none;
    </style>
    </noscript>
    Cristian

  • How to insert hyperlinks in RTF document shown in JEditorPane?

    This is a compound question so bear with me on this one :)
    What I need is to insert an hyperlink in a JEditorPane; Store it as RTF code; Retrieve it; Show it and click on it to go the the destination.
    1) So, first question, is there some method to automatically add the hyperlink and will it be saved in RTF with RTFEditorKit? (I'm actually using AdvancedRTFEditorKit but an answer to either will be enough)
    2) I tried a method that adds what appears as a link but the document that is stored doesn't have the necessary RTF codes, only the formatting that makes it look like a link. I also checked the actual RTF codes I'd need to add and they seem easy to do. So, is there a way to add the actual underlying RTF codes to the document while it's in the JEditorPane?
    I know the question(s) isn't too specific, if you can shed some light over the whole thing and point me in the right direction, it'd be great!

    Just a follow up to my own question. I found a way to answer my question 2) and I'm now storing the rtf code for hyperlinks. Now, when I show the document in JEditorPane with RTFEditorKit, I get the name of the hyperlink with no formatting indicating that it's a hyperlink.
    Example. The link "http://www.google.com" with the name "Google", only shows "Google" in plain text.
    Is it because the components I'm using don't support hyperlinks from RTF files even though they're supported from HTML files?
    Is there any way you can see this working? Is it possible to include something inside the JEditorPane that the user can click, instead of the hyperlink?

  • Remote front panel licence?

    I'm building an application that will run on a industrial computer without a monitor or keyboard. The engineers at the site need to be able to view my front panel on there office computers to monitor the line. The ideal way to do this would be to just set up a web page that will display the info and let them control the User interface without having to install any third party software (including labview).
    Does each engineer need there own licence for Remote Panel and do they have to install the Real time driver if I want to use the embeded option? Basically they need to be able to flip between a few tabs and view both live data and historical data.
    The only other way I can come up with is build a second .exe and give it to each engineer which will connect to the remote computer, but I'd rather not have to install anything on there computers.
    Thanks for the help
    Matt

    Whether you use remote panels or distribute an executable, the client will have to install something. The remote panel option requires the installation of the LabVIEW run-time engine. An executable also requires the run-time engine as well as the exe itself. The run-time engine itself does not require any addtional licenses but the remote panel may. It depends on your version of LabVIEW (basic, full, pro) and how many clients will be connected at the same time.

  • Labview Remote Panel and Client Aspect Ratio

    Dear all professionals,
    I had create an application with remote panel (webserver) enabled. I found that there is relationship between aspect ratio of client device display and the remote panel screen size. Here i attached two images of remote panel in browser which both remote panel are opened using different aspect ratio of client device. 
    The left 1 is the device with 1.5 aspect ratio while the right 1 is the device with 1.78 aspect ratio. 
    As you can seen from the images, both remote panel are shown in different size. May i ask do i miss something in the remote panel configuration? 

    Hi Michel,
    Thank you for your reply. I also notice that the zoom % of browser is one of the issue that caused this behaviour. In the same aspect ratio with server computer( where the application running), changing zoom to 100% will help to fit remote panel that I already set when I developing the remote panel vi. But if for different aspect ratio, no matter how u change the zoom % , it won't fit the frame. I just wondering whether got another solution for this issue or not :-(

  • Basic javascript use in acrobat 9 pro

    I admit to being very rusty and not familar with the new software. I am getting no results and no errors on the following on my acrobat form -
    I have an invoice form I'm using as a template. I have the following fields:
    to
    company
    address
    csz
    phone
    I set up to to be a combo box with space for blank and two names (I have two more to add later).
    I want to autofill the other text fields, by picking the name in the "to" box.
    I was going to do this as a javascript function, but I can't figure out how to do this using acrobat pro 9. I was doing this a lot some time ago using acrobat 6 where it was tools -> forms -> javascript or something like that. Now I'm lost so I went to the "to" field and set it to run a javascript on Mouse up.
    var t = this.getField("to").value;
    var co = this.getField("company").value;
    var a = this.getField("address").value;
    var cs = this.getField("csz").value;
    var p = this.getField("phone").value;
    switch (t)
      case("Tom Jone"):
         co == "ABC Company";
         a == "100 Main St, Suite 101";
         cs == "Anywhere, IA 12345";
          p == "123-234-3456";
      break;
    case("Jane Smith"):
    break;
    case(" "):
    break;
    I've tried using a single = in the case statement and I've also tried switching from a mouse up event to an On Blur event. Nothing seems to be working. If anyone can give me a hand here that would be great. Thanks.

    var t = this.getField("to").value;
    switch (t)
      case("Tom Jone"):
         this.getField("company").value = "ABC Company";
         this.getField("address").value = "100 Main St, Suite 101";
         this.getField("csz").value = "Anywhere, IA 12345";
          this.getField("phone").value = "123-234-3456";
      break;
    case("Jane Smith"):
    break;
    case(" "):
    break;

  • How to include javascript file (.js) to pages in portal

    Hi,
    I have been trying to include a javascript file (something.js) to a portal. actually, I want to include it on a html portlet that will be my navigation page.
    I have used the code below to add the js file, but it seems not working
    <script language="JavaScript1.2" src="/javascript/cp_navigation.js">
    </script>
    I have uploaded the js file to the /ora9ias/enterprise/portal/javascript folder (created) in portal server. is there any configuration that I have left out?
    another thing, if I want to include some of the js file to the <head> section, am I possible to do it? and how?
    thanks

    Jerry,
    Where to find this? give the date or the name, please?
    *We're often desperate users that are under pressure to make these Oracle applications WORK for our employers!
    Your help in making us efficient is definitely appreciated!

  • Using javascript to control playback

    I'm trying to figure out how to use javascript to control
    playback of a captivate-movie.
    I want to control the playback (play, pause and so on) using
    javascript only. The playback-control in captivate does not "blend
    in" with the design on our website. I want to make a custom
    html/javascript playback-control.
    I was hoping that the captivate-player could be controlled
    easily with javascript, perhaps something like this:
    http://www.jeroenwijering.com/extras/javascript.html
    Any suggestions?

    quote:
    Originally posted by:
    CatBandit
    I don't know how to do it with Java-script, but yes, I think
    it can be done. I'll leave that to someone else more skilled at
    that than I.
    Have you considered creating your own Captivate playback
    controls? That might be another option. You can do that with a good
    image editor and some spare time. To see examples of what I'm
    talking about, try:
    Project > Skin > Skin (drop-list) > "bmp playbars"
    Paul Dewhurst, an Adobe Community Expert for Captivate has
    specific instructions for building your own playbars on his
    web-site "raisingaimee".
    Click
    here to see Paul's coverage of playbars
    Hope this helps - in any case,
    welcome to the Captivate User's Community!
    Thanks for the tip Larry! I will take a look at the link in
    your post.
    We already have a design for playback-control on our site
    (for embedded windows media player), which blends perfertly into
    our existing design. I really hope that it's possible to control
    the captivate-move with pure javascript. But I will "play around"
    wit the "bmp toolbars" feature. Thanks!

  • Populating a javascript array with datatable data

    I want to populate a javascript array with datatable data.
    How do I do this?
    I want the javascript array to be populated as the datatable is displayed.
    Doing this way doesn't work.
    <h:dataTable value="#{pmManager.profiles}" var="pmProfile" binding="#{pmManagerUiBean.uiTable}" ">
    <script>
    allProfilenames[index]='#{pmProfile.profileName}';
              alert("index ="+index);
              alert("...1"+allProfilenames[0]);
              alert("...2"+allProfileRes[0]);
              index++;
    </script>
    <h:dataTable>

    In Javascript do something like this:
    document.getElementById('form1:dec_param');
    where form1:dec_param is the id of the component on the page source (html)

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • Drawing Graphics in AWT panel

    I was wondering if anybody knows how I would go about drawing onto a Panel as a result of an actionPerformed() call. I got the original code for displaying an image onto the Panel from aresICO on this forum and now I need to be able to click a button on the GUI and have something drawn onto that Panel.
    import java.applet.*;
    import java.awt.*;
    import java.awt.image.ImageObserver;
    public class iPane extends Panel {
         Image im;
         boolean loaded = false;
         public iPane () {
              Toolkit tk = Toolkit.getDefaultToolkit ();
              im = tk.getImage ("Map of Dublin.jpg");
              prepareImage (im, -1, -1, this);
         public void paint (Graphics g) {
              if (loaded)
              g.drawImage (im, 20, 20, this);
         public void update (Graphics g) {
              paint (g);
              // if proper values loaded then:
              //drawRoute (g);
         public void drawRoute (Graphics g) {
              g.setColor(Color.red);
              g.drawLine(273,51,334,61);
              // method takes in values from a file etc.
         public synchronized boolean imageUpdate (Image image, int infoFlags,int x, int y, int width, int height) {
              if ((infoFlags & ImageObserver.ALLBITS) != 0) {
                   loaded = true;
                   repaint();
                   return false;
              else {
                   return true;
         public Dimension getPreferredSize() {
              return new Dimension(im.getWidth(this),im.getHeight(this));
         public Dimension getMinimumSize() {
              return getPreferredSize();
    }; // end iPane class
    This is a the relevant part of the class which uses an iPane object:
    iPane mapPanel;
    public void actionPerformed(ActionEvent e)
         String buttonLabel = e.getActionCommand();
         if (e.getSource() instanceof Button)
              if (buttonLabel.equals("Get Directions"))     
    // What goes in here to draw a line for example?
    // How do I call a method from iPane to draw something?
    Thanks.

    Davey,
    I don't think your approach is correct. The golden rule of Java graphics is that ALL of painting on a component should be done within the componen'ts paint method(). If you write to iPane from outside the class, then if your iPanel needs to be repainted (because, for example, it got obscured by another window and then unobscured) then the route would not be shown.
    You have to think OOD on this.
    The route and the image are properties of the of iPanel. The button push requests a change of those properties and display of the results on the screen.
    This is what I would do:
    1. Create member variables in the class iPanel that define the route.
    2. Have a method which sets those variables. This method should call repaint after setting the variables.
    2. Maybe have another boolean which says whether the routine is to be displayed or not. This method should call repaint after setting the boolean.
    3. Change the paint method to draw the route, if required.
    4. In the class that uses iPanel, simply call the methods in iPanel that set the route properties.
    5. Change your class name to IPanel. All class names should start with an upper case letter.
    e.g.,
    private Point start;
    private Point end;
    private boolean displayRoute
    public setRoute(Point newStart, Point newEnd) {
    start = newStart;
    end = newEnd;
    repaint(); // maybe only call if new value is different
    public void setDisplayRoute(boolean value) {
    displayRoute = value;
    repaint(); // maybe only call if new value is different
    public void paint(Graphics g) {
    g.drawImage( ..... blah
    if (displayRoute) {
    g.drawline ( .... blah
    // Then
    onActionPerformed
    iPanel.setRoute(new Point(1,2), new Point(3,4));

  • Analog output to the DAQ that changes when controls on the front panel change

    I'm using the PCI-6024E, and trying to output an analog waveform that can change when one of the two controls on the front panel change. It outputs fine setting it to continuous output and using a simple while loop around the "Is Task Done" VI, but if I put the "Write" VI in the while loop, it doesn't output steadily. I then tried to use an event structure, so that I'd only have to write every time something on the front panel changes, but for some reason it was writing finite samples, even though I set the Timing VI to continuous. I looked around the NI site, and found an article about this with an example. I tried to change it around to use my waveform, but whenever I run it, I get a memory underflow error. Has anyone needed to do this before? Thanks in advance.
    -- Josh Matloff

    Hi Josh-
    It looks like you forgot to post the code still, but I'll take a stab at the problem anyway. It sounds like you're looking for a way to update a continuous waveform at runtime.
    You will need to stop the task in order to replace the write buffer information, but this will only be a small gap in operation. I have attached a modified LabVIEW shipping example that shows how to use value change events for any of the pertinent waveform parameters to either programmatically stop the task, replace the buffer, set timing and restart or to just pass the task information straight through. This will lead to continuous operation with no breaks at the output.
    Please let us know if this clears up your questions.
    Thanks-
    Tom W
    National Instruments
    Attachments:
    Cont Gen Voltage Wfm-Int Clk with Runtime Update.vi ‏134 KB

Maybe you are looking for

  • View pinpoint-information of a Google Map in a UIWebView

    Hello, I'm building an application with a webview of a Google Map with loads of pinpoints. Those pinpoints are already placed on the map, and the map is succesfully embeded in my website. When I click on a pinpoint in my Safari 'for Mac', I see the i

  • Pages Crashed, now file wont open

    I'm running Pages 2.0.2 on my G5 Dual 2.0 PPC, OS X 10.4.5 Help! I was working on a 40-ish page document in Pages. I then duplicated the document on my hard drive and double clicked to open the duplicate. My plan was to scroll through the pages of th

  • SAP Table relations

    Hello, I am in a process of learning Generic Extractors, now i get really confused on the relations between different table and fields while creating data source in ECC, I really appreciate if anyone have documents which explains in an easy way to un

  • WD-Element TABLE Setting 1st Row

    Hello, in WD(ABAP) I use a TABLE-Control. It is bind to a node. The node is bind to a internal table with a lot of entries. Now I want ro show the Rows beginning at specific row , greater than 1 at startup-time. The example should show the rows 30 to

  • Unable to Access Settings Screen - Contacts Lost

    I have an iPhone 5c 16GB. I updated to iOS 8.0.1 last week and there didn't seem to be any issues. My iPhone is backed up via iCloud on a daily basis through wifi in my apartment. This morning I woke up and saw that my contacts on my iPhone were all