Results 1 to 4 of 4
  1. #1
    shuvra_pan is offline Member
    Join Date
    Jun 2008
    Posts
    10
    Rep Power
    0

    Default New Line problem in javascript

    problem in Javascripts.....

    This is the code....
    <head>
    <script type="text/javascript">
    function sendMail(_frm){
    var eml="shuvrapan.19@gmail.com";
    var bod="&body="+_frm.txtTwo.value+" "+_frm.txtOne.value;
    var subj="?subject=Whatever you want";
    location.href="mailto:"+eml+subj+bod;
    }
    </script>

    </head>

    <body>
    <form action="mailto:shuvrapan.19@gmail.com" enctype="text/plain"
    method="POST" onsubmit="sendMail(this);return false;">
    <!--<select name="selOne">
    <option value="Dog">Dog</option>
    <option value="Cat">Cat</option>
    </select>-->
    <textarea name="txtTwo"></textarea>
    <textarea name="txtOne"></textarea>
    <input type="submit" value="Submit" />
    </form>
    </body>
    </html>


    Problem is that when I press sumit button then its go to the OfficeOutlook and show the value in verticaly......But I want the values shows Horizantally.

    plzz help me out its urgent...............

  2. #2
    vinoopraj is offline Member
    Join Date
    Mar 2009
    Posts
    15
    Rep Power
    0

    Default

    i cant understand u r problem... can u define more..

  3. #3
    Thennarasu's Avatar
    Thennarasu is offline Member
    Join Date
    Jan 2009
    Location
    Chennai, Tamilnadu
    Posts
    39
    Rep Power
    0

    Smile its working as you expect

    hi.... its working fine... the text gets displayed horizontally
    One Life!!! Y Serious??? :)

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    You're far better off asking these questions in a Javascript forum, not a Java forum.

Similar Threads

  1. graphic line problem
    By f_the_cook in forum Advanced Java
    Replies: 3
    Last Post: 12-08-2008, 06:45 PM
  2. [SOLVED] import netscape.javascript.* problem
    By shwein in forum New To Java
    Replies: 2
    Last Post: 10-30-2008, 07:43 PM
  3. Java applet and Javascript type problem
    By Interdit in forum Java Applets
    Replies: 0
    Last Post: 05-27-2008, 02:38 PM
  4. [SOLVED] Text Area new line problem
    By Jay-1.1 in forum New To Java
    Replies: 3
    Last Post: 05-07-2008, 05:18 AM
  5. javascript sliderbar problem with JSP page
    By prakash.eng in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 12-17-2007, 09:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •