Passing through XML in HTML forms without it being displayed in Web Browser

Dear all
I have some MapViewer XML stored in a variable, which I wish to pass through a HTML form. However whenever I insert the variable into the form and run the procedure, my web browser starts reading the actual XML and treating it as HTML, since it is only part of a complete XML script. Even if it was a complete XML script, it would still try and display it. Is there away of making sure the value is passed through without being read by the browser?
For example:
PROCEDURE DISPLAY
AS
var_xml VARCHAR2(32767) :='<theme name="theme_county"/>';
htp.print('<INPUT TYPE = "hidden"
                  NAME ="var_xml"
                  VALUE = "' || var_xml || '" />Then causes the output to the browser to become:
htp.print('<INPUT TYPE = "hidden"
                  NAME ="var_xml"
                  VALUE = "<theme name="theme_county"/>" />The browser is of course reading the XML as HTML.
Kind regards
Tim

Dear all
I have now resolved the problem by submitting values which can then be used to recreate the xml in another function, rather than actually submitting the xml itself through the forms. This makes more sense and avoids people having to see any of the xml.
Kind regards
Tim

Similar Messages

  • "This form cannot be opened in a web browser. to open this form use microsoft infopath" while adding a new Approval - Sharepoint 2010 and Publishing Approval workflow.

    I am trying to add a new workflow to a document library with the below mentioned settings and getting error saying "This form cannot be opened in a web browser. to open this form use microsoft infopath" while adding a new Approval - Sharepoint
    2010 and  Publishing Approval workflow" . For your information the I have checked the server default option to open in browser.
    Versioning Settings.
    Error
    This is quiet urgent issue . Any help would be really helpful.. Thanks.. 

    Hi Marlene,
    Thank you very much for your suggestions.
    But I am not creating a custom workflow in designer as Laura has mentioned. I am instead trying to create a new Out of the box Approval Workflow and I get the error mentioned above.
    As it works in other environment, I tried figuring out the possible differences which can lead to this error.
    Today I found one difference which is there are no form Templates within Infopath Configurations in Central Admin. Now I am trying to figure out what makes this form templates to be added to the template gallery.
    Regards,
    Vineeth

  • XML in HTML form parameter

    Hi,
    I would like insert records into database by HTML form, where one parameter (text field) is XML (which will be - after transforming via XSL - compatible with database schema). Is it possible with insert-request? Have you any ideas?
    Thanks in advance,
    Tom

    Hi,
    Could you help me more? I've found only example with parameters as fields. Can I use one parameter (XML) as entire rowset?
    Thanks,
    Tom

  • HTML form in iview not displaying correctly

    Hi
    I have made a KM document iView and in that I have called a HTML page.
    The problem is that the margins in the iView are too much and due to this the content is shrinked in between.
    When I open the page in new window then it is correctly displayed but shrinks in portal content area.
    Kindly suggest how to have the contents displayed in the same way as in the HTML file.
    Regards
    nitin

    Hi 
    Outlook 2007 or newer use Microsoft Word for their HTML engine.
    You can refer this page http://www.campaignmonitor.com/css/ shows
    many things that do not work in different clients.I think Someone needs to re-code
    the HTML form to make it work in the current versions of Outlook. You can try formatting with text and HTML and see the results.
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • How to loop through xml records from file without ROW , /ROW tags?

    I am using dbms_XMLSave.insertXML procedure to insert xml formated record from file. MY xmlformated records does not have open and close ROW tags. I have multiple records in the file.How can I loop through without <ROW>,</ROW> tags?

    I am using dbms_XMLSave.insertXML procedure to insert xml formated record from file. MY xmlformated records does not have open and close ROW tags. I have multiple records in the file.How can I loop through without <ROW>,</ROW> tags?

  • Pass Checkbox Parameters from HTML Form to a stored procedure

    I'm still looking for a solution to my forms problem. FYI, I'm not using Applications Express to build my application--I'm using straight PL/SQL. I need to know how to pass checkbox parameters from my Web form. I'm allowing folks to select one or more checkboxes on a form that will call a delete function to delete the selected records. What I read in Oracle's "Database Application Developer's Guide - Fundamentals" isn't helpful to me. If someone would point me to some examples, maybe I could see what I'm doing wrong. Here's what was written in "Database Application Developer's Guide - Fundamentals":
    All the checkboxes with the same NAME attribute make up a checkbox group. If none of the checkboxes in a group is checked, the stored procedure receives a null value for the corresponding parameter.
    If one checkbox in a group is checked, the stored procedure receives a single VARCHAR2 parameter.
    If more than one checkbox in a group is checked, the stored procedure receives a parameter with the PL/SQL type TABLE OF VARCHAR2. You must declare a type like this, or use a predefined one like OWA_UTIL.IDENT_ARR. To retrieve the values, use a loop:
    CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
    AS
    BEGIN
    FOR i IN 1..checkboxes.count
    LOOP
    htp.print('&lt;p&gt;Checkbox value: ' || checkboxes(i));
    END LOOP;
    END;
    SHOW ERRORS;

    I'm not sure I understand what your issue is.
    If your web form has the following checkboxes defined all with the same name:
    <input type="checkbox" name="attrib" value="1">one</input>
    <input type="checkbox" name="attrib" value="2">two</input>
    <input type="checkbox" name="attrib" value="3">three</input>Then you would create and register a procedure to handle the form submission that has a parameter with the name attrib of type owa_util.ident_arr e.g.:
    create or replace procedure handle_form(attrib owa_util.ident_arr) as
      iter number;
    begin
      for iter in attrib.first .. attrib.last loop
        -- do something with attrib(iter)
      end loop;
    end;
    /Now the one problem with this handler (or any form handler for that matter) is that if the user selects none of the check boxes, or no value for any of the expected parameters, the handler would be called with some parameters missing or with out any parameters passed to it, and the call will error out.
    To get around that you need to provide default values for all the parameters passed to your handler including the ident_arr parameters, however with ident_arr parameters that's difficult to do with standalone procedures. If you place your procedure in a package you can define package level variables of the appropriate types that can be used as default values:
    create or replace package my_web as
      empty_arr owa_util.ident_arr;
      procedure handle_form(attrib owa_util.ident_arr := empty_arr);
    end my_web;
    create or replace package body my_web as
      procedure handle_form(attrib owa_util.ident_arr := empty_arr) as
        iter number;
      begin
        for iter in attrib.first .. attrib.last loop
          -- do something with attrib(iter)
        end loop;
      end;
    end my_web;
    /now when you hit the situation where the user doesn't select any check boxes, the call to handle_form won't err out due to missing parameters, and the empty_arr won't have any elements to iterate over so the loop in the procedure body will be fine and you will be able to retrieve each selected check box value from the attrib array when you iterate over it.

  • How to split a html page without frames and display random questions

    1) In my online examination application i need to display timer at the top of the page. even if the user
    scrolls down the timer should be visible. is there any way to do this without frames.
    2) questions are displayed randomly for each user. iam using rand() function to retrieve the questions from mysql database. now the problem is if the user refresh the page another set of questions are displayed. how to avoid this.
    thanks

    Hi Thanuja,
    Can you try it with the one below..... and checkout whether tht works or not
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
      </head>
    <script language="javascript">
    var i=0
    function showDate()
    i=i+1
    document.getElementById("staticcontent").innerHTML= "<center><b>Time :  " + i +" secs</b></center>"
    setTimeout("showDate()",1000)
    </script>
    <body onload="showDate()"> 
    <div id="staticcontent" style="position:absolute; border:1px solid black; background-color: lightyellow; width: 135px;">
    </div>
    <script type="text/javascript">
    //define universal reference to "staticcontent"
    var crossobj=document.all? document.all.staticcontent : document.getElementById("staticcontent")
    //define reference to the body object in IE
    var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body
    function positionit(){
    //define universal dsoc left point
    var dsocleft=document.all? iebody.scrollLeft : pageXOffset
    //define universal dsoc top point
    var dsoctop=document.all? iebody.scrollTop : pageYOffset
    //if the user is using IE 4+ or Firefox/ NS6+
    if (document.all||document.getElementById){
    crossobj.style.left=parseInt(dsocleft)+5+"px"
    crossobj.style.top=dsoctop+5+"px"
    setInterval("positionit()",100)
    </script>
    <%
    /* JSP LOGIC*/
    %>
    <!-- Customized HTML content -->
    </body>
    </html>REGARDS,
    RaHuL

  • Adobe form data not being retrieved by Web Dynpro application

    Hi,
    I have created an online interactive Adobe form embedded in a Web Dynpro ABAP application.  The Web Dynpro application calls a function module to update data in SAP.  My problem is that the ABAP code that was generated to retrieve the data from the Adobe form and call the function module does not retrieve the data if it has been typed into any of the input fields.  Oddly enough, it does work if the data is entered by using the value helps that have been placed on the form. 
    I would appreciate any suggestions.
    Thanks!
    Russell

    Use messageboxes on various events to find out when your value dissapeears.
    If you´re not sure about the binding, you can always drag/drop from data view tab onto the layout and check the binding which the system generates for you. Just to make sure.
    Regards Otto

  • XML query results in HTML form parameter

    Hi,
    I would like insert records from a query result (raw XML) into HTML form tags, using the XSL stylesheet. Here is the code I am trying to use, but obviously it is not working.
    <INPUT TYPE="hidden" NAME="te_hb_strdEntryId"
    VALUE="<xsl:value-of select="ID"/>">
    Are there any other options to put a result of a query in a hidden tag, using XSL?
    Any help will be appriciated.

    <INPUT TYPE="hidden" NAME="te_hb_strdEntryId"
    VALUE="<xsl:value-of select="ID"/>">
    The correct syntax would be:
    <INPUT TYPE="hidden" NAME="xxx">
    <xsl:attribute name="VALUE">
    <xsl:value-of select="ID"/>
    </xsl:attribute>
    however, there is a shortcut syntax
    when you are using XPath expressions
    in literal attribute values:
    XSLT attribute value templates. They are
    XPath expressions inside curly braces.
    So, you can achieve your desired result
    with the shorter form:
    <INPUT TYPE="hidden" NAME="xxx" VALUE="{ID}">
    as well.

  • Reports 6i -- How to create an HTML form template before form processing

    Hello Oracle Reports Gurus,
    I'm using Oracle Reports 6i and trying to create an HTML form WITHOUT using the Oracle Reports 6i parameter form builder. The goal: to take a web page already in existence containing a form with checkboxes and radio buttons and make it 'transparent' to my users in hooking it to Oracle Reports. So far, I made my HTML page (with form and all) a "header" file for my Oracle report and didn't place anything in the parameter form builder. However, upon doing so, Reports 6i decided to be extra helpful and place form elements into the Parameter form builder.
    So,
    1) Is there a way to take a web page with a form and all and easily "plug it" into Oracle Reports 6i WITHOUT using the Parameter Form builder?
    2) Is there another way to create an HTML form that will allow me to have radio buttons, checkboxes, etc?
    Thanks in advance from this Oracle Reports newbie,
    Lee Lonitz
    Webmaster
    Lockheed Martin IS&S
    [email protected]

    lee,
    i am not exactly sure what you are trying to do. since you state you use HTML, i assume you are running 3-tier with the report server, right ?
    if so, the easiest way to hook your parameter form up to your report is to just pass the URL to the report as the action URL for your form.
    in 9i/10g we provide the Reports Web source, which is based on JSP and allows you to paste HTML into your report to create a highly customized HTML parameter form.
    i am afraid in 6i, we don't provide a way to actually combine your HTML form ito the report. it needs to stay separate, but can link to the report using the way i described above.
    thanks,
    ph.

  • How can I embed an DOCTYPE HTML Form from Adobe Forms central into a responsive html5 page?

    How can I embed an DOCTYPE HTML Form from Adobe Forms central into a responsive html5 page?
    -Luis

    Hi,
    You can embed the form on your website, but you need to make sure that javascript has been enabled in the browser. You need to copy the embed code and add it into your HTML code. If you would like FormsCentral to generate embeded HTML form without using javascript, you may post a feature request and vote it. Hope it helps! Thanks!
    Kind regards,
    Shiyao Bao

  • Creating dynamic html forms

    Hi,
    We have a requirement to create a number of html forms where the fields displayed on the form could change based on the date a user requests the form.
    The technology stack we are using is jsp,struts, adf bc, although we may use jsf , adf bc.
    The only way I can see of doing this(assuming we get the database design correct) is to generate the required xml from the database and then transform this into html on the fly? This would obviosuly not be compatable with the ADF binding feature though.
    Has anyone done this, and/or found a way to make it work using ADF.
    Thanks,
    Richard

    I guess I could also just dynamically build up the from fields directly in the jsp.
    I guess I would just loop throught the meta data on the forms from the database,
    and then just write out the number and type of form elements required.
    This would still not make use of adf binding though.

  • HTML form over Flash bkd in Safari

    Hi, I've got a site which uses an animated Flash background
    element which is overlayed with a div containing an HTML form. It
    works fine in every browser I have, except Safari. In Safari, as
    soon as I click in the form, the entire HTML content of the page
    disappears. The form and links will still function, but are
    invisible.
    Does anyone know about this problem? Is there a workaround,
    or am I doing something wrong?
    The page is
    here.
    Please note that the site is in a pretty early stage of
    development, and not a lot of it works, but at least it
    demonstrates the Safari problem.
    Thanks!
    Michael

    i got someone to check on safari if their browser needed
    updating for the flash plug-in but it didnt, still no luck with
    this... I think I will try a few things and see what happens, any
    other ideas though, I really can't explain why its doing
    this?

  • ESS: Travel Request HTML form - Hide 'Trip Activity'

    Hello All,
    We are implementing ESS travel mgmt. We are on the below version:
    Business package details:
    SAP_ESS 600 SP11
    BP_ERP5ESS 1.0 SP11
    SAPPCUI_GP 600 SP11
    ECC 6.0 SP's (upgraded from 4.7 to ECC 6.0)
    We are using travel request 'HTML' form. In the display form, we want to hide 'Trip Activity'. I searched the customizing option for the same in IMG and didnt find any. I could able to get the FM's 'FITP_WEB_ITINERARY_DISP_HTML' from where the details comes from.
    My question is, to hide 'Trip Activity', do we need to change the function module and remove that particular text? is this the only option.
    Appreciate your help!
    Thanks
    Karthik

    Hi Karthik
    When you say HTML form do you mean Web based form or what ? I mean are you talking of Web Dynpro application or something else?

  • How can I just display the selected value of a listbox in a report without the reverse display and selection buttons?

    I am using a table which contains a text field with a lookup. I want to use the selected value of this field in a form which is acting as a selection form. No editing of the field's value is permitted. How do I just display the value of the field (which
    is considered a listbox on the form) without the reverse display and the up and down selection buttons. 
    I can provide an illustration of the condition I am trying to overcome, but this system doesn't accept it.
    Thank you for any suggestions or clarification you can provide.
    Marj Weir

    Thank you.  I'll try that approach. 
    I found, after much experimentation, on a similar problem involving a multiselect lookup field,  that if I make the field invisible, and add a  textbox that displays the fieldname plus .column(0), it displays all the selected entries. 
    E.g.: staff.Column(0)
    Staff is the field containing the last names of selected staff members. 
    staff.Value only shows the first name in the lookup list whether it is checked or not, so this is useless.
    staff.column(0), however, (inexplicably) shows all the selected names, e.g. Jones, Smith, Wiggins.
    Marj Weir
     

Maybe you are looking for