Text "centered" in the HTML view

I'm a new to JavaHelp. Experimenting with RoboHelp. I find th whole thing interesting. But when using "hsviewer", all the text apears centered when the HTML files are nicely left-aligned. When generating e.g WinHelp from the same project, they appear correctly. Please Help.
-karl roth

Hi Karl,
I replied via e-mail as well: The difference is because of the SPAN tags in the HTML file(s) and the text-align:justify; in the CSS file.
Java handles HTML 3.2 with some additions up to now. See http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/text/html/CSS.html and http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/text/html/HTMLEditorKit.html
for some additional explanation
Ulrich

Similar Messages

  • How to add a text box in the layout (View)

    How to add a text box in the layout (View)

    Hi.
    Right Click in the RootUIElement container.
    Click Insert Element.
    Give Name: Input
    Type : Input Field.
    Press Enter.
    Regards
    Bala.

  • My web page centers in the design view, but not when viewed on line.

    I am new to web design and of course, to this forum.  I had some background in VBA and Fortran, so when the original designer left, I was the only one in the organization willing to tackle the website and try to teach myself how to make it work and keep it current.  We were financially in the red at the time, so hiring outside help would have been almost impossible.  We are finally breaking even now, which was our goal as a non-profit.
    So I inherited the computer and the responsibility for maintaining the website at a non-profit organization for kids in Florida a couple of years ago, and I am doing pretty well with it so far, even though my depth of knowledge is very shallow.  AsI said before, I am entirely self taught, mostly by the trial and error method, so please excuse what is probably a very basic question. 
    My website is FloridaBandTournament.com.
    The site is working pretty well for my users, but from an appearance standpoint, the pages always are on the left side of the screen.  I would like to center the page(s) in the screen so that it looks a little better.  They are on a black background - not sure how the background got there, but it is working fine for me.  When I tried to center the pages, I googled my way to the statement text-align: center, and after placing it a couple of different places in the code, it suddenly seemed to work, at least in the in Dreamweaver 8 (I also inherited the software, which is I know is old, but so am I - will be 70 soon, and do my work for free for the organization).  But when I went to a couple of different browsers, it still displayed the website on the left.  I tried Firefox and IE.  I am at a loss as to what to do.
    When I found this forum, I thought maybe somebody could help me know what to do to make this centering of the page happen in a simple way for this old geezer.  I would sure appreciate it.
    I do not know what I should be communicating to you, but I thought if I sent the code in the body, it might help.
    The body code is as follows;
    body  [
        background-image: url(file:///C|/Documents and Settings/user/Application Data/Macromedia/Dreamweaver 8/configuration/ServerConnections/www/images/background.gif):
       background-color:  #000000;
       margin-top:  0px;
       margin-left: 0px
       margin-bottom: 0px
       margin-right: 0px
      text-align:center
    None of the pages in the active website have this code yet - I have a trial page that I am testing.  The trial page can be accessed from the link at the bottom of the 'links' page for 'Show Host Infoormation' (the mis-spelling is temporary and intentianal so I can find the darn test link myself when I want to).
    I would be glad to provide any information that might help someone understand what I have and what I am trying to do, but again, I am self-taught so I have little understanding of the technical terms.  I would sure appreciate any help.  Thanks in advance.
    Bob

    First obviously make a back-up of the pages/s.
    Go into code view in Dreamweaver and find the below html. Its near the top of the page after the css. You don't need to first table <table> </table> so you can delete that. It's the second table that we are interest in. See below I have added id="pageWrapper" to the opening <table tag.
    <table width="795" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="795" height="19" valign="top" bgcolor="#000000"><!--DWLayoutEmptyCell--> </td>
      </tr>
    </table>
    <table id="pageWrapper" width="795" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
    Then add this to your css styles in the head setcion of the page.
    #pageWrapper {
        margin: 0 auto;
    You'll have to do this for each page of the site you want centered, which could be a pain if you have many pages.
    Also your background image is linked to your local computer thats why you are not seeing it but have a black background instead:
    body {
        background-image: url(file:///C|/Documents and Settings/user/Application Data/Macromedia/Dreamweaver 8/Configuration/ServerConnections/www/images/background.gif);
        background-color: #000000;
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    If you want the image to appear amend the link to as below:
    body {
        background-image: url(images/background.gif);
        background-color: #000000;
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;

  • I cannot see any of my text boxes in the vertical view.

    I just checked the first chapter of my iBook in the vertical display. I cannot see any of my text after the section introduction page. All of it is written in text boxes that I created. I can see all of my widgets and text in the standard horizontal view but when I switch to vertical all I can see is the section introductions and the widgets off to the left hand side. This is a guide to surface palpation. Each page is its own set of instructions instead of being one long piece of continous writing. Is there a way to reformat my text boxes so that they are visible in the vertical view without starting over?

    The portrait mode only supports the flow of text (and pictures pasted into the text), and widgets (they will all be positioned on the left).
    You need to design in landscape mode knowing how the portrait mode works. Text boxes won't show up in portrait mode.

  • Column text cuts in the printable view

    I have a af:table inside a af:panelCollection. Some columns in the table contains clickable links. Since it should also support printable behavior I have defined table like this.
    <af:table value="#{someBean.data}"
    var="row" rowBandingInterval="0" id="t1"
    summary="Table"
    columnStretching="column:c1"
    styleClass="AFStretchWidth"
    rowSelection="multiple"
    binding="#{someBean.tablel}"
    selectionListener="#{someBean.onSelectionChange}"
    contentDelivery="lazy"
    inlineStyle="#{adfFacesContext.outputMode eq 'printable' ? 'width:auto;height:auto;' : ''}">
    <af:column headerText="Name"
    id="c1"
    rowHeader="#{adfFacesContext.outputMode eq 'printable' ? '' : 'unstyled'}">
    <af:commandLink text="#{row.someName}"
    shortDesc="#{row.someName}"
    partialSubmit="true" id="ot4"
    rendered="#{adfFacesContext.outputMode ne 'printable'}"/>
    <af:outputText value="#{row.someName}"
    shortDesc="#{row.someName}" id="ot1"
    rendered="#{adfFacesContext.outputMode eq 'printable'}" noWrap="false"/>
    </af:column>
    </af:table>
    1) I see the column ("Name") being truncated in the printable mode. I have set the noWrap= false. But that doesnt seem to work.
    2) How can I set the width and height in printable mode so that table takes the entire browser window to stretch.
    Edited by: user10136456 on Feb 8, 2012 1:20 AM

    Hi,
    try something similar to
    #{adfFacesContext.outputMode == 'printable'? 'width:200px' : ''}
    to set the inline style property or width of the column
    Frank

  • Client Side Signature of PDF in HTML Viewer returning the chnaged/signed PDF.

    Hi,
    I am generating a SFP PDF form which I then immediately save to a SAP PSRM Case.  I generate the PDF form 'fillable' and I have inserted a Signature Field in the form layout.
    I have a requirement to save the signed form to the case once it has been signed.  This process should exclude saving the form to any application or presentation directories.
    During the PSRM Case processing I can:
    Successfully save the un-signed PDF to the Case
    Successfully open the PDF via an HTML viewer
    Successfully sign the PDF in the HTML viewer
    The problem is when I return to the Case after the PDF has been signed I cannot save the signed PDF to the PSRM Case(SAP).
    I am using the code below to display the un-signed PDF in the HTML Viewer
    * Convert xstring to binary table to pass to the LOAD_DATA method
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer     = g_pdf_content_in
         TABLES
           binary_tab = gt_data.
    * Load the HTML
       CALL METHOD g_html_control->load_data(
         EXPORTING
           type                 = 'application'
           subtype              = 'pdf'
         IMPORTING
           assigned_url         = lv_url
         CHANGING
           data_table           = gt_data
         EXCEPTIONS
           dp_invalid_parameter = 1
           dp_error_general     = 2
           cntl_error           = 3
           OTHERS               = 4 ).
    * Show it
       CALL METHOD g_html_control->show_url( url = lv_url
         in_place = 'X' ).
    I assume that 'gt_data' would now represent the signed PDF? How do I convert 'gt_data' back to a PDF xstring? I have tried:
      FM 'SCMS_BINARY_TO_XSTRING'
    Various Methods in Class 'CL_BCS_CONVERT'
    All with no success.  Either it saves the un-signed PDF to the PSRM Case or the PDF cannot be viewed as it is corrupt.
    Please help.
    Warm Regards
    Waheeb

    File is serializable but it is just a filename. When you pass or return it over RMI or Serialization, all you get is the filename. It doesn't take the file contents with it, or the ability to open it, unless it happens to also be the name of an existing file on the receiving system.

  • RH8 - HTML Design view is not displaying what the HTML specifies.

    I recently edited a template (Master page) that includes tables. Now the design view of the master page does not correctly display the HTML for that page
    and the design view of each page that uses that Master Page displays blank tables. The HTML view includes the content, but the design view does not.

    I understand the use of Master Pages. The topics were already associated with the Master page that included tables and the
    Design view displayed the content perfectly. It wasn't until I edited the color of the cell borders in the Master page that everything went haywire.
    As it is now, the design view is completely unusable for me. This adds a layer of inconvenience that is time consuming. I'm just trying to get the design view back to what it was earlier today.

  • Capturing the changed data in the interactive forms through HTML Viewer

    Dear all,
    I'm showing the Interactive Adobe form in the HTML Viewer and I want to capture it back after the user enters data in the form and save it to application server.
    Can I get some help on this. Please attach supporting documents if any.
    Regards
    Aravind

    sorry i've got no document describing this. under service.sap.com/adobe you'll find a lot of Adobe content.
    But basically use the Adobe Designer from program files\adobe\design 7.0\formdesigner.exe
    create new form based on the CAF tutorials in the Interactive Forms section, add a new data connection to a wsdl, bind input/output parameters to form fields and get a button executing the wsdl operation.
    create your interactive form callable object based on that template, configure the form to start process and as impersonalized form. create the form from the GP administration screen, download it and test it.
    ...And Good Luck!!!

  • PCUI - open New Window via Button (to call custom URL / HTML viewer)

    Hello group,
    I have followed the "Use CRM PCUI HTML viewer to call a custom URL" in order to create a custom URL to BW web template.
    However, instead of displaying the URL in a tab (this works fine), I want a Button in the Accounts view to open up a New Window displaying the URL there.
    Here is what I have done:
    Create Field Group & Structure
    Create Event
    - Usage: Layout-Relevant
    - Text: Web template call
    Added Event to Toolbar Group ACC_OIC
    Define Application Layout (CRMM_ACCOUNT) for Event
    - Position: New Window
    - Screen Element Type: HTML
    - my field group
    - my structure
    Define Application Set (COMM_BUPA)
    - my structure
    - my access class
    The button is there, when clicked the read-method of my access class is executed, but no New Window is opened with the URL displayed.
    Is there something I am missing? Can the HTML viewer not called in a new window?!
    I appreciate any input you can provide me.
    Thanks and regards,
    Erik

    I have the same problem. PCUI toolbar button open url http://www.google.com in new window   .
    It sames so easy open a link on web page.
    why so hard in PCUI !
    My god , who design the PCUI.
    anyone solve this problem , let me know please. Thanks!
    [email protected]

  • RH8--Changes made to HTML not persistent in HTML viewer

    During our pre-release QA, we discovered that many of our topics had lost the line of code that called the ehlpdhtm.js file:
    <?rh-script_start ?><script src="../ehlpdhtm.js" type="text/javascript"
            language="JavaScript1.2"></script><?rh-script_end ?>
    I'd run into this problem before and knew the fix was to add this string in just below the <body> tag. The good news is the fix works.
    The wierd news is, the changes disappears from HTML view when you save &check the topic back in to RSC. Opening the topic in an external editor proves the topic  was modified, and the next build propagates the change as desired, but even clearing the project files an reloading from source control doesn't display the change in the HTML viewer.
    Does RH store that view somewhere? We have the option checked to rebuild the .cpd file every time we get the file out of Source Control. I've also filed this as a bug with Adobe.
    .MW

    You cannot edit messages in place. You need to copy them and send them to the same or another queue.
    JMS != JDBC...
    Regards,
    Colin.
    http://hermesjms.com

  • Inserting DIVs in HTML view screws Design view but preview is fine

    RH8 HTML
    Hi all,
    Ive been working on a fix for a client, forcing a footer banner to the bottom of the screen, regardless of content in the page. Its nearly working fine, just a bit more tweaking, but one problem I am having.
    I am editing and adding <div> in HTML view, so that the positioning works.
    However, when I view the page in Design view, its all messed up, the content is really narrow and stretches down the page for a long time. However, when I preview, and generate the page it looks fine.
    Its an issue, because the client will be given the RH source files at the end of the project, and with the front end editor looking like this its not going to be weasy for the to edit it, let alone me finish with all the content.
    Has anyone come across this before? Is the Design viewer not the best at displaying div content ?
    The HTML where the <div> is set off before content is entered:
    <body>
    <div id="wrap">
        <div id="main">
            <div id="spacing">
    ***********all content in here************
              </div>
        </div>
    </div>
    </body>
    The CSS that the <div> is calling
    #wrap {
        min-height: 100%;
        border-left: 1px solid #9ea6ad;
    #main {
        overflow: auto;
        padding-bottom: 54px;
    /* must be same height as the footer */
    #spacing {
        padding: 10px;
    #footer {
        position: relative;
        margin-top: -54px;
        height: 54px;
        background: url(footer.gif) repeat-X;
        clear: both;
        border-left: 1px solid #9ea6ad;
    /* negative value of footer height */
    #footer p {
        padding-top: 15px;
        padding-right: 10px;
        color: #ffffff;
        font-family: Arial, sans-serif;
        font-size: 10pt;
        text-align: right;
    /*Opera Fix*/body:before {
        content: ;
        height: 100%;
        float: left;
        width: 0;
        margin-top: -32767px;

    Hi Nick
    What you are doing is working outside the boundaries of what RoboHelp natively does. If working with DIVs was part of that you wouldn't be forced to create them in the HTML view. As a result, I'm not surprised that the Design view isn't totally understanding how to deal with it.
    No workaround I can think of here. Sorry about that. Maybe someone else has something to offer. What I'm posting to ask is that you please report this to Adobe as a bug. Who knows, maybe they have some magickal scripting or something they can do to accommodate it. At minimum, they need to be aware of the issue so they can factor it into a future release. Use the Feature Request link in my sig.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • "HTML Viewer" feature (PCUI) in CRM 2007

    Hello,
    does anybody know if there is also a similar approach like the "HTML Viewer" in PC-UI for displaying "external" HTML content in CRM 2007? Where can I find some information about this?
    Best regards
    Robert

    Hi,
       You can always use the "Transaction Launcher" customizing to add a link to the Navigation bar to any external web page.
    Alternatively, you can always change the property of a text field in a web UI view to a hyperlink to invoke your external web page. Only note if you would want to launch it in the same CRM 2007 UI frame or in a seperate window in this case.
    I do not know if the CRM 2007 cookbook is available, but you can always check in the service market place for the guides.
    Hope this is useful!
    Thanks,
    Sudipta.

  • Html view on working sheet

    Hello.
    I have a problem with my iweb.
    When I open the program, the working sheet(canvas) has the html view in between all of the features.
    I cant work on photos in more details(ones I click twice on a photo it opens html text) , cant see the slide show, and I guess there are more things Im not able to view or edit.
    What to do?
    ( I have that last version installed)

    dorit:
    Try the following:
    1 - drag the iWeb icon from the dock.
    2 - go to the Applications folder and drag iWeb back into the dock.
    3 - go to your User/Library/Application Support/iWeb folder.
    4 - select the domain.sites2 file and type Command+i to bring up the Get Info window.
    5 - in the Open with section make sure iWeb is the application that is showing as shown here:
    6 - if iWeb is not the application showing use the drop down menu to find and select iWeb.
    7 - click on the Change All button.
    OT

  • Open New Instance of HTML Viewer Window

    I've read several past posts about this subject, but I'm not
    clear how to accomplish my goal. Here's what I want to do:
    Click a text link and open a topic in a new instance of the
    HTML Viewer. This new topic is not in an external .chm file. I do
    want to be able to have this feature work on the network, as well.
    I think this question is loaded based on past posts. I'm a
    novice when it comes to coding directly, so baby steps would be
    good for me.
    Thank you!
    Jane

    As you can see, there was much trial and error. Here's the
    final process that will work for RoboHelp HTML X3. Thanks to Rick
    for the original explanation and to John McCallum for helping me
    through this process.
    Creating a Secondary Window in RoboHelp HTML X3
    NOTE: We are using a defined a secondary window on the
    Project tab called $global_InterfaceWindow. The $global_ prevents
    the error message HH_GET_WIN_TYPE error.
    1. Enter the name of the text to which you want to create a
    secondary window. In this case, we will use ABC window.
    2. Select ABC window and click the Insert Hyperlink button.
    3. Enter JavaScript:RelatedTopics.Click() in the Link to
    field and click OK.
    4. Click next to the hypertext, and select Related
    Topics… from the Insert menu. The Related Topic Wizard dialog
    box opens.
    5. Click Hidden (for scripts) option button, and click Next.
    6. Select the topic to which you want to link, and click Add.
    7. Click Next. Click Next again. Click Finish.
    8. Click the Hidden rectangle , and click the TrueCode tab.
    9. Locate the following phrase in green text.
    <param name="Items" value="ABC Window\STYLE003.htm$$**$$"
    >
    Insert Name.chm::\ after ABC window;
    <param name="Items" value="ABC
    Window;Name.chm::\STYLE003.htm$$**$$" >
    NOTE: The path to your topic is not always the same path used
    in Windows Explorer. Be sure to set the path correctly, or the
    topic will not display.
    10. Complete the same process in the gray area; that is, the
    CLASSID section of the code.
    11. Locate the following phrase in green text.
    <param name="Window" value="" >
    Enter $global_InterfaceWindow between the double quotation
    marks.
    <param name="Window" value="$global_InterfaceWindow" >
    12. Copy this phrase and paste it in the gray area; that is
    the CLASSID section of the code.
    NOTE: Once you paste this phrase in the CLASSID section, you
    cannot click the WYSIWYG tab because it will remove the copied
    phrase. Click a different topic to save it in the TrueCode tab. If
    you need to access the TrueCode tab again for this topic, you MUST
    copy and past this phrase back inside the CLASSID section.

  • I need to add the values stored in the session object into the html textbox

    Dear Sir,
    i have been trying to create an edit employee details page
    What i have done till now is as follow:
    1. Got employee id from HTML page.
    2. Compared it with the id stored in the database.
    3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.
    4. Dispatched the session values to another servlet EditEmpDetails2.java
    what i need to do now
    5. Now i need to set the session values in the text field of the html form
    6. I also need to be able to edit those vales and store the edited values in the database.
    Please help me as i have tried doing it for 1 week without any clues
    i have tried to create a html page which is something like this:
    <html>
    <head>
    <title>Edit Employee Details Page</title>
    <body BGCOLOR="red" text="black">
    <h1 ><font color="black">Edit Employee Details Page</font></h1>
    <form action = "EditEmpDetails" method="Get">
    <table width="50% align="center"
    <tr><td>Employee ID: </td>
    <td><INPUT TYPE="TEXT" name="employeeid"<br></td></tr>
    <tr><td><center><input type="submit" value="submit"></center></td></tr>
    <tr><td><center><input type="reset" value="reset" ></center></td></tr>
    </table>
    </form>
    </body>
    </html>
    design of my servlet EditEmpDetails.java
    public void EditEmpDetails1 extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
    PrintWriter out = response.getWriter();
    response.setContentType("text/html");
    HttpSession session = request.getSession();
    String employeeid;
    String X = request.getParameter("employeeid");
    System.out.println("Employee iD:" + X);
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:murphy");
    String query = "Select * from users where employeeid=?";
    PreparedStatement stat = con.prepareStatement(query);
    System.out.println(stat);
    stat.setString(1,X);
    ResultSet rs = stat.executeQuery();
    while(rs.next())
    String Z = rs.getString(password);
    if(Z.equals(X))
    String A = rs.getString(1);
    session.setAttribute("employeeid", A);
    String B = rs.getString(2);
    session.setAttribute("firstname", B);
    String C = rs.getString(3);
    session.setAttribute("lastname", C);
    String D = rs.getString(4);
    session.setAttribute("gender", D);
    String E = rs.getString(5);
    session.setAttribute("dateofbirth", E);
    String F = rs.getString(6);
    session.setAttribute("address", F);
    String G = rs.getString(7);
    session.setAttribute("postalcode", G);
    String H = rs.getString(8);
    session.setAttribute("phone", H);
    String I = rs.getString(9);
    session.setAttribute("mobile", I);
    String J = rs.getString(10);
    String url = "/EditEmpDetao;s.java";
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url)
    dispatcher.forward(request,response);
    catch (Exception e)
    system.out.println(e)
    I do not know how to put the values stored in the session object into the html text box

    3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.do you really need to store this in session object?
    5. Now i need to set the session values in the text field of the html form which form? in a new html/jsp page? i suggest go for a JSP
    In your JSP page use JSP expression tags to put the session attributes.
    it's something like : <input type='text' name='employeeid' value='<%= session.getAttribute("employeeid") %>' >and you need to generateanother servlet for saving the details/modifications to the database.
    I think i m clear enough.
    if you need more clarifications. just try it and then post your problem.
    Diablo

Maybe you are looking for

  • Web Service XML not attaching namespace to value object

    I have a web services that I have introspected into Flex. The web service has one operation that sends 4 objects to the server. The objects are: a number, an array of objects, a schedule object and a boolean. For some reason when the XML is sent, eve

  • General query regarding availability of Older Versions of Connector bundles

    Hi Guys, How can I download the older versions of Connector bundles. I wish to download PeopleSoft User Management Connector 9.1.0. But the official Oracle website shows only some 11.x.x version. If I want to download some older versions, is there a

  • My iphone not working and not charging just black screen..what should i do ? :|

    the red light of sensor was lighting for few minutes

  • Via headers in outgoing requests

    When creating an outgoing request with SipFactory or proxy using OCCAS the request does not have a top via before it is sent on network. Initially the via transport and address cannot be set until the request is bound to an interface but parameters l

  • Read/write Java float[]

    I'm looking for the quickest and most effecient way to read/write a float array (float[]) to file in a raw binary fashion. In C I would do... float fp = (float )malloc(sizeof(float)*nfloats); // ... populate fp int file = open("filename.bin", O_CREAT