How to change index.template.html to put a HTML table side by side with Flex swf displayed in IE

I created my own index.template.html using <object> tag to hold Flex swf file, but it only works for FireFox, not IE.
I did not use the original FlexBuilder's index.template.html and the JavaScripts to generate the HTML wrapper.
Here is my index.template.html:
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>My App</title>
    </head>
    <body scroll="yes">
    <table cellpadding="0" cellspacing="0" width="982px" border="0">
        <tr width="982px"><td>This app is still under development. Currently, you can... </td></tr>
    </table>
    <p>
    <table>
        <tr>
            <td>
                <div style="width:192px;height:130px;border:1px solid rgb(0, 0, 0);">
                <!-- div style="border-style:solid;" -->
                <table align="left" border="0" >
                    <tr>
                          <td >
                              <span style="color:#242F6D;font-weight:bold;font-size:12px;">Stock:</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                              <select style="font-size:11px;">
                                  <option>ADBE - Adobe</option>
                                  <option>BAC - Bank of America</option
                            </select>
                          </td>
                    </tr>
                    <tr>
                        <td >
                              <span style="color:#242F6D;font-weight:bold;font-size:12px;">Shares:</span>
                        </td>
                    </tr>
                    <tr>
                          <td>
                              <input type="text" name="shares" style="font-size:11px;"/>
                          </td>
                    </tr>
                    <tr>
                          <td>
                              <button type="button" style="color:#242F6D;font-weight:bold;font-size:10px;">Add To My App</button>
                          </td>
                    </tr>
                </table>
                </div>
                <p>
                <div style="width:192px;height:310px;border:1px solid rgb(0, 0, 0);">
                <table border="0">
                    <tr>
                        <td style="color:#242F6D;font-weight:bold;font-size:10px;">
                            You may enter your values
                        </td>
                    </tr>
                    <tr>
                        <td >
<textarea id="quoteShare" style="width:186px;font-weight:bold;font-size:11px;" rows="13" >
</textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        <button onclick="callFlex()" type="button" style="color:#242F6D;font-weight:bold;font-size:10px;">Get Values of My App</button>
                          </td>
                    </tr>
                </table>
                </div>
            <td>
            <td>
                <table align="left" border="0" >
                    <tr valign="top">
                        <td valign="top">
                            <object type="application/x-shockwave-flash" data="ComponentTester.swf" WIDTH="850" HEIGHT="460" />
                          </td>
                      </tr>
                </table>
            <td>
        </tr>
    </table>   
    </body>
</html>

I just found 1 tricky solution.
Declare a variable containing the asset URL in the HTML, before the <!--Adobe Edge Runtime--> part. (Sample below.)
In the script (_edge.js), use this variable instead of the asset URL string . (replace the string constant with the variable)
In the server script, generate the HTML by changing the variable definition.
This is ugly...
I would appreciate any help.
Thanks.
=== HTML sample:
<!DOCTYPE html>
<html>
<head>
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
          <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<script>
// Define the asset URL
var cardImage = 'card_01.png';
</script>
<!--Adobe Edge Runtime-->
    <script type="text/javascript" charset="utf-8" src="animtest_edgePreload.js"></script>
    <style>
        .edgeLoad-EDGE-1381868 { visibility:hidden; }
    </style>
<!--Adobe Edge Runtime End-->
</head>
====

