Cool code to move a region to another spot on the page.  HELP-doesn't email

I am moving a region from one place to another on a page.... putting it in the middle of a report.
I mentioned it here :
documentation on html_GetElement, and moving a regionID via javascript
Why am I doing this? I needed to see one purchase order, with the POitems in the middle of the page. So i render the purchase order (using a custom report template I built)... in that template, I Have a div called POItems. Then in a separate region, I'm getting the POitems using an APEX report region. After the page is loaded, i call a js function I wrote to move the contents of the region from whereever it is to the div where I've saved a place for that data in the middle of my larger purchase order report.
It looks GREAT!!!
Here is the function (i have it in the HTML Header of the page)
(I know, i hardcoded the regionID. I'm going to change it later to grab the id into a field and then use that field's value to make the function more generic. I'll also add parameters to specify the name of the region I wanna get, and the name of the DIV I wanna move it to, and I'll rename the function to moveRegion)
function movePOItems(){
var o = html_GetElement('R199099409321783582');
if (o){
var oDIV = getObject('POitems');
if (oDIV){
oDIV.innerHTML = o.innerHTML;
o.style.display = "none";
and I call it in the footer:
<script language="JavaScript" type="text/javascript">
movePOItems();
</script>
Now, the problem. The whole purpose for this was to PRINT and to EMAIL. Print preview looks fine (haven't printed to paper yet). Looks really great! What we are using to print is Internet Explorer's (ver 6.x) "File/Send/Page by Email". When I go to print, the POItems region shows up where it would have shown up had I not moved it then hidden it!! It's as if I never wrote the function and never called it.
I'm guessing that Outlook doesn't do the javascript calls.
Any ideas?
If you don't need to print, I hope someone can use this trick! Really, though, I hope to resolve the printing issue or I have to totally rewrite the sql query to get the items. I thought I was done w/ this task! :-(
~Darby
Versions:
Outlook 2003 SP2
IE: 6
Apex: 2.2
Oracle: 10g

thanks Tyler but I have to go with the software and versions that we have.
I am actually done w/ that task.
I wrote a pl/sql procedure to get the poItems inline and it looks really good.
It's a good lesson learned that you can't use any fancy javascript after page load, if you wanna use File\Send\Page byEmail (IE).

Similar Messages

  • HT4689 After I get on a wbsiteor open an e-mail and I move my mouse to click on something , the page slides upward nd I have to click on the bottom edge to get it back. Extremly annoying and time consuming . Any Ideas about what to do?

    After I get on a website or open an e-mail, as I move my mouse to click on something the page slides up under the task bar and I have to click on the edge to get it back very annoying. Does anybody know how to get rid of this problem. I just started happening recently. Had my Mac for over two years.

    After I get on a website or open an e-mail, as I move my mouse to click on something the page slides up under the task bar and I have to click on the edge to get it back very annoying. Does anybody know how to get rid of this problem. I just started happening recently. Had my Mac for over two years.

  • Move SCCM client to another OU at the end of the deployment task sequence

    Hi
    I'm looking to modify my SCCM task sequence so that it can put a computer in the correct OU at the end of provisioning. I've come across a couple of scripts to do this, but neither are working at the moment
    1. A few lines of PowerShell here (http://stackoverflow.com/questions/22966037/move-computer-to-new-ou-in-sccm-2012-task-sequence-with-powershell)
    C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -command iex \" `$TargetOU=\"\"OU=TargetOUName,DC=ConglomiCo,DC=com\"\"; `$SysInfo=New-Object -ComObject \"\"ADSystemInfo\"\";`$ComputerDN=`$SysInfo.GetType().InvokeMember(\"\"ComputerName\"\",\"\"GetProperty\"\",`$Null,`$SysInfo,`$Null);`$Computer=[ADSI]\"\"LDAP://`$ComputerDN\"\";`$OU=[ADSI]\"\"LDAP://`$TargetOU\"\";`$Computer.psbase.MoveTo(`$OU);"
    With the above command, I keep on receiving a syntax error and/or invalid OU error. My specified OU is valid and I'm using an account with sufficient permissions to move computers in AD. I also find the syntax with the "\" difficult to follow.
    2. The second script I've tried here, doesn't seem to work either:
    http://blog.coretech.dk/jgs/vbscript-move-computer-object-to-another-ou-via-command-line-parameter/
    On Error Resume Next
    'Get MachineObjectOU Value
    Set wshNetwork = CreateObject("WScript.Network")
    Set oFso = CreateObject("Scripting.FileSystemObject")
    Set objSysInfo = CreateObject( "ADSystemInfo" )
    Set ArgObj = WScript.Arguments
    'Use first argument as target OU
    strMachineObjectOU = strLDAPofOU
    strComputerDN = objSysInfo.ComputerName
    'msgbox(strMachineObjectOU)
    nComma = InStr(strComputerDN,",")
    strCurrentOU = Mid(strComputerDN,nComma+1)
    strComputerName = Left(strComputerDN,nComma - 1)
    'msgbox(strCurrentOU)
    'If current ou is different than target OU. Move object
    If UCase(strCurrentOU) <> UCase(strMachineObjectOU) Then
        Set objNewOU = GetObject("LDAP://" & strMachineObjectOU)
        Set objMoveComputer = objNewOU.MoveHere("LDAP://" & strComputerDN, strComputerName)
        'msgbox("LDAP://" & strComputerDN & strComputerName)
    End If
    If I put this script into a task sequence, how does SCCM know which computer to move in AD? I'm assuming by using variable strComputerDN = objSysInfo.ComputerName
    Thanks in advance
    IT Support/Everything

    If I put this script into a task sequence, how does SCCM know which computer to move in AD? I'm assuming by using variable strComputerDN = objSysInfo.ComputerName
    Correct. Jörgen did a post about the usage of that script a long time ago that should help you, see:
    http://ccmexec.com/2010/12/move-computer-to-the-correct-ou-during-deployment/
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Move a spry accordian to another part of the page

    I'm relatively new to dreamweaver. I've added a spry according to my page, and right now it sits at the bottom of a photo and thumbnails for a gallery.  I'm trying to move the spry according up, to the upper right hand side of the page, but it just stays centered at the bottom and I can't drag it's outline box freely around.  Wny help would be greatly appreciated!
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Photo Gallery</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-5">
    <link rel="stylesheet" type="text/css" href="style.css" />
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <img src="images/TopBanner-mini.jpg" width="546" height="90"><br />                                                                                                                                                                                                                                                                                   <div class="inner_copy"><a href="http://www.greatdirectories.org/">web directories</a><a href="http://www.bestfreetemplates.info/">free CSS templates</a></div>
         <div id="navigation">
              <ul>
                   <li><a href="index.html"><img src="images/but1.gif" alt="" width="120" height="26" /></a></li>                                                                                                                                       
                   <li><a href="index2.html"><img src="images/but2.gif" alt="" width="120" height="26" /></a></li>
                   <li><a href="index2.html"><img src="images/but2.gif" alt="" width="120" height="26" /><img src="images/but3.gif" alt="" width="120" height="26" /></a></li>
                   <li><a href="index2.html"><img src="images/but4.gif" alt="" width="120" height="26" /></a></li>
                   <li></li>
                   <li></li>
              </ul>
         </div>
         <div class="big">
              <img src="images/photobig.jpg" alt="" width="721" height="491" />
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
              <div class="CollapsiblePanelTab" tabindex="0">Cliquez ici pour des informacions</div>
              <div class="CollapsiblePanelContent">
                <p>Sabine, here you can enter any questions or directions you have for each set.</p>
                <p> </p>
                <p>A.</p>
                <p>B.</p>
                <p>C. </p>
                <p>etc.</p>
                <p> </p>
              </div>
          </div>
    </div>
         <div class="content">
              <div class="preview">
                   <a href="#"><img src="images/pic1.jpg" alt="" width="105" height="72" /></a>
                   <a href="#"><img src="images/pic2.jpg" alt="" width="105" height="72" /></a>
                   <a href="#"><img src="images/pic3.jpg" alt="" width="105" height="72" /></a>
                   <a href="#"><img src="images/pic4.jpg" alt="" width="105" height="72" /></a>
                   <a href="#"><img src="images/pic5.jpg" alt="" width="105" height="72" /></a>
                   <a href="#"><img src="images/pic6.jpg" alt="" width="105" height="72" /></a>
                   <a href="#"><img src="images/pic7.jpg" alt="" width="105" height="72" /></a>
                   <a href="#"><img src="images/pic8.jpg" alt="" width="105" height="72" /></a>
                   <div class="smallmenu">
                        1 <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> <a href="#">5</a> <a href="#">6</a> <a href="#">7</a>                                                                                                                                                                                                                                                                                              <div class="inner_copy"><a href="http://www.bestfreetemplates.org/">free templates</a><a href="http://www.bannermoz.com/">banner templates</a></div>
                   </div>
              </div>
    </div>
    <div id="footer">
              <ul>
                   <li><a href="index.html">home</a></li>
                   <li><a href="index2.html">gallery</a></li>
                   <li><a href="index2.html">about me</a></li>
                   <li><a href="index2.html">news</a></li>
                   <li><a href="index2.html">parters</a></li>
                   <li><a href="index2.html">contacts</a></li>
              </ul>
              <p>     
                   Copyright &copy;. All rights reserved. Design by <a href="http://www.bestfreetemplates.info" target="_blank" title="Best Free Templates">BFT</a>                                                                                                                                                                                                                                                <div class="inner_copy"><a href="http://www.beautifullife.info/">beautiful</a><a href="http://www.grungemagazine.com/">grunge</a></div>
              </p>
         </div>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Image li&eacute;e 1</div>
        <div class="AccordionPanelContent"><a href="#"><img src="images/pic1.jpg" alt="" width="105" height="72" /></a></div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Image li&eacute;e 2 </div>
        <div class="AccordionPanelContent"><a href="#"><img src="images/pic1.jpg" alt="" width="105" height="72" /></a></div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Image li&eacute;e  3</div>
        <div class="AccordionPanelContent"><a href="#"><img src="images/pic1.jpg" alt="" width="105" height="72" /></a></div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>

    DW isn't drag & drop like your graphics apps.  You need to look at your code.
    Highlight the relevant portions, Cut or Copy & Paste code to where you want it to appear in your markup.
    <!--BEGIN ACCORDION PANEL-->
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Image li&eacute;e 1</div>
        <div class="AccordionPanelContent"><a href="#"><img src="images/pic1.jpg" alt="" width="105" height="72" /></a></div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Image li&eacute;e 2 </div>
        <div class="AccordionPanelContent"><a href="#"><img src="images/pic1.jpg" alt="" width="105" height="72" /></a></div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Image li&eacute;e  3</div>
        <div class="AccordionPanelContent"><a href="#"><img src="images/pic1.jpg" alt="" width="105" height="72" /></a></div>
      </div>
    </div>
    <!--END ACCORDION PANEL-->
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Trying to use a button to move form data to another section of the document

    Not sure how to form this question, but hoping you guys (the experts) will be able to help me along....
    I'm trying to setup a form that, when you select a button it moves data like below:
    and then will move it to the correct section as indicated by which button you pressed:
    Is this possible? Any help you can provide would be very appreciated! Thanks in advance.

    Alright - so I've been trying to work w/the scripting language (I'm sorry, I'm fairly new, and one of two things happens whenever I enter it in.
    1. The text disappears from the box on the right and doesn't show up in the assigned boxes.
    2. Nothing happens
    I've attached a photo (below) of the script as my ignorant self believes it should look. Any thoughts? (Again, I appreciate your patience here - thanks!):

  • I have turned on my phone this morning and it's asking for a pass code when I have never put one in and I can't get past the page help!

    I have turned on my I phone this morning and it is asking for a pass code I have never used one and cannot get past the page can anyone help?

    You won't get a reply on your email here. These forums are for users who want to help other users.
    If you didn't buy your iPhone in your own country and you unlocked it to work in any way, you're out of luck.  If you accidentally setup a passcode check out this old discussion:
    https://discussions.apple.com/thread/3671431?start=0&tstart=0

  • How do I tell my flash movie which frames to display depending on the page?

    Hi,
    I'm creating a php website with a flash movie that
    incorporates the navigation. The movie shows an image for each
    section and this image doubles as the navigation. The website uses
    the same php template throughout the site for each page.
    Here's the thing: I would like each page within the site to
    display the rollover / active state of the section that the page is
    in, rather than the movie playing fully each time the visitors
    visits a different page.
    The .fla file and .swf can be viewed here:
    http://preview.hosts.co.uk/~swinsidelodge-hotel.co.uk/templates/swinside/img/header.fla
    http://preview.hosts.co.uk/~swinsidelodge-hotel.co.uk/templates/swinside/img/header.swf
    So when a visitor is on a page in the hotel section, I want
    the flash movie to play frames 201 to 205 and when in the booking
    section frames 221 to 225 rather than the whole movie.
    Is there any way of doing this?
    Thanks,
    Konrad

    Thanks Gorka,
    I looked it up and found this useful summary:
    http://probertson.com/articles/2006/12/14/deep-linking-flash-application-states/
    However, I'm now trying to figure out how write the flahs
    vars so it can see what section / folder the page is in so that the
    swf knows to play the same frames for both
    swinsidelodge-hotel.co.uk/pages/hotel/awards.php and
    swinsidelodge-hotel.co.uk/pages/hotel/guest-comments.php. So
    basically it doesn't look at the last bit of the url but the first
    bit... I would like the flash vars to be dynamic so that when the
    client adds a new subpage in one of the sections the swf will still
    know which frames to play.
    Any suggestions?
    Thanks,
    Konrad

  • Quicktime movie - publishes a ghost file, placing on the page

    I have two questions.
    First - the ghost file
    I dragged a Quicktime movie file to a page and then published to a folder. I realised that I had attached a 27Mb file instead of a smaller file (750k) that I had meant to. I deleted the large file (select/delete) and dragged the new file on to the page and published to a new folder. However the large file keeps publishing even though I thought I had deleted it. I always end up with the large file and small file in the published folder. How can I stop this happening?
    Secondly - placing on a page
    The QT movie has an area above the control bar for a graphic which I didn't fill. How can I accurately place the QT file on the page so I can line it up with text - the graphic box seems to stop text flowing around it or placing it where I want it.
    Thanks

    I suspect your ISP is serving you an older "cached" file instead of the new "fresh" one. More common overseas than here in the U.S. and some ISP's are worse than others.
    Try "refreshing" the page (Command-R in your browser) to see if it now finds the new page.
    If that fails (and it may because these ISP's are so aggressive about caching) try adding a question mark (?) to the end of the address in your browser:
    apple.com becomes apple.com?

  • Looking for help with movie loading in a different spot every time page reloads.

    Hello,
    I have a Flash movie that I need to jump to a one of 6 chosen frames when say a user hits the back button or home in the site. I just dont want the same user seeing the flash movie replay in the same spot everytime they go back to home.
    ANY help with this is appreciated.
    Thanks ahead of time.
    -Ann
    Here is what I have scripted:
    var numbers:Array = [2,114,415,687,960,1195,1485];
    _root.firstTime = true;
    if(firstTime) {
        firstTime = false;
        var frame:Number = Math.floor(Math.random() * numbers.Length);
        gotoAndPlay(numbers[frame]);
    I have also tried this:
    Array.prototype.shuffle = function() {
    for (var ivar = this.length-1; ivar>=0; ivar--) {
    var p = random(ivar+1);
    var t = this[ivar];
    this[ivar] = this[p];
    this[p] = t;
    ASSetPropFlags(Array.prototype, ["shuffle"], 1, 1);
    var Array_ar:Array = new Array(2,114,415,687,960,1195,1485);
    Array_ar.shuffle();
    index = 0;
    function load_random() {
    gotoAndPlay(Array_ar[index++]);
    if (index == Array_ar.length) {
    (index=0);
    load_random();
    But this keep jumping to frame 1 each time i hit back or refresh.
    Thanks again.

    That did not work. It loops back to the frame that it first loaded to not to frame 1 the beginning.
    It tried putting gotoAndPlay(numbers[frame]); on the very last frame, then I made a new keyframe after the very last frame and neither worked.
    You can see the swf here:
    http://www.shared-vision.net/testsites/edi/EDIflashtest2.html
    Thank you for your help.
    -Ann

  • My rented movie stops at a certain spot in the movie, and wont ever play again. WHY

    Whenever i try to play 21 Jump Street as a rented movie it stops at 8:16 and wont play again. Restarting itunes doesnt help.

    I'd report the problem to the iTunes Store. 
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • Region Customization - can you extract the page regions a user has selected

    Is there an APEX view, or someway to determine programmatically, which customizable regions a user has selected?
    In the case where we have set regions to be 'Customizable and Shown By Default', our application needs to know which regions a user has selected or de-selected, as the application processing logic will vary depending on the user selection.

    Here are some useful queries.
    To see all the views available.
    select *
    from apex_dictionary
    where column_id = 0Then the other column_id values are the actual columns on those views.
    So I ran this:
    select *
    from apex_dictionary
    where column_name like 'CUST%'And found a good candidate on view APEX_APPLICATION_PAGE_REGIONS
    You're looking at something like this:
    select region_name, customization, customization_name
    from APEX_APPLICATION_PAGE_REGIONS
    where application_id = :APP_IDThanks
    -Jorge
    Please update your user name from user2543337 to something more friendly

  • When I open my brokerage website, I see my account information normally but when I click on another part of the page, I get an error message asking me to sign in again. This does not happen in IE or Chrome.

    My PC runs on WinXP.

    Same here (iPhone 5S). And a friend of mine has the same problem on his iPhone 5. I just installed the newest iOS update (7.1.2) and the problem persists. Although it seems to affect several people yet I can't find anything related to this on the web. If I really want deliberately to trigger the problem I just need to delete a song from the music app and the message will pop up for sure. I am also somewhat reluctant to do a full restore because frankly I expect the same outcome as the thread starter. So hopefully Apple will fix this soon. The main reason for me to buy a $ 800+ phone is to have a device that 'just works' but apparently that's long gone since iOS 7...

  • Spry tabbed panal-controlling content of another textbox on the page

    Hi, I am trying to teach myself a bit of web design by making a simple site for my partners beauty salon.
    http://www.enchantedbodies.co.uk/services.html
    I have religiously avoided using anything other than html5/php/css3 as i have no clue how JS/ajax etc work...
    That is untill i used the spy tabbed panal to insert some tables laying out what services she offers.
    Now what she wants is that when you click on each tab as well as changing panal to give her price list etc that it will change the content of a text box in the sidebar on the left (currently just a picture) with a bit of blub about each treatment (eg waxing or eyelash tinting).
    Is this possible?
    My only other option is that it will have to be actually in each panal under the table (as i don't want the table jumping around from tab to tab) but i think it will be much cleaner off to the side.
    Please let me know if i need to post more info to allow you to help.
    Many thanks
    Jim

    JimOnWax wrote:
    Ok.
    Rethinking! Tried the site on Iexplore9 and it automatically blocked the spry scripts so considering it will probably be the same on ie 8.5 on mobile i think i will rework this not using spry. That way I don't need to work this out.
    If anyone can try this site on a IE8.5 mobile and let me know if if the tabs in services work I would be very grateful.
    http://www.enchantedbodies.co.uk/index.html
    All the best
    Jim
    The blocking of the scripts occurs only when viewing the site on a local server. Once it is on a remote server IE does not block the scripts.
    Now the suspense, yes Spry or no Spry?
    As far as placing different content in the sidebar, have a look at the following example
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    <style>
    #sidebar {
        width: 200px;
        float: left;
    #TabbedPanels1 {
        width: 300px;
        float: left;
    .sidebar {
        left: 0;
        position: absolute;
    </style>
    </head>
    <body>
    <div id="sidebar">
    This is the menu
    </div>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
            Content 1
            <div class="sidebar">
              This is the sidebar content 1
          </div>
        </div>
        <div class="TabbedPanelsContent">
            Content 2
            <div class="sidebar">
              This is the sidebar content 2
          </div>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>
    Gramps

  • The last version of the Silverlight plugin doesn't work in Firtefox, I try to watch a movie in Netflix but after I updated the plugin it doesn't work, it worked with the older version and it works in Safari, how can be this problem fixed?

    I already contacted Netflix.

    The problem with write permissions for the OneDrive folder only shows up in Lightroom 6's export dialogue, that's why it's to irritating. Lightroom 5.7.1 is not having that problem nor does the file explorer. The problem also exists on both of my machines. I will try to check for other problems with the OneDrive troubleshooter though: Running the OneDrive troubleshooter - Windows Help   

  • I tried copying a photo and pasting it in another event/group within iPhoto but the paste feature doesn't work.  This wasn't an issue with both Leopard and Snow Leopard.  Do you have any solutions or tips?

    I bought a new MacBook Pro with OsX Lion as operating system.  I use iPhoto a lot and when I tried copying a photo then pasting it to another event/group, the 'paste' feature doesn't work.  This wasn't the case with Leopard and Snow Leopard where the 'paste' feature worked.  What I did was to paste the photo first to the desktop before transferring it to the new event/group.  I brought my Mac to the Apple store where I bought it and the technicians were themselves surprised that the 'paste' feature didn't work.  Chalked it up to glitches in the Lion os.  So how do we fix this?  I just find it absurd that a feature that used to work in Snow Leopard has been disabled in Lion, and the user still has to undergo an additional step to make it work, when new technology is supposed to make things easier for users. 
    Also, hasn't anyone noticed that it takes longer for the computer to boot upon opening? 

    Instead of copy and paste drag the photo to the new event. Or flag it and use the add flagged photos to selected event command
    LN

Maybe you are looking for