Using javascript to control the browser

Hi all,
One of the most requested features on our first Breeze
project was a "quit" button. The easiest way to do so in an HTML
environment is to use the command
javascript: window.close();
Type this into the address bar on your browser, and hit
return. Isn't that neat?
Okay, the scripting language in Flash (Actionscript) can
simulate typing something in the address bar with the command
getURL ("javascript: window.close();");
...all we have to do is add that actionscript to the
onRelease event handler for a button in Flash. Then, add the button
to your PowerPoint before you use Presenter, and when the student
clicks it... voila!
This same trick can be used to replace that MacroDobe©
logo in the Breeze player. This time, when the user clicks the
button, we'll use javascript to pop up an alert box with a clever
message:
getURL ("javascript: alert('Aren't we clever?');";
This button has to be small, around 50 x 29 pixels, to
properly replace the logo. To actually replace it, you need to
publish your presentation to the hard drive like normal. Next, find
the folder you published to, and place a copy of your "button.swf"
file in the "data" subfolder. Then, edit (don't "open") the
vconfig.xml file in the same subfolder using notepad. Near the top,
you'll find an entry that says:
<uireplace name="logo" value= "" />
place the name of your button file between the quotation
marks and save:
<uireplace name="logo" value= "button.swf" />
When you load up the training next time, the logo will have
changed to your button.
You'll have to do this every time you publish the training,
as Presenter deletes & recreates all those subfolders each time
you do. BTW, MacroDobe© does offer a small applet to parse
this xml file for you... but they want 5 grand per copy. I'm
thinking notepad works just as well :)
cheers!
Marc B

The biggest difficulty with a Swing Applet is that it needs the latest version of the JVM to run and many people don't have this installed on their PC. You can set the Aplet tags to download the plug-in but it can discourage users and may not always work. I would only use a Swing Applet for webapps with a limited client base.

Similar Messages

  • JavaScript required. The browser that you are using does not support JavaSc

    I keep on getting this message when I'm trying to log on to Hotmail
    JavaScript required. The browser that you are using does not support JavaScript, or you may have disabled JavaScript
    And my browser (IE 6) cannot go to any java links. They either don't load or they are blank pages. I tried installing java, enabling them on the internet options, and even installed a new browser it is still the same thing!!!
    I'm very pissed right now but I really really need some help. Sorry for the inconvenience.
    Thank you, Zaragon

    JavaScript is different from Java. Somehow, security has gotten turn on in IE. If you go to tools, internet options, security, then look at Internet (for hotmail anyway), hit the custom level button, you will see that scripting has been disabled.

  • Using javascript to detect the onclick event over a datatable row

    Hi all,
    I'm working with JSF 1.2 R.I. and I would like to add some javascript to my datatable to be able to control the onclick event on a row.
    At the moment I have just added a checkbox to be able to know which row the user wants to select but I'm not satisfied with this solution.
    <h:dataTable
    value="#{person_iupopulations_Observation.customer}" var="customer"
    rowClasses="evenRow,oddRow"
    cellspacing="0">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Select" />
    </f:facet>
    <h:selectBooleanCheckbox value="" onclick="getRow(this)">
    </h:selectBooleanCheckbox>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputText value="#{customer.Name}"></h:outputText>
    </h:column>
    </h:dataTable>
    What I would like to achieve is:
    When the user clicks the row (wherever, not only the checkbox) the checkbox changes to the new value depending, off course, on the user's selection.
    For this purpose I would need to add the onclick event to every row and associate it to a javascript function to update the checkbox.
    Can anybody help me please.
    I appreciate any suggestion.
    Thanks in advance!

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

  • 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!

  • No javascript anymore in  the browser of acrobat DC IOS

    I had several PDFs with an html attachment with javascript and graphics. They worked fine but after update, the browser doesn't support javascript  anymore. Why ? Does it come back?

    No,
    I've made a simple pdf-file for use on an IPAD. => see link below
    The file contains 2 attachments with graphics (Using google visualization API)
    When opening the first attachment of the pdf-file with the old version of acrobat reader on my IPad, I get the following screen => (see below)
    (The content is in Dutch but this is not important)
    When changing de dropdown-boxes, the graphic changes. When clicking with a finger on the pieces of the pie, you get additional information about that piece.
    With Acrobat DC it works on a window PC but not anymore  on the IPAD.
    On the iPad, the next rule, at the end of the html-file,  is executed , suggesting that the incorporated browser doesn't support javascript anymore=>
    <noscript>The browser does not support JavaScript. The calculations will not work. Please access the web page using another browser.<p></noscript>
    File=>
    https://files.acrobat.com/a/preview/dd196863-f127-48e0-bf9d-f999c5c34a43
    Screen=>

  • [Forum FAQ] How to use parameter to control the Expand/Collapse drill-down options in SSRS report?

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

  • Using javascript to change the "Overall Result" cell in WAD

    Hi experts,
    I am trying to use javascript to change the text of the "Overall Result" cell in my web template using BI 7.0. I am not familiar with javascript, but I this is what I have done so far.
    I dragged the web item "Script" into my web template and I inserted the following code:
    function change_overall_result_to_average() {
    var cell = document.getElementsByTagName("TD");
    var cellText;
    for (i = 0; i < cell.length; i++)
          cellText = cell<i>.innerText;
               if (cellText == "Overall Result")
                     cell<i>.innerText = "Average";               
    In the XHTML view I am using added the onload function to start the javascript every time the web template is loaded. The code works fine when the web template is first loaded and the cell text is changed to "Average". However, if I navigate in my web template, the javascript function is not triggered, and the cell is therefore changed back to "Overall Result". For example, this happens when I pick another selection from one of my dropdown boxes, such as changing the selection from year 2008 to year 2007.
    I don't really know how to solve this problem in an easy way, and the current solution is not good enough. I hope one of you guys can suggest an easy way of fixing this:-)
    Best Regards,
    Morten

    Woodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
    After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
    [http://google.com/search?q=webuijsf+domnode+site:sun.com].
    If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum.

  • I need to program a Hittite Fractional​-N Synthesize​r Evaluation Kit with a HMC702LP6C​E an external YIG oscillator​. Not sure how to use Labview to control the PLL.

    I need to program a Hittite Fractional-N Synthesizer Evaluation Kit with a HMC702LP6CE an external YIG oscillator.  Not sure how to use Labview to control the PLL.

    Here is how to use the PLL. But I don't know of how to interact with that device
    http://zone.ni.com/devzone/cda/tut/p/id/3781
    And for thouse who don't know what a PLL is a free bonus link is here:
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E​9AE258625708B007CE74F?OpenDocument
    and a second one on what that device is: http://www.hittite.com/products/view.html/view/HMC​702LP6CE
    Now we are all caught up to speed.
    Sam S
    Applications Engineer
    National Instruments

  • Using JavaScript to remove the loading overlay?

    Is there a way to remove the loading overlay. It appears to block events.
    I want that if the slide hasn't loaded within say, 30 seconds, then present the user with a message to go to next slide or wait.
    Is this possible?
    Thanks for any help anyone can be.

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

  • JavaScript that controls the player does not work

    Hello everyone
    I have a page with an embedded video on Windows media player, and developed a javascript to control the video.
    The parties that control the play, stop, pause, volume, and fast reverse fast forward work very well, but when I put a function that advances the video marks the next and previous does not work in Safari only works in Firefox and the worst and does not accuse me errors simply does not work, then I do not know what to do if someone can help me would greatly appreciate it
    The codes are below
    Code for embedded player
    <div id="Dvideo"  style="position:absolute; width:400px; height:266px; z-index:3; visibility:hidden; left: 14px; top: 85px;">
                    <object 
              id="contentPlayer"
              name="contentPlayer"
              width="400"
              height="266"
              type="application/x-ms-wmp">
                              <param name="AnimationAtStart" value="0" />
                              <param name="AutoStart" value="0" />
                              <param name="CurrentMarker" value="0" />
                              <param name="EnablePositionControls" value="true" />
                              <param name="EnableTracker" value="0" />
                              <param name="ShowAudioControls" value="0" />
                              <param name="ShowCaptioning" value="0" />
                              <param name="ShowControls" value="1" />
                              <param name="ShowDisplay" value="0" />
                              <param name="ShowGotoBar" value="0" />
                              <param name="ShowPositionControls" value="0" />
                              <param name="ShowStatusBar" value="0" />
                              <param name="ShowTracker" value="0" />
                              <PARAM NAME="EnableContextMenu" VALUE="false">
                              <param name="AllowChangeDisplaySize" value="true" />
                              <PARAM NAME="CurrentPosition" VALUE="false">
                              <param name="SRC" value="video.wmv" />
                              <param name="TransparentAtStart" value="1" />
                              <param name="uiMode" value="none"/>
                              <embed
              src="video.wmv"
              width="400"
              height="266"
              autostart="0"
              type="application/x-ms-wmp"
              id="contentPlayer"
              name="contentPlayer"
              showdisplay="0"
              showcontrols="1"
              animationatstart="0"
              transparentatstart="1"
              showstatusbar="0"
              showtracker="0"
              currentmarker="0"
            CurrentPosition="0"
              enablepositioncontrols="true"
              enabletracker="0"
              showcaptioning="0"
              showaudiocontrols="0"
              showgotobar="0"
            EnableContextMenu="false"
            AllowChangeDisplaySize="true"
              uiMode="none"
              showpositioncontrols="0"></embed>
                            </object>
    javascript code
        function play()
                        var player=document.getElementById('contentPlayer');
                             document.getElementById('DInfo').style.visibility = 'hidden'
                        document.getElementById('Dvideo').style.visibility = 'visible'
                        player.controls.play();
        function pause()
                        var player=document.getElementById('contentPlayer');
                      player.controls.pause();
        function stop()
                        var player=document.getElementById('contentPlayer');
                      document.getElementById('DInfo').style.visibility = 'visible'
                        document.getElementById('Dvideo').style.visibility = 'hidden'
                        player.controls.stop();
    function Volume()
              document.getElementById('contentPlayer').settings.volume  = document.getElementById('contentPlayer').settings.volume + 30 ;
    function VolumeDown()
              document.getElementById('contentPlayer').settings.volume  = document.getElementById('contentPlayer').settings.volume - 30 ;
    function mute() {
              var player = document.getElementById('contentPlayer');
              var mutebutton = document.getElementById('bt4');
              if (player.settings.mute) {
              player.settings.mute = false;
              return player.settings.volume + "%";
              mutebutton.src ="../images/mute_false.gif";
              } else {
              player.settings.mute = true;
              return "mute";
              mutebutton.src ="../images/mute_true.gif";
    function fastforward()
              var player=document.getElementById('contentPlayer');
              player.controls.fastForward();
    function fastreverse()
              var player = document.getElementById('contentPlayer');
              player.controls.fastReverse();
    function GoNextMarker (mymark)
              var player = document.getElementById('contentPlayer');
              var mymark = player.controls.currentMarker + 1
              player.controls.currentMarker = mymark;
    function GoPreviusMarker (mymark)
              var player = document.getElementById('contentPlayer');
              var mymark = player.controls.CurrentMarker - 1
              player.controls.currentMarker = mymark;
    </div>

    This has been discussed over and over and over and over and over and over and over and over again.
    Do a forum search (right side of this page) and you will find countless posts on this.

  • Using JavaScript to extend the height of a DIV to the height of a document or page.

    Hello everyone,
    How can I use JavaScript to dynamically resize a DIV on a page so that the div extends vertically to the size of the page or document.
    I have been experimenting all evening with different methods, some don't even work.
    Thanks everyone!
    WE

    Thanks for responding, I'll gladly explain further, hopefully you can help me.
    I have a DIV on the right side of the page (sidebar) it has very little content and does not extend to the botom of the page.
    However, I have another DIV with text that extend further down the page.
    What I am trying to do is have the sidebar extend to the bottom of the page or window height.
    This way as more text is place in the other DIV and the page stretches down, the sidebar stays extend at the bottom.
    I know the CSS method but I would like to experiment with JavaScript.
    I want to be the cook with many knives!
    Thanks for helping!
    WE
    garywpaul wrote:
    I'm not sure I understand you question. It sounds to me like you want div columns to match in size regarless of content amount?  If that is the case, you want to use faux columns.
    Read about it here:
    http://www.paulgdesigns.com/faux-columns.php
    If I am not understanding you, post back.
    gary

  • Using javascript to resize the window

    I've got a project that I would like to resize depending on which slide the learner is viewing.
    I' aware that the javascript method:
    window.resizeTo(width,height)
    can be used to resize a window.
    In my case I want it to be for the tall window:
    window.resizeTo(1016,650)
    and for the short window;
    window.resizeTo(1016,165)
    I'm also aware that you can tell a button (or anything else) to execute javascript.
    I'm having trouble making it work, tough.
    I've tried putting the method directly into the Script_Window for the button.
    I've tried writing a function in the published file, then having the button call that function.
    Can you paste javascript snippets into the Script_Window? Or do you need go the whole 9 yards and write the entire function, name the button instance, and tell the Captivate button to call that function?
    I'm just now sure how much Captivate knows how to do and how much I need to tell it.
    Thanks in advance!
    Joe           

    Thanks for your response, Jim.
    My window was created by a previous window using the code:
    <script language="JavaScript">
    function newWindow() {
    TheNewWin = window.open("main.htm","newWin","status=no,resizable=yes,left=0,top=0,width=1014,height=6 50");
    TheNewWin.focus()
    </script>
    I tried the code above in the ScriptWindow of a Captivate button (running in a Captivate SWF in the new window). It didn't work.
    I also tried:
    TheNewWin.resizeTo(1016,165);
    and
    newWin.resizeTo(1016,165);
    neither of which worked.
    Any other guidance would be appreciated.

  • How to go to previous page in task flow using 'BACK' button in the browser?

    Hi...
    I have created system using ADF application that can detect 'BACK' button in the browser(e.g. firefox and google chrome).Everytime i click the 'BACK' button in the browser,it will prompt out message that ask user whether want to 'stay in the current page' or 'leave the page'. Once i click 'leave the page' it will take me to the login page.
    Is there any possibility for go back to previous page in task flow when user click on browser's back button? By the way, the task flow is in the page fragment.
    can anyone tell me how to do it?Need this step urgently..
    Thanks in advance.
    Edited by: 942376 on Jun 22, 2012 11:03 PM
    Edited by: 942376 on Jun 22, 2012 11:07 PM

    Can you send that code to have a look ? Share it on some site

  • How to use Javascript array in the JSP

    hELLO Friends,
    I am creating an String array using the values
    in the list of a jsp page using Java script..
    How can I use this array in the same jsp
    file for processing...
    any help in this regard would be highly appreciated.
    thanks in Advance...
    ashish

    you cannot pass values from javascript to JSP without having to form-post to another JSP page.

  • How do I set iPlanet Web Server 4.1 HTTP Response Header to use expires so that the browser will cache content longer

    I want to add in all html files returned the "expires" value.
    Based in HTTP 1.1, I think it is possible by adding the META tag between the <HEAD> and </HEAD>:
    <META> HTTP_EQUIV:"expires" CONTENT="Sun, 21 Jun 2002 15:05:00 GMT" </META>
    I include this in my html file (but "expires" doesn�t work :(( ). Which options are necessary to modify in the WS?
    How does the internet options of the browser influence?
    PD:(This is a question posted last 5/28, but is has no response yet.)

    The above reply does not take into account that I am trying to use GROUP POLICY EDITOR to make it the default browser.

Maybe you are looking for

  • Iphone 4 not recognized by windows xp pro

    My new iphone4 is not recognized by windows xp pro. Please help.

  • Ethernet modem to extreme base station trouble

    Hi I am having trouble connecing my ethernet modem (DSL 300t) to my airport extreme base station. The modem works fine plugged directly into my computer. The base station seems to be working fine when it is not connected to the modem. It was suggeste

  • Really poor image quality when watching DVDs

    Hi, I was just wondering whether anybody else has experienced really poor image quality whilst watching DVDs on their MacBook? For me, the image is really grainy or blurry. I am pretty sure it cannot be the DVDs as this problem is happening with ever

  • Is my SATA Controller crashed?

    Hey Guys, the HDD from MacBook Pro (mid 2010) does not work anymore. I have tested it in another MacBook and it works. I have tested three HDD Cables with the front LED and nothin helps. If i go to system information under SATA section, the first Int

  • Will Nvidia update the driver for quadro 4000 for mac? When?

    Will Nvidia update the driver for quadro 4000 for mac? When?