Displaying multiple content_type on one page

Hello all,
I have an application that is getting all of its content from a database, both text and binary and was trying to figure out how to display both the text and the binary data on one page using a SINGLE servlet (it might not be possible). I have a bean that holds all the data so it can be accessed both from JSP and the servlet, I tried the following
<initilialize the beans and html>
response.setContentType(myBean1.getContentType());
out.write(myBean1.getData());
<something is missing here probably>
response.setContentType(myBean2.getContentType());
out.write(myBean2.getData());
Now this compiles and runs, but let's say Bean1 is text and Bean2 is a gif, the picture does not show up, which is expected since I'm missing something in between the two, what is it?
In the meanwhile I have another servlet that returns a binary stream to the browser using the following
<img src='testing.displayBinary?id=xxxxx'>
Can this be done without using the second servlet?
Thanks in advance for any help.
Regards Jirka

An HTTP response has one content type.
You use seperate requests to serve an image and for this you may need to set some session variable to that the servlet serving the image knows what to do. If the text content has to be part of an HTML response you can use <pre> to ensure the formatting.
The basic idea is to understand what the HTML will look like before attempting to build a JSP or servlet.

Similar Messages

  • Can you display multiple photos on one page with slide tool to transition between them?

    Hi Folks,
    I have a series of photos taken from the exact same location but on different days. I would like to display them on one page but use a slide tool/bar to move or transition between the photos. If the slide bar can display the date of the photo then that would be great.
    Can this be done in adobe?
    Any help would be great.
    Thanks.

    A Steve mentioned you can use a button to display an image. If you use JavaScript, you wouldn't have to show/hide multiple buttons but could instead dynamically set the button icon programmatically. The setup for something like this is a bit involved, but it's not overly complicated. Post again if you'd like more details.
    The slide bar is the thing that would have to faked as there is no such built-in control, but something functionally equivalent could be done, it just may not behave as smoothly as you want.

  • Display multiple surveys on one page

    Hi,
    I am new to the SharePoint 2013. I created multiple surveys in a team site, but I want to create a page and list all surveys out. Is it possible to do it? I tried using Content Query Web Part, but it didn't list out the name of the survey but display "blank".
    only.
    What else I can try to achieve my goal?
    Thanks,
    Iris

    Hi,
    It can be done by using Server side code in Visual Webpart .Please check the below link.
    http://sharepointkitchen.blogspot.in/2013/07/creating-controls-dynamically-in-aspnet.html
    If you are looking for something different pls let me know..
    Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • How to display all data on one page in web app

    Hello.
    So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
    <bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
    in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
    So how to display this data on one page if its impossible how to torn on pagination.

    So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
    In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
    Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice.

  • When displaying multiple curves on one 2d graph in reports how do I force one curve to be in the foreground?

    When displaying multiple curves on one 2d graph in reports how do I force one curve to be in the foreground? I have two signals and I want to show one overlayed on top of the other. Right now Diadem will only graph it the other way around. I have tried deleting the curves and re-adding them in differnt orders, changin the order they are in the curve list, changing their order inthe data portal, right clicking on the curve and selecting "move to forground" (this only moves the entire 2-d graph object to the foreground). Im using Diadem 12.0 Basic.
    Solved!
    Go to Solution.

    Hello Joe,
    I figured out what causes your curves to draw in the wrong "order".
    You are using two Y-axes, and DIAdem always draws the data for Y1 before Y2, no matter what the order of the curves is in the "Curve and Axis Definition" dialog.
    I am attaching your layout with a small modification, I changed the Y1 and Y2 axis order (I swapped which Y-axis the data is displayed on), and I get the following result:
    Once I looked at your layout it became clear why the order of the curves didn't reflect the order in which the curves were drawn. I didn't know this - so I just learned something new here as well.
    I hope this answers your question, feel free to ask if there is anything else I can help you with.
          Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."
    Attachments:
    Modified Report Layout.TDR ‏146 KB

  • Add to Multiple Tables from One Page

    Hello,
    I am building an application that handles hardware inventory (APEX 4.0). I have an input page that adds data to two or more tables all at once. The page has two forms on it that point to two separate tables. However when I try to run the page, it fails and returns an error:
    ORA-06550: line 1, column 437: PL/SQL: ORA-00904: "ORH_LAST_UPDATE_DATE": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table IDD_ID_DATA.
    So far as i can see within the App, that column is not at issue (I am not even doing anything to it and it is nullable). I have looked into the App itself as well as doing some online research but have found nothing helpful...
    So my question is this: Is it possible to add to multiple tables from one page? If so how do I do it?
    I am new to APEX so any help would be greatly appreciated!

    UPDATE:
    I received an email from the APEX Support Team:
    "The simple answer is that you will need to manually code the DML (and query) processes if you wish to maintain multiple tables from one page (There is a limit of one table when using the built-in processes).
    In order to do this I suggest you delete the processes generated by the wizards and create PL/SQL processes with insert, update, delete statements as necessary. Such coding is not difficult but is more time consuming than when you can use built-in processes."
    I have been playing around with PL/SQL code and the end result is this:
    begin
         INSERT INTO table1
         VALUES(
              :P2_Item_Field1,
              :P2_Item_Field2);
         INSERT INTO table2
         VALUES(
              :P2_Item_Field1,
              :P2_Item_Field2);
    end;
    I used this code in a custom PL/SQL Process in the Processing>Processes section of Page Processing and it seems to work fine now. The only downside to this method is if the name of a Page Item is changed the code will also have to be changed. Other than that i have had no problems.

  • I need an idea how to place multiple videos on one page

    Multiple videos on one page in Muse neded for a video portfolio..
    Anyone got a great idea how this can be done please. (or direct me to a tutorial link - doing one is all I can find)
    I am happy with either embedded or Menu linked on objects to videos.
    Youtube is hosting the videos
    I just cant find any way to put hyperlinks or urls in objects and I can not find a way to make small video players in Muse.
    If I scale the container ..things go very weird. eg the video goes tiny and into a corner.
    I feel like I am working with half a tool box!!!
    I cant even find a template where this has been done.
    Any help is appreciated. Thanx.

    That works perfectly thank you.
    Now I am wondering if I can have a single "viewer" that will play any selected video from a button , a menu or other trigger?
    Info for others if required. :  The You tube ID required in the widget setting is not the URL.  Its an alpha/numeric obtained from part of the YT embedding code.
    example - the bold underlined section
    <iframe width="720" height="405" src="//www.youtube.com/embed/w6ZcCOCihuY" frameborder="0" allowfullscreen></iframe>

  • Printing multiple photos onto one page

    Sorry, fairly new to PSE9!
    Have a group of photos I need to print to actual size (3cm x 4cm) to go into a photo frame.  They are all cropped and ready to go but there doesn't seem to be an option to print multiple images onto one page at a custom size?  A contact sheet only gives me the option for the number of columns and picture package doesn't give any such option either as far as I can see!  I'm sure I must be missing something here!
    Any help much appreciated!  Don't want to waste photo paper printing each small photo individually!

    http://www.elementsvillage.com/forums/showthread.php?p=206785#post206785
    Post #6 in this thread provides standard directions.

  • Update multiple records on one page php/mysql

    Hi folks,
    I am trying to adapt a page to offer the option to update multiple records on one page.
    The intention is to edit FAQ categories which are contained in a table with just two fields - the category and an id.
    The page lists each categories in a form with a submit button which is then repeated for each record in the recordset.
    Unfortunately my plan didn't work and only the first record updates as intended.
    Can anyone suggest how I can make it work?
    Here's the code I have so far.
    ************** The Update Code *****************
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if (!isset($mm_abort_edit) || !$mm_abort_edit) {
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE faq_categories SET category=%s WHERE id=%s",
                           GetSQLValueString($_POST['category'], "text"),
                           GetSQLValueString($_POST['id'], "int"));
      mysql_select_db($database_con_mysite, $con_mysite);
      $Result1 = mysql_query($updateSQL, $con_mysite) or die(mysql_error());
      $updateGoTo = "faq-category-edit.php
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    ************** Update Code Ends *****************
    ************** The Form *****************
    <form name="frm_editcategory" id="frm_editcategory" method="POST" action="<?php echo $editFormAction; ?>">
      <?php do { ?>
    <fieldset>
              <input name="id" type="hidden" value="<?php echo $row_rs_faqcategory['id']; ?>" />
              <input name="category" type="text" class="formrightcolumn"  value="<?php echo $row_rs_faqcategory['category']; ?>" />
              <input name="save" type="submit" class="submitbutton" id="save" value="save" />
    </fieldset>
              <input type="hidden" name="MM_update" value="form1" />
       <?php } while ($row_rs_faqcategory = mysql_fetch_assoc($rs_faqcategory)); ?>
    </form>
    ************** The Form Ends *****************
    Cheers
    Dave

    What does debugging tell you? What's the value of each of the variables? Did you try using regular echo statements to monitor what's going on? That's what I always do whenever I am stuck in my PHP coding.

  • Display multiple spreadsheet on one XY Graph

    Hello 
    How can i display multiple spreadseet on one XY Graph ?
    i'm using this method for single file :

    This is what i have done 
    it's really intresting that The color of the plots automatically got changed 
    as you see here address is constant and number of file too.
    now i'm working on user just select the folder and the code automatically display all file in the folder .
     

  • Print multiple photos on one page to printer

    I am new to macs, and I can't figure out (using iphoto 11) how to just print multiple photos on one piece of 8 1/2 X 11 paper in my own printer at home. I want to choose the size of each picture (like one 4X6 and two wallets on one page. How do I do this? it seems I can only print one pic per page when I use the print function in iphoto. Please help! If i can't do this basic thing I feel like I just wasted a couple thousand dollars on a really expensive piece of junk.

    This is a detailed set of instructions I made for my mother to use. Hope it helps.
    To print single or multiple photos in iPhoto
    Open iPhoto
    If photo(s) are not already in iPhoto then dragand drop into iPhoto
    Locate photo(s)
    Select (highlight) photo(s)
    Click File
    Click Print
    New window pops up
    Select border type on left side (standard, etc.)
    Select Print Size at bottom right (2x3, 3x5,etc.)
    Click Customize
    New window opens
    On bottom right are new icons
    IGNORE Print settings -are the options you chose in steps 7a, b & c
    IGNORE Themes - is thesame as step 7a
    IGNORE Background –ignore in most cases
    IGNORE Borders –default is 1 (use default in most cases)
    Layout (select 1 or 3 in most cases)
    1is horizontal photo
    IGNORE 2 is horizontal photo with text below
    3is vertical photo
    IGNORE 4 is vertical photo with text below
    SettingsClickon Photos per page
    If you want only 1 copy of each photo you selectedon each page then choose Single photo per page
    If you want 2, 3 or 4 different photos on eachpage then choose Multiple photos per page
    If you want many copies of the same photo oneach page then choose Multiple of the same photo per page
    ClickPrint on the bottom right
    Newwindow pops up
    If the arrow (triangle) to the right is pointingdown click it so it points up and displays additional options
    Choose number of copies (pages to print)
    ClickPrint

  • Multiple Slideshows On One Page

    Hi, I'm wanting to have a dynamic region which consists of 4
    images with fixed sizes. I then want each of these images to run
    through a dataset of image paths fading between each image at a set
    interval (Much like the Spry Photo Gallery Slideshow does).
    I've edited the photogallery down to just the fixed size
    image fading between the dataset (e.g. I removed the thumbnails and
    controls etc so that it is automatic and continuous).
    Unfortunatelly my JavaScript skills are limited and I was
    wondering what would be involved to edit the script further to
    allow me to have 4 of these slideshows on one page instead of just
    the one 'mainImage'.
    Thanks for any help.

    I'm not entirely sure how you mean to achieve this via css?
    here's my current code. With this I can generate multiple
    slideshows (currently using the same dataset) however only the
    first one seems to acknowledge the defined fixed image sizes, the
    rest display the original image dimensions within the container
    sized to the defined dimensions. How come the images don't resize
    for both? I'm calling the same function. Any help much appreciated
    thanks.
    // My Xml
    <features>
    <set id="1">
    <cover id="0" path="pics/to/image1.jpg" alt="image
    description" />
    <cover id="2" path="pics/to/image2.jpg" alt="image
    description" />
    </set>
    <set id="2">
    <cover id="0" path="pics/to/image3.jpg" alt="image
    description" />
    <cover id="2" path="pics/to/image4.jpg" alt="image
    description" />
    </set>
    </features>
    // My Index.php
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    <title>Gallery</title>
    <link href="../css/screen.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript"
    src="../../includes/xpath.js"></script>
    <script type="text/javascript"
    src="../../includes/SpryData.js"></script>
    <script type="text/javascript"
    src="../../includes/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsFeatures = new
    Spry.Data.XMLDataSet("../../../../../xml/xml_Features.php",
    "features/set/cover");
    </script>
    <script src="gallery.js"
    type="text/javascript"></script>
    </head>
    <body id="gallery">
    <div id="wrap">
    <div id="previews" style="display: none;">
    <div id="thumbnails" spry:region="dsFeatures">
    <div spry:repeat="dsFeatures"> <img id="{id}"
    alt="{@alt}" src="../../../../../{@path}" width="24" height="24"
    style="left: 0px; right: 0px;" /> </div>
    <p class="ClearAll"></p>
    </div>
    </div>
    <div id="picture">
    <div id="mainImageOutline" style="width: 0px; height:
    0px;">
    <img id="mainImage" alt="Click to view product details"
    onmouseover="if (gSlideShowOn) StopSlideShow();" onmouseout="if
    (!gSlideShowOn) StartSlideShow();" />
    </div>
    <div id="mainImageOutline" style="width: 0px; height:
    0px;">
    <img id="mainImage2" alt="Click to view product details"
    onmouseover="if (gSlideShowOn) StopSlideShow();" onmouseout="if
    (!gSlideShowOn) StartSlideShow();" />
    </div>
    </div>
    <p class="clear"></p>
    </div>
    </body>
    </html>
    // gallery.js
    // Global variables:
    var gThumbWidth;
    if (gThumbWidth == undefined)
    gThumbWidth = 24;
    var gThumbHeight;
    if (gThumbHeight == undefined)
    gThumbHeight = 24;
    var gSlideShowInterval;
    if (gSlideShowInterval == undefined)
    gSlideShowInterval = 3000; // msecs between images.
    var gAutoStartSlideShow;
    if (gAutoStartSlideShow == undefined)
    gAutoStartSlideShow = true;
    var gBehaviorsArray = [];
    var gSlideShowOn = false;
    var gSlideShowTimer = null;
    var gImageLoader = null;
    // Register a callback on the dsFeatures data set so we can
    turn
    // off the slide show before it attempts to load new data.
    dsFeatures.addObserver(function(nType, notifier, data) {
    if (nType == "onPreLoad")
    StopSlideShow();
    // Register a callback on the thumbnails region so we can
    show the first
    // image in the data set after all the thumbnails have
    loaded.
    Spry.Data.Region.addObserver("thumbnails", function(nType,
    notifier, data) {
    if (nType == "onPostUpdate")
    ShowCurrentImage();
    if (gAutoStartSlideShow)
    StartSlideShow(true);
    // Trigger the transition animation from the current image
    // being displayed to the image at imgPath.
    function SetCover(imgPath, width, height, div)
    var img = document.getElementById(div);
    if (!img)
    return;
    CancelBehavior(div);
    gBehaviorsArray[div] = new Spry.Effect.Opacity(img,
    Spry.Effect.getOpacity(img), 0, { duration: 400,
    finish: function()
    gBehaviorsArray[div] = new Spry.Effect.Size(img.parentNode,
    Spry.Effect.getDimensions(img.parentNode), { width: width, height:
    height, units:"px"}, {duration: 400,
    finish: function()
    // Use an image loader to make sure we only fade in the new
    image after
    // it is completely loaded.
    gImageLoader = new Image();
    gImageLoader.onload = function()
    img.src = gImageLoader.src;
    gImageLoader = null;
    gBehaviorsArray[div] = new Spry.Effect.Opacity(img, 0, 1, {
    duration: 400,
    finish: function()
    gBehaviorsArray[div] = null;
    // Our new image is fully visible now. If the slide show
    // is on, fire off the timer for the next image.
    if (gSlideShowOn)
    SetSlideShowTimer();
    gBehaviorsArray[div].start();
    gImageLoader.src = imgPath;
    gBehaviorsArray[div].start();
    gBehaviorsArray[div].start();
    // Cancel the animation behavior of the object with the given
    id.
    function CancelBehavior(id)
    if (gBehaviorsArray[id])
    gBehaviorsArray[id].cancel();
    gBehaviorsArray[id] = null;
    // Show the image of the current selected row inside the
    dsPhotos data set.
    function ShowCurrentImage()
    var curRow = dsFeatures.getCurrentRow();
    SetCover("../../../../../" +
    dsFeatures.getCurrentRow()["@path"], 150, 180, "mainImage");
    SetCover("../../../../../" +
    dsFeatures.getCurrentRow()["@path"], 200, 300, "mainImage2");
    //SetCover("../../../../../" +
    dsFeatures.getCurrentRow()["@path"], 120, 150, "mainImage3");
    //SetCover("../../../../../" +
    dsFeatures.getCurrentRow()["@path"], 120, 150, "mainImage3");
    // Utility function to advance (forwards or backwards) the
    current selected row
    // in dsFeatures. This has the side effect of "selecting" the
    thumbnail and image
    // of the new current row.
    function AdvanceToNextImage(moveBackwards)
    var rows = dsFeatures.getData();
    var curRow = dsFeatures.getCurrentRow();
    if (rows.length < 1)
    return;
    for (var i = 0; i < rows.length; i++)
    if (rows
    == curRow)
    if (moveBackwards)
    --i;
    else
    ++i;
    break;
    if (!moveBackwards && i >= rows.length)
    i = 0;
    else if (moveBackwards && i < 0)
    i = rows.length - 1;
    curRow = rows;
    dsFeatures.setCurrentRow(curRow["ds_RowID"]);
    ShowCurrentImage();
    function SetSlideShowTimer()
    KillSlideShowTimer();
    gSlideShowTimer = setTimeout(function(){ gSlideShowTimer =
    null; AdvanceToNextImage(false); }, gSlideShowInterval);
    function KillSlideShowTimer()
    if (gSlideShowTimer)
    clearTimeout(gSlideShowTimer);
    gSlideShowTimer = null;
    // Start the slide show that runs forwards through all
    // the rows in dsPhotos.
    function StartSlideShow(skipTimer)
    gSlideShowOn = true;
    if (!skipTimer)
    SetSlideShowTimer();
    // Kill any slide show that is currently running.
    function StopSlideShow()
    gSlideShowOn = false;
    KillSlideShowTimer();
    Also if someone could explain how i could set the dataset for
    each image(coverImage) to be for each <set id=""> that would
    be great.
    Thanks for any help you can provide.

  • Multiple videos on one page

    so i have created a website (which i haven't posted yet) in iweb- my question concerns video on iweb. on one page i have 5 videos that range from 20MB to 60MB, i would like these videos to download without a lot of wait time. curious what the wait time for this page would be? and also, would it be better to create a picture and then a hyperlink to each video? would that be faster? would preferably like to have multiple videos play on the page rather than hyperlinking to another page, but from what i've read, it sounds like it takes a while to download a page like that. also, i am not going to use mobileme, most likely godaddy.
    thank you.
    ben

    I just learned from toad yesterday...and I was where you were. I was afraid to try the code thing. But I kept pushing till I figured it out.
    I also publish with GoDaddy. They are very Mac friendly.
    My suggestion is that you upload your video file to Godaddy first. I used Cyberduck (free). When you get Cyberduck up and your file uploaded to the server, look (navigate) on the Cyberduck interface to the video file you have created the button for.
    Then, go to "Get Info" in the pulldown menu. You will see the URL that GoDaddy has assigned to the video (basically the Directory/Path).
    This is the info you want to put in the code part on iWeb where (in red) you replace the template text.
    To help you understand what Toad has published in red:
    1. the first red is where the URL path from the Cyberduck info goes.
    2. the second reds are the size of the Video you want to display. I find that 640x480 works very well.
    3. the last red is what your button will say: replace with "Click to Play"
    BIG HINT: Get Quicktime Pro. That interface will allow you to save your vide as a "Fast Start" video for uploading. I think this is Apple's equivalent of Flash.
    Once you get your stuff in place you will probably have to have a few phone sessions with Tech support at GDaddy. They can spot your mistakes and help get you up.
    Good Luck. This was all new to me and very intimidating - but 48 hours later I was able to have it all working.
    I even got it working on Network Solutions - but it was much more of a headache.
    For large video files, though, NetSol will let you put your videos on a Streaming Server for faster and more reliable service. Problem is that server only works with RealMedia and Windows Media Player...and who wants to convert all their QT files.

  • Multiple animations on one page scale incorrectly

    Tried to find an answer but I can only see that having multiple edge animations on one page is troublesome so far. However I've managed to get them working but there's one problem with scaling it responsively:
    http://aspekt-management.ru/test/
    The idea is having two tabs and in each there's an animation so once I press a button - corresponding tab with animation inside is shown and another one becomes hidden.
    But in 2014.1 version second animation always looks small till I resize browser viewport! After resizing browser width even by 1px - animation fits to the frame nicely. But then it breaks the first animation so once I get back to it - it behaves in a similar broken way.
    How can I make them both actually fit to their parent divs once loaded?
    What makes animations appear in such a size, I'm not sure I've specified anything like this in animations or site css.
    This is what I've copied from EA export code to my html:
      <script>AdobeEdge.loadComposition('main_process', 'main_process', {
        scaleToFit: "width",
        centerStage: "horizontal",
        bScaleToParent:true,
        minW: "0",
        maxW: "undefined",
        width: "940px",
        height: "260",
    }, {"style":{"${symbolSelector}":{"isStage":"true","rect":["undefined","undefined","940px"," 260px"],"fill":["rgba(255,255,255,1)"]}},"dom":[{"rect":["410","70","120px","120px","auto" ,"auto"],"id":"preloader42","fill":["rgba(0,0,0,0)","images/preloader42.gif","0px","0px"], "type":"image","tag":"img"}]}, {"style":{"${symbolSelector}":{"isStage":"true","rect":["undefined","undefined","940px"," 260px"],"fill":["rgba(255,255,255,1)"]}},"dom":[{"rect":["0px","0px","940px","260px","auto ","auto"],"id":"home_process_stat","fill":["rgba(0,0,0,0)","images/home_process_stat.png", "0px","0px"],"type":"image","tag":"img"}]});
       AdobeEdge.loadComposition('main_master', 'main_master', {
        scaleToFit: "width",
        centerStage: "horizontal",
        bScaleToParent:true,
        minW: "0",
        maxW: "undefined",
        width: "940px",
        height: "260"
    }, {"dom":[{"rect":["410px","70px","120px","120px","auto","auto"],"id":"preloader42","fill": ["rgba(0,0,0,0)","images/preloader42.gif","0px","0px"],"type":"image","tag":"img"}]}, {"dom":[{"rect":["0px","0px","940px","260px","auto","auto"],"id":"main_master_stat","fill ":["rgba(0,0,0,0)","images/main_master_stat.png","0px","0px"],"type":"image","tag":"img"}] });
         AdobeEdge.bootstrapCallback(function(compId) {
      console.log("Composition loaded...", compId);
    Ironically, I havent had such a problem before, current website with older animations works correctly:
    Aspekt

    After some more research, my problem is slightly different from the original post. I'm using setTimeout to stagger the load times of multiple compositions. I'm using bScaleToParent: true to resize the individual compositions within their divs. HOWEVER, if a div's display is hidden when the edge comp is loaded, the composition defaults to the minWidth as set in Edge Animate, and only resizes when the viewport is resized.
    I'm working around this by setting the opacity of the hidden divs to 0 instead of the display to none.... but it is NOT ideal.

  • Multiple subforms on one page

    Hi,
    I am using Adobe output designer 5.5 to create templates. I am running into trouble when I try to have 2 subforms on the one page - fields are not being displayed.
    the first subform is fine but, the fields are not populating on the second subform. I have an example of a file I am trying to use the template with below :
    ^page 1
    ^position absolute 1.00 19.25 cm
    ^subform CUSTOMER_DETAILS
    ^field CUSTOMER_NAME
    Joe Bloggs
    ^field CUSTOMER_ADDRESS
    1 Old Street, Newtown
    ^position absolute 1.00 19.95 cm
    ^subform PRODUCT_DETAILS
    ^field PRODUCT_PRICE
    $99.99
    ^field PRODUCT_DESCRIPTION
    iPod Nano
    ^page 2
    ^position absolute 1.00 17.00 cm
    ^subform COMPANY_DETAILS
    In this case the customer details display and the text from the PRODUCT_DETAILS subform but not the fields (i.e $99.99 and iPod Nano do not display). I have tried changing field to global (in both the file and template)
    I am not too sure how subforms work or if it is possible to use multiple subforms on the same page.
    Any help would be greatly appreciated

    I created a template with your subforms and fields and tested with your data. It worked fine.
    Check that the field names on the template are the same as the names in the data.
    Check the log to see if it gives you any clues, like 'field not found'.
    Handling the subforms in the data is not really the best way to work with subforms. Merge will do that for you.
    Once the initial subform has been placed on the page then the merge will handle the laying down of successive subforms depending on the data.
    Following is an alternative way of presenting what you want.
    - Create the template with the Customer_Details subform at the required location on the page, and in the subform definition check the "Always position in same vertical location on page" box.
    - The Product_Details subform can be anywhere on the page, but is normally created somewhere relative to the preceding subform, in this case below it.
    - The field names in each subform should be unique. This allows merge to handle all the subform placement.
    - Your data could be much simpler:
    ^page 1
    ^field CUSTOMER_NAME
    Joe Bloggs
    ^field CUSTOMER_ADDRESS
    1 Old Street, Newtown
    ^field PRODUCT_PRICE
    $99.99
    ^field PRODUCT_DESCRIPTION
    iPod Nano
    When merge sees the field Customer_Name in the data it will look in the preamble for the appropriate event for that field, in this case !FldNotAvail, and follow the associated instructions. This will include the position and subform commands to lay down the Customer_Details subform, then it will fill the field in the subform.
    When merge sees the Customer_Address field this field is on the current subform so merge populates the field with the data.
    When merge sees the Product_Price field it is not in the current subform so it looks in the preamble for the appropriate event associated with the field, and follow the associated instructions to lay down the Product_Details subform.
    When merge sees the Product_Description field this field is on the current subform so merge populates the field with the data.
    If there were a second Product_Price field in the data then merge would search the preamble for the !FldUsed event and follow those instructions.
    This is not simple to understand but I hope it helps.

Maybe you are looking for

  • Check box color

    Hello, I need to put the background color of a check box in gray, instead of white. If i change his property enabled to no, it will be gray only post query, but i need that he stays always gray (also in enter-query). I tried set_item_property,Set_Ite

  • My Itunes library is skipping some songs which is also affecting my ipod, it is always the same songs that skip at the same place, it is not all songs.

    Since moving my Itunes to a Vista, it found songs that I downloaded a long time ago and added them to my library but now some songs (not just the ones that were lost in apple land) are skipping after playing a few seconds then it moves onto another s

  • External and Portable Hard Dirves

    Could anyone tell me what they think is the best External and/or Portable Hard Drive. I have a Macbook Core Duo with 100GB of space. I have about 4GB left due to all my movies I have converted and stored on my computer, photos and music. Could anyone

  • Sending variables between swfs

    I'm loading one swf into another and trying to send a variable to the loaded swf. I'm using the code at the bottom to load the swf and send the variable. In the loaded swf I'm using: [Bindable] public var myName:String Then in a function: myName = Ap

  • Progress bar  in text environemnt..

    I am trying to run the following in order to create a progress bar and show some activity during run time of my program. The problem lies i believe in maven as i running JUnit tests and in order to work maven is used. If the JUnit is runned inside Ec