deansaddigh Posted May 12, 2010 Share Posted May 12, 2010 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? Quote Link to comment Share on other sites More sharing options...
trq Posted May 12, 2010 Share Posted May 12, 2010 They need to be downloaded from mootools. Quote Link to comment Share on other sites More sharing options...
deansaddigh Posted May 12, 2010 Author Share Posted May 12, 2010 hey , thanks for your reply, and please excuse my lack of knowledge, ive tried, to go to mootools, but cant find where i donwload them, can you point me in the right direction Quote Link to comment Share on other sites More sharing options...
trq Posted May 12, 2010 Share Posted May 12, 2010 http://mootools.net/download Quote Link to comment Share on other sites More sharing options...
deansaddigh Posted May 12, 2010 Author Share Posted May 12, 2010 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 Quote Link to comment Share on other sites More sharing options...
trq Posted May 12, 2010 Share Posted May 12, 2010 Sorry, from that page you also need to go to the More Builder page and download whatever dependencies your (or in your case, the third party) code requires. There is a link within the original page you posted that specifies its minimal requirements. Quote Link to comment Share on other sites More sharing options...
deansaddigh Posted May 12, 2010 Author Share Posted May 12, 2010 Ahhh i see , thanks for helping out i really appreciate it Quote Link to comment Share on other sites More sharing options...
deansaddigh Posted May 12, 2010 Author Share Posted May 12, 2010 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 Quote Link to comment Share on other sites More sharing options...
trq Posted May 12, 2010 Share Posted May 12, 2010 Firstly, more depends on core so core needs to go first. Secondly, you forgot to actually ask a question in your last post. Quote Link to comment Share on other sites More sharing options...
deansaddigh Posted May 12, 2010 Author Share Posted May 12, 2010 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 Quote Link to comment Share on other sites More sharing options...
deansaddigh Posted May 12, 2010 Author Share Posted May 12, 2010 Can anyone help me, ive been trying all day to get this blimin thing going, and as of yet, it doesnt do one little thing, please people Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.