Html in a frame

hi,
is it possible to have an application who is showing html-pages in an internalFrame or so ???
Kevin

yes it is. It will not work as a browser (the links and that stuff will not work), but it will show correctly your HTML. At least basic HTML is shown good.
To do that just add to the freme a JLabel and use setText as follows:
myLabel.setText("your html code");
where your html code should begin with <html> and end with </html>
At least that is what i know you can do.
Hope this helps.
Zerjio

Similar Messages

  • Display a document.html in a frame java

    how can I display a .html in a frame java ?
    could it be possible to obtain a object Graphics to put it then in the frame ?

    JEditorPane

  • InfoPath 2013: InfoPath cannot load the view. The view may have been modified to contain unsupported HTML such as frames.

    Hello Folks,
    I'm facing a strange behavior of InfoPath 2013 while using with SharePoint Designer 2013 to customize the forms. Whenever i open any SharePoint form to customize it in InfoPath 2013, it gives me error "InfoPath cannot load the view. The view may have
    been modified to contain unsupported HTML such as frames."
    Just like all other folks, i also assumed that the forms are corrupted and i need to change the extension to *.cab and blah blah blah. But, when i noticed that the error is coming with new list forms, new workflow forms as well then i tried to research on
    the issue. Surprisingly, all forms are opening on my colleague's PC but not from my PC. We're using the same server, same SharePoint Production, same SharePoint Development and similar InfoPath. Infact, our system team has prepared both of us in a similar
    way. The only difference is OS, where he is using Win 8 and mine is Win 7 Pro.
    Therefore, from last 1 week, i've to swap my PC with my colleague if i've to customize or update any form in InfoPath 2013. This is quite bizarre. Can someone let me know what's wrong with this issue?
    Regards,
    Sohaib
    Sohaib Khan

    Hi Sohaib,
    I'd like to double confirm with you that the issue only occurs to your client machine. Please log on to another machine and see if the issue is related to your account.
    If the issue is only related to your machine, I'd recommend you clear InfoPath cache and repair Office program.
    Then go to InfoPath > Options > More Options > General > Internet Options > Add SharePoint sites to your trusted sites and disbale protected mode.
    http://blogs.msdn.com/b/michael_yeager/archive/2008/07/09/infopath-cache.aspx
    http://office.microsoft.com/en-in/infopath-help/repair-office-programs-HA010357402.aspx
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • InfoPath cannot load the view. The view may have been modifed to contain unsupported HTML such as frames.

    Hi,
    I'm running InfoPath 2013 Designer and I'm experiencing a very annoying bug. Whenever I try to open a Infopath file I get the error, "InfoPath cannot load the view. The view may have been modifed to contain unsupported HTML such as frames."
    Sometimes it opens without a problem but most the time I get this error message. The strange thing is that I can create a new form without any frames, save it and then when I go to open it have the same problem. I've tried reinstalling InfoPath but it didn't
    help.
    Please help!!!
    Thanks in Advance,
    Mark Elliott
    Windows 7 Home Premium 64 bit; Internet Explorer 11; Office 2013 Pro

    Has anybody figured this out? I have the same problem.  InfoPath 2013 will not open any files from one computer which all work from another computer with the same version of InfoPath so this basically rules out file corruption. (The files are in
    a network share).  Both computer have InfoPath 2013. If I reboot the computer in question it will sometimes work then goes back to the error. 
    The only difference between this computer an all the others is that this one has a bunch of Office 2010 updates since it has SharePoint 2010 designer installed, (not office).  I did try to uninstall the updates but the problem has not been resolved. 
    This is the second time this happens.  Last time I had to completely remove Office 2013 & SharePoint designer then used the Windows rollback feature and finally reinstall office 2013.  Everything worked great until I installed SharePoint 2010
    designer then after a few updates the problem resurfaced.
    This is really annoying, I cant believe its not happening to more people.
    Ben
    ** Update **
    The problem went away although I am not 100% sure why. I decided to provide additional information in case someone has the same issue.  I deleted the Digital Certificate that I had previously requested from our domain server. Now suddenly everything
    is working. Like I said before, I'm not sure if this was the cause/fix but if you are having the same problem perhaps you can try the same thing and provide some feedback to possibly help others.
    I would like to thanks anyone who spent time on this.
    **Update**
    The problem came back. At this point I suspect either an update or something with Visual Studios 2012. My forms are heavy on custom code so I must be doing something wrong. I doubt it was an update since it would be happening to more people
     Again, I am able to open the same file from another computer with the only difference being that the other PC does not have Visual Studio 2012

  • How to send HTML to a frame

    I want to know how to send and HTML page generated by a servlet into a specific frame of the client browser.

    If you are sending the data to the servlet using a form tag, just specify the target inside the form tag and your servlet will display the output in that frame.

  • 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

  • RoboHelp 9 html, Images with frames are underlined

    Hello all,
    When I generate an RH html project for an FrameMaker document, all images that had an arrow or circle "added" to them in FM, are followed by a line in RoboHelp. See the screenshot below for illustration. When I remove the frames, no line is shown in RH. I guess there must be a setting that reacts to frames in that specific way - does anyone know where exactly this can be fixed?
    Thank you.

    Here's what I have in the source Frame document (FM10):
    And that's what I get when the RH project is generated (not just with one image but throughout the book):
    Thanks!

  • Having trouble showing an Iview in a HTML page with frames format

    Hi, I have a public webpage with 3 frames (top, navigation and content)
    In the content part has to be showed a portal anonymous page.
    I created the anonymous portal page that shows me a Webdynpro that I created, works fine. But when I put the link in the frame of the public webpage, is like the page entered in a loop and nothings is showed.
    But if in the frame I put the direct Webdynpro link works fine but the Custom colors that I set in portal doesnt works (and this is important).
    Any1 know how can I do to put an anonymous portal page inside a frame html without lossing the colors that I replace in the theme editor.

    sun1977 wrote:
    Hi,
    I have the Home page which has the usual static text. I was looking for the option of showing some data on that page like
    1. last data load date which will have to be selected from the database. Do we just create a dynamic action on the HTML page? Going to try this now. But just wondering if there is a proper way to do this?
    Just to be a little more specific. I have static text in <Table> tags in a plain HTML page. So within the <TABLE> tags which is in the text source, Can I call bind values or PL/SQL procedures?. Was looking for some ideas on this.There are several options. One is to create hidden page or application items set using queries in item source, computations or processes. These can be referenced in HTML region source (and other places) using the static text exact substitution notation:
    &P1_ITEM.Another is to replace the HTML region with a report region using a custom report template. If there are a number of related values to display this is likely to perform better as only one query is involved.
    Unless these values respond dynamically to changes on the page there is no call to use Dynamic Actions.
    2. Insert the audit field with the SSO username. Any idea which variable stores the username which maybe can be passed to the trigger to update before an insert/update.Use the built-in <tt>APP_USER</tt> substitution string. For this purpose normally in a database trigger including a fall-back value to cope if the table is modified outside of your APEX app:
    :new.modified_by := nvl(v('app_user'), user);

  • HTML link to frame

    I want to link from an HTML page directly to a certain frame
    in my flash movie. is this doable? thimking php could do it but not
    sure. any ideas?
    -marc

    Sure, you can pass a variable into Flash from your PHP/HTML.
    You can either attach it as a URL variable to your SWF URL or you
    can use a Flashvars param in the object/embed tags. See LiveDocs
    for more on that:
    http://livedocs.macromedia.com/flash/8/main/00001206.html
    Once you've passes the variable through the HTML, its
    immediately available in the SWF so you can send the timline
    wherever you like.
    Good luck!

  • Displaying Styled HTML in a frame

    Hi. I'm not sure if this is the right forum to go to, but anyway.
    I have a styled html page. And with styled, I mean I'm using a css stylesheet on it. I want to display this page inside a JFrame. This is supposedlly easy and uncomplicated according to suns javadoc. I can choose to use either a JEditorPane or a JTextPane. Set the content type and use the .setPage method to load the url of the page to be displayed. The page is displayed, but without any styling.
    I've tried to have the stylesheet inside the html document, and as a linked reference. But the same result is displayed. Everything within the <STYLE> tags are displayed as standard text (not very attractive).
    Is there something I'm missing? Do I have to make my own HTML parser to do this job? The HTML viewer in JDeveloper shows my page nicelly. What can be done?
    Please reply to: mailto:[email protected]
    Thanx

    Is there something I'm missing? Do I have to make my own HTML parser to do this job? The HTML viewer in JDeveloper shows my page nicelly. What can be done?We don't use the JEditorPane for displaying HTML, we licensed one for use inside of JDeveloper. Search on JARS.com, there's several out there, the JEditorPane implementation is ok for the basics, but can't handle the more advanced HTML (i.e. CSS, etc.)
    Rob

  • Parsing the FRAME tag from HTML pages

    Hello to everybody,
    I am trying to parse the A tags & the Frame tags from HTML pages. I have developed the code below, which works for the A tags but it does not work for the Frame tags. Is there any idea about this?
    private void getLinks() throws Exception {
         System.out.println(diskName);
    links=new ArrayList();
    frames=new ArrayList();
    BufferedReader rd = new BufferedReader(new FileReader(diskName));
    // Parse the HTML
    EditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
    doc.putProperty("IgnoreCharsetDirective", new Boolean(true));
    try {
         kit.read(rd, doc, 0);
    catch (RuntimeException e) {return;}
    // Find all the FRAME elements in the HTML document, It finds nothing
         HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.FRAME);
    while(it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String frameSrc = (String)s.getAttribute(HTML.Attribute.SRC);
         frames.add(frameSrc);
    // Find all the A elements in the HTML document, it works ok
    it = doc.getIterator(HTML.Tag.A);
    while (it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String link = (String)s.getAttribute(HTML.Attribute.HREF);
    int endOfSet=it.getEndOffset(),
    startOfSet=it.getStartOffset();
    String text=doc.getText(startOfSet,endOfSet-startOfSet);
    if (link != null)
         links.add(new Link(link,text));
    it.next();
    }

    Hello to everybody,
    I am trying to parse the A tags & the Frame tags from HTML pages. I have developed the code below, which works for the A tags but it does not work for the Frame tags. Is there any idea about this?
    private void getLinks() throws Exception {
         System.out.println(diskName);
    links=new ArrayList();
    frames=new ArrayList();
    BufferedReader rd = new BufferedReader(new FileReader(diskName));
    // Parse the HTML
    EditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
    doc.putProperty("IgnoreCharsetDirective", new Boolean(true));
    try {
         kit.read(rd, doc, 0);
    catch (RuntimeException e) {return;}
    // Find all the FRAME elements in the HTML document, It finds nothing
         HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.FRAME);
    while(it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String frameSrc = (String)s.getAttribute(HTML.Attribute.SRC);
         frames.add(frameSrc);
    // Find all the A elements in the HTML document, it works ok
    it = doc.getIterator(HTML.Tag.A);
    while (it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String link = (String)s.getAttribute(HTML.Attribute.HREF);
    int endOfSet=it.getEndOffset(),
    startOfSet=it.getStartOffset();
    String text=doc.getText(startOfSet,endOfSet-startOfSet);
    if (link != null)
         links.add(new Link(link,text));
    it.next();
    }

  • HTML-FRAMES with jsp as sorce

    Hi,
    I use a HTML with 5 FRAMES, 2 of them with jsp-files as src.
    How can I pass data to these jsp-files before the servlet calls the HTML?
    Is this possible at all?
    Thanks a lot

    you can reference and set hidden input values inside another frame by referencing them in javascript function. afterwards, submit the form ...
    function submitInfo() {
    top.frames["frameName"].document ... // branch for NS and IE
    document.forms["currentForm"].submit();
    }

  • Powershell IE get html in frame

    Hello.
    Show HTML-code in IE (right button click)
    <html>
    <head>
    </head>
    <frameset id='frameset_main' rows="0px,81px,*,0px">
      <frame name="audio" src="copyright.html" scrolling="no" frameborder="no" noresize="noresize">
      <frame name="main_menu" src="menu_reccall.jsp" scrolling="no" noresize="noresize" frameborder="no">
      <frameset id='frameset_middle_row' cols="*,0px">
        <frame name="main" src="filteroperation?view_type=couple" frameborder="no" scrolling="yes" noresize="noresize">
                    #document
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
                    <html>
                                   <div id="hovory"> ... </div>     
                    <html>
        <frame name="search" src="filters.jsp" frameborder="no" scrolling="yes" noresize="noresize">
      </frameset>
      <frame name="copyright" src="copyright.html" scrolling="no" noresize="noresize" frameborder="no">
    </frameset>
    </html>
    I want get html-code in frame name="main" by powershell:
    $link = "http://localhost"
    $ie = New-Object -com InternetExplorer.Application
    $ie.visible = $true
    $ie.navigate($link)
    while ($ie.Busy -eq $true)
    { Start-Sleep -Milliseconds 2000; }
    $html = $ie.Document.getElementByID("frameset_middle_row").document.body.innerHTML
    But this code doesn't return right HTML:
    Powershell:
    <FRAME noResize src="copyright.html" frameBorder=no name=audio scrolling=no><FRAME noResize src="menu_reccall.jsp" frameBorder=no name=main_menu scrolling=no><FRAMESET id=frameset_middle_row cols=*,0px><FRAME
    noResize src="filteroperation?view_type=couple" fr
    ameBorder=no name=main scrolling=yes><FRAME noResize src="filters.jsp" frameBorder=no name=search scrolling=yes></FRAMESET><FRAME noResize src="copyright.html" frameBorder=no name=copyright scrolling=no>
    Thank you.

    I'll take a mistake.
    correct: $html = $ie.Document.getElementByID("frameset_middle_row").document.body.innerHTML
    If I use 
    $html = $ie.Document.getElementByName("main").document.body.innerHTML 
    I get: InvalidOperation: getElementByName:String
    If I use
    $html = $ie.Document.getElementsByName("main").document.body.innerHTML 
    I
    get $html=nothing

  • Problem in submiting form data in multipal frames

    Hello,
    I have a html with two frames. I have a situation in
    with I want to submit data from frame2 on some action
    in frame1. Problem is I am trying to submit data of
    frame2 with out selecting any button of href in that
    jsp so how can I handle the submit request in
    ViewBean?
    Thanks
    -Mayur

    First check what sort of button you are using. It should be of "submit" type.
    Check the URL to witch URL it is submitting i.e. Action property in <FORM> tag.
    Make sure for the URLs in the client i.e HTML ex: href, action, and so on use the thumb rule of prefixing "<%=request.getContextPath()%>/" in your JSP or in servlet add it in the java code.
    This should solve the relative URL reference problem.
    Hope this helps.
    Cheers.

  • How to close all frames in a page?

    friends..
    im having a html page(test.html) which has 3 frames.
    in one frame im having BACK button which takes me to the
    default page.
    But the problem is, when i click BACK button it loads the default.html in same frame itself...i want to open default.html as complete page..
    help out me...

    Have not tested this ..but I would suggest you to try something close to this ...
    <input type="button" name ="xyz" value="BacK"
    onClick="javascript: parent.framename.window.href='/default.html'">Change the 'framename' to the one you have assigned.
    Hope it works ..else research on the above lines only
    -Rohit

Maybe you are looking for