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.

Similar Messages

  • Resize the window by some other place except corner

    hi,
    Is there any way to resize the window except by corner. like "realplayer10"
    in which when play video we can resize the window by right-bottom of video image this place not corner of that window

    I've chosen not to use the new Photos app, so I can't be of any help with it - I will ask the hosts to move this to the Photos forum where more knowledgeable people hang out.

  • How do I resize the window of pages in the new version? It takes up most of my desktop. I would like to make it tall and narrow, which was possible in the old pages, but I cannot seem to do it in the new version.

    How do I resize the window of pages in the new version? It takes up most of my desktop. I would like to make it tall and narrow, which was possible in the old pages, but I cannot seem to do it in the new version.

    I agree it is a very bad and wasteful design especially for users on small laptop screens.
    You can drag it to whatever shape you want from the bottom left corner.
    Click on the paintbrush to make the Format side panel disappear. However you will need to use that side panel for most formatting.
    Peter

  • Some webpages resize the window but when the window opens in a new tab, the entire firefox browser is resized. How do I stop this from happening?

    This usually happens when the window is resized in order to fit the smaller content/intention for a webpage.
    I would like Firefox to ignore the window resizing (down sizing) commands when opening a window in a new tab and just display the window in full size.

    Go into ''Tools > Options > Content'' and next to where it says ''Enable JavaScript'', click ''Advanced...''' and then untick ''Move or resize existing windows''.
    This is the only way to do it. I believe there is a bug filed to prevent all sites (by default) from resizing the window if there are more tabs open, but I don't think it has been fixed.

  • [svn:fx-4.x] 14961: In updateDisplayList(), if it resizes the window, this calls setActualSize, so call validateMatrix() to make sure it is updated.

    Revision: 14961
    Revision: 14961
    Author:   [email protected]
    Date:     2010-03-23 14:10:43 -0700 (Tue, 23 Mar 2010)
    Log Message:
    In updateDisplayList(), if it resizes the window, this calls setActualSize, so call validateMatrix() to make sure it is updated.  Usually validateMatrix() is done in validateDisplayList() before udl is called.  Due to timing this only seems to show on Windows systems.
    QE notes:
    Doc notes: None
    Bugs: SDK-25735
    Reviewed By: Jason
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25735
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/airframework/src/mx/core/Window.as

    Hyugga wrote:
    Upgrade to flashplugin-10.3.181.14-1.
    I had the same problem, the i used the flashplugin-beta from AUR. Now the new version is released.
    I saw the solution here:
    https://bbs.archlinux.org/viewtopic.php?id=118443
    Good luck!
    The latest flashplugin fixed the problem.  I haven't had a crash since updating a few weeks ago.  I just wanted to update this thread in case anyone is still running the prerelease with this problem.
    The only major problem I have now is that justin.tv's player causes screen flickering for about 30s after going full screen, and I sometimes have to alt+tab to get full screen in focus after enabling it.
    Last edited by DarksideEE7 (2011-06-09 17:30:16)

  • When I double-click the tab bar, FF4 just resizes the window but does not open a new tab

    When I double-click the Tab Bar, FF 4.0 just resizes the window but does not open a new tab. It happens when Menu Bar is disabled (not ticked).

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br />
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.0 r32
    * Java Plug-in 1.6.0_03 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

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

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

  • Cuatom Forms: Loosing the Vertical scrollbar when resizing the Window

    Hi All
    I have developed a Custom Form. In that there is a Content Canvas and on the top of that I have put a Stacked Canvas so that i can get both the Horizontal and Vertical scrollbars. the form has more than 40 fields to display.
    Folder tool functionality has also been added to the Form.
    The form works absolutely fine and scrollbars too.
    But when I am resizing the window (making the window size bigger or smaller by dragging the window on the Oracle Apps screen), at that time I am loosing the vertical Scrollbar. Other than Vertical scrollbar everything works fine.
    Is there any way (any code) by which the Vertical Scrollbar will not disappear.
    I would really appreciate if any one could guide me on this.
    Thanks
    Madhu

    Madhu,
    Please post your message in the Oracle E-Biz forum. This forum is for Non-EBS Forms development and everyone here may not have EBS Forms development experience.
    That having been said, I encountered this about a year ago. If I remember correctly, we were able to resolve the issue by applying a Forms server patch to the Apps Tech stack. Please check Metalink to verify.
    Craig...

  • Why does the slider disappear every time I use it to move the window (Windows: FF 32.0)?

    Why does the slider disappear every time I use it to move the window (Windows: FF 32.0)? How do I get the slider back?

    Problem solved: I have been using Walnut for Firefox ver. 2.0.28 theme. For some reason this has been causing the problem. Started FF in Safe Mode, and the slider problem disappeared. Then proceeded to re-enable the Walnut theme: the problem reappeared. Disabled Walnut theme and reenabled all my other add-ons (about 6 of them). Still no problem. So, clearly there is a problem with the use of Walnut theme in FF ver. 32, at least on my Windows 7 installation.
    Thanks for all your suggestions and help. Good job, all!

  • Was just watching an HD movie and tried to resize the window midway through. Now I get the error "This movie cannot be played in HD on this display" Yes it can I just was. How do I fix this?

    Was just watching an HD movie and tried to resize the window midway through. Now I get the error "This movie cannot be played in HD on this display" Yes it can I just was. How do I fix this?

    I have the same problem on an original iPad.

  • Entourage crashes when I resize the window

    I am having a variety of problems with Microsoft software crashing on my Macbook. Entourage sometimes crashes when I resize the window. Word also crashes sporadically (see http://discussions.apple.com/thread.jspa?threadID=2149785) and I wonder if there is a connection between these two issues - something related to mouse movement or window management. Problems are only with Microsoft software (no surprise). I am running the latest version of Office.

    You should post questions regarding Entourage on Microsoft's own forums for their Mac software, as Apple discussions only provide support for Apple products

  • Can you use disk utility to resize the windows partition in bootcamp

    I've successful done everything for bootcamp, but I think I made the partition size for windows too small. I read you can use the disc utility on mac to resize it, is that true and does it work fine? I haven't installed anything on the windows part yet so it's not like I need to worry about losing anything

    No. If you do then neither your boot loader nor Boot Camp Assistant will be usable. You should use a tool like Paragon Camptune X 10 to make resizing easy.
    Boot Camp Assistant would require you to first remove the partition then create a new one.

  • 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

Maybe you are looking for