PDA

Click to See Complete Forum and Search --> : Three problems


Tweety99
Dec 4th, 2001, 12:00 AM
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

veryjonny
Dec 4th, 2001, 01:17 AM
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.

Tweety99
Dec 4th, 2001, 02:31 AM
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

veryjonny
Dec 4th, 2001, 03:14 AM
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


<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/showthread.php?s=&threadid=122857&highlight=disable+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:


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

Tweety99
Dec 4th, 2001, 04:02 AM
Thank you,

Tweety99

sebs
Dec 4th, 2001, 07:53 AM
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

scoutt
Dec 6th, 2001, 10:49 AM
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.

daveejay
Dec 13th, 2001, 08:49 AM
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.php?s=&threadid=124948

scoutt
Dec 13th, 2001, 06:41 PM
thanks daveejay, I realized that after I posted it and was too lazy to reply to it. I always forget about javascript. :cool: