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?

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.