Jump to content

Cant find js scripts for mootools form check


deansaddigh

Recommended Posts

hi guys i go here and download the script.

http://mootools.floor.ch/en/demos/formcheck

 

When i download it i have to reference these files

<script type="text/javascript" src="includes/formcheck/js/mootools/core.js"></script> 
<script type="text/javascript" src="includes/formcheck/js/mootools/more.js"></script>
<script type="text/javascript" src="includes/formcheck/lang/en.js"> </script>
<script type="text/javascript" src="includes/formcheck/formcheck.js"> </script>

 

The first two more.js and core.js dont come in the  package whats the deal?

Link to comment
Share on other sites

I feel like an ideot but i have downloaded the middle one of the 3 options and it gives me this file

mootools-1.2.4-core-yc.js

now do i just link it in my php page  like so

 

<script type="text/javascript" src="js/mootools-1.2.4-core-yc.js"></script>

 

if thats correct what about the oter file its telling me to reference

<script type="text/javascript"  src="js/mootools-1.2.4.4-more.js"></script>

 

Do i not need to worry about that?

 

Im sorry for the silly questions, but im genuinly stuck

Link to comment
Share on other sites

Sorry for posting in the wrong place, if anyone can help me get this thing going i would be grateful.

 

Here is the page which shows how to implement and its pretty stragiht forward.

http://mootools.floor.ch/en/demos/formcheck/

I

have added dependencies

<script type="text/javascript" src="js/mootools-1.2.4.4-more.js"></script>
<script type="text/javascript"  src="js/mootools-1.2.4-core.js"></script>
<script type="text/javascript" src="includes/formcheck/lang/en.js"> </script>
<script type="text/javascript" src="includes/formcheck/formcheck.js"> </script>
<script type="text/javascript">

 

i have also linked to desired theme

 

<link href="style.css" rel="stylesheet" type="text/css" media="screen" />

 

Initiated script

<script type="text/javascript">
    window.addEvent('domready', function(){
        new FormCheck('enquiry');
    });
</script>

 

Changed my form name to enquiry

 

Also added

<input class="validate['required']" />

here

 <label>First Name :</label>
  <input type="text" name="first_name" class="validate['required']" />
  <br />

 

thanks in advance

Link to comment
Share on other sites

Hi Thorpe, once again thanks for your help, i have changed the order so core goes before more.

 

My question is can you or anyone else see why it doesnt pop up and validate if i leave the first name blank.

as i have on the enquiry form which is an include by the way on the firsname i have this

 <input type="text" name="first_name" class="validate['required']" />

which should prompt the script to throw up an error message.

 

I beleive i have put everything correctly in its respective places, i named the form enquiry so it references this bit of code

window.addEvent('domready', function(){
        new FormCheck('enquiry');
    });

 

nothing happens when i leave it blank it just processes succesfully

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.