close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Spry.ValidationConfirm ERR

Thread began 12/13/2011 12:27 pm by FrankJay | Last modified 5/04/2012 10:56 am by FrankJay | 2398 views | 16 replies

Jason ByrnesWebAssist

change the following code:

php:
<script type="text/javascript">

<!--
var User_Update_group_Genre_Spry = new Spry.Widget.ValidationSelect("User_Update_group_Genre_Spry", {invalidValue:'-1', validateOn:["change"]});
var User_Update_group_Nom_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Nom_Spry", "none", { minChars:2, maxChars:20 , validateOn:["blur"]});
var User_Update_group_Pr_nom_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Pr_nom_Spry", "none", { minChars:2, maxChars:20 , validateOn:["blur"]});
var User_Update_group_Date_de_naissance_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Date_de_naissance_Spry", "date", { format:'dd.mm.yyyy' , validateOn:["blur"]});
var User_Update_group_Adresse_e_mail_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Adresse_e_mail_Spry", "email", { maxChars:50 , validateOn:["blur"]});
var User_Update_group_Identifiant_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Identifiant_Spry", "none", { minChars:4, maxChars:20 , validateOn:["blur"]});
var User_Update_group_Password_Spry = new Spry.Widget.ValidationPassword("User_Update_group_Password_Spry", { minAlphaChars:0, maxAlphaChars:16, minNumbers:0, maxNumbers:16, minSpecialChars:0, maxSpecialChars:16, minChars:6, maxChars:16, is_required:false, isRequired:false , validateOn:["blur"]});
var User_Update_group_Confirm_Spry = new Spry.Widget.ValidationConfirm("User_Update_group_Confirm_Spry", "User_Update_group_Password",{validateOn:["blur"]});
var User_Update_group_Adresse_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Adresse_Spry", "none", { minChars:3, maxChars:50 , validateOn:["blur"]});
var User_Update_group_10_Compl_ment_d_adresse_Spry = new Spry.Widget.ValidationTextField("User_Update_group_10_Compl_ment_d_adresse_Spry", "none", { maxChars:50, isRequired:false , validateOn:["blur"]});
var User_Update_group_11_Pays_Spry = new Spry.Widget.ValidationSelect("User_Update_group_11_Pays_Spry", {invalidValue:'-1', validateOn:["change"]});
// var User_Update_group_1_Canton_Spry = new Spry.Widget.ValidationSelect("User_Update_group_1_Canton_Spry", {invalidValue:'-1', validateOn:["change"]});
var User_Update_group_1_Npa_Spry = new Spry.Widget.ValidationTextField("User_Update_group_1_Npa_Spry", "none", { minChars:4, maxChars:6 , validateOn:["blur"]});
var User_Update_group_1_Localit_Spry = new Spry.Widget.ValidationTextField("User_Update_group_1_Localit_Spry", "none", { minChars:3, maxChars:40 , validateOn:["blur"]});
//-->
            </script>




to:

php:
<?php if ($totalRows_SecurityAssistMembresdata 0) { // Show if recordset not empty ?>

              <script type="text/javascript">
<!--
var User_Update_group_Genre_Spry = new Spry.Widget.ValidationSelect("User_Update_group_Genre_Spry", {invalidValue:'-1', validateOn:["change"]});
var User_Update_group_Nom_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Nom_Spry", "none", { minChars:2, maxChars:20 , validateOn:["blur"]});
var User_Update_group_Pr_nom_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Pr_nom_Spry", "none", { minChars:2, maxChars:20 , validateOn:["blur"]});
var User_Update_group_Date_de_naissance_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Date_de_naissance_Spry", "date", { format:'dd.mm.yyyy' , validateOn:["blur"]});
var User_Update_group_Adresse_e_mail_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Adresse_e_mail_Spry", "email", { maxChars:50 , validateOn:["blur"]});
var User_Update_group_Identifiant_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Identifiant_Spry", "none", { minChars:4, maxChars:20 , validateOn:["blur"]});
var User_Update_group_Password_Spry = new Spry.Widget.ValidationPassword("User_Update_group_Password_Spry", { minAlphaChars:0, maxAlphaChars:16, minNumbers:0, maxNumbers:16, minSpecialChars:0, maxSpecialChars:16, minChars:6, maxChars:16, is_required:false, isRequired:false , validateOn:["blur"]});
var User_Update_group_Confirm_Spry = new Spry.Widget.ValidationConfirm("User_Update_group_Confirm_Spry", "User_Update_group_Password",{validateOn:["blur"]});
var User_Update_group_Adresse_Spry = new Spry.Widget.ValidationTextField("User_Update_group_Adresse_Spry", "none", { minChars:3, maxChars:50 , validateOn:["blur"]});
var User_Update_group_10_Compl_ment_d_adresse_Spry = new Spry.Widget.ValidationTextField("User_Update_group_10_Compl_ment_d_adresse_Spry", "none", { maxChars:50, isRequired:false , validateOn:["blur"]});
var User_Update_group_11_Pays_Spry = new Spry.Widget.ValidationSelect("User_Update_group_11_Pays_Spry", {invalidValue:'-1', validateOn:["change"]});
// var User_Update_group_1_Canton_Spry = new Spry.Widget.ValidationSelect("User_Update_group_1_Canton_Spry", {invalidValue:'-1', validateOn:["change"]});
var User_Update_group_1_Npa_Spry = new Spry.Widget.ValidationTextField("User_Update_group_1_Npa_Spry", "none", { minChars:4, maxChars:6 , validateOn:["blur"]});
var User_Update_group_1_Localit_Spry = new Spry.Widget.ValidationTextField("User_Update_group_1_Localit_Spry", "none", { minChars:3, maxChars:40 , validateOn:["blur"]});
//-->
</script>
<?php // Show if recordset not empty ?>



for the duplicate key error, this is happening because you have the Membre_id column in the update. in the update, you should be binding the Membre_id column to anything, this column should not be changed, let the database handle the primary key column.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...