Solved

error remote path plugin validate jquery

Posted on 2009-07-16
2
389 Views
Last Modified: 2012-06-21
Hi EE
i have a problem about path for validate plugin of Jquery
this is my js script:
*****
      var validator = $("#tipformins").validate({
            rules: {
                  cod: {
                        required: true,
                        number: true,
                        remote: "/remote/val_cod_tipGlass2.php"
                  },
                  tipology: "required"
            },
            messages: {
                  cod: {
                        required: "Inserire codice tipologia",
                        number: "formato numerico",
                        remote: jQuery.format("Codice {0} gia' esistente negli archivi!")
                        },
                  tipology: "Nome categoria prodotto"
            }
      });
*****

so , its dont work
while if I copy val_cod_tipGlass2.php in the same directory of primary page and change the code into
****
      var validator = $("#tipformins").validate({
            rules: {
                  cod: {
                        required: true,
                        number: true,
                        remote: "val_cod_tipGlass2.php"
                  },
                  tipology: "required"
            },
            messages: {
                  cod: {
                        required: "Inserire codice tipologia",
                        number: "formato numerico",
                        remote: jQuery.format("Codice {0} gia' esistente negli archivi!")
                        },
                  tipology: "Nome categoria prodotto"
            }
      });
***

it's work fine

maybe I make error in the path from

remote: "/remote/val_cod_tipGlass2.php"

to

remote: "val_cod_tipGlass2.php"


????

regards
Denis
0
Comment
Question by:denny3d
2 Comments
 
LVL 4

Accepted Solution

by:
Xemorph earned 500 total points
ID: 24868863
Where does val_cod_tipGlass2.php resided?  If it is:

HTML_DOC_ROOT/remote/val_cod_tipGlass2.php

I think it should work.  If it resides in:

CURRENTY_DIRECTORY/remote/val_cod_tipGlass2.php

Remove the first '/' so it is "remote/val_cod_tipGlass2.php"
0
 

Author Closing Comment

by:denny3d
ID: 31604203
thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question