Set DOCTYPE for a self rendered HTML page using cl_gui_html_viewer

G'Day!
I'm dealing with HTML in ABAP and i' stuck with a nasty little problem. Perhaps somebody know's the answer and can help me out. Thanks in advance. (I'm sorry for my poor english)
My problem is:
I am rendering a html page in abap and display ist using a cl_gui_html_viewer.
Works fine.
But now in need to set the right DOCTYPE for the rendered html page.
If i add the DOCTYPE definition, my html page is not displayed, instead i get a display of the html-code??
To break it down to the root:
How can i add the DOCTYPE definition to a self-rendered html page?
If i add the DOCTYPE definition as first element of my html table, the html code won't be interpreted.
If i do not add the DOCTYPE defintion everything works fine.
I need the DOCTYPE definition so that the browser won't get into quirks mode and interpretes the html tag's right.
What i've done so far:
(Dynpro, container, html_viewer)
Load my JScripts (with load_mime_object)
Load my CSS (with load_mime_object)
Load my HTML:
-- lt_html       TYPE w3htmltab
((--  APPEND  '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">'  TO ct_html.)) this line cause my trouble
-- filled the itab with my html tags <html>....</html> (set right url for Jscript and CSS)
-- Load my html table and get an URL CALL METHOD gr_labform_html->load_data
-- Load the url CALL METHOD gr_labform_html->show_url

I've "solved" my issue with a little workaround.
I created an empty html page with an existing DOCTYPE def and an tag like <!MYDATA!>
After that i filled 'l_merge_table TYPE swww_t_merge_table' with my tag and my html_data.
Loaded the whole thing with CALL METHOD gr_labform_html->load_html_document and now the DOCTYPE is set fully correct!
But i'm still interessted why i can't set the DOCTYPE directly? Anybody knows?
Got the idea from: Re: How can I read color from frond-end PC

