Solved

error remote path plugin validate jquery

Posted on 2009-07-16
2
385 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

DOM Attributes and Properties treatment with jQuery 1.6 by Ivo Stoykov jQuery (http://jquery.com/) 1.6 introduces .prop() (http://api.jquery.com/prop/) and .removeProp() (http://api.jquery.com/removeProp/) methods which allow modifying or removi…
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now