Results 1 to 9 of 9

Thread: Three problems

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Skandinavian
    Posts
    51

    Three problems

    1) I have just starting learning HTML, i have a few simple question.
    How i can make forms button same size exm. button1 = Search and button2 = ok.

    2) And how i can check if back button in browser select ?

    3) if i have three button how i can send value to next page or should i have three hyperlinks all page ?

    Thanks you
    Tweety99

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Arrow hi

    1)For the OK button try:

    <input type=button name=OK value=" OK ">

    Use spaces in the value - attribute.

    2)The question is not very clear. Perphaps u need to capture when the user clicks on the back button.
    That is not possible as far as I know. If u want u can use onunload event of the body tag.

    3)You can use buttons - but u need to enclose them in a form tag.


    Hope this helps.

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Skandinavian
    Posts
    51

    simple questions ?

    Hi,
    thanks but how i make it same size
    when i had write this
    <input type=button size= 10 name=OK value=" OK ">
    nothing happend why ?
    can i make my text two rows or ???

    And when bodyunload how i know are users going forward or back ?

    thanks you,
    Tweety99

  4. #4
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    For the button u cannot give the 'size' attribute.

    the only way to make it wide is fill spaces between the quotes of the value ie value=" OK " and NOT like this value="OK"

    Hope this explains it

    Code:
    <input type=button name=OK value="   OK    ">
    About the back - button .
    Yes u cannot detect whether the back button was clicked or the forward button was clicked.

    If u want to disable the back button - that too is NOT possible.
    View thread:

    http://forums.vb-world.net/showthrea...le+back+button




    can i make my text two rows or ???
    I think u want a textbox with multiline facilty - for that u can use textarea like this:

    Code:
    <textarea rows=3 cols=40 name=mytextarea></textarea>

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Skandinavian
    Posts
    51

    Thank

    Thank you,

    Tweety99

  6. #6
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    not sure,
    but for ?? about the 3 buttons

    if you have

    <input type=button name=submitButton value=ok>
    <input type=button name=submitButton value=delete>
    <input type=button name=submitButton value=modify>

    well on your asp(or whatever you use)page you can use
    if request("submitButton")="ok" then
    elseif request("submitButton")="delete" then
    else
    end if

    hope it helps

  7. #7
    scoutt
    Guest

    Re: Three problems

    Originally posted by Tweety99
    1) I have just starting learning HTML, i have a few simple question.
    How i can make forms button same size exm. button1 = Search and button2 = ok.

    2) And how i can check if back button in browser select ?

    3) if i have three button how i can send value to next page or should i have three hyperlinks all page ?

    Thanks you
    Tweety99
    1) the only wqay you can do this is to make it a graphic (picture) of a button. Because NS4.x treats form attributes a lot different then IE5+ does.

    2) you can't

    3) if you use one form you only get one submit button. you can have more than one form on a page. but you can only use one button to send the forms information.

  8. #8
    Member
    Join Date
    Feb 2000
    Location
    Kettering, Northants, England
    Posts
    56

    Cool

    Scout man the third question you're wrong.

    You can have multiple submit buttons on a form, and each one can change the action (by adding a querystring to the processing page for example).

    See this thread for more info:

    http://www.vbforums.com/showthread.p...hreadid=124948

  9. #9
    scoutt
    Guest
    thanks daveejay, I realized that after I posted it and was too lazy to reply to it. I always forget about javascript.

Posting Permissions

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



Click Here to Expand Forum to Full Width