Similar Messages

  • Rendered html pages in results file(html) not showing the images of origina

    hi,
    rendered html pages in results file(html) not showing the images of original page
    when i click on rendered html pages of different html section of a results file.
    both master and tested as well.
    thx
    pasumarthi

    By design, the report will not show the images, will not apply imported css or javascript files and will not show framesets. Also, in the case that an image is shown there is no guarantee that that was the image that was seen when recording/playback the script.
    The rendered html pages that are shown in the report only contains the structure of the html page. If an image is shown the image will be a reference to the location of the image and not a saved copy of the image as part of the report. If the website has a simple structure this can give an idea of what was different. If the website relies extensively on images, stylesheets or javascript to present the information then this report feature becomes less useful.
    Few weeks ago I requested a feature request in order to be able to see in the report the page exactly as it was when recording the script and exactly as it was when the script was played back. In the way that the feature request was written it specifies the use of screen captures or saving the page as a pdf file.
    Regards,
    Zuriel

  • I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How to create hyperlink in Html page using Java

    Hello every one
    I want to know that how can I create a hyperlink in Html page using java ?
    Let for example
    I have code like this and i want to give hyperlink to it using java.
    rember that i am creating node using this id="name" which give me multiple value. and i want to assign diff link to each name..?
    <tr>
    <td ><span id="name"></span>
    </tr>

    but i m using this code to create node in html file
    HTMLLIElement li = (HTMLLIElement)appHTML.createElement("LI");
    Text txt = appHTML.createTextNode(name);
    li.appendChild(txt);
    appHTML.getElementById("name").appendChild(li);
    this will display all name value which is coming from database,
    and i want to assign a hyperlink to it,
    I have id with name also so I thought that using id i will
    create javascript like
    function popup(id)
         if(id==1)
              var n1 = window.open("../list/name1.html");
         if(id==2)
              var n1 = window.open("../list/name2.html");
    this way i want to popup particular file if i can pass id value in this function
    so want hyperlink like
    name

  • How to embed jnlp file into html page using object tag

    hi everyone,
    i have written one jnlp file like this.
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- JNLP file for Demo applicaion -->
    <jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
         <information>
              <title>Demo Application</title>
              <vendor> </vendor>
              <description>Sample Demo Application</description>
              <offline-allowed/>
         </information>
         <security/>
         <resources>
              <j2se version="1.3+" />
              <jar href="common.jar" main="true" download="eager" />
              <jar href="classes12.jar" download="eager" />
              <jar href="toplink.jar" download="eager"/>
              <package name="com.applet.*" part="applet" recursive="true"/>
         </resources>
         <applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
    </jnlp>
    i am trying embed that jnlp file using object tag like
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">     
    <PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
    </OBJECT>
    but i am not able to load the applet using Web Start.
    Can anyone please help me. This is very Urgent for me.
    Thanks & Regards,
    Shiva.

    thanks.
    i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
    <PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
         <PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
         <PARAM NAME="NAME" VALUE="grid" >
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME= "cache_option" VALUE ="no">
    </OBJECT>
    now what i need to do is
    i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
    for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
    Webstart always open a new application windows.
    I need to run an Applet embedded within a web page within a browser.
    Is there a way to still use Webstart?

  • Trying to assemble a HTML page using 3 servlets.

    I am trying to assemble a HTML page using 3 servlets.
    1 servlet for generating a standard header for the page, 1 for generating a standard footer for the page and 1 for generating the content for the page.
    I know how to generate a page with only one servlet, but how do you do it with 3 servlets, with each generating part of the page.

    Use the include method of the RequestDispatcher to include the output of the header and footer servlets.

  • To know the Status code of a HTML page using Javascript

    To know the Status code of a HTML page using Javascript

    Hello,
    I am not sure to understand, which status are you talking about? The HTTP Status?
    If your javscript is executed it is more or less sure that the HTTP Status is 200 since the request is back to the browser.
    or are you talking about this is in the context of a XMLHTTPRequest call ?
    Regards
    Tugdual Grall

  • Looking for CRM IC Webclient HTML page

    Hi guys
    I need to change a value which is found on a HTML page.
    The page starts with :
    <html dir="rtl"><head><title>Interaction Center</title>
          <SCRIPT language="JavaScript">
    This html can be obtained if I tight click the page in the browser and look for the
    page source code.
    But I cannot find this page.
    I have searched SE80 under CRM_IC_* modules and found nothing.
    Any hint will be appreciated
    regards
    yuval

    Hi Yuval,
    Instead of looking into the source code of the broweser better you maintain the parameter CRM_ICWC_TEST with value 0x23456789 in your user setting. This will activate your tool tip and then you will see a tooltip appearing in the application when you point your mouse to the title of a view, telling you the BSP application name .
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash.

  • How to set a value to an  existing element in  html page using servlets

    i have created a session in my login page and i know how to retrieve it now the actual problem is i want to set the same value to a textbox in an html page........

    Use JSTL and/or EL.
    Assuming that you mean with "created a session" that you've created a bean and have set it as an attribute of the HttpSession, e.g.httpSession.setAttribute("someBean", someBean);then do for example using the JSTL c:out tag:<p><c:out value="${someBean.someProperty}" /></p>or, if you're using at least Servlet 2.4 API with JSP 2.0 API which allows EL in template text, then do for example:<p>${someBean.someProperty}</p>

  • Toolkit for CreateJS showing blank HTML pages after publish on only some Flash projects?

    When I used Toolkit for CreateJS on Flash CC for the first time on a simple test movie, it worked fine. I've now created a new movie of a scrolling portfolio banner to go on my homepage. After hitting publish, it only shows a blank HTML page, with a white box the size of the stage.
    I even tried it again when removing the buttons and tweens and still no joy. Is there a way I can upload both files to show you and to see if there's a difference in which why the newer one isn't working. Both have more than one layer. The test one moves out of the screen, while the new one fades out. I've even tried putting an alpha effect on the test to see if it doesn't play, but it still works fine.
    Please help.
    Thanks
    Adam

    Do you see any errors listed in the output panel?

  • How to display a HTML page using ABAP program.

    Hi all,
    I know that this is easy and possible too but I haven't worked on this kind yet. I need to display a screen/ABAP program like TCODE PPMDT, where an HTML page is to be displayed and on the click of the HTML links provided, I need to navigate to someother transaction codes.
    Cheers,
    Sam

    Hi,
    See this sample code
    REPORT ZTESTHTML .
    DATA: ok_code LIKE sy-ucomm,
          myurl(132).
    data: custom_container type ref to cl_gui_custom_container,
          myhtml type ref to CL_GUI_HTML_VIEWER,
          repid like sy-repid.
    DATA events TYPE cntl_simple_events.
    DATA wa_events TYPE  cntl_simple_event.
          CLASS lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS NC_Handler
                FOR EVENT NAVIGATE_COMPLETE OF CL_GUI_HTML_VIEWER
                IMPORTING URL.
    ENDCLASS.
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD NC_Handler.
        myurl = URL.
      ENDMETHOD.
    ENDCLASS.
    start-of-selection.
      set screen 100.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      CASE OK_CODE.
        WHEN 'BACK'.
          CALL METHOD myhtml->go_back
               EXCEPTIONS cntl_error = 1.
          if sy-subrc ne 0.
          endif.
        WHEN 'FORW'.
          CALL METHOD myhtml->go_forward
               EXCEPTIONS cntl_error = 1.
          if sy-subrc ne 0.
          endif.
        WHEN 'STOP'.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'REFR'.
          CALL METHOD myhtml->SHOW_URL
               EXPORTING
                  URL = myurl
                  IN_PLACE = 'X'
                  FRAME = ''
               EXCEPTIONS
                  CNTL_ERROR = 1
                  CNHT_ERROR_NOT_ALLOWED = 2
                  CNHT_ERROR_PARAMETER = 3
                  DP_ERROR_GENERAL = 4.
        WHEN 'OTHERS'.
          CALL METHOD CL_GUI_CFW=>DISPATCH.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MENU'.
      if myhtml is initial.
        CREATE OBJECT custom_container
           EXPORTING
              CONTAINER_NAME = 'CONTAINER1'
           EXCEPTIONS
              CNTL_ERROR = 1
              CNTL_SYSTEM_ERROR = 2
              CREATE_ERROR = 3
              LIFETIME_ERROR = 4
              LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        CREATE OBJECT myhtml
           EXPORTING
              PARENT = custom_container
           EXCEPTIONS
              CNTL_ERROR = 1
              CNTL_INSTALL_ERROR = 2
              DP_INSTALL_ERROR = 3
              DP_ERROR = 4.
        wa_events-eventid = CL_GUI_HTML_VIEWER=>M_ID_NAVIGATE_COMPLETE .
        wa_events-appl_event = 'X'.
        APPEND wa_events TO events.
        CALL METHOD myhtml->set_registered_events( events = events ).
        SET HANDLER lcl_event_receiver=>NC_Handler FOR myhtml.
        CALL METHOD cl_gui_cfw=>flush
             EXCEPTIONS cntl_system_error = 1
                        cntl_error        = 2.
      endif.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Svetlin

  • I want to set up firefox with 2 seperate home pages, using google with 2 different email addresses

    I use igoogle, and I have 2 separete email addresses which I use for seperate reasons, as I will be setting up a web page using one of them. As to this I wondered if there was a way to set up having 2 shortcuts or 2 downloads of firefox with each one having a different homepage, but still using igoogle.
    Do I need to download another copy of firefox and while setting it up, set it up with the different email address? Or is there another way of doing this? Or is it something that cannot be done?

    I use igoogle, and I have 2 separete email addresses which I use for seperate reasons, as I will be setting up a web page using one of them. As to this I wondered if there was a way to set up having 2 shortcuts or 2 downloads of firefox with each one having a different homepage, but still using igoogle.
    Do I need to download another copy of firefox and while setting it up, set it up with the different email address? Or is there another way of doing this? Or is it something that cannot be done?

  • HT3771 set up for printing with HP Designjet 500ps (Using Mac os 10.4.11 Printer is set up correctly showing on Mac-Updates installed but still won't print-Printer shows TIME OUT)

    Set up for HP Designjet 500ps using Mac os x 10.4.11 Does any one know where to upload
    Leopard os x 10.5 The printer will not print until I have the updated software. Ebay sell the
    disc on their auction site, but only on disc not a download which is more convenient & faster
    to get in a hurry.The software installed in the mac is working the way it should & showing up
    as it would but it seems as though there is a driver that's needed. The results in any articals
    that I have read suggest you don't need any drivers if you use HP EasyPhotoSoftware installed. 

    Welcome to Apple Support Communities. We're users here, not "Apple Inc."
    You might have better a response to your questions by posting them in the OS X 10.4 Tiger forums: https://discussions.apple.com/community/mac_os/mac_os_x_v10.4_tiger
    or in the PowerMac forums:
    https://discussions.apple.com/community/desktop_computers/power_macof
    This forum is for OS X 10.6 Snow Leopard. Since that version won't run on your PowerMac, you're not likely to get many helpful responses here.
    In any case, I'll try to offer some basic troubleshooting suggestions:
    The PS designation on your printer denotes the PostScript printer language. Is your applications software and current printer driver configured to send PostScript (or HP-GL or HP-PCL or ???)
    Does ANY application print anything (even gibberish) to the printer?
    HP still shows a DesignJet 500 series raster driver for OS X 10.4 Tiger available to download here:
    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/? sp4ts.oid=377952&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Di dx%253D%257CswItem%253Dpl_97046_1%257CswEnvOID%253D2072%257CitemLocale%253D%257C swLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTo k=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
    Does the printer time-out with every program, or just one? Have you tried another cable?
    OS X 10.5 Leopard is no longer sold by Apple. It was never sold as a download, sold only on CD/DVD disc. Discs might still be available for purchase on eBay.
    OS X 10.6 "Snow Leopard" is the oldest version of OS X still sold by Apple, and it too is available ONLY on CD/DVD for $20, but it will not run on your PowerMac, because Snow Leopard requires an Intel processor: os x snow leopard requirements
    HP DesignJet 500 basic printer documentation is available as a pdf document and downloadable file here: http://h20566.www2.hp.com/portal/site/hpsc/public/psi/manualsResults?sp4ts.oid=2 5301&ac.admitted=1391720518005.876444892.199480143
    How is the printer connected to the computer? Are you using a USB interface, a Centronics 'Parallel' interface, or a JetDirect network interface?
    It appears that the network timeout default for the printer was 30 minutes, but it can apparently be set in the range of anything 30-seconds and longer. The manual notes that some software does not send an 'end of job' postscript marker, so that is the reason for the time-out setting.
    http://h20566.www2.hp.com/portal/site/hpsc/template.BINARYPORTLET/public/kb/docD isplay/resource.process/?spf_p.tpst=kbDocDisplay_ws_BI&spf_p.rid_kbDocDisplay=do cDisplayResURL&javax.portlet.begCacheTok=com.vignette.cachetoken&spf_p.rst_kbDoc Display=wsrp-resourceState%3DdocId%253Demr_na-c00749274-1%257CdocLocale%253Den_U S&javax.portlet.endCacheTok=com.vignette.cachetoken

  • Can I make an Imageboard in a HTML page (using JavaScript)?

    Hello all.
    Just like to say that this is my first post on the Adobe forums!
    Anyways, I've started a website project in Dreamweaver CS6 (full version) and will probably be using Photoshop (CS6) for some parts of the site too. It's gonna be pretty basic but I want to make an imageboard (with JavaScript? I'm not sure...) where users who have logged in can post an image on the feed with a comment/caption to go with it.
    How can I do this? Can anyone point me to a good tutorial on how to make this? Do I do it with JavaScript on the HTML page? (P.S. I am mildly experienced with HTML).
    Thanks in advance!

    Unfortunately, there isn't anything in DW that can do this type of thing for you, although if you were to learn php and mySQL you definitely could use DW to create a site with those types of features.
    There's actually quite a bit that goes into that kind of thing, more than just basic code, you need to think about security especially if you plan to allow someone to upload files, potentially infected with viruses, to your server.
    If you're talking about creating a basic forum (being able to start topics, post pics and comments), there are a lot of free and paid solutions available online. Certain hosting companies even give you basic forums you can add to your site by following the instructions on their pages.
    Unless you have a lot of time on your hands to learn all the ins and outs of PHP and the security necessary to keep your site and server safe, I'd suggest going that route.

  • Problem in refreshing html page using LinkToURL API

    Hi all,
    I use LinkToURL in order to open a html page in a new window. My problem is that this html file is changed (the name is the same but the contents is diff) dynamically. I click on the link and the window is open, but later on when the html file is changed and I reopen the window it shows the old html file. Is it possible to refresh this window automatically every time when it is opened? Otherwise the user has to press Refresh button in order to see the new html file.
    10x for your help.
    Svetlomira

    Hi Svetlomira,
    Do you have access to html file? Can you changed it?
    Or you can use following approach: if html is static (not jsp or asp or similar)
    you can append System.currentTimeMillis() to the html file name after '?' sign:
    final String nonCachedURL = "http://www.domain.com/index.html?" + System.currentTimeMillis();
    You can achieve this by using calculated context attribute and bind it with LinkToUrl`s reference proprty.
    Best regards, Maksim Rashchynski.

Maybe you are looking for

  • Really slow copy and paste function

    I'm having alot of trouble with the copy and paste function in Numbers on my Mac.  I work from home and have to copy and paste alot of spreadsheets and numbers but when I copy a large set of numbers from one spreadsheet to another it takes FOREVER to

  • Cyrillic fonts in Muse

    I used WEB fonts in Muse for Russian language and they display correctly in preview. But then I have published site all fonts has stopped support cyrillic. Help me please if it possible )

  • Final Cut title and smart apostrophe

    Having problem in Final Cut Express HD with creating a scrolling title that contains a "smart" apostrophe. When I enter: Governor's Wife*Jane Smith (using a "smart" apostrophe created by hitting shift-option-], it doesn't show up that way here in for

  • MVP List #136 January 31, 2015 – February 6, 2015

    The Verizon Community Forums Most Valuable Posting List is where we recognize the great work that you all, our community, continue to do each week in these forums. Even if you're not listed below, a huge THANK YOU to all of your contributions. If you

  • Is it possible to spin a picture or clip over time in iMovie 11

    Hiya all, I know you can rotate but I would like to spin a pic over time? Is this possible