Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-28-2008, 06:53 PM   PM User | #1
+Jason
New to the CF scene

 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
+Jason is an unknown quantity at this point
Question [mootools] class display form inputs value

Hello JavaSpecialists,

Need to write class for [form] using [mootools]
  • form has (input.text, select, texarea, checkbox)
  • after i write in input text (some text) next to this input should appear <div> with animation (alpha 0-100%) with message "this field was changed to ...."
  • after 3 seconds <div> with message should disappear

Need help in writing this class or guidelines how to do that

What i have
  • html code below
  • mootools library
  • i know the parts of [mootools] framework that should be used
  • don't know how put it all together

Is there any [mootools] specialist?

Best regards!
+Jason
Code:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Class that display form value</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<script src="mootools-1-2.js" type="text/javascript"></script>
</head>
<body>
<div id="container">
  <div id="form">
    <form action="" method="get" name="myform">
      <fieldset>
      <legend>My Form</legend>
      <div class="fieldbox">
        <input class="padding" name="text" type="text" />
      </div>
      <div class="fieldbox">
        <select name="select">
          <option value="option1">option1</option>
          <option value="option2">option2</option>
          <option value="option3">option3</option>
        </select>
      </div>
      <div class="fieldbox">
        <textarea name="message" cols="50" rows="5"></textarea>
      </div>
      <div class="fieldbox">
        <input class="padding" name="check" type="checkbox" value="" />
      </div>
      </fieldset>
	  <input name="submit" value="submit" type="button" />
    </form>
  </div>
</div>
</body>
</html>
+Jason is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:21 AM.


Advertisement
Log in to turn off these ads.