CF Form Textarea

In my CF form, I use <cfinput name="field_name" size="20"
required message="this field is required"> to make a field
required.
Now I have to have a text area for free form entry. How can I
make the textarea required also in CF (use javascript ?) and the
access db only accepts max 255 characters, what do I do if the text
area needs at least 500 chars and how do I store all of that in my
access db ?
Thanks for any help.

If you are using version 7 or higher, you can use
<cftextarea> which has the attributes you seek.

Similar Messages

  • XML Form - Textarea - Blank Space Issue

    I'm trying to use a cftextarea inside an XML form and every
    time I do it keeps putting a space inside of the text area. I've
    tried a few things and found that it's related to the following.
    In the _formelements.xsl in the \CFIDE\scripts\xsl directory.
    <xsl:text> </xsl:text>< !-- extra space at
    end, in case no value is defined -- >
    Trouble is, if I take that out, it blows up the whole page.
    Is there any way around this or any type of quick fix for it?
    It's annoying to have my db updated with a blank space. If not I
    guess I'll have to check each and every textarea and make sure a
    blank space is not placed into my database... very annoying.

    Have you found a solution to this bug? I just came across it
    myself.

  • Firefox 4 on Windows 7/XP is not allowing user interaction with form elements that contain HTML coding. For instance, a textarea element whose content includes h4 My Content /h4 br /

    On a Mac, Firefox 4 was also dysfunctional and the "enter" key immediately submitted the form instead of adding a line if the cursor was placed inside content to start with, but on Windows it seems impossible to get the cursor inside the textarea content at all.
    The "view source" of the form textarea element plus the content that our user entered is pasted below:
    <textarea name="content" cols="120" rows="50"><h4>SEARCH TOOL NOT WORKING</h4><br>
    <h3>TRY FIRST</h3>
    <P>Check for popup blockers; set for allow<br>
    Mac users may want to use Firefox if Safari does not work and not a popup problem.</P>
    <h3>COMMUNICATION FOR TROUBLESHOOTING </h3>
    <p>Must provide the following information:<br>
    Computer's operating system?<br>
    Browser and version?<br>
    On campus or off, if off how are you getting a Brown IP address?<br>
    What in detail is wrong?<br>
    What have you tried to overcome the problem?
    </p>
    <h3>IF ALL ELSE FAILS</h3>
    <p>Contact CIS HELP - it may be your computer.
    <p>A computer cluster in one of the libraries or CIT if the problem is not with the vendor. </p></textarea>

    p.s. I realize that the user content is somewhat confusing, and your web page interprets the HTML tags instead of displaying them explicitly...
    The user content begins after the <textarea> element and includes HTML headers, breaks, etc. Other HTML content inside form elements gave similar results. Thanks!

  • I have created a contact form using dreamweaver cc...how do i get it to send to my email?

    how do i get the contact form to send to my email?
    here is my code in html:
    <section id="content">
      <div class="main">
      <div class="container_12">
      <div class="wrapper">
      <article class="grid_8">
      <div class="indent-left">
      <h3 class="p0">Contact Form</h3>
      <form id="contact-form" method="post" enctype="multipart/form-data">
      <fieldset>
       <label><span class="text-form">Your Name:</span><input type="text"></label>
       <label><span class="text-form">Your Email:</span><input type="text"></label>
       <div class="wrapper">
      <div class="text-form">Your Message:</div>
      <div class="extra-wrap">
      <textarea></textarea>
      <div class="clear"></div>
      <div class="buttons">
      <a class="button" href="#" onClick="document.getElementById('contact-form').reset()">Clear</a>
      <a class="button" href="#" onClick="document.getElementById('contact-form').submit()">Send</a>
      </div>
      </div>
       </div>
      </fieldset>
      </form>
      </div>
      </article>
    my CSS code:
    #contact-form {
      display:block;
      width:100%;
      #contact-form label {
      display:block;
      height:35px;
      overflow:hidden;
      #contact-form input {
      float:left;
      width:443px;
      font-size:12px;
      line-height:1.25em;
      color:#808080;
      padding:7px 9px;
      margin:0;
      font-family:Arial, Helvetica, sans-serif;
      border:1px solid #dcdcdc;
      background:#fff;
      outline:none;
      #contact-form textarea {
      float:left;
      height:183px;
      width:443px;
      font-size:12px;
      line-height:1.25em;
      color:#808080;
      padding:7px 9px;
      margin:0;
      font-family:Arial, Helvetica, sans-serif;
      border:1px solid #dcdcdc;
      background:#fff;
      overflow:auto;
      outline:none;
    .text-form {
      float:left;
      display:block;
      font-size:13px;
      line-height:18px;
      width:96px;
      color:#808080;
      font-family:Arial, Helvetica, sans-serif;
    .buttons {padding:8px 30px 0 0; text-align:right;}
    .buttons a {margin-left:6px;}
    aside {
      width:100%;
      padding:40px 0 30px;
      background:#fff;
    .title-2 {
      display:block;
      padding-left:20px;
      font-size:21px;
      line-height:43px;
      color:#fff;
      background:#1c1b18;
      margin-bottom:16px;

    <form action="path-to-script-on-server/form-to-email-script.php">
    If your host doesn't provide scripts, ask them which server-side languages you can use (php, asp, asp.net, perl, coldfusion, etc...).  This will narrow your search for form-to-email processing scripts.
    Also, your form SUBMIT button is not properly coded.  It should look something like this.
    <input type="submit" name="send" id="send" value="Submit">
    RESET buttons aren't used much anymore because they lead to more form submission failures than successes.  You don't need it.
    Please review HTML5 Forms:
    Understanding HTML5 intelligent forms – Part 1: New input elements | Adobe Developer Connection
    HTML5 forms workflow | Learn Dreamweaver CC | Adobe TV
    Nancy O.

  • Need to add senders email address into the subject header of my PHP form (somehow)

    Hello one and all,
    I have a PHP form which is working fine and sends our support team an email with the subject header 'Support'.
    I have been asked to fix this form to include the senders email address into the Subject header so that the support team can filter them easier and reply quicker.
    Any help would be very much appreciated indeed. The form code is below, let me know if you need the whole page.
    Thanks in advance,
    Bradley
    My current form PHP part looks like this: (and the HTML part is below in blue)
    <?php
        if($_GET["action"] == "email")
            $msg = "The following person need support:\n\n";
            $msg = $msg . "First Name: " . $_POST["FirstName"] . " " . $_POST["LastName"] . "\n";
            $msg = $msg . "Tel: " . $_POST["Tel"] . "\n";
            $msg = $msg . "Email: " . $_POST["FROM"] . "\n";
            $msg = $msg . "Support: " . $_POST["Support"] . "\n";
            $msg = $msg . "Model: " . $_POST["Model"] . "\n";
            $msg = $msg . "Comments: " . $_POST["Comments"] . "\n";
            $to ="[email protected]";
            $subject = "Support";
            $from = "From: " . $_POST["FROM"];
            mail($to, $subject, $msg, $emailFrom, $from);
            header("Location:support2.php");
    ?>
    and the HTML part of the fom is like this:
    <form id="form1" name="form1" method="post" action="support.php?action=email">
      <table width="700" border="0" cellspacing="10" cellpadding="10">
        <tr>
          <td valign="middle" class="formtext">*First name:</td>
          <td width="455" valign="middle"><label>
            <input name="FirstName" type="text" class="form-textbox" id="FirstName" />
          </label></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Last name:</td>
          <td valign="middle"><input name="LastName" type="text" class="form-textbox" id="LastName" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Email:</td>
          <td valign="middle"><input name="FROM" type="text" class="form-textbox" id="FROM" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Telephone:</td>
          <td valign="middle"><input name="Tel" type="text" class="form-textbox" id="Tel" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext"> </td>
          <td valign="middle"> </td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Support required:</td>
          <td valign="middle"><label>
            <select name="Support" class="form-dropdown" id="Support">
              <option selected="selected">Please select...</option>
              <option value="Connection Issues">Connection Issues</option>
              <option value="Technical Issues">Technical Issues</option>
              <option value="Furniture Faults">Furniture Faults</option>
              <option value="Other">Other</option>
            </select>
          </label></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">Chair model:</td>
          <td valign="middle"><input name="Model" type="text" class="form-textbox" id="Model" /></td>
        </tr>
        <tr>
          <td valign="middle" class="formtext">*Please describe your issue:</td>
          <td valign="middle"><textarea name="Comments" rows="5" class="form-textarea" id="Comments"></textarea></td>
        </tr>
        <tr>
          <td valign="middle" class="maintext"> </td>
          <td valign="middle" class="maintext"></td>
        </tr>
        <tr>
          <td valign="middle"> </td>
          <td valign="middle"><label>
            <input name="Submit" type="submit" class="form-submit-button" value="Submit" />
          </label></td>
        </tr>
      </table>
      </form>

    MurraySummers you sir, are an absolute legend! This worked perfect straight off the bat!
    I really apreciate your lightning fast reply!
    Thanks again.
    Bradley

  • Advice needed on form/text area

    Hi all,
    I'm a html beginner but looking to replicate the form (I
    think that's what it's called) which appears on this page (includes
    a html link for people to link to):
    http://www.aboutbritain.com/LinkToUs.asp
    I can see the html is as follows:
    <form>
    <textarea cols="60" rows="4" wrap="virtual">&lt;a
    href="
    http://www.aboutbritain.com/"
    target="ab"&gt;AboutBritain.com - The premier online guide to
    Great Britain&lt;/a&gt;</textarea>
    </form>
    Is this the best practice for creating this kind of a form? I
    want to define the form's width and height, perhaps in pixels, so
    any advice on that too would be very appreciated...
    Thanks in advance!!!

    I've been playing with the above and there seems to be a
    permanent horizontal scroll bar which seems unnecessary. Any clues
    on how to remove this and define height and width?
    :s
    Thanks!

  • How to handle weird characters in form fields (like bullet points from Word docs)

    hi there
    lots of my users copy and paste from MS Word documents into a
    text area
    my app takes that form.textarea data and inserts it in a
    MYSQL db.
    when we output that cell from the db, we often find there are
    ? [question marks] where there once were special characters in the
    Word doc text.
    it seems that bullet points in word docs are the worst
    offenders.
    each time i spot a new one i try to find out the chr() number
    for it and make a substitiution before the text is stored in the
    db, but its a bit hit and miss (relies on me spotting it) and its v
    time consuming
    ive tried using functions safetext and demoronize - but they
    dont seem to do what i need
    im sure im not the first person to run into this - any
    suggestions anyone?
    thanks very much indeed for any help you can give.
    kind regards
    Nick

    Thanks Paul and Azadi
    Paul - when you say "change it to unicode" do you mean the
    page or a setting in the db? forgive me if i'm being stupid but
    this is all new territory to me. Thank you ever so much for your
    help - does sound logical what you say :)
    Azadi - thanks very much for this (I'm pressuming that
    there's a charge for this udf) so i'll try to implement Paul's
    solution and if I can't do that I'll buy the the udf - thanks very
    much indeed for your help, really is much apprecaited.
    kind regards
    Nick

  • Can't find jquery form validator in Behaviors as shown in video demo

    I am on Win 8.1 using DW CC and am trying to add a validation script for my forms. According to the Video the New feature in DW CC has dropped the Spry scripts in favor of more standardized Jquery scripts for validation. Sounds great ...if they were there.... The Spry scripts are gone...but I can't find any Jquery replacements. This upgrade from 6 may have been a mistake.

    Use an HTML5 form with the jQuery Validate  like so:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title> HTML5 Form with jQuery Validation</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <!--JQUERY LATEST-->
    <script src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    <!--JQUERY VALIDATE-->
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js">
    </script>
    <style>
        /**put this into your CSS Reset**/
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
    body {
        font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
        font-size: 100%;
    /**BEGIN FORM STYLES**/
    form {
        font-size: 14px;
        width: 880px; /**adjust width in %, px or em*/
        margin: 0 auto; /**adjust margins as needed*/
        background: #FFF;
        padding: 2%;
    form fieldset {
        margin-bottom: 5px;
        background: #ADC9A5;
    form legend {
    display:block;
        padding: 8px;
        background: #537374;
        font-weight: bold;
        color: #FFF;
        line-height: 1.5;
    /**wrap form lables and fields inside ordered lists for better web accessibility**/
    form ol {
        list-style: none;
        margin: 0;
        padding: 0
    form li {
        padding: 5px;
        margin: 0;
        clear: left;
    form label {
        display: inline-block;
        float: left;
        line-height: 23px; /**lines up labels with fields**/
        width: 20%;
        font-size: 18px;
        text-align: right;
        margin-right: 10px; /*space between labels, fields*/
    form textarea, form input:not([type="submit"]) {
        width: 45%; /**same width on input fields**/
        padding: 5px;
        color: #333;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 18px;
        background: #F2F6DF;
    /**radio buttons, checkboxes**/
    form input[type=radio],
    form input[type=checkbox] {
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
        display:inline-block;
    form select {
        width: 46.5%;
        background: #F2F6DF
    /**field background on focus**/
    form input:focus, form input:active,
    form textarea:focus, form textarea:active,
    form select:focus, form select:active { background-color: #DCEDBF; }
    form label.error {
        line-height: 1.5em;
        color: #FF4E51;
        background: #E0E4D8;
        padding: 5px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: 1px 2px 3px #333;
    #submit {
        width: 25%;
        margin-left: 30%;
        height: 2.5em;
        font-size: 18px
    </style>
    </head>
    <body>
    <!--begin form-->
    <form action="path/your-form-processing-script.php" method="post">
    <h2>HTML5 Form with jQuery Validation</h2>
    <fieldset>
    <legend>Required Fields:</legend>
    <ol>
    <li>
    <label for="first_name">Name:</label>
    <input name="first_name" type="text" autofocus required id="first_name" placeholder="First">
    </li>
    <li>
    <label for="last_name">Last:</label>
    <input name="last_name" id="last_name" type="text" required placeholder="Last">
    </li>
    <li>
    <label for="e_mail">E-mail:</label>
    <input name="e_mail" id="e_mail" type="email" required placeholder="[email protected]">
    </li>
    <li>
    <label for="quantity">Quantity:</label>
    <input name="quantity" type="number" required id="quantity" placeholder="Min 5" min="5">
    </li>
    </ol>
    </fieldset>
    <fieldset>
    <legend>Select - Required:</legend>
    <ol>
    <li>
    <label for="MySelect">Select One:</label>
    <select name="MySelect" id="MySelect" size="4" required title="Please select something!">
    <option value="1">Audi</option>
    <option value="2">Saab</option>
    <option value="3">Fiat</option>
    <option value="4">BMW</option>
    </select>
    </li>
    </ol>
    </fieldset>
    <fieldset>
    <Legend>Radio buttons and Checkboxes - Required</Legend>
    <ol>
    <li>
    <label>Gender:</label>
    <label>
    <input name="RadioGroup1" type="radio" required title="??" id="RadioGroup1_0" value="male">
    Male</label>
    <label>
    <input type="radio" name="RadioGroup1" value="female" id="RadioGroup1_1">
    Female</label>
    </li>
    <li>
    <label>Select any:</label>
    <label>
    <input name="CheckboxGroup1" type="checkbox" required title="??" id="CheckboxGroup1_0" value="option1">
    Option 1 </label>
    <label>
    <input type="checkbox" name="CheckboxGroup1" value="option2" id="CheckboxGroup1_1">
    Option 2 </label>
    <label>
    <input type="checkbox" name="CheckboxGroup1" value="option3" id="CheckboxGroup1_2">
    Option 3 </label>
    </li>
    </ol>
    </fieldset>
    <fieldset>
    <legend>Optional Fields:</legend>
    <ol>
    <li>
    <label for="phone">Phone:</label>
    <input name="phone" id="phone" type="tel" placeholder="(area code) 123-4567" />
    </li>
    <li>
    <label for="subject">Subject:</label>
    <input name="subject" id="subject" type="text" />
    </li>
    <li>
    <label for="message">Message:</label>
    <textarea id="message" name="message" placeholder="remarks"></textarea>
    </li>
    <li>
    <label for="submit"></label>
    <input id="submit" name="submit" type="submit" value="SEND">
    </li>
    </ol>
    </fieldset>
    </form>
    <!--end form-->
    <!--invoke form validation-->
    <script>
    $(document).ready(function() {
        $("form").validate();
    </script>
    </body>
    </html>
    Nancy O.

  • Email form with php

    Hello,
    I have been reading that mailto: is outdated.  I have been reading on creating an email form using php.  I don't  understand.  Do you create a table first to put the info:
    First Name:
    Last Name:
    Email:
    Message:
    Submit button
    Does anyone know of a comprehensive article that I could read with maybe some examples or even tutorial.   This is my webstie www.ewrolexrepair.com.  This is my first website.  I am trying to put somekind of email contact next to my picture.  Any help would be greatly appreciated.  Thanks!

    Below is a ready made php form including First Name, Last Name, Email and Message.
    The form is sent back to the page it is located on i.e. if the form is inserted into a page called 'contact.php' then the action form field would be as follows: <form id="enquiryForm" name="enquiryForm" method="post" action="contact.php">
    Change the below in the code to your email address (the one you want the info to be sent to):
    $to = "[email protected]"; //email address -- change to your own email address
    Change success.php below in the code to the page you want the user to go to after submitting the form.
    header("Location: success.php");
    //Redirect page -- change to your own page
    <!-- FORM CODE STARTS HERE -->
    <?php session_start(); ?>
    <?php
    if (array_key_exists('submit', $_POST)) {
        // check first_name field
    $first_name = trim($_POST['first_name']);
    if (empty($first_name)) {
        $error['first_name'] = 'Please provide your first name';
    elseif ($first_name == 'Please provide your first name') {
        $error['first_name'] = '';
    $_SESSION['first_name'] = $_POST['first_name'];
    // check last_name field
    $last_name = trim($_POST['last_name']);
    if (empty($last_name)) {
        $error['last_name'] = 'Please provide your last name';
    elseif ($last_name == 'Please provide your last name') {
        $error['last_name'] = '';
    $_SESSION['last_name'] = $_POST['last_name'];
    // check email field
    $email = trim($_POST['email']);
    if (empty($email)) {
        $error['email'] = 'Please enter your email address';
    elseif ($email == 'Please enter your email address') {
        $error['email'] = '';
    $_SESSION['email'] = $_POST['email'];
    // check enquiry field
    $message = trim($_POST['message']);
    if (empty($message)) {
        $error['message'] = 'Please enter your message details';
    elseif ($message == 'Please enter your message details') {
        $error['message'] = '';
    $_SESSION['message'] = $_POST['message'];
    if (!empty($_POST['ufo'])) { return false; }
    // recipient
    $to = "[email protected]"; //email address -- change to your own email address
    // email subject
    $subject = "Enquiry from Website";
    // sender
    $sender = "From: ".$_POST['email']."\r\n";
    // build message
    $enquiry = "First Name: $first_name\n\n";
    $enquiry .= "Last Name: $last_name\n\n";
    $enquiry .= "Email Address: $email\n\n";
    $enquiry .= "Message: $message\n\n";
    // send email if no form erorrs
    if (!isset($error)) {
    mail($to, $subject, $enquiry, $sender);
    header("Location: success.php");        //Redirect page -- change to your own page
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>PHP Form Test</title>
    <style type="text/css">
    /* style the form input fields */
    #enquiryForm input {
        font-family: arial, verdana, sans-serif;
        font-size: 12px;
        width: 300px;
        padding: 5px;
    /* style the form textarea field */
    #enquiryForm textarea {
        font-family: arial, verdana, sans-serif;
        font-size: 12px;
        width: 300px;
        padding: 5px;
    /* style the form submit button */
    #enquiryForm #submitButton {
        width: 100px;
    </style>
    </head>
    <body>
    <form id="enquiryForm" name="enquiryForm" method="post" action="contact.php">
    <h2>Online Enquiry</h2>
    <p>Required Information*</p>
    <p><label for="Name">First Name* </label><br />
    <input type="text" name="first_name" id="first_name" <?php if(isset($error['first_name'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($first_name)) {echo $first_name;} ?><?php if(isset($error['first_name'])) echo $error['first_name']; ?>" onfocus="this.value=''"></p>
      <p><label for="Name">Last Name* </label><br />
      <input type="text" name="last_name" id="last_name" <?php if(isset($error['last_name'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($last_name)) {echo $last_name;} ?><?php if(isset($error['last_name'])) echo $error['last_name']; ?>" onfocus="this.value=''"></p>
      <p><label for="email">Email<span>*</span>
    </label><br />
      <input type="text" name="email" id="email" <?php if(isset($error['email'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($email)) {echo $email;} ?><?php if(isset($error['email'])) echo $error['email']; ?>" onfocus="this.value=''"></p>
      <p style="padding-bottom: 0;"><label for="enquiry">Message<span>*</span></label><br />
      <textarea name="message" id="message" <?php if(isset($error['message'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> onfocus="this.value=''"><?php if(isset($message)) {echo $message;} ?><?php if(isset($error['message'])) echo $error['message']; ?></textarea></p>
    <p><input type="text" name="ufo" style="display: none;"></p>
    <p><input type="submit" id="submitButton" name="submit" value="Send Enquiry" /></p>
      </form>
    </body>
    </html>

  • Can I extend the width of auto-complete beyond form field itself?

    I have a form field that has a width of about 30. Often, the information entered is longer than 30 characters.
    I use auto complete on my forms option.
    Is it possible to extend the drop down of auto-complete-saved information beyond the 30 characters of the form-field itself? Sometimes the first 30 characters of more than one previously entered answer are the same.
    The only way to know if I selected the right one is to just guess and then go to end and see if I picked the right one.
    Thanks in advance.

    There are a few extensions that allow you to "drag" a '''textarea''' larger than what the web page specifies, but AFAIK those extensions only work with multi line textareas not with '''''single line''''' form textareas.
    I have used this extension in the past, but it has been problematic in Firefox 3.6 versions. IIRC it didn't ever work with single line textareas, like in forms. <br />
    https://addons.mozilla.org/en-US/firefox/addon/3818/
    Never tried this one. <br />
    https://addons.mozilla.org/en-US/firefox/addon/8287/
    I didn't care for this one when I tried it a few years ago, <br />
    https://addons.mozilla.org/en-US/firefox/addon/14371/

  • Using Textarea Scrollbars

    Before I started using Dreamweaver, I used notepad. And I
    would use textarea scrollbars for excessive text.
    http://www.funky-chickens.com/tarea.shtml
    ...At the bottom, where it says Textarea allowing HTML. I usually
    use that on my previous websites. But using dreamweaver, when I
    install that snippet it creates problems and the tables stretch and
    screws up the whole site. How do I make that function work. I
    looked around and couldn't find that option
    Can anyone help me?
    A reference to how I use it:
    http://leyendarecords.com/biography.html
    ... Theres a website I made for someone. If you check out that
    page, you can see that I have scrollbars and text inside it. A
    friend made that template on Dreamweaver and I did everything on
    Notepad. Exactly how do I do that?

    That code is SO ANTIQUE it's unbelievable.
    <ilayer name="scroll1">
    <div id="scroll3"
    style="width:100;height:75;
    background-color:COLORHERE;
    overflow:auto">
    TEXT HTML TEXT HTML
    </textarea></div>The <ilayer> tag is not
    recognized by any browser than
    NN4x, and that browser is nearly extinct. In addition, they
    even omit the
    opening <textarea> tag and the closing </ilayer>
    tag, so in addition to
    being hopelessly antique, it's invalid too.
    > But using dreamweaver, when I install that snippet it
    > creates problems and the tables stretch and screws up
    the whole site. How
    > do I
    > make that function work.
    That's not surprising. DW doesn't know what to do with this
    markup.
    You could try just removing the <ilayer> tag -
    <div id="scroll3"
    style="width:100px;height:75px;background-color:COLORHERE;overflow:auto"><textarea>
    TEXT HTML TEXT HTML</textarea></div>
    but all form elements are required to be within an explicit
    <form>, so
    you'll have to add that -
    <div id="scroll3"
    style="width:100px;height:75px;background-color:COLORHERE;overflow:auto"><form>
    <textarea>TEXT HTML TEXT
    HTML</textarea></form></div>
    And then both the form tag and the textarea tag have some
    necessary
    attributes, so you'll have to add them too....
    I recommend you not use something like this, anyhow. There is
    a good
    discussion on this forum from just today about why it's a
    poor layout/design
    decision....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "streekd" <[email protected]> wrote in
    message
    news:[email protected]...
    > Before I started using Dreamweaver, I used notepad. And
    I would use
    > textarea
    > scrollbars for excessive text.
    http://www.funky-chickens.com/tarea.shtml
    > ...At
    > the bottom, where it says Textarea allowing HTML. I
    usually use that on my
    > previous websites. But using dreamweaver, when I install
    that snippet it
    > creates problems and the tables stretch and screws up
    the whole site. How
    > do I
    > make that function work. I looked around and couldn't
    find that option
    >
    > Can anyone help me?
    >
    > A reference to how I use it:
    http://leyendarecords.com/biography.html
    > Theres a website I made for someone. If you check out
    that page, you can
    > see
    > that I have scrollbars and text inside it. A friend made
    that template on
    > Dreamweaver and I did everything on Notepad. Exactly how
    do I do that?
    >

  • My JSP page takes a lot of time to go to next JSP

    Hi All,
    I have a JSP page which loads dynamically depending on what the user enters. This page works fine for items upto 20-30 but as the number of items increases, my JSP page takes a lot of time to go to the next one. Heres what my JSP looks like:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/rswtags.tld" prefix="rsw" %>
    <jsp:useBean id="dateFormatIntl" scope="session" type="java.lang.String"/>
    <html>
    <head>
    <title><bean:message key="title.application"/> - <bean:message key='header.return_to_vendor_detail'/></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <%@ include file="rsw_functions.jsp" %>
    <%@ include file="shipment_rtv_functions.jsp" %>
    <script language="JavaScript" type="text/javascript">
    var page = "<bean:message key='header.return_to_vendor_detail'/>"
    var rtvEntryArray = new Array();
    var totalAmtString;
    function setFormValues()
    var rtvEntriesString = "";
    for (var v = 0; v < rtvEntryArray.length; v++)
    var rtvEntryString = rtvEntryArray[v].itemNumber + "~"
    + rtvEntryArray[v].itemQty + "~"
    <rsw:display displayElementName="rtv_reason">
    + rtvEntryArray[v].inventoryStatusCode + "~"
    + rtvEntryArray[v].inventoryStatusName + "~"
    + rtvEntryArray[v].reasonCodeId + "~"
    + rtvEntryArray[v].reasonCodeName + "~" +
    </rsw:display>
    <rsw:display_false displayElementName="rtv_reason">
    + " " + "~"
    + " " + "~"
    + " " + "~"
    + " " + "~" +
    </rsw:display_false>
    rtvEntryArray[v].valid;
    rtvEntriesString = rtvEntriesString + rtvEntryString + ";";
    document.rtvVsatShipmentForm.rtvEntriesString.value = rtvEntriesString;
    function writeItem(itemNumber, itemQty, inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName)
    if(!acquireFakeLock()) return;
    if (!arrayContainsItem(itemNumber, reasonCodeId))
    addEntry(itemNumber, itemQty, inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName, "true");
    else
    setItemQtyReasonArray(itemNumber, itemQty, reasonCodeId, reasonCodeName);
    writeTable(false);
         releaseFakeLock();
    function handleApply()
    <%-- change this if 'please select...' value changes to something other than a space --%>
    if (document.rtvVsatShipmentForm.applyReasonCode.value == " ")
    alert('<bean:message key="error.must_enter_a_reason" />');
    return;
    if (checkQuantityGreaterThenZero(document.rtvVsatShipmentForm.applyQty))
    formatQuantity(document.rtvVsatShipmentForm.applyQty);
    if (document.rtvVsatShipmentForm.applyId.value == '')
    alert("<bean:message key='error.no_dsd_order_entries' />");
    document.rtvVsatShipmentForm.applyId.focus();
    return;
    writeItem(document.rtvVsatShipmentForm.applyId.value,
    document.rtvVsatShipmentForm.applyQty.value
    <rsw:display displayElementName="rtv_reason">,
    document.rtvVsatShipmentForm.selectedInventoryStatus.options[document.rtvVsatShipmentForm.selectedInventoryStatus.selectedIndex].value,
    document.rtvVsatShipmentForm.selectedInventoryStatus.options[document.rtvVsatShipmentForm.selectedInventoryStatus.selectedIndex].text,
    document.rtvVsatShipmentForm.applyReasonCode.options[document.rtvVsatShipmentForm.applyReasonCode.selectedIndex].value,
    document.rtvVsatShipmentForm.applyReasonCode.options[document.rtvVsatShipmentForm.applyReasonCode.selectedIndex].text
    </rsw:display>
    document.rtvVsatShipmentForm.applyId.value = '';
    document.rtvVsatShipmentForm.applyQty.value = 1;
    document.rtvVsatShipmentForm.applyId.focus();
    <rsw:display displayElementName="rtv_reason">
    document.rtvVsatShipmentForm.selectedInventoryStatus.value
    = document.rtvVsatShipmentForm.selectedInventoryStatus.options[0].value;
    selectFromInvStatus();
    </rsw:display>
    totalAmounts();
    function clearFields()
    document.rtvVsatShipmentForm.returnAuth.value = "";
    document.rtvVsatShipmentForm.applyId.value = "";
    document.rtvVsatShipmentForm.applyQty.value = "1";
    document.rtvVsatShipmentForm.applyId.focus();
    document.rtvVsatShipmentForm.selectedInventoryStatus.value = document.rtvVsatShipmentForm.selectedInventoryStatus.options[0].value;
    selectFromInvStatus();
    function getCurrentOptions()
    if (document.rtvVsatShipmentForm.selectedInventoryStatus.value == "AVAILABLE")
    return availableOptions;
    return unavailableOptions;
    function populateDropDown(dropdownField)
         var currentOptions;
    currentOptions = getCurrentOptions();     
    dropdownField.options.length = 0;
    var oPleaseSelectOption = document.createElement("OPTION");
    oPleaseSelectOption.value = " ";
    oPleaseSelectOption.text = "<bean:message key="label.please_select"/>";
    dropdownField.options.add(oPleaseSelectOption);
    for (var i = 0; i < currentOptions.length; i++)
    dropdownField.options.add(currentOptions);
    function selectFromInvStatus()
    populateDropDown(document.rtvVsatShipmentForm.applyReasonCode);
    function initialize()
    document.rtvVsatShipmentForm.applyId.focus();
    createReasonOptionObjects();
    selectFromInvStatus();
    <logic:equal name="rtvVsatShipmentForm" property="returnAuthRequired" value="true">
    if (document.rtvVsatShipmentForm.returnAuth.value == '')
    document.rtvVsatShipmentForm.returnAuth.focus();
    </logic:equal>
    createEntryArray(document.rtvVsatShipmentForm.rtvEntriesString.value, false);
    <rsw:display displayElementName="rtv_reason">
    </rsw:display>
    totalAmounts();
    function next()
    setFormValues();
    if (document.rtvVsatShipmentForm.rtvEntriesString.value == '')
    alert("<bean:message key='error.no_dsd_order_entries' />");
    document.rtvVsatShipmentForm.applyId.focus();
    return;
    <logic:equal name="rtvVsatShipmentForm" property="returnAuthRequired" value="true">
    if (document.rtvVsatShipmentForm.returnAuth.value == '')
    alert("<bean:message key='error.return_auth_required' />");
    document.rtvVsatShipmentForm.returnAuth.focus();
    return;
    </logic:equal>
    if (!validateTextAreaLength(document.rtvVsatShipmentForm.comments,
    "<bean:message key='label.comments'/>", 255))
    return false;
    document.rtvVsatShipmentForm.submit();
    function doBack()
    backLink.href = "<bean:write name='rtvVsatShipmentForm' property='previousAction' />";
    document.rtvVsatShipmentForm.action=backLink.href;
    document.rtvVsatShipmentForm.submit();
    function handleItemLookup()
    window.open(itemLookupLink.href + "?actionToReturnTo=shipment_rtv_vsat_create&fieldToPopulateUponReturn=applyId","RSWLookupWindow");
    </script>
    <jsp:include page="/elements/top_banner2.jsp" flush="true"/>
    <!-- Beginning of Page Body -->
    <body onload="initialize();displayErrors();">
    <form:form action="shipment_rtv_vsat_to_summary.do" style="margin-top:0">
    <input type="hidden" name="fieldToPopulateUponReturn" value="applyId">
    <span style="display:none">
    <html:link styleId="itemLookupLink" href="item_lookup_start.do"></html:link>
    <html:link styleId="backLink" href="dummyLink"></html:link>
    </span>
    <html:hidden property="rtvEntriesString"/>
    <form:hidden property="fromLocationId" />
    <table width="700" class="bgColor" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell" rowspan="3"></td>
    <td class="bodymd" width="125">
    <bean:message key="label.rtv_number" />:
    </td>
    <td class="bodymd">
    <bean:write name="rtvVsatShipmentForm" property="rtvNumber" />
    </td>
    <td class="bodymd">
    </td>
    <td class="bodymd">
    <bean:message key= "label.date" />: 
    </td>
    <td class="bodymd" align="left">
    <bean:write name="rtvVsatShipmentForm" property="createDate"/>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    <td colspan="3"></td>
    <logic:equal name="dateFormatIntl" value="true">
    <td align="left" valign="top" class="bodymd">
    <span class="bodyxsm">(<bean:message key="label.date_format_string_intl"/>)</span>
    </td>
    </logic:equal>
    <logic:notEqual name="dateFormatIntl" value="true">
    <td>
    <span class="bodyxsm">(<bean:message key="label.date_format_string_us"/>)</span>
    </td>
    </logic:notEqual>
    </tr>
    <tr>
    <td class="bodymd">
    <bean:message key="label.status" />: 
    <td class="bodymd">
    <rsw:display displayElementName="rtv_status">
    <form:select property="selectedStatusCode" >
    <form:options name="rtvVsatShipmentForm" property="statusIds"
    labelProperty="statusNames" />
    </form:select>
    </rsw:display>
    <rsw:display_false displayElementName="rtv_status">
    <bean:write name="rtvNonVsatShipmentForm" property="selectedStatus.description" />
    </rsw:display_false>
    </td>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td class="bodymd">
    <bean:message key="label.ship_from_location" />:
    </td>
    <td class="bodymd" colspan="5">
    <bean:write name="rtvVsatShipmentForm" property="fromLocationId" />
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    <td class="bodymd">
    <bean:message key="label.supplier_name" />:
    </td>
    <td class="bodymd">
    <bean:write name="rtvVsatShipmentForm" property="supplierName" />
    </td>
    <td class="bodymd" width="125">
    <bean:message key="label.supplier_number" />: 
    </td>
    <td class="bodymd" colspan="3">
    <bean:write name="rtvVsatShipmentForm" property="supplierId" />
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    <td class="bodymd">
    <bean:message key="label.rtv_paid" />: 
    </td>
    <td class="bodymd" align="left">
    <form:select property="selectedPaymentStatusCode" >
    <form:options name="rtvVsatShipmentForm" property="paymentStatusIds"
    labelProperty="paymentStatusNames" />
    </form:select>
    </td>
    <td class="leadSpacerCell">
    </td>
    </tr>
    <%-- <tr>
    <td class="bodymd">
    <bean:message key="label.check_number" />: 
    </td>
    <td class="bodymd" align="left">
    <form:text name="rtvVsatShipmentForm" property="checkNumber" maxlength="12"/>
    </td>
    </tr>
    --%>
    </table>
    <table width="700" class="bgColor" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td colspan="3">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td class="bodymd">
    <bean:message key="label.return_authorization_no" />: 
    </td>
    <td class="bodymd" align="left">
    <form:text name="rtvVsatShipmentForm" property="returnAuth" maxlength="12"/>
    </td>
    <td class="leadSpacerCell">
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td class="bodymd" valign="top">
    <bean:message key="label.supplier_address" />
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td colspan="6">
    <table border="0">
    <tr>
    <td width="10" rowspan="4">
    </td>
    <td class="bodymd">
    <form:text property="addressLine1" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.city" />: 
    </td>
    <td colspan="3" class="bodymd">
    <form:text property="addressCity" style="width:200" />
    </td>
    </tr>
    <tr>
    <td class="bodymd">
    <form:text property="addressLine2" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.state_or_province" />: 
    </td>
    <td class="bodymd">
    <form:text property="addressStateOrProvince" style="width:80" />
    </td>
    <td class="bodymd">
    <bean:message key="label.postal_code" />: 
    </td>
    <td class="bodymd">
    <form:text property="addressPostalCode" style="width:80" />
    </td>
    </tr>
    <tr>
    <td class="bodymd">
    <form:text property="addressLine3" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.country" />: 
    </td>
    <td colspan="3" class="bodymd">
    <form:text property="addressCountry" style="width:200" />
    </td>
    </tr>
    </table>
    </td>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td class="bodymd" valign="top">
    <bean:message key="label.comments" />: 
    </td>
    <td>
    <form:textarea property="comments" cols="65" rows="3" onkeypress="limitKeyPress(this, 255)"/>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td colspan="3" class="horizontalLine">
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    </table>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="leadSpacerCell"></td>
    <td class="bodymdbold"><bean:message key='label.item'/>: </td>
    <td><form:text size="15" property="applyId"/>  </td>
    <td class="bodymdbold"><bean:message key='label.quantity'/>: </td>
    <td><form:text size="8" maxlength="8" property="applyQty" />  </td>
    <rsw:display displayElementName="rtv_reason">
    <td style="display:none" class="bodymdbold"><bean:message key='label.inventory_status'/>: </td>
    <td style="display:none">
    <form:select property="selectedInventoryStatus" onchange="selectFromInvStatus();">
    <form:options name="rtvVsatShipmentForm" property="inventoryStatusCodes"
    labelProperty="inventoryStatusDescriptions" />
    </form:select>
    </td>
    <td class="bodymdbold"><bean:message key='label.reason_code'/>: </td>
    <td>
    <select name="applyReasonCode">
    <%-- <logic:iterate name="rtvVsatShipmentForm" property="rtvReasons" id="reason">
    <option value="<bean:write name="reason" property="code"/>">
    <bean:write name="reason" property="description"/>
    </option>
    </logic:iterate>
    --%>
    </select>
    </td>
    </rsw:display>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td class=bodymd>
    <a class="genericLink" href="" onClick="handleItemLookup(); return false"><bean:message key='link.item'/></a>
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td colspan="9" align="left">
    <br>
    <input type="submit"
    value="<bean:message key='button.apply'/>"
    onClick="handleApply();return false;">  
    <input type="button" value="Clear" onclick="clearFields()";></td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="horizontalWhiteLine" colspan="10"></td>
    </tr>
    </table>
    <table class="bgColor" width="700" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td><rsw:errors/></td>
    </tr>
    </table>
    <div id="item_list_div">
    </div>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="bodymdbold" align="right" nowrap><div id="total_amt_div"></div></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td class="horizontalLine" colspan="3"></td>
    </tr>
    </table>
    <table cellpadding="0" cellspacing="0" border="0" width="700">
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td align="left">
    <input type="button" value="<bean:message key='button.next'/>"
    onclick="next();">
    <input type=button value="<bean:message key='button.back'/>"
    onclick="doBack();">
    <input type=button value="<bean:message key='button.cancel'/>"
    onclick="doSubmit('main', 'main.do');">
    </td>
    </tr>
    </table>
    </form:form>
    <div id="log"></div>
    </body>
    <!-- End of Page Body -->
    <jsp:include page="/elements/bottom_banner2.jsp" flush="true"/>
    <script language="JavaScript" type="text/javascript">
    function handleAction(retVal,position)
    if (retVal != null)
    var command = retVal["command"];
    if (command == "OK")
    updateArray(retVal["id"],
    formatQuantityFromVar(retVal["qty"]), true,
    <rsw:display displayElementName="rtv_reason">
    retVal["inventoryStatusCode"],
    retVal["inventoryStatusName"],
    retVal["reasonCode"],
    retVal["reasonDescription"],
    </rsw:display>
    <rsw:display_false displayElementName="rtv_reason">
    null, null, null, null,
    </rsw:display_false>
    position);
    totalAmounts();
    if (command == "Remove")
    deleteRow(position);
    writeTable(false);
    totalAmounts();
    function showEditWindow(sku, qty,
    <rsw:display displayElementName="rtv_reason">
    inventoryStatusCode, reasonCode,
    </rsw:display>
    position)
    if(!acquireFakeLock()) return;
    var elements = editWindowDiv.document.all;
    elements("editWindowId").value=sku;
    elements("editWindowQty").value = qty;
    <rsw:display displayElementName="rtv_reason">
    elements("editWindowInventoryStatusCode").value = inventoryStatusCode;
    elements("hiddenReasonCode").value = reasonCode;
    </rsw:display>
    var retVal;
    // if (IE6)
    retVal = window.showModalDialog("popup.jsp", editWindowDiv,
    "dialogWidth:335px;dialogHeight:230px;scroll:no;status:no;unadorned:no");
    else
    retVal = window.showModalDialog("javascript:document.write(window.dialogArguments.innerHTML);editWindowInit();",editWindowDiv,
    "dialogWidth:335px;dialogHeight:230px;scroll:no;status:no;unadorned:no");
    handleAction(retVal,position);
         releaseFakeLock();
    function updateArray(itemNumber, itemQty, fromEditWindow,
    inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName, position, supplierCost)
    if (((rtvEntryArray[position].reasonCodeId != reasonCodeId)
    && arrayContainsItem(itemNumber, reasonCodeId))
         ||
         ((rtvEntryArray[position].itemNumber != itemNumber)
         && arrayContainsItemsExceptPos(itemNumber, reasonCodeId, position)))
    deleteRow(position);
    setItemQtyReasonArray(itemNumber, itemQty, reasonCodeId, reasonCodeName, supplierCost);
    else
    var rtvEntry = new Object();
    rtvEntry.itemNumber = itemNumber;
    rtvEntry.itemQty = itemQty;
    rtvEntry.inventoryStatusCode = inventoryStatusCode;
    rtvEntry.inventoryStatusName = inventoryStatusName;
    rtvEntry.reasonCodeId = reasonCodeId;
    rtvEntry.reasonCodeName = reasonCodeName;
    rtvEntry.supplierCost = supplierCost;
    rtvEntry.valid = rtvEntryArray[position].valid;
    rtvEntryArray[position] = rtvEntry;
    writeTable();
    </script>
    <div id="editWindowDiv" style="display:none">
    <html>
    <head>
    <style type="text/css">
    .titleTxt { font-size: 12 ; font-style: italic ; font-weight: bold; color: white ; font-family: arial }
    .bodymd {color: #000000; font-family: arial; font-size: 10pt; text-decoration: none}
    .bodymdbold {color: #000000; font-family: arial; font-size: 10pt; text-decoration: none; font-weight: bold}
    .bgColor { background-color: #efefef }
    </style>
    <title><bean:message key="title.edit_window" /></title>
    <script language="JavaScript">
    function handleOk()
    if (checkQuantityGreaterThenZero(document.editPopupForm.editWindowQty))
    var returnArray = new Array();
    returnArray["id"] = document.editPopupForm.editWindowId.value;
    returnArray["qty"] = document.editPopupForm.editWindowQty.value;
    <rsw:display displayElementName="rtv_reason">
    returnArray["inventoryStatusCode"] = document.editPopupForm.editWindowInventoryStatusCode.options[document.editPopupForm.editWindowInventoryStatusCode.selectedIndex].value;
    returnArray["inventoryStatusName"] = document.editPopupForm.editWindowInventoryStatusCode.options[document.editPopupForm.editWindowInventoryStatusCode.selectedIndex].text;
    returnArray["reasonCode"] = document.editPopupForm.editWindowReasonCode.options[document.editPopupForm.editWindowReasonCode.selectedIndex].value;
    returnArray["reasonDescription"] = document.editPopupForm.editWindowReasonCode.options[document.editPopupForm.editWindowReasonCode.selectedIndex].text;
    </rsw:display>
    returnArray["command"] = "OK";
    window.returnValue = returnArray;
    window.close();
    function handleCancel()
    window.close();
    function handleRemove()
    var returnArray = new Array();
    returnArray["command"] = "Remove";
    window.returnValue = returnArray;
    window.close();
    function init()
    document.title = "<bean:message key="title.edit_window" />";
    document.editPopupForm.editWindowQty.focus();
    <rsw:display displayElementName="rtv_reason">
    createReasonOptionObjects();
    setReasonOptions();
    document.editPopupForm.editWindowReasonCode.value = document.editPopupForm.hiddenReasonCode.value;
    </rsw:display>
    <rsw:display displayElementName="rtv_reason">
    function setReasonOptions()
    var currentOptions;
    document.editPopupForm.editWindowReasonCode.options.length = 0;
    if (document.editPopupForm.editWindowInventoryStatusCode.value == "AVAILABLE")
    currentOptions = availableOptions;
    else
    currentOptions = unavailableOptions;
    for (var i = 0; i < currentOptions.length; i++)
    document.editPopupForm.editWindowReasonCode.options.add(currentOptions[i]);
    </rsw:display>
    var availableOptions = new Array();
    var unavailableOptions = new Array();
    <rsw:display displayElementName="rtv_reason">
    function createReasonOptionObjects()
    var oOption;
    <logic:iterate name="rtvVsatShipmentForm" property="availableInventoryStatusReasons" id="reason">
    oOption = document.createElement("OPTION");
    oOption.value = "<bean:write name="reason" property="code"/>";
    oOption.text = "<bean:write name="reason" property="description"/>";
    availableOptions[availableOptions.length] = oOption;
    </logic:iterate>
    <logic:iterate name="rtvVsatShipmentForm" property="unavailableInventoryStatusReasons" id="reason">
    oOption = document.createElement("OPTION");
    oOption.value = "<bean:write name="reason" property="code"/>";
    oOption.text = "<bean:write name="reason" property="description"/>";
    unavailableOptions[unavailableOptions.length] = oOption;
    </logic:iterate>
    </rsw:display>
    </script>
    <%@ include file="rsw_functions.jsp" %>
    </head>
    <body leftmargin="0" topmargin="0" style="border:4px ridge lightgrey">
    <span style="margin-top:0;margin-left:0,margin-bottom:0;margin-right:0">
    <table cellspacing="0" cellpadding="0" border="0" bordercolor="#000000" width="330">
    <tr>
    <td bgcolor="#ff9999" width="100%" height="1" colspan="2"></td>
    </tr>
    <tr>
    <td bgcolor="#ff0000" height="15" align="left"><span
    class=titleTxt>  <bean:message key="label.edit" /> </span></td>
    <td bgcolor="#ff0000" height="15" align="right"><span
    class="titleTxt"><bean:message key="label.application_title" />   </span></td>
    </tr>
    <tr>
    <td bgcolor="#000000" width="100%" height="1" colspan="2"></td>
    </tr>
    </table>
    </span>
    <form name="editPopupForm" style="margin-top:0;margin-left:0,margin-bottom:0;margin-right:0"
    onsubmit="handleOk();return false;">
    <input type="hidden" name="editWindowPosition" value="">
    <input type="hidden" name="hiddenReasonCode" value="">
    <table cellspacing='0' class='bgColor' cellpadding='0' border='0' width='330'>
    <tr><td> </td></tr>
    <tr>
    <td class='bodymd'>  <bean:message key='label.item'/>:</td>
    <td class='bodymd'><input type="text" name="editWindowId" value="[id]" ></td>
    </tr>
    <tr>
    <!--Start RQST 34502 SIR 61007-->
    <!--td class='bodymd'--><!--  --><!--bean:message key='label.count_quantity'/--><!--:--><!--/td-->
    <td class='bodymd'>  <bean:message key='label.return_quantity'/>:</td>
    <!--End RQST 34502 SIR 61007-->
    <td class='bodymd'><input type="text" maxlength="8" name="editWindowQty" value="[qty]"></td>
    </tr>
    <rsw:display displayElementName="rtv_reason">
    <tr>
    <td style="display:none" class='bodymd'>  <bean:message key='label.inventory_status'/>:</td>
    <td style="display:none" class='bodymd'><select name="editWindowInventoryStatusCode" onchange="setReasonOptions();">
    <option value="AVAILABLE"><bean:message key="label.available"/></option>
    <option value="UNAVAILABLE"><bean:message key="label.unavailable"/></option>
    </select></td>
    </tr>
    <tr>
    <td class='bodymd'>  <bean:message key='label.reason_code'/>:</td>
    <td class='bodymd'><select name="editWindowReasonCode">
    <logic:iterate name="rtvVsatShipmentForm" property="rtvReasons" id="editWindowReason">
    <option value="<bean:write name="editWindowReason" property="code"/>">
    <bean:write name="editWindowReason"

    God Lord! Does anyone else here write JSPs that look like that?
    If I had to maintain that I would shoot myself straight in the temple.
    Sorry, I don't have answer to your question, I just had to say that.
    Do you like your job?

  • Certain images not showing up in Design View

    Hi,
    I recently switched from Dreamweaver CS5.5 to CS6 with Creative Cloud but now some of my images aren't showing up in Design View. Everything is fine in Live View.
    Any help would be gratefully received. I have attached the CSS & the HTML as well as two screen shots of Design View and Live View.
    The CSS is:
    /* Getting the new tags to behave */
    article, aside, audio,
    canvas, command,
    datalist, details,
    embed,
    figcaption, figure, footer,
    header, hgroup,
    keygen,
    meter,
    nav,
    output,
    progress,
    section, source,
    video {
              display:block;
    mark,
    rp, rt, ruby,
    summary,
    time {
              display:inline;
    /* Global properties ======================================================== */
    body {
              background-color:#000;
              background-repeat:no-repeat;
              background-position:center top;
              background-image:url(../images/body-bg.jpg);
              background-attachment:fixed;
              font-family:Arial, Helvetica, sans-serif;
              font-size:100%;
              line-height:1em;
              color:#949595;
    html {
              min-width:967px;
    html,
    body {
              height:100%;
    /* Global Structure ============================================================= */
    #main {
              margin:0 auto;
              width:967px;
              font-size:.75em;
              /* Header */
              header {
                        position:relative;
              /* Sidebar */
              aside {
                        width:227px;
                        float:left;
                        margin-right:32px;
                        padding-bottom:33px;
              /* Content */
              section#content {
                        float:left;
                        width:675px;
                        padding-top:6px;
              /* Footer */
              footer {
                        padding-left:3px;
                        background:url(../images/border-left.png) repeat-y left top;
                        color:#535353;
    /* Left & Right alignment */
    .fleft {
              float:left;
    .fright {
              float:right;
    .clear {
              clear:both;
    .col-1,
    .col-2,
    .col-3 {
              float:left;
    .alignright {
              text-align:right;
    .aligncenter {
              text-align:center;
    .wrapper {
              width:100%;
              overflow:hidden;
    /*----- form defaults -----*/
    input,
    select,
    textarea {
              font-family:Arial, Helvetica, sans-serif;
              font-size:1em;
              vertical-align:middle;
              font-weight:normal;
    fieldset {
              border:0;
    /*----- lists -----*/
    .banners {
              width:100%;
              overflow:hidden;
              padding-bottom:15px;
              .banners li {
                        float:left;
                        padding-left:4px;
    .list li {
              font-size:1.17em;
              padding:0 0 19px 22px;
              background:url(../images/marker.png) no-repeat left 2px;
    .list li.last {
              padding-bottom:0;
    .list1 li {
              width:100%;
              overflow:hidden;
              padding-bottom:27px;
              .list1 li img {
                        float:left;
                        margin-right:22px;
    .column-list {
              width:100%;
              overflow:hidden;
              .column-list li {
              float:left;
              width:200px;
              margin-right:27px;
              .column-list li.last {
                        margin:0;
                        .column-list li img {
                                  margin-bottom:18px;
    .events-list {
              width:100%;
              overflow:hidden;
              .events-list li {
                        float:left;
                        line-height:1.5em;
                        width:320px;
                        margin-right:25px;
                        padding-bottom:20px;
              .events-list li.alt {
                        margin-right:0;
                        .events-list li img {
                                  float:left;
                                  margin-right:11px;
    .testimonials li {
              line-height:1.5em;
              padding-bottom:18px;
              .testimonials li cite {
                        font-style:normal;
              .testimonials li h5 {
                        text-align:right;
                        margin:0;
                        padding-top:6px;
    /*----- other -----*/
    .img-indent {
              margin:0 0 20px 0;
    .extra-wrap {
              overflow:hidden;
    p {
              margin-bottom:16px;
              line-height:1.5em;
    dl {
              line-height:1.5em;
              dl dt {
                        font-weight:bold;
                        color:#4b4b4b;
                        margin-bottom:6px;
              dl dd {
                        padding-bottom:20px;
              dl dd.last {
                        padding:0;
              .address dd {
                        clear:both;
                        .address dd span {
                                  float:left;
                                  width:96px;
                        .address dd a {
                                  font-size:1.17em;
    address {
              font-style:normal;
              line-height:1.5em;
              address a {
                        font-size:1.17em;
              address span {
                        float:left;
                        width:103px;
    /*----- txt, links, lines, titles -----*/
    a {
              color:#12b7f4;
              outline:none;
    a:hover {
              text-decoration:none;
    h1 {
              font-size:20px;
              line-height:1em;
              font-weight:normal;
              padding:55px 0 0 3px;
              h1 a {
                        color:#fff;
                        text-decoration:none;
              h1 strong {
                        font-size:55px;
                        line-height:1.2em;
                        letter-spacing:-2px;
                        top:-37px;
                        position:relative;
    h2 {
              font-size:1.917em;
              line-height:1.2em;
              letter-spacing:-1px;
              font-weight:normal;
    h5 {
              font-size:1em;
              line-height:1.5em;
              color:#4b4b4b;
              margin-bottom:6px;
              h5 a {
                        color:#4b4b4b;
    .txt1 {
              font-size:1.17em;
    .rss {
              position:absolute;
              right:18px;
              top:18px;
              background:url(../images/rss.gif) no-repeat right top;
              padding:10px 45px 8px 0;
              color:#7d7d7d;
              text-decoration:none;
              font-size:1.17em;
              text-transform:uppercase;
    .rss:hover {
              text-decoration:underline;
    .link1 {
              display:block;
              position:relative;
              float:left;
              background-repeat:no-repeat;
              background-position:right top;
              background-image:url(../images/link1-right.png);
              color:#fff;
              line-height:1.2em;
              text-transform:uppercase;
              text-decoration:none;
              cursor:pointer;
              .link1 span {
                        display:block;
                        float:left;
                        background-repeat:no-repeat;
                        background-position:left top;
                        background-image:url(../images/link1-left.png);
                        padding:0 10px;
              .link1 b {
                        background-repeat:repeat-x;
                        background-position:left top;
                        background-image:url(../images/link1-bgd.png);
                        padding:8px 7px 9px 7px;
                        display:block;
                        float:left;
              .link1:hover b {
                        text-decoration:underline;
    .link2 {
              width:70px;
              height:30px;
              text-align:center;
              text-transform:uppercase;
              color:#fff;
              text-decoration:none;
              display:block;
              float:right;
              font-weight:bold;
              overflow:hidden;
              line-height:2.6em;
              background-repeat:no-repeat;
              background-position:left top;
              background:url(../images/link2-bg1.png);
    .link2:hover {
              text-decoration:underline;
    /*==================boxes====================*/
    .nav-box {
              width:100%;
              position:relative;
              padding-bottom:11px;
              margin-top:-23px;
              .nav-box .left {
                        padding-left:20px;
                        background:url(../images/nav-box-left.png) no-repeat left top;
              .nav-box .right {
                        padding-right:20px;
                        background:url(../images/nav-box-right.png) no-repeat right top;
              .nav-box nav {
                        height:72px;
                        background:url(../images/nav-box-tail.png) repeat-x left top;
              .nav-box nav ul {
                        padding-top:13px;
                        width:100%;
                        overflow:hidden;
                        .nav-box nav ul li {
                                  float:left;
                                  font-size:1.583em;
                                  line-height:1.2em;
                                  letter-spacing:-1px;
                                  .nav-box nav ul li a {
                                            color:#535353;
                                            display:block;
                                            float:left;
                                            cursor:pointer;
                                            background:url(../images/spacer.gif);
                                            text-decoration:none;
                                            text-shadow:#fff 1px 1px;
                                  .nav-box nav ul li a:hover,
                                  .nav-box nav ul li a.active {
                                            color:#fff;
                                            background:url(../images/nav-act-tail.gif) repeat-x left top;
                                            text-shadow:#fff 0 0;
                                            .nav-box nav ul li a span {
                                                      display:block;
                                                      float:left;
                                                      background:url(../images/spacer.gif);
                                            .nav-box nav ul li a:hover span,
                                            .nav-box nav ul li a.active span {
                                                      background:url(../images/nav-act-left.gif) no-repeat left top;
                                            .nav-box nav ul li a b {
                                                      display:block;
                                                      float:left;
                                                      background:url(../images/spacer.gif);
                                                      padding:10px 23px 14px 23px;
                                            .nav-box nav ul li a:hover b,
                                            .nav-box nav ul li a.active b {
                                                      background:url(../images/nav-act-right.gif) no-repeat right top;
    .box {
              width:237px;
              color:#fff;
              .box .top {
                        background-repeat:no-repeat;
                        background-position:left top;
                        background-image:url(../images/box-top.png);
                        height:14px;
                        overflow:hidden;
                        font-size:0;
                        line-height:0;
              .box .bot {
                        background-repeat:no-repeat;
                        background-position:left top;
                        background-image:url(../images/box-bot.png);
                        height:15px;
                        overflow:hidden;
                        font-size:0;
                        line-height:0;
              .box .xcontent {
                        background-repeat:repeat-y;
                        background-position:left top;
                        background-image:url(../images/box-tail.gif);
                        .box .xcontent .bg {
                                  min-height:137px;
                                  height:auto!important;
                                  height:137px;
                                  background-repeat:no-repeat;
                                  background-position:left top;
                                  background-image:url(../images/box-bg.jpg);
              .box .inner {
                        padding:2px 35px 0 26px;
              .box h2 {
                        font-size:2.417em;
                        font-weight:bold;
                        margin-bottom:4px;
                        text-shadow:#0b97e4 1px 1px;
              .box p {
                        line-height:1.583em;
                        margin-bottom:9px;
    /* box style1 */
    .box.style1 .top {background-image:url(../images/box-top1.png);}
    .box.style1 .bot {background-image:url(../images/box-bot1.png);}
    .box.style1 .xcontent {background-image:url(../images/box-tail1.gif);}
    .box.style1 .xcontent .bg {background-image:url(../images/box-bg1.jpg);}
    .box.style1 .link1 {background-image:url(../images/link1-right1.png);}
    .box.style1 .link1 span {background-image:url(../images/link1-left1.png);}
    .box.style1 .link1 b {background-image:url(../images/link1-bgd1.png);}
    .box.style1 h2 { text-shadow:#78b10b 1px 1px;}
    /* box style2 */
    .box.style2 .top {background-image:url(../images/box-top2.png);}
    .box.style2 .bot {background-image:url(../images/box-bot2.png);}
    .box.style2 .xcontent {background-image:url(../images/box-tail2.gif);}
    .box.style2 .xcontent .bg {background-image:url(../images/box-bg2.jpg);}
    .box.style2 .link1 {background-image:url(../images/link1-right2.png);}
    .box.style2 .link1 span {background-image:url(../images/link1-left2.png);}
    .box.style2 .link1 b {background-image:url(../images/link1-bgd2.png);}
    .box.style2 h2 { text-shadow:#ff6900 1px 1px;}
    /* box style3 */
    .box.style3 .top {background-image:url(../images/box-top3.png);}
    .box.style3 .bot {background-image:url(../images/box-bot3.png);}
    .box.style3 .xcontent {background-image:url(../images/box-tail3.gif);}
    .box.style3 .xcontent .bg {background-image:url(../images/box-bg3.jpg);}
    .box.style3 .link1 {background-image:url(../images/link1-right3.png);}
    .box.style3 .link1 span {background-image:url(../images/link1-left3.png);}
    .box.style3 .link1 b {background-image:url(../images/link1-bgd3.png);}
    .box.style3 h2 { text-shadow:#ffad07 1px 1px;}
    .box1 {
              width:227px;
              .box1 .top {
                        height:49px;
                        overflow:hidden;
                        background:url(../images/box1-top.png) no-repeat left top;
              .box1 .bot {
                        height:17px;
                        font-size:0;
                        line-height:0;
                        overflow:hidden;
                        background:url(../images/box1-bot.gif) no-repeat left top;
              .main-box .box1 .border-left {
                        padding-left:1px;
                        background:url(../images/box1-border.gif) repeat-y left top;
              .main-box .box1 .border-right {
                        padding-right:1px;
                        background:url(../images/box1-border.gif) repeat-y right top;
              .main-box .box1 .xcontent {
                        width:100%;
                        min-height:261px;
                        height:auto!important;
                        height:261px;
                        padding:0;
                        background:url(../images/box1-tail.gif) repeat-x left top #f8f8f8;
              .main-box .box1 .inner {
                        padding:12px 14px 20px 18px;
              .box1 h2 {
                        font-weight:bold;
                        color:#fff;
                        padding:10px 0 0 18px;
    .box2 {
              width:227px;
              .box2 .top {
                        height:15px;
                        overflow:hidden;
                        background:url(../images/box2-top.png) no-repeat left top;
              .box2 .bot {
                        height:16px;
                        font-size:0;
                        line-height:0;
                        overflow:hidden;
                        background:url(../images/box2-bot.gif) no-repeat left top;
              .main-box .box2 .border-left {
                        padding-left:1px;
                        background:url(../images/box2-border.gif) repeat-y left top;
              .main-box .box2 .border-right {
                        padding-right:1px;
                        background:url(../images/box2-border.gif) repeat-y right top;
              .main-box .box2 .xcontent {
                        width:100%;
                        min-height:113px;
                        height:auto!important;
                        height:113px;
                        padding:0;
                        background:url(../images/box2-tail.gif) repeat-x left top #f6f6f6;
              .main-box .box2 .inner {
                        padding:0 14px 20px 18px;
              .box2 h2 {
                        font-weight:bold;
                        color:#3c3c3c;
                        margin-bottom:16px;
    .main-box {
              width:100%;
              .main-box .left-top-corner {
                        background:url(../images/left-top-corner.png) no-repeat left top;
                        height:18px;
                        padding-left:18px;
              .main-box .right-top-corner {
                        background:url(../images/right-top-corner.png) no-repeat right top;
                        height:18px;
                        padding-right:18px;
              .main-box .border-top {
                        background:url(../images/border-top.png) left top repeat-x;
                        height:18px;
                        font-size:0;
                        line-height:0;
                        width:100%;
              .main-box .border-left {
                        background:url(../images/border-left.png) left top repeat-y;
                        padding-left:3px;
              .main-box .border-right {
                        background:url(../images/border-right.png) right top repeat-y;
                        padding-right:3px;
              .main-box .xcontent {
                        background:#fff;
                        padding:0 2px;
              .main-box .tail {
                        background:url(../images/main-box-tail.gif) repeat-x left top;
                        width:100%;
              .main-box .inner {
                        padding:3px 15px 0 8px;
              .main-box .inner1 {
                        padding:3px 8px 0 25px;
                        .main-box .inner1 aside {
                                  margin:0;
                        .main-box .inner1 #content {
                                  margin-right:32px;
                                  width:665px;
              .main-box .inner2 {
                        padding:3px 25px 35px 25px;
                        .main-box .inner2 #content {
                                  width:auto;
                                  float:none;
    /*===== content =====*/
    #content h2 {
              color:#3e3e3e;
              letter-spacing:0;
              margin-bottom:16px;
    #content .indent {
              padding-bottom:60px;
    #content .link2 {
              background-image:url(../images/link2-bg2.png);
              float:left;
    /*===== Sidebar =====*/
    aside .indent {
              margin-bottom:20px;
    /*===== footer =====*/
    footer .right {
              padding-right:3px;
              background:url(../images/border-right.png) repeat-y right top;
    footer .tail {
              padding:17px 0 11px 27px;
              background-color:#2d2d2d;
    footer .line-ver {
              background:url(../images/divider.gif) repeat-y 210px 0;
              width:100%;
              overflow:hidden;
    footer .fleft a {
              color:#535353;
              text-decoration:none;
    footer .fleft a:hover {
              text-decoration:underline;
    footer .fleft {
              padding-bottom:8px;
              footer .fleft ul {
                        padding:8px 0 3px 0;
                        footer .fleft ul li {
                                  display:inline;
    footer .fright {
              padding:0 29px 0 0;
              text-align:right;
              footer .fright a {
                        color:#12b7f4;
              footer .fright ul {
                        padding:8px 0 5px 0;
                        footer .fright ul li {
                                  display:inline;
                                  padding-right:15px;
                                  margin-right:12px;
                                  background:url(../images/divider1.gif) no-repeat right 3px;
                                  footer .fright ul li a {
                                            text-decoration:none;
                                            color:#535353;
                                  footer .fright ul li a:hover,
                                  footer .fright ul li a.active {
                                            color:#c4c4c4;
                                            text-decoration:underline;
                        footer .fright ul li.last {
                                  background:none;
                                  padding:0;
                                  margin:0;
    /*----- forms -----*/
    #subscribe-form .rowElem {
              width:100%;
              overflow:hidden;
    #subscribe-form span {
              display:block;
              width:193px;
              height:26px;
              margin-bottom:6px;
              background:url(../images/input-bg.png) no-repeat left top;
    #subscribe-form input {
              background:none;
              border:0;
              line-height:1.2em;
              vertical-align:top;
              margin:5px 0 0 10px;
              color:#8c8d8d;
              width:173px;
    #subscribe-form a.fleft {
              color:#4b4b4b;
              font-weight:bold;
              position:relative;
              left:10px;
              top:7px;
    /* The Nivo Slider styles */
    #slider_box{ width:946px; height:370px; margin-top:-3px; margin-bottom:15px;background:url(../images/bg_img.png) 0 0 no-repeat; padding:21px 0 0 21px}
    #slider{ position:relative; width:925px; height:348px; z-index:88;overflow:hidden;}
    /* If an image is wrapped in a link */
    .nivoSlider a.nivo-imageLink {position:absolute;top:0px;left:0px;width:100%;height:100%;border:0;padding:0;          margin:0;z-index:60;display:none;}
    /* The slices in the Slider */
    .nivo-slice {display:block;          position:absolute;z-index:50;height:100%;}
    /* Direction nav styles (e.g. Next & Prev) */
    .nivo-directionNav a {          position:absolute; bottom:-34px;          z-index:99;          cursor:pointer;text-indent:-5000px; width:30px; height:30px;  display:block;}
    .nivo-prevNav { right:135px; background:url(../images/marker_left.gif) no-repeat}
    .nivo-prevNav:hover{ background:url(../images/marker_left_active.gif) no-repeat}
    .nivo-nextNav {right:10px; background:url(../images/marker_right.gif) no-repeat}
    .nivo-nextNav:hover{ background:url(../images/marker_right_active.gif) no-repeat}
    /* Control nav styles (e.g. 1,2,3...) */
    .nivo-controlNav{ position: absolute;z-index:99; right:14px; bottom:21px;}
    .nivo-controlNav a {position:relative;z-index:99;cursor:pointer; text-indent:-5000px; width:16px; height:16px; float:left; margin-right:6px; background:url(../images/buttons.png) right 0 no-repeat}
    .nivo-controlNav a.active { background-position:left}
    /* Caption styles */
    .nivo-caption { padding-top:77px; height:270px; width:345px;position:absolute; top:0px; right:20px; color:#fff; z-index:99;}
    .nivo-caption .box{ display:inline-block;background:url(../images/box.png) no-repeat; font:24px Arial, Helvetica, sans-serif; color:#fff; line-height:30px; text-align:center; font-weight:bold; width:83px; margin-right:10px;}
    .nivo-caption .text1{ font:36px Arial, Helvetica, sans-serif; color:#39c0f8; font-weight:bold; display:inline-block; line-height:1.2em; margin-top:-7px;}
    .nivo-caption .text2{ font:48px Arial, Helvetica, sans-serif; color:#fff; font-weight:bold; display:block; line-height:1.2em; margin-top:-10px; letter-spacing:-2px;}
    .nivo-caption p{ font-size:12px; color:#fff; line-height:14px; font-weight:bold; padding-top:8px;}
    .nivo-caption a{ display:inline-block; position:absolute; left:0; bottom:60px; background:url(../images/button-bg.png) 0 0 no-repeat; font:40px Arial, Helvetica, sans-serif; line-height:60px; padding-bottom:3px; text-align:center; width:194px; color:#fff; text-decoration:none;  letter-spacing:-2px;}
    .nivo-caption a:hover{ background-position:bottom}
    .color1 p{ color:#454545}
    .nivo-caption .color1 .text1{ font-size:30px; display:block; color:#454545; margin-top:0}
    .nivo-caption .color1 .text2{ color:#3b3b3b; display:inline-block; letter-spacing:-3px}
    .nivo-caption .color1 .box{ margin-right:0px; margin-top:7px; margin-left:7px}
    #contacts-form .rowElem {
              height:40px;
              #contacts-form .rowElem span {
                        display:block;
                        width:300px;
                        height:26px;
                        margin-bottom:6px;
                        background:url(../images/input-bg_2.png) no-repeat left top;
    #contacts-form input {
              background:none;
              border:0;
              line-height:1.2em;
              vertical-align:top;
              margin:5px 0 0 10px;
              color:#8c8d8d;
              width:300px;
    #contacts-form .rowElem1 span {
              display:block;
              width:300px;
              height:175px;
              margin-bottom:21px;
              background:url(../images/textarea-bg.gif) no-repeat left top;
    #contacts-form textarea {
              width:300px;
              height:168px;
              overflow:auto;
              background:none;
              border:0;
              color:#8c8d8d;
              padding:5px 0 2px 10px;
    #contacts-form .link2 {
              margin-left:15px;
    /*==========================================*/
    The HTML is:
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>TravelSober.com Eastern Caribbean Sober Cruise</title>
    <meta name="keywords" content="Sober cruise, sober cruises, sober cruise vacations, sober holidays, sober travel, sober vacation, sober vacations, aa convention, sober safari, sober travel.">
    <meta name="description" content="Find out more about our Eastern Caribbean Sober Cruise or any of our other sober vacations.">
    <!-- TemplateEndEditable -->
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
    <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
    <!--[if lt IE 7]>
         <link rel="stylesheet" href="css/ie/ie6.css" type="text/css" media="screen">
         <script type="text/javascript" src="js/ie_png.js"></script>
         <script type="text/javascript">
            ie_png.fix('.png, .nav-box .left, .nav-box .right, nav, footer .right, footer, #slider, #slider .inside a, .box .top, .box .bot, .link1, .link1 span, .link1 b, .list li, .main-box .left-top-corner, .main-box .right-top-corner, .main-box .border-top, .main-box .border-left, .main-box .border-right, .box1 .top, .box2 .top, .link2, .link3, .events-list li img, #subscribe-form span');
         </script>
    <![endif]-->
    <!--[if lt IE 9]>
                <script type="text/javascript" src="js/html5.js"></script>
      <![endif]-->
    <style type="text/css">
    body,td,th {
              font-size: 92%;
    </style>
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-21210386-3']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    </script>
    <link href="images/favicon.ico" rel="SHORTCUT ICON">
    </head>
    <body id="page7">
    <div id="main">
       <!-- header -->
       <header>
         <h1><a href="index.html"><strong>TravelSober.com</strong></a></h1>
          <div class="nav-box">
             <div class="left">
                <div class="right">
                   <nav>
                      <ul>
                         <li><a href="index.html"><span><b>Home</b></span></a></li>
                         <li><a href="about-us.html"><span><b>About Us</b></span></a></li>
                         <li><a href="planned-trips.html"><span><b>Planned Trips</b></span></a></li>
                         <li><a href="instant-specials.html"><span><b>Bob's Super Specials</b></span></a></li>
                         <li><a href="testimonials.html"><span><b>Testimonials</b></span></a></li>
                         <li><a href="contact-us.html"><span><b>Contact Us</b></span></a></li>
                      </ul>
                   </nav>
                </div>
                <a href="#" class="rss">RSS</a> </div>
          </div>
          <ul class="banners">
             <li>
                <div class="box">
                   <div class="top"></div>
                   <div class="xcontent">
                      <div class="bg">
                         <div class="inner">
                            <h2>Sober Cruises</h2>
                            <p>Our cruises go to the best destinations on earth on a budget or in 6 Star luxury.</p>
                            <div class="wrapper"><a href="planned-cruises.html" class="link1"><span><b>more</b></span></a></div>
                         </div>
                      </div>
                   </div>
                   <div class="bot"></div>
                </div>
             </li>
             <li>
                <div class="box style1">
                   <div class="top"></div>
                   <div class="xcontent">
                      <div class="bg">
                         <div class="inner">
                            <h2>Friends of Lois Trips</h2>
                            <p>Al-Anon conferences and vacations</p>
                            <div class="wrapper"><a href="friends-of-lois-trips.html" class="link1"><span><b>more</b></span></a></div>
                         </div>
                      </div>
                   </div>
                   <div class="bot"></div>
                </div>
             </li>
             <li>
                <div class="box style2">
                   <div class="top"></div>
                   <div class="xcontent">
                      <div class="bg">
                         <div class="inner">
                            <h2>Conventions</h2>
                            <p>We take advantage of the many worldwide AA conventions combining them with tours.</p>
                            <div class="wrapper"><a href="sober-cruise-greece-2013.html" class="link1"><span><b>more</b></span></a></div>
                         </div>
                      </div>
                   </div>
                   <div class="bot"></div>
                </div>
             </li>
             <li>
                <div class="box style3">
                   <div class="top"></div>
                   <div class="xcontent">
                      <div class="bg">
                         <div class="inner">
                            <h2>Recovery</h2>
                            <p>Check out our sober resources page for all fellowships and the chance to meet new friends.</p>
                            <div class="wrapper"><a href="recovery-resources.html" class="link1"><span><b>more</b></span></a></div>
                         </div>
                      </div>
                   </div>
                   <div class="bot"></div>
                </div>
             </li>
          </ul>
       </header>
       <div class="main-box">
          <div class="left-top-corner">
             <div class="right-top-corner">
                <div class="border-top"></div>
             </div>
          </div>
          <div class="border-left">
             <div class="border-right">
                <div class="xcontent">
                   <div class="tail">
                     <div class="inner2">
                         <!-- content -->
                         <section id="content">
                            <h2><b>Costa Caribbean Cruise on the Mediterranea
    - November 30 – December 10, 2012</b><br><br>
                            <b>From $699 Per Person / Double-Occupancy. 10 days for the price of 7!</b></h2>
                            <p> <img src="images/costa-mediterranea-sober-cruise- caribbean-2012.jpg" alt="sober_cruise_caribbean" width="320" height="204" align="right"></p>
                            <h5>Enjoy the Bahamas, Jamaica, Grand Cayman Islands, Roatan, Belize and Cozumel with a round-trip from Miami. You will experience great Italian cuisine, fabulous entertainment and famous <i>In This Life</i> Custom Excursions. We will feature the best of snorkeling, scuba, golf, dolphin encounter and much more!<p></p>Get on board for one of our latest once in a lifetime opportunities. Costa Cruises has reached out to showcase their ships and famous Italian ambience. We have traveled extensively with Costa on one of their best vessels, the Mediterranea. <p></p>This is one of the most popular vessels in the Costa fleet and has been enjoyed by hundreds of <i>In This Life</i> clients. Costa has extended special rates because of the unfortunate accident in Europe. They are giving <i>In This Life</i> guests 10 days for the price of 7 with free upgrades on their November 30 combination Eastern-Western Caribbean cruise.<p></p>Join us for various meetings onboard everyday!</h5>
                            <h5>10-day itinerary includes: <dir>
                           <p>Day 1: Depart 9.00pm: Miami, Florida,<br>
                           Day 2: 9.00am - 6.00pm: Nassau, Bahamas,<br>
                           Day 3: At Sea,<br>
                           Day 4: 12.00pm - 7.00pm: Ochos Rios, Jamaica,<br>
                           Day 5: 9.00am - 6.00pm: Grand Cayman,<br>
                           Day 6: At Sea,<br>
                           Day 7: 8.00am - 6.00pm: Roatan, Honduras,<br>
                           Day 8: 8.00am - 5.00pm: Belize,<br>
                           Day 9: 8.00am - 7.00pm: Cozumel, Mexico,<br>
                           Day 10: At Sea,<br>
                           Day 11: Miami, Florida: Arrive 8.00am.</p>
                           </dir><h2>ITL special - Save up to $200 per person! These are exclusive prices ONLY AVAILABLE from <i>Travel Sober</i>. </h2>
                           <img src="images/Cribbean-sober-cruise-2012.jpg" alt="sober_cruise_caribbean" width="394" height="264" align="right">
                       <h5><p></p>Inside Cabin: $699<br>Ocean View Cabin: $699<br>Deluxe Ocean View Cabin: $899<br>Veranda Cabin: $899</p>
                           <p></p>
                           <p>Book an Inside Cabin for $699 and be upgraded for free to Ocean View.
    <p></p>Book Deluxe Ocean View for $899 and be upgraded for free to Veranda.
    Other free upgrades within categories – placement on first come, first served basis.
    <p></p>This is a Sober Cruise. Get a group together and get extra PERKS!
    </p>
                           <p><h2>Deposit now for best cabin placement, specials and free upgrades!</h2><br><br>
                           <img src="images/in-this-life-logo.jpg" alt="sober_cruise_caribbean" width="300" height="214" align="middle">
    <h5><h2>
    Call or Email Us Today</h2></a>
    <p></p><h2>Office: (805) 927-6910</h2>
    <h2>Toll Free: (800) 531-7578</h2>
    <p></p><br>
    <h2>Email:<a href="mailto:[email protected]" class="txt1"> [email protected]</h2></a><br>
    <h2>Email:<a href="mailto:[email protected]" class="txt1"> [email protected]</h2></a>
    </p></h5>
                       </section>
                      </div>
                   </div>
                </div>
             </div>
          </div>
       </div>
       <!-- footer -->
       <footer>
          <div class="right">
             <div class="tail">
       

    The MORE buttons aren't images.  They are in the HTML and appear to be styled with CSS to look like button images. 
         <span><b>more</b></span>
    Unfortunately, Design View is incapable of displaying CSS border-radius, gradients, shadows and other CSS level 3 properties.   That's why we have Live View which behaves more like a real browser.
    If you can't live with this, disable CSS in DW by going to View > Style Rendering > untick display styles. 
    Or, use a Design-Time Style Sheet that contains no CSS level 3 properties.
    Nancy O.

  • Literal too long when 4000 chars

    I get an error that literal too long when trying to insert a record to a clob or varchar2 field when the string is over 4000 chars.
    How to resolve this problem. I'd like to be able to treat this insert the same as all other inserts rather than make a special case out of it so no special processing would be needed.
    The application reads from an html form textarea and inserts the value of the text area along with the other fields of the form to a database.

    Hi,
    The maximum length of VARCHAR2 data is 4000 bytes.
    You can't store more than 4000 bytes in varchar2 column.
    CLOB can store upto 4GB of data.
    You can check the LOB Datatype sample for details on how to insert data into CLOB.
    The sample is located at
    [url http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html] LOB Datatype source
    Check the loadSamples method which shows how to insert data into CLOB using empty_clob() method.
    Hope this helps.
    For furthur clarifications please post your question at
    [url http://forums.oracle.com/forums/forum.jsp?forum=75]SQL and PL/SQL Forum
    Regards,
    Anupama
    [url http://otn.oracle.com/sample_code/content.html]OTN Sample Code[url ]

  • Insert Multiple Records and newest record id

    The problem I have is I am using a somewhat normalized
    database and I am trying to enter multiple records from a form into
    a table called catfit. It also needs to add information to another
    table called prodmat and pull the id of the record I just added to
    the prodmat table and insert it into the catfit table in one shot.
    Promat - Holds all of the products
    columns in this table
    prodid
    mold
    desc
    features
    pic
    Catfit - Table that links Prodmat and Modcats
    columns in this table
    prodid
    catid
    modlid
    Now the form I have
    <form method="post" action="action.cfm">
    <select name="modlid">
    <option value ="#modlid#"
    selected="selected">#modlid#</option>
    <option value="1">Sewing Machines</option>
    <option value="9">Vacuums</option>
    <option value="12">Air Purifiers</option>
    </select>
    <select name="catid">
    <option value ="#catid#"
    selected="selected">#catid#</option>
    <option value="None">None</option>
    <option value="1">Sewing
    Machines-Embroidery</option>
    <option value="2">Sewing
    Machines-Computerized</option>
    <option value="3">Sewing
    Machines-Professional</option>
    <option value="4">Sewing
    Machines-Quilting</option>
    <option value="5">Sewing
    Machines-Electronic</option>
    <option value="6">Sewing Machines-Value
    Machines</option>
    <option value="7">Sewing
    Machines-Sergers</option>
    <option value="8">Sewing
    Machines-Specialty</option>
    <option value="9">Air Purifier</option>
    <option value="10">Vacuums-Upright</option>
    <option value="11">Vacuums-Canister</option>
    <option value="12">Vacuums-Central</option>
    </select>
    <select name="catid">
    <option value ="#catid#"
    selected="selected">#catid#</option>
    <option value="None">None</option>
    <option value="1">Sewing
    Machines-Embroidery</option>
    <option value="2">Sewing
    Machines-Computerized</option>
    <option value="3">Sewing
    Machines-Professional</option>
    <option value="4">Sewing
    Machines-Quilting</option>
    <option value="5">Sewing
    Machines-Electronic</option>
    <option value="6">Sewing Machines-Value
    Machines</option>
    <option value="7">Sewing
    Machines-Sergers</option>
    <option value="8">Sewing
    Machines-Specialty</option>
    <option value="9">Air Purifier</option>
    <option value="10">Vacuums-Upright</option>
    <option value="11">Vacuums-Canister</option>
    <option value="12">Vacuums-Central</option>
    </select>
    <select name="catid">
    <option value ="#catid#"
    selected="selected">#catid#</option>
    <option value="None">None</option>
    <option value="1">Sewing
    Machines-Embroidery</option>
    <option value="2">Sewing
    Machines-Computerized</option>
    <option value="3">Sewing
    Machines-Professional</option>
    <option value="4">Sewing
    Machines-Quilting</option>
    <option value="5">Sewing
    Machines-Electronic</option>
    <option value="6">Sewing Machines-Value
    Machines</option>
    <option value="7">Sewing
    Machines-Sergers</option>
    <option value="8">Sewing
    Machines-Specialty</option>
    <option value="9">Air Purifier</option>
    <option value="10">Vacuums-Upright</option>
    <option value="11">Vacuums-Canister</option>
    <option value="12">Vacuums-Central</option>
    </select>
    <input type="text" name="modl" value="#modl#"
    style="form">
    <input type="text" name="pic" value="#pic#"
    style="form">
    <textarea name="desc" rows="25" cols="60" wrap="virtual"
    value="#desc#">#desc#</textarea>
    <textarea name="features" rows="25" cols="60"
    wrap="virtual" value="#features#">#features#</textarea>
    <input type="submit" value="Submit" style="form"
    name="submit">
    </form>
    I have worked with the action.cfm page to no avail what so
    ever so I won't even post it. Now the prodmat table is the table
    where I need to get the prodid (Autonumber column) for the record
    that was just inserted so I can insert that number into the catfit
    table under the prodid column (number column). So this what I
    hoping to get in the end.
    When someone submits this form it will add the data to the
    prodmat table and grab the prodid generated from the new record.
    Then instert a new record for each of the catid select boxes into
    the catfit table. so something like this.
    If they select all three categories upon the submit it would
    add to the catfit table for each record:
    molid = 1
    catid = 2
    prodid = 16 (for instance this would be the newest record
    added to the prodmat table)
    molid = 1
    catid = 6
    prodid = 16
    molid = 1
    catid = 8
    prodid = 16
    Please help I am loosing my hair over this!

    Azadi Saryev wrote:
    > instead of
    > AND CID=#form.CDI#
    > you have to use something like
    > AND CID IN (<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#form.CDI#"
    > list="yes">)
    > since #form.CDI# contains a list of values, not a single
    value
    No. Don't do that. It would produce the same results you were
    getting before ie. the values for all three records would be the
    same.
    Number the CDI fields just like you're doing with form.catID.
    So each set of values is grouped by number
    form.catId1, form.CDI1
    form.catId2, form.CDI2
    form.catId3, form.CDI3
    Then extract the values inside your loop and use them in your
    UPDATE
    <cfloop index="LoopCount" from=1
    to=#Val(form.locCount)#>
    <cfset variables.locID= form["locID"& LoopCount] >
    <cfset variables.catid = form["catid" &
    LoopCount]>
    <cfset variables.CDI = form["CDI" & LoopCount]>
    </cfloop>
    Though you may not actually need an UPDATE here. Another
    option might be to do a DELETE of all existing records for a
    product, followed by an INSERT.

Maybe you are looking for

  • Data not matching for a key figure in ODS and In CUBE.

    There is one key figure ( Net Units) where in the data is not matching in ODS and in CUBE for only one particular fiscal week (200714)but for the rest of the weeks its matching. The data  is  first loaded in to ODS and from there in to CUBE and the s

  • Amount File Formatting in XSL mapping

    Hi Guru(s): I have an XSLT mapping within an File to BPM scenario. The Flat file has an amount field of 13 characters, and reads a value like 16.10, followed by trialing whitespace to fill out the 13 positions. I am able to read this file properly wi

  • Breadcrum in Web Dynpro Application?

    Hi All, We have a web dynpro application which requires bread crums. I have never done this before. Could anyone please explain me in detail how to include the feature of breadcrum in a web dynpro application. I'm using EP6.0 SP11. Thanks Regards LM

  • Homogeneous Database Copy

    Hi, I am currently doing the process above using a tool supplied by SAP. For example: Source SID = DEV Source DB  = MSSQL 2000 Source OS  = Windows 2000 Advan Server R/3        = 4.7, 640 Target System is as above but lets put the SID as QAS. By usin

  • Pricing procedure for Service PO and Service Entry Sheet

    Hi Can the same pricing procedure be used for Service PO and Service Entry Sheet? What is the purpose of creating a seperate pricing procedure for service entry sheet? Regards Soumen