Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

error remote path plugin validate jquery

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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…

792 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