Insert text problem

I have one page on an eight page site. They are all made from
a the same template and all come up fine expept one which is the
one I am putting text into a padded cell inside another table. When
I put the table in and add padding everything is fine until I paste
the text in then when I open the page it ***** to the right. When I
delete the text the page still wants to shift. The body is
percentage based but all embedded tables have pixel width. I have
tried copying text line by line which works for a while then it
reaches a point and shifts the page again. Changing from CSS to
HTML tags has no effect. I would love some idea about this. Thanks

have you tried pasting the text into the code instead of the
actual table?
what are you copying from? i've found that if i copy and
paste from an email message, it adds this prewrap tag to it, that
formats it as one long line, instead of wrapping like it should.
maybe you should show us your code and the text you're trying
to paste.

Similar Messages

  • HELP URGENT Inserting Text problem!

    Can anyone tell me where I have gone wrong with my INSERT statement? I want to add user input into my Access 2000 Database when clicking on the button. The code compiles with no errors and when I run it I can get the connection to the database but when I enter data and click on the button nothing happens! This is hopefully the last part of my assignment so any ideas would be greatfully received!
    Thanks
    Han
    Here is the code:
    //Add Customer1 Class
    import java.awt.GridLayout;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.sql.*;
    public class AddCust1 extends JFrame implements ActionListener
         private Connection Database;
         JButton addCust = new JButton("Add Customer");
         JButton cancel = new JButton("Cancel");
         JTextField CustId = new JTextField(10);
         JTextField FirstName = new JTextField(10);
         JTextField Surname = new JTextField(10);
         JTextField AddressF = new JTextField(20);
         JTextField PhoneF = new JTextField(10);
         JLabel Cust = new JLabel("Customer Id:");
         JLabel First = new JLabel("First Name:");
         JLabel Surn = new JLabel("Surname:");
         JLabel Address = new JLabel("Address:");
         JLabel Phone = new JLabel("Telephone:");
         public AddCust1()
              super("Add Customer");
              setSize(350,150);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              pane.setLayout(new GridLayout(6,6));
              pane.add(Cust);
              pane.add(CustId);
              pane.add(First);
              pane.add(FirstName);
              pane.add(Surn);
              pane.add(Surname);
              pane.add(Address);
              pane.add(AddressF);
              pane.add(Phone);
              pane.add(PhoneF);
              pane.add(addCust);
              addCust.addActionListener(this);
              pane.add(cancel);
              cancel.addActionListener(this);
              setContentPane(pane);
         public void actionPerformed(ActionEvent evt)
              Object source = evt.getSource();
              if (source == addCust){
                   //connect to DB and insert data.
                   String url = "jdbc:odbc:Mikedb";
                   String username = "guest";
                   String password = "guest";
                   Statement DataRequest;
                   //Load the driver to allow connection to the database
                   try
                        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                        Database = DriverManager.getConnection(url);
                        System.out.println("Successful Connection" + Database);
                   catch(ClassNotFoundException error)
                        System.err.println("Failed to load JDBC/ODBC bridge." + error);
                        System.exit(1); //exit program
                   catch(SQLException error)
                        System.err.println("Unable to connect to the database." + error);
                        System.exit(2); //exit program
                   try
                        String query = "INSERT INTO Customer (Customer_id, FirstName, LastName, Address, Phone) VALUES ('"+CustId.getText()+"', '"+FirstName.getText()+"','"+Surname.getText()+"', '"+AddressF.getText()+"', '"+PhoneF.getText()+"')";
                        DataRequest = Database.createStatement();
                        DataRequest.close();          
                   catch(SQLException err)
                        System.out.println("SQL Error: " + err);
                        System.exit(3);
              else if (source == cancel){
                   dispose();
                   CustMenu cm = new CustMenu();
                   cm.show();
         public static void main(String[] argurments) {
              AddCust1 ac = new AddCust1();
              ac.show();
    }

    Hey, You have forgotten to code,
    int count = DataRequest.executeUpdate(query); statement.
    Anyway, you need to close the connection object also. With out updating the database you are expecting the database to show results.
    Hope this helps.
    Sudha

  • Problem on inserting text from file to a clob column

    Hi! I'm having problem in inserting text read from a text file to a clob column in my table.
    Here's my code
    public void addSyllabusOutline(int syllid)
              CLOB objclob1 = null;
              CLOB objclob2 = null;
              String query = "SELECT outline, projoutline FROM Syllabus WHERE syllabusid = '"+ syllid +"' FOR UPDATE";
              try
                   System.out.print("Getting syllabus outline and projoutline clob locator...");
                   DBConnection dbconnbean = new DBConnection();
                   dbconnbean.openConnection();
                   ResultSet rst = dbconnbean.executeQuery(query);
                   if(rst.next())
                        objclob1 = (oracle.sql.CLOB)rst.getClob("outline");
                        objclob2 = (oracle.sql.CLOB)rst.getClob("projoutline");
                        Writer clobwriter1 = ((oracle.sql.CLOB)objclob1).getCharacterOutputStream();
                        String filename1 = "c:\\o1u2t3l4i5n6e7.txt";
                        File outlinefile1 = new File(filename1);
                        FileReader outlineFileReader1 = new FileReader(outlinefile1);
                        char[] cbuffer1 = new char[10 * 1024];
                        int nread1 = 0;
                        while((nread1 = outlineFileReader1.read(cbuffer1)) != -1)
                             clobwriter1.write(cbuffer1, 0, nread1);
                        //clobwriter1.flush();
                        clobwriter1.close();
                        Writer clobwriter2 = ((oracle.sql.CLOB)objclob2).getCharacterOutputStream();
                        String filename2 = "c:\\p1r2o3j4o5u6t7l8i9n0e.txt";
                        File outlinefile2 = new File(filename2);
                        FileReader outlineFileReader2 = new FileReader(outlinefile2);
                        char[] cbuffer2 = new char[10 * 1024];
                        int nread2 = 0;
                        while((nread2 = outlineFileReader2.read(cbuffer2)) != -1)
                             clobwriter2.write(cbuffer2, 0, nread2);
                        //clobwriter2.flush();
                        clobwriter2.close();
                   System.out.println("done");
                   dbconnbean.closeConnection();
              catch(Exception e)
                   System.out.println("Error: " + e);
    My error is java.sql.SQLException fetch out of sequence. I don't have an Idea on what seems to be the problem. Please help.. Thank you very much. ^_^

    Hi,
    Print the whole stack trace. It will tell you the line which causes the error. How you use clob and blob in oracle is also version dependent. Try to google for
    oracle "your version" java clob example.
    /Kaj

  • Problem inserting text with special Hungarian characters into MySQL database

    When I insert text into my MySQL db the special Hungarian
    characters (ő,ű) they change into "?".
    When I check the
    <cfoutput>#FORM.special_character#</cfoutput> it gives
    me the correct text, things go wrong just when writing it into the
    db. My hosting provider said the following: "please try to
    evidently specify "latin2" charset with "latin2_hungarian_ci"
    collation when performing any operations with tables. It is
    supported by the server but not used by default." At my former
    hosting provider I had no such problem. Anyway how could I do what
    my hosting provider has suggested. I read a PHP related article
    that said use "SET NAMES latin2". How could I do such thing in
    ColdFusion? Any suggestion? Besides I've tried to use UTF8 and
    Latin2 character encoding both on my pages and in the db but with
    not much success.
    I've also read a French language message here in this forum
    that suggested to use:
    <cfscript>
    setEncoding("form", "utf-8");
    setEncoding("url", "utf-8");
    </cfscript>
    <cfcontent type="text/html; charset=utf-8">
    I' ve changed the utf-8 to latin2 and even to iso-8859-2 but
    didn't help.
    Thanks, Aron

    I read that it would be the most straightforward way to do
    everything in UTF-8 because it handles well special characters so
    I've tried to set up a simple testing environment. Besides I use CF
    MX7 and my hosting provider creates the dsn for me so I think the
    db driver is JDBC but not sure.
    1.) In Dreamweaver I created a page with UTF-8 encoding set
    the Unicode Normalization Form to "C" and checked the include
    unicode signature (BOM) checkbox. This created a page with the meta
    tag: <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />. I've checked the HTTP header with an online
    utility at delorie.com and it gave me the following info:
    HTTP/1.1, Content-Type: text/html; charset=utf-8, Server:
    Microsoft-IIS/6.0
    2.) Then I put the following codes into the top of my page
    before everything:
    <cfprocessingdirective pageEncoding = "utf-8">
    <cfset setEncoding("URL", "utf-8")>
    <cfset setEncoding("FORM", "utf-8")>
    <cfcontent type="text/html; charset=utf-8">
    3.) I wrote some special Hungarian chars
    (<p>őű</p>) into the page and they displayed
    well all the time.
    4.) I've created a simple MySQL db (MySQL Community Edition
    5.0.27-community-nt) on my shared hosting server with phpMyAdmin
    with default charset of UTF-8 and choosing utf8_hungarian_ci as
    default collation. Then I creted a MyISAM table and the collation
    was automatically applied to my varchar field into wich I stored
    data with special chars. I've checked the properties of the MySQL
    server in MySQL-Front prog and found the following settings under
    the Variables tab: character_set_client: utf8,
    character_set_connection: utf8, character_set_database: latin1,
    character_set_results: utf8, character_set_server: latin1,
    character_set_system: utf8, collation_connection: utf8_general_ci,
    collation_database: latin1_swedish_ci, collation_server:
    latin1_swedish_ci.
    5.) I wrote a simple insert form into my page and tried it
    using both the content of the form field and a hardcoded string
    value and even tried to read back the value of the
    #FORM.special_char# variable. In each cases the special Hungarian
    chars changed to "q" or "p" letters.
    Can anybody see something wrong in the above mentioned or
    have an idea to test something else?
    I am thinking about to try this same page against a db on my
    other hosting providers MySQL server.
    Here is the to the form:
    http://209.85.117.174/pages/proba/chartest/utf8_1/form.cfm
    Thanks, Aron

  • Cant insert Text into a TextBox. (Confusing Problem, CS6)

    Hello forum members!
    Just got the trial today and I am trying to insert text into a document. I press "T" and drag a box for a textbox. I then double-click inside that box to type something, and whatever I type absolutely NOTHING appears. It just blinks and nothing is actually typed inside the box.
    This is really frustrating. I have only just started and have one document that is fresh, so my question is what is the problem here?
    Thanks in advance,
    Shane Stocks

    Could you elaborate on that a little? I have taken a screenshot of my screen to show you how everything is. I have not touched any settings and have literally downloaded the trial about an hour ago.
    I do this. Click on the T, drag a box, then start typing. When I type, the icon does not move, and for some reason it seems what I am typing renames the layer tab. Please view the image, everything is there.
    Thanks again,
    P.S. The text-box does dissapear when the icon changes into a text icon, and the image above is me typing random things. Nothing appears.

  • Script to find a specific section in file & insert text below - how?

    I am dealing with kind of a problem here - I am using pekwm as my window manager and I use menumaker to automatically update the menu on every startup. My problem is that the original pekwm, the first two sections called 'terminal' and 'Run' and the last two sections called 'Go To' and 'pekwm' are overwritten/modified by mmaker so that there's only the applications submenues and  'pekwm' with the 'Themes' section erased and I want to somehow preserve all that. I was thinking of creating a bash script that does the mmaker thing and then use 'sed' or 'echo' to insert the code back into the appropiate areas of ~/.pekwm/menu.
    All I really need to know is how to find a particular string of code in the menu file and insert a block of text below that line using sed or echo.
    Any ideas?
    Last edited by lostinpurdy (2010-07-10 02:32:38)

    Looks interesting. But I'd like to keep it as simple as possible and avoid the part with the extra textfiles and just insert the code text straight into the menu file, kind of like this:
    mmaker --no-desktop -vf pekwm
    sed {
            find-and-goto-line-below-'root menu'-declaration, insert-text {
                                                                                                           entry for 'terminal'
                                                                                                           entry for 'run"
           ~/.pekwm/menu
    sed {
             find-line-below-'pekwm'-submenu-declaration, insert-text {
                                                                                                       entry for 'themes'
           ~/.pekwm/menu
    Obviously it's not real code but it's just to outline how I'd like to have it. Just need to know the correct syntax to make it work. I don't care much for 'Go To' and the rest.
    Last edited by lostinpurdy (2010-07-10 03:48:10)

  • JDBC + SERVLET: inserting text data  to access file from Html form

    Hi everybody !
    I'm trying to insert text data from my html form to access database using servlet and jdbc technologies.
    The problem that I'm that the data is TEXT, but not the English language !!!
    So my access db file gets - ???????? symbols instead the real text.
    This is the form line that sending data to my servlet:
    <form
    method="POST"
    ACTION=http://localhost:8080/servlet/myServlet enctype="text/html">
    And this is servlet line that defines response content:
    res.setContentType( "text/html" );
    What can I do to get in access db file the right text format and not a ???????? symbols.
    Maybe I must to ad some <meta ...> , but where ?

    You're dealing with Unicode, I'd guess, and not ASCII.
    I guess I'd have two questions:
    (1) Is the character encoding on your pages set properly for the language you're trying to use?
    (2) Does Access handle Unicode characters?
    Access isn't exacly a world-class database. (If it was, there'd be no reason for M$ to develop SQL Server.) I'd find out if it supports other character sets. If not, you'll have to switch to a more capable database that does. - MOD

  • Inserting text in iphoto

    As a windows switcher, I'm just starting to use the ilife suite. I made a slideshow using iphoto and inserted text. The problem is that the text is in a very small font and in the upper left hand corner of the slide. I can't figure out how to move the text to the bottom of the screen, increase the size and change the color to yellow. Is this possible in iphoto? Other than this, I am thrilled to have a new apple computer.

    Don,
    If you had an album that you made into a slideshow, find the album in the photo media browser in iMovie and drag the photos into the timeline.
    Now highlight each image and click on the title tab. Find the right title that is static and places the title where you want. I am not sure if there are any included titles that fit your need, but there are plenty of plugins that will have the title the way you want.
    The only problem is, iPhoto titles are not autofilled in the title field so you will have to input the text. It will take longer I know.
    After you add the titles, then you can add the Ken Burns, then transitions.
    You will really have to experiment to get it the way you want.
    good luck!
    Lori

  • JEditorPane insert text at caret?

    Does anyone know how to insert text at the current position of the caret in a JEditorPane?
    Additionally, is there a way to insert text before and after a specific selection within a JEditorPane?
    Am I using the right object for these types of purposes, or is there another Swing component that would be better suited?

    I found my answer in: [http://forums.sun.com/thread.jspa?forumID=57&threadID=5264416]
                   public boolean insertHTML(InEditorPane textAreaPane, String text, int offset) {
              HTMLDocument doc = (HTMLDocument) textAreaPane.getDocument();
              HTMLEditorKit kit = (HTMLEditorKit) textAreaPane.getEditorKit();
              boolean res = true;
              try {
                   // kit.insertHTML(doc, offset, text, 0, 0, null);
                   System.out.println("reading from string reader");
                   kit.read(new StringReader(text), doc, offset);
                   System.out.println(textAreaPane.getText());
              } catch (Exception e) {
                   System.out.println("error inserting html: " + e);
                   res = false;
              return res;
         }           But now I have kind of the oposite problem: when I type text in the panel, new lines are saved as '\n' instead of "<br>", so when I save the text and show it again I get one long line...

  • Can't insert text into web page plus script error message

    I'm using CS3 and, on a fairly regular basis, when I am either pasting or inserting content (usually a newsletter of 500-1000 words), I get a message saying something like I can't insert text in this area. I definitely can insert text in the area as I have done it tons of times before. I sometimes have to cut and past a doc line by line to get it to insert. Very frustrating!
    Also, just recently, I've been getting a script error message, "An error has occurred in the script of this page" followed by Line: 992, Char: 106, Error: Unterminated String Constant, followed by the question: Do you want to continue running scripts on this page? I click Yes and everything seems to work fine.
    Help on either would be appreciated.
    Thanks in advance.

    You might want to make sure you are trying to copy plain text. It's possible that if you are copying from a Word document or another Web site that you are bringing along extra unseen code it doesn't like.  Try copying into Notepad first and then copying from Notepad into Contribute.  Not sure if that's the problem or not, but that's what came to my head first.
    I used to get an error that sounds similar (however it's not reproducing the error for me right now) to your error.  It was because some of my users had javascript menus on their page that Contribute didn't like.  However, if worked fine when you clicked yes and it was fine once it was published.   So if you are running a script that's probably why and I wouldn't worry too much about it as long as you can continue working and the page displays to your users correctly once published.  It's just annoying.
    Hope that helps.  Good luck.

  • Can't use all annotate actions in Preview-it's a PDF of a web screen shot. No highlight, underline, etc; can insert text, boxes, notes.

    I can't use all the annotate actions in Preview. It's web screen shot saved as a PDF. No highlight, underline, or strikethough text but I can insert text, boxes, notes. On other forums this problem was solved by saving as a PDF which I have done. Any other solutions?

    I don't think PDF is the way to do it, but if it was you'd need something like Adobe Acrobat Professional.
    >I'm updating the content and copy for a website and thought the easiest way would be marking up a PDF of the webpages including highlighting text to be removed, etc.
    As far as Text changes, I thing the actual Source would maybe be the way to go, but you could always turn the PDF into a jpg or such, then use a Graphics program to poit out things...

  • Inserting text - final cut express

    New user. sorry. how do i insert text????? i went to apple support site, and it tells me how to CHANGE text, but not how to insert it.
    Also, having trouble getting audio to play on my timeline. On line support talks about changing firewire but cannot find how to do this.

    To add a text clip, whether by itself, or on top of other clips, you have just to generate a new clip using the generators Text/Text or Boris/Text 3D. To add a generator you may use the small popup menu with a small "A" at the bottom right of the Video tab in the viewer. After the generator is ready in the viewer you have to drag it to your movie in the timeline.
    About the audio problem you must provide more info about your sequence setup, what kind of capture you made (from what camera, with which format) etc. The firewire suggestion from Apple support might refer to the fact that if you use an external disk drive for video media, you should use firewire drives in place of USB drives. And that's correct.
    But without further info it's difficult to give hints.
    Piero

  • Text Problems in Safari 4

    Just this morning I started to experience bad text rendering problems in Safari 4. I am seeing text that overlaps on other text, text that leaves a button and crosses over into the space next to it, text that is truncated on buttons, image alignment problems, and more. Typing in text boxes is a problem, too -- the cursor doesn't display at the point where text is actually being inserted, but several characters off.
    It doesn't affect every site -- Google and Netflix look OK, while Apple and Facebook are strongly affected to the point of being almost unusable. Firefox and Chrome on the same laptop are working fine. Other programs on the system, like TextEdit, are fine, too. I have tried changing the default font preferences in Safari, but while the text size changes on certain pages, the overlapping text problem isn't helped.
    I have screenshots of the issue -- how do I post them?
    Does anyone else see this issue? Many thanks for your opinions and advice?
    Safari Version 4.0.3 (6531.9)

    Where did you get 67 errors? http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.totallybarbado s.com%2F shows the only error is the "pre" tag which are necessary hacks for formatting the "pre" tag. The other "warnings" are no different than checking apple.com http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http://w ww.apple.com
    They also do not assign background-color to "every" css element. Why would you (to bloat CSS)? So, there is exactly "one" error which is well documented and is supported in CSS2.1 when released.
    The problem is that Safari does not adhere to white-space or "pre" tags (preformatted text). This has been an ongoing problem since it's incarnation. All other browsers (FireFox, Netscape, IE, Opera, Mozilla..etc) do. http://www.w3.org/TR/1998/REC-html40-19980424/struct/text.html#h-9.3.4
    edited: Sorry, had to edit as this forum software actually rendered the <"> tags (without quotes)

  • How can I insert text in a photo?

    How can I insert text onto a photo?  Before Lion used Command T. Have not installed Page or Numbers. Have Microsoft for Mac.

    Open the photo with Preview and select ⌃⌘T.
    (Also, take a look at: Skitch)

  • How to insert text in the text-id using BDC

    Hi Friends,
    I m using the BAPI to upload the data for a transaction .
    In that transaction there are some text id's are created to insert text like 'Container number'.
    I want to insert the text in that text id . But it not a field. Text ids are having object no and table and number .
    Is there any function like 'READ_TEXT' which we use to retrieve the text form text ids to write text in text ids ?
    So that I can use that function to insert the text in the text ids.
    Thanxs.

    Hi Umesh,
    READ_TEXT is used to Read the text , but SAVE_TEXT is used to save the text. but for reading or saving you need correct iD's and text objects.
    Regards
    vijay

Maybe you are looking for

  • Initial Time Machine Backup - Extremely Slow/Freeze

    Hello, I recently switched my external HDDs and began utilizing a different HDD in conjunction with Time Machine. I have used this HDD in the past with Time Machine and never had a problem. The initial backup is proceeding at an extremely slow rate a

  • Screen refresh in explorer

    When I implement actions on a file in Windows explorer I have to manually refresh the screen before it is apparent.  For example, if I delete a file it continues to appear unchanged on the screen.  Trying to open the file generates a "File cannot be

  • Spatial Query won't use index ??

    Hi, This looks really simple but - i dunno why it does not work. I have a table containing a million rows of data with three types of Geometries in it - Points, Lines and Rectangles. I have created an R-Tree index on the 'shape' column andf a bitmap

  • P15 s409 dvd cd drive not listed as a device

    i installed a replacement dvd cd combo drive and  it was used to reinstall my system, however it is not listed as a devive on my laptop and i can not use it to play  anything . i tried to find this model on the update drivers list but  i could not fi

  • Reg:output determination in purchase order

    hi,    when i am creating purchase order i given all the details once i go for save the order it shows a pop up window " no message could be found for output of mesage save any way '. my requirement is how to avoid this popup message. i thing the pro