Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

error remote path plugin validate jquery

Posted on 2009-07-16
2
Medium Priority
?
401 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
[X]
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
2 Comments
 
LVL 4

Accepted Solution

by:
Xemorph earned 2000 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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

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 …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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…

671 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