corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Need a form making... Half way there... need some Java guys in here!


New Topic

New Poll
  <<  1    2  >> Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Need a form making... Half way there... need some Java guys in here!
Gary
Premium Member

Avatar

Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
3rd Nov 10 at 16:14   View Garage View User's Profile U2U Member Reply With Quote

Good idea
Dom
Member

Registered: 13th Sep 03
User status: Offline
3rd Nov 10 at 16:30   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by glb
Placeholder removes the 'Enter your Postcode' text from the box.


Yup, but it's a HTML 5 tag so only a handful of browsers will support it. Better off using Javascript or a JQuery Watermark plugin etc
Gary
Premium Member

Avatar

Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
3rd Nov 10 at 16:37   View Garage View User's Profile U2U Member Reply With Quote

Prob easier to leave it as is. Does the job and dnt effect it's workings.
ed
Member

Registered: 10th Sep 03
User status: Offline
3rd Nov 10 at 20:55   View User's Profile U2U Member Reply With Quote

Placeholder works on most browsers now? It's just a bit neater but if it isn't working for you then don't spend too much time on it...
Gary
Premium Member

Avatar

Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
4th Nov 10 at 09:05   View Garage View User's Profile U2U Member Reply With Quote

Ahh fair enough.

Any idea how to make the text input box clear all the text once it's clicked in?
ed
Member

Registered: 10th Sep 03
User status: Offline
4th Nov 10 at 10:35   View User's Profile U2U Member Reply With Quote

Use this: http://plugins.jquery.com/project/placeholder

I'd suggest you have a bit of a read about jQuery first as it's a Javascript library that's very simple to use, but you just need to know what you're doing first. It's much easier that Google Maps so you'll have no issues!
Gary
Premium Member

Avatar

Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
4th Nov 10 at 11:52   View Garage View User's Profile U2U Member Reply With Quote

Cheers i'll have a look a that.

Might just leave it as is. IF it aint broke dont fix it etc etc
ed
Member

Registered: 10th Sep 03
User status: Offline
4th Nov 10 at 13:32   View User's Profile U2U Member Reply With Quote

Yep totally. I guess what you could do is this though:

<label class="inputLabel" for="postcode">Please Enter Your Postocode:</label><input type="text" name="postcode" />

Which will put a label next to your postcode input, and as it has the class 'inputLable' it will show the same formatting as the rest of your site's text inputs when you include the CSS file in the head by putting this in there:

<link rel="stylesheet" type="text/css" href="includes/templates/black_pure_free/css/stylesheet.css" />

  <<  1    2  >>
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
What Java Compiler Is Standard? Mikorsa16v Geek Day 2 1315
13th Mar 03 at 16:02
by Mikorsa16v
 
Anyone know anything about Java Script/HTML ed Geek Day 6 1010
14th Feb 04 at 18:16
by Joff
 
How do you use the java multi upload thing jr General Chat 23 1354
25th Jun 06 at 14:35
by Gaz
 
URGENT HELP: Any Java experts? (Updated) steve101 Geek Day 13 576
1st May 07 at 00:43
by Dom
 

Corsa Sport » Message Board » Off Day » Geek Day » Need a form making... Half way there... need some Java guys in here! 28 database queries in 0.0223582 seconds