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 !

Similar Messages

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

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

  • 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

  • How to change the template of a FSG report in General Ledger

    Hi all
    I have created a report in Financial Statement Statement Generator.
    I have created a new RTF template.
    Then created a new template in XML Publisher Administrator responsibility and uploaded the RTF template created previously.
    I am try to attach the new template to the report but when I try to run the XML Publisher Report in the Report Request list of values it is giving me the message:"No entries found for list of values"
    Please suggest any workaround to solve this issue.
    Thank you and best regards

    Hi thanks for your post.
    it solved the first problem, but now the report is finishing with the following error:
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:473)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:188)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1816)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1278)
         at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:807)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    Caused by: java.io.UTFDataFormatException: Invalid UTF8 encoding.
         at oracle.xdo.parser.v2.XMLUTF8Reader.checkUTF8Byte(XMLUTF8Reader.java:160)
         at oracle.xdo.parser.v2.XMLUTF8Reader.readUTF8Char(XMLUTF8Reader.java:187)
         at oracle.xdo.parser.v2.XMLUTF8Reader.fillBuffer(XMLUTF8Reader.java:120)
         at oracle.xdo.parser.v2.XMLByteReader.saveBuffer(XMLByteReader.java:450)
         at oracle.xdo.parser.v2.XMLReader.fillBuffer(XMLReader.java:2229)
         at oracle.xdo.parser.v2.XMLReader.skipWhiteSpace(XMLReader.java:1974)
         at oracle.xdo.parser.v2.NonValidatingParser.parseMisc(NonValidatingParser.java:331)
         at oracle.xdo.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:300)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:280)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
    Do you have any idea about this??
    Thank you and best regards

  • Changing HTML templates for Standard SRM screens!!!!!

    Hello SRM gurus,
    I have to modify the standard SRM PO screen. I have modified the screen and added the requirement tracking number field but on activation it gives me message to adapt the HTML template manually.
    How to change HTML template assigned to the screen? Also what more needs to be done for the field to appear on the SRM portal?
    I am not aware even of the transaction code to be used.
    Your help will highly be appreciated and rewarded.
    Regards,
    Shrikant Gavali.

    Hi,
    You need not chnage the Standard SRM screen nor the HTML template  to add a custom field in the PO sceen.
    Please check these notes:
    672960 - user-defined fields.pdf
    676016 - user-defined fields.pdf
    There is an additional note for req tracking no not available in SC but in your case you want the field in PO so wont be relevant.
    Note 676016 - SRM: Requirement Tracking Number not available
    Also refre this weblog for adding custom fields in the std SRM screens:
    /people/nanda.kondagunta/blog/2006/10/23/how-to-create-custom-fields-in-srm
    The tcode for PO is BBP_POC.If you ever need to  modify the HTML template for this screen/trascn,goto SE80.select Internet service as BBP_POC.There you can see all the HTNL templates and each of which corresponds to some screen in the trascn BBP_POC(PO trascn).
    BR,
    Disha.
    Do reward points for useful answers.

  • Change the template

    Hi all ,
    Can somebod suggest me how to change the template for one screen ,
    I can HTML template from se80 , i am sure which one i need to change here .
    I would like to change the one field description .
    Thanks in advance

    Hi Asha,
    Can you please provide some more details regarding the service, screen and the field which has to be changed??
    Please go through the following thread:
    Change template
    Thanks,
    Pradeep

  • How to change the ejbgen templates in workshop

    I want the EJBHome interfaces generated by ejbgen via workshop to extend a proprietary
    interface as well as the EJBHome interface like so
    public interface MyHome extends EJBLocalHome, implements MyProjectHome
    The ejbgen site says that when using ejbgen directly (not inside workshop) I can
    extract the templates like so..
    c:> ejbgen -extractTemplates c:\my-directory
    then edir them and then change the template dir when calling ejbgen to generate
    the files...
    c:> ejbgen -templatedir c:\my-directory -d gen myclass.java
    I want to know how to work with proprietary templates when working with ejbgen
    and workshop.

    The rate at which ejbgen is upgrade is far often than unpredictable SP
    releases. Is there a way to change the EJBGen that workshop uses?
    "Raj Alagumalai" <[email protected]> wrote in message
    news:3f8d6366$[email protected]..
    Aaron,
    Unfortunately this feature is not supported by the Ejbgen version shipped
    with Workshop GA but will be available in SP2. This can also be verifiedby
    running java weblogic.tools.ejbgen.EJBGen on GA installation.
    The -templateDir option will not be listed. whereas this option is listedin
    the standalone version on EJBGen.
    Regards,
    Raj Alagumalai
    Backline Workshop Support
    "Aaron" <[email protected]> wrote in message
    news:3f82071a$[email protected]..
    I want the EJBHome interfaces generated by ejbgen via workshop to extend
    a
    proprietary
    interface as well as the EJBHome interface like so
    public interface MyHome extends EJBLocalHome, implements MyProjectHome
    The ejbgen site says that when using ejbgen directly (not inside
    workshop)
    I can
    extract the templates like so..
    c:> ejbgen -extractTemplates c:\my-directory
    then edir them and then change the template dir when calling ejbgen togenerate
    the files...
    c:> ejbgen -templatedir c:\my-directory -d gen myclass.java
    I want to know how to work with proprietary templates when working withejbgen
    and workshop.

  • How to change text + links in footer of existing template

    Hello,
    I need to change the text and links on the template footer that goes to all TABs. (Home, Articles, About Bluemont, BCA, Contact Us).The file is named NavigationBlank.dwt."
    This footerwas created to link visitors to our "join or contribute" page on another site. Now I want to stop using that external site and build the capacity to take memberships within the BluemontVA.org site itself. However the template footer can't be changed so easily as text on a page.
    I am webmaster for a local nonprofit (web address =  www.BluemontVA.org), but work on a website I inherited. It is a wonderful design, but I don't fully understand it. I have not worked with templates before.
    I have read O'Reilly on "Adding a basic editable region"  in a template, but need further help.
    A couple questions worry me:
    How much damage may I have done already by trying? For example, I do seem to have removed the old text/links and added a new text message on the NavigationBlank.dwt page -- but these changes do not show up on the other TAB pages.
    Also, when I place the cursor n the design side  it no longer tracks to the corresponding spot on the code view. (the cursor shows up in code view way above where it is supposed to be by the text). This is true for the home page and also for several pages I took a look at.
    Can I follow instructions to change the template from any of the pages on which it appears? Or do I have to be at NavigationBlank.dwt?
    Thanks for any help or advice you can provide.

    I'm confused.
    Working With Dreamweaver Templates (.dwt files).
    PART 1
        1. Create a page with all the sitewide elements (common header, footer, sidebar,  CSS styles, etc..) that you will need for your project.   This requires some careful pre-planning even for small web sites.
       2. Validate your code & test this prototype page in all major browsers. 
       3. When you're completely satisfied with the page layout, SaveAs Template.   DW will save this as a .dwt file in a site folder called Templates.
       4. DW will ask you to add Editable Regions for stuff that will change from page to page.   Do this and SAVE.
       5. Close your Template.dwt file.
    PART 2
       1. File > New Page > from Template.  Select the template you wish to use.  Hit OK.
       2. This is a child page.  An exact duplicate of your Template however you can only edit content within editable regions.  Everything else is locked.
       3. SaveAs index.html (your home page) or some-other-filename.html.
    PART 3
       Repeat PART 2 for each additional site page required.
    PART 4
        1. Open your main TEMPLATE file and add a navigation menu with links to your site pages.  Do not put this into an Editable Region!  If you do it won't show up on child pages.
       2. SAVE.
       3. DW will ask if you want to populate changes to child pages.  Hit yes.
       4. Publish all site pages to your server.
    PART 5
       If you should ever need to edit your TEMPLATE .dwt file, Repeat PART 4.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How to change the box width of a template

    Hi,
    I want to set a Lower margin for the last row in the template of a described width.
    I am trying to change the widh of box in the template. but
    even after saving and activating the form the chages are lost the next time i logged in to the ECC.
    its defaulted to 15 TW.
    Can anybody suggest how to change this widht ?
    Thanks and Regards,
    Amit Bhagwat

    Hi
    Table Painter is used to design layout of Templates & Tables.
    http://help.sap.com/saphelp_nw04/helpdata/en/4b/83fb4edf8f11d3969700a0c930660b/frameset.htm
    You can say its nothing but graphical format of template.
    Template is to display a table whose layout and size (number of lines and columns) is determined before the runtime of the application program. For this reason, a template is also called a static table
    Regards
    Anji

  • I modified the budget categories on the numbers template so now the transaction tab does not communicate with the budget tab. I figured out how to change the drop down options but how do I get it to reflect on my budget sheet? Please help.

    If you are familar with the Numbers Budget Template it has two tabs 'Budget' and 'Transactions'. If you use the template as it is designed when you input expenses on the transaction tab it will automatically add that amount into the selected category on the budget tab. I have madified my budget tab to reflect the caegories that I need, which included adding several to the template. I also added to the table so it reflects my income and expenses so I can track where I am at with a glance. Since I did this, I can't get my transactions tab to communicate with the budget tab. I figured out how to change the options in the drop down box for category but I con't figure out how to get it to reflect onto my budget tab. I'm sure that it is an easy fix, however, I am just not well versed in Numbers. I appreciate your time in helping me with this issue.
    Respectfully,
    Jon

    My guess is that while you added catetories to your Budget Sheet by adding new lines and filling in the category column, you didn't also add the formulas to these new budget lines.
    The proper way to add those lines would have been to select a cell in the line just above where you want to add a line and type Option/Alt-DownArrow. This would have copied the formulas into the new line. Maybe you did this, and maybe not. You didn't give details on how you added the lines.
    Select C2 and D2 and Command-C to copy them to the Clipboard.
    Select all the cells of Columns C and D except for the top and bottom rows and Command-V to Paste.
    If I have properly guessed the problem, you should be in business. This assumes that your Categories are exaclty the same as the entries in your Pop-up menus. Spelling counts, as does case.
    Jerry

  • How do I change the template size in pages on my iPad

    How do I change the template size in pages on my iPad I've looked every where for the answer.
    Please help I'm trying to make a program 

    You can't. Those are functions of the the template.

Maybe you are looking for

  • Why can't I use Creative Cloud on multiple devices?

    I wasn't told there was a limit on the number of devices I could use for Creative Cloud when I bought my subscription, and I need it to work on 7 computers. Is there a way I can expand my subscription?

  • Documents not Visible & Unsatisfactory Chat Support

    I occasionally have problems with seeing my pasted created documents after logging in to my page. During the time that this happens I also can't create/merge any pdf files. I went online to ask for technical support to see if this was an internal pro

  • HT4623 how to get my i phone online

    how to get my iphone 5 online without wifi

  • Yellow security bar in IE

    Has anyone figured out how to deal with the yellow security bar in IE when linking to MS Word files (for example)? We've got a file linked from a page at the end of the project for the user to download. They click the link, the yellow bar pops up, th

  • Is it possible to search for Duplicates in Aperture v3.1

    Hi Guys, I'm hoping you guys can help me, I'm re-scanning my family photo archive at a much higher resolution, and i can't seem to find a way of searching for duplicates of the same image, but at different resolutions. i have achieved this in the pas