Similar Messages

  • How do I get and set column attributes in a table or a treetable with Java?

    Using 11.1.1.4.0
    Hi,
    How do I get and set column attributes in a table or a treetable with Java? For a simple example, say I have a table and want certain roles to see all columns (including address), and other roles can see only certain columns (no address). In a Java method, I want to test if a table's column visible attribute is true and if so, set it to false before rendering it.
    Thanks in advance,
    Troy

    Hi,
    this use case would be a perfect example for using seeded MDS customization. Instead of checking what users are allowed to see or not upon rendering time, you have a customization class and thus the framework doing this for you.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/31-mds-sample-169173.pdf
    In this paper and sample, specific users see different layouts. It also contains a customization class that shows how this can leverage ADF Security
    Frank

  • Workshop 8.1 - How to change anchor_submit_form template ?

    Hi everybody !
    Can i change anchor_submit_form template ? The generated JavaScript doesn't work either in IE or Mozilla : document.forms[x].submit() fails, but the request is sent because href is referencing the same URL.
    I don't know if this behaviour is a known bug, but i need an workaround for it. I think the problem is document.forms[x].method='POST'.
    A simple example:
    1. Define your form and some inputs too
    <netui:form action="myAction">2. Define a link to call your action
    <netui:anchor action="myAction" formSubmit="true">3. Make sure that your action will receive a request-scoped Form
    4. Call your .jsp, fill the form inputs and click at the link.
    Surprise: The properties inside your ActionForm are completely blank ! The cause: onClick handler is failing and href is being executed.
    Generated link source code:
    a href="/contextPath/myPageFlow/myAction.do" onclick='anchor_submit_form("Netui_Form_0",
    "/contextPath/myPageFlow/myAction.do");return false;'
    Javascript evil source:
    == Not working version ==
    function anchor_submit_form(netuiName, newAction)
      for (var x=0; x<document.forms.length; x++) {
         if (document.forms[x].id == netuiName) {
            document.forms[x].method = "POST";
            document.forms[x].action = newAction;
            document.forms[x].submit();
    //-->== Working version ==
    function anchor_submit_form2(netuiName, newAction)
      for (var x=0; x<document.forms.length; x++) {
         if (document.forms[x].id == netuiName) {
            var form = document.forms[x];
            //form.method = "POST";
            form.action = newAction;
            form.submit();
    //-->

    Hi Daniel
    When I use netui:anchor with formSubmit=true I always see form method as
    "Post". Do you see the method to be "get" anytime?
    I have again attached my sample as a .txt file. Please save it and rename to
    .zip.
    Let me know how I should change the sample to see the form method as 'Get'
    More info at
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/taglib/www.bea.com/workshop/netui-tags-html-1.0/anchor.html
    Thanks
    Vimala
    <Daniel Lima> wrote in message news:[email protected]..
    Hi Vimala.
    Sorry, "MY bad". I'll provide a full explanation about what is
    going on. BTW, i couldn't open the attached file (WinZip is complaining
    about bad format file or something like that).
    The original JavaScript source code was changing form.method from
    get to post. For another different reason, when IE submits
    the form using post, all input were sent as null values. When IE
    submits the form using get (this never happen with OLD JavaScript
    source), input values were correctly sent.
    Initially, Mozilla was failing too with OLD JavaScript source code.
    Browser was complaining about "document.forms[x] has no properties" at
    document.forms[x].submit(). I really don't know why. Maybe, at some
    moment, function anchor_submit_form get been defined multiple times, but i
    couldn't reproduce this error again.
    Mozilla now woks with both form methods: get and post (but
    OLD JavaScript source code is always "forcing" post).
    About IE posting form data: I'm "guessing" that the root cause of this odd
    behaviour is a component that we are using to do NTLM HTTP Authentication.
    When we "disable" this component, IE starts to work again !
    To be fair enough, the component not seems to be the real cause, because
    Mozilla works with this component. Maybe, the evil combination is THE
    cause: IE + form post + NTLM Authentication + Component.
    I'm sorry for MY mystake.
    Can anchor_submit_form do not modify form.method ? I'll fix the other part
    of my problem.
    Thanks !

  • How to change page template for a single page?

    I create a new document based on the Pages "Reports > Business Report".
    Now the first page is formatted as a "Cover" page with a larger top margin.
    Via "Format > Advanced > Manage Pages..." I see there are what I assume are the "Page Templates":
    - Cover
    - Table of Contents
    - Chapter Page
    - Text Page
    - Appendix
    My question: How can I change the template for a single page in my document? E.g. I don't want Page #1 to be formatted as "Cover". I'd like it to be a "Text Page".
    Any hints?

    Just delete the Cover section and insert a Text Page.
    Click on:
    +Toolbar > View > Page Thumbnails+
    Click on the Cover thumbnail, it will be outlined in yellow, hit delete.
    It may start off with certain defaults but you do not have to accept them.
    Peter

  • How to change a TEMPLATE to a different one?

    I know I can change templates from the list given... but the question is, How to change the "Welcome" template to the template "About Me" vise versa or any other page available rather than the same one? Thanks!
    www.RoxyTheBulldog.com

    Thanks to everyone who attempted to help... I know there was no easy answer to this.

  • How to change PowerPoint Template across multiple site collections

    I am failry new to SharePoint, and my organization has asked me to research how to change a PowerPoint template that is stored on multiple site collections. There are current PowerPoints based on the template and they wanted to be sure those wouldn't be
    affected, as well. They want a "quick and easy" way to update the template that the divisions in the company use without manually going into each site collection. A co-worker said she hopes to "replace the current...template at the site
    collection and it will modify the available content type when selecting new document."
    Any help on how to handle this would be appreciated.

    This will really depend how the template has been packaged.  If it's a content type, than editing this and making sure that the "update content type" radio is selected will do the trick. Can you ask someone who's made one to show you how they generate
    the template. If it's within the New --> XXX Document, than you're in luck
    If they're just deployed as normal files within a library, you'll have a much harder time.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Changes to Template Won't Update Corresponding HTML Files

    I'm using Dreamweaver CS5 and when I make changes to a template and save, it not longer updates all pages associated with that template. The first time this happened, I deleted the file cache and that took care of the problem. When I tried that again, it didn't work. I also tried deleting the Configuration folder.  I'm really hoping to find a fix for this because I have over 3,000 pages that need to be updated. Please help!
    Here's the message I should be getting:
    "Update Template Files: Update all files based on this template?"
    Here's the message that I am getting:
    "You have changed a template. Do you want to update all documents in your local site that use this template?"

    I am not making changes in the editable region that I expect to be made across the pages - I am making changes to where the editable regions lie within the template. In 99.9% of the cases, the changes were made to the non-editable regions.
    Unfortunately, I don't get to control how many pages are managed under one template. I am managing a departent's worth of pages for a university - this includes templates individual to each department division. Some division's have an outrageous number of pages associated with them - mostly for legal purposes. But none of that matters. What matters is that the pages are not updating as they should be. Do you have anything to add about that?

  • How to change the Destination URI value of a item table at run time

    I'd like to change the Destination URI of item of a table region when a column X of my view is not NULL. Where should I set the new Destination URI value for the item table region for specific row? Is in the RowImpl for the view object or in the Controler of the page?
    I'd really appreciate any suggestion.
    Thanks in advance.

    Hi,
    Thanks for the help, but I still dont know where I should to use setAttributeValue(DESTINATION_ATTR,OADataBoundValueViewObject());
    All examples that I saw till now here, suggestes to change something in the page in Controller but based on something entered in the page. In my case is IN to OUT, I will render some item table with a specific value parameter based what is in the database. Being more specific, I have a html table and one column Col1 has a value and it will have a DESTINATION URL if another column Col2 is Null. I believe I would have to check somewhere if the Col2 is null or not and change the DESTINATION URL property.
    Thanks again..

  • How to change the column name as bold in adf table

    Hi,
    How can I change the column name with bolder style and blue colour in adf Table?
    I changed the color and font weight in af:column properties, but its effecting the data in that column but not with the column Header Text property.(i have given column name in header text).
    can any one have any idea how to do this?
    and I have taken panel tabbed layout and in that i'm displaying this table.
    but this table has scroll beneath of it to show all columns.
    but i want to display all columns (for this, page should have scroll at the bottom side).
    how can I achieve this???

    Hi,
    Add the following CSS Code to the custom skin css file that is to be created as per the suggestions above.
    *af|column::column-header-cell{*
    color:Blue;
    font-weight:bold;
    This would ensure that all the table column headers are blue in color and bolder font style through-out the application.
    By the way, what version of JDeveloper are you using?
    Thanks,
    Navaneeth

  • How to get Index of a single element in a table

    Hi Gurus,
    I need to get the index number of the element in a table even if the row is not selected.
    I've already searched the forum for this but all i'm getting are selected rows in the table.  I need to get the index even if that elemen's row is not selected in the table.
    Please advise.
    Regards,

    Hi,
    Could you please specify what exactly you want to do?
    You said you want to get the index of an element even if the corresponding row is not selected. But there might be more than one element where the correponding rows are not selected. So it would be better if you could be more specific about what you want to achieve.
    Regards,
    Srilatha

  • How do I tell the installer to put my html help files in the helpdir symbolic location?

    I used the File>>Print function to create an HTML help file for my application and specified in the VI Properties for the app to use <helpdir>:\ApplicationHelp.HTML as the Help Path. This should pop up the help file when a user selects "Help for This VI" from my custom menu. It works from my development directory because I installed the help files into the help directory manually, but I can't figure out how the get the installer to put the files in the correct location on the target system.  I tried putting them in [LabVIEW 2010 Help] in the Destination View for the Source Files category, but that didn't work.  Anyone know the right way to do this?

    kgarrett88 wrote:
    Hey MrSmith, 
    In LabVIEW 2010 SP1, if open the Project and right click My Computer, you can add the help file as a source. After you have added this file, you can then create an installer. Under the Destination header, you can add your desired destination path. After you have done that, you can go to the Source Files header and add the help file to that destination you created. 
    Hope this helps. Good luck with your application!
    ~kgarrett
    Thank you for the reply! I had already done the steps you suggested, so let me put up some screen shots that should help you understand my issue better. First, I specified the path to the help information on the Documentation screen of the applications Properties:
    Next I had added all the help files (DetectorFT.html and all the .png files) to the source in a virtual folder I named Resources.
    Next, for the release build I specified the files to be Always Included on the Source Files header.
    Next I created a Resource Directory as a destination for the release build.
    Then I specified the Resource directory as the destination for the files for the Release build.
    After creating the Release build, I created an Installer build and told it on the SOurce Files screen to put the help files into the [LabVIEW 2010 Help] directory.
    I had assumed that putting the files in the [LabVIEW 2010 Help] destination would put them into the correct directory when the installer ran.  When I ran the installer on the target system, the ran the application I tried to select the "Help for This VI" tab on the menu, but it was grayed out indicating it could not find the file in the proper location.  So the question I have is, what IS the proper location for the files to be installed to so the the application will find the Help files when it is looking for them at the <helpdir> Symbolic Path location? Thanks again!
    Jim Smith

  • How to change the background color only for one HTML-Portlet?

    Hi all,
    I have created a HTML-Portlet in my root-page. The root page have a style: Main-Style.
    I want to change the background-color only for this one HTML-Portlet:
    <html>
    <header><title>Test</title></header>
    <body bgcolor="#999999">
    Test
    </body>
    </html>
    But this does not work...
    When I use the CSS, then it will change the background-color for the root-page too.
    Thans
    Leonid Pavlov

    could you try this
    <table bgcolor="#999999">
    <tr>
    <td>
    test
    </td>
    </tr>
    </table>
    I don't think you need <html><header><title>Test</title></header>
    <body></body></html> for your HTML-Portlet.

  • How to change Mail settings to show mails in HTML or text ?

    Hi,
    I am using SL10.8,
    I somehow changed the mail viewing setting in Mail app to display all mails in text, now html mails loks quite ugly, and I couln't find the option to change this.
    please help

    I am using a Mac Mini with OS 10.8.5. I have the same problem with Mail and HTML images — in particular an email in the form of a grid with concert dates and venues, which displays correctly in webmail in my browser, but in Mail appears as a continuous unformatted and unpunctuated text.
    I have just tried your first Terminal command, and this is what appears:
    Michaels-Mac-mini:~ MichaelGraubart$ defaults read com.apple.mail PreferPlainText
    2014-12-15 18:45:33.458 defaults[27374:707]
    The domain/default pair of (/Users/MichaelGraubart/Library/Containers/com.apple.mail/Data/Library/Preferen ces/com.apple.mail, PreferPlainText) does not exist
    Michaels-Mac-mini:~ MichaelGraubart$
    Can you suggest anything else I could try? I should be very grateful.

  • How to change the template of all my title pages

    ok i made a film using cs4
    with 20 seperate title pages all the title
    pages started from the same title template
    what i want to know is :-
    is it possable to change the properties of all the title pages at the same time
    for instance change the font / or font colour of all titles with one or two clicks
    rather than me go through each title page separately
    cheers

    ok
    so are you saying that in the future
    if i was to make all my titles from THE SAME template AND using the "based on current" function
    i would then be able to make adjustments to the first title in the project panel and the adjustments would be reflected on all titles  throughout the timeline

  • How does changing a template or theme on a live website work ..

    well i have a task at hand ... to develope a website that has this feature of changing themes or templates ... can anyone help me with this ....

    Hi Adam,
    No, there is nothing like variables get picked on file save or at intervals. The issue looks odd, but I could not reproduce it. Could it be happening in any specific context? Or does it happen in a blank file with only those 2 lines also?
    Thanks,
    Dipanwita
    Adobe ColdFusion Builder Team

Maybe you are looking for