I know of 2 ways to display an image from a callback:
1. Reference a filename.png and replace the img src attribute. (but, I
dont want to create files).
2. Set the src attribute to a URL that displays the image. (good for a
GET but not for a POST)
But I think I need a third to solve my issue. My
I'll just add my 2 cents from novice to novice.
1. JSON is just a lightweight markup language. Its like HTML, and more
like XML but just without the weight. And it is easier to read with
the eyeball.
JSON uses {} squiggles and : and [] and others to markup the data.
JSON {"CATALOG" : "JCPENNY"}
X
rules.
On Aug 10, 6:56 pm, Miket3 wrote:
> Here it is minus the submit handler
>
> var v = $("#myform").validate({
>
> rules: {
> username: {required: true,
> minlength: 4,
> remote: {url:"lookup.php&
ar valid_img = '';
// set as text for IE
label.html(valid_img);
} // end of success
});
On Aug 10, 6:12 pm, Jörn Zaefferer
wrote:
> Please show the rest of your code.
>
> Jörn
>
> On Mon, Aug 10, 2009 at 11:49 PM, Miket3 wrote:
>
> &g
Here is my handler:
submitHandler: function(form) {
alert('I CANT GET THIS TO TRIGGER');
},
Here is my button:
How do i trigger a validate when the submit button is clicked?
All of my validations work while I am working with the form but the
button does zilch.
This thing has kicked my butt all week long.
Yesterday, I actually got it to work.(almost). Since I am new to
this plugin, I am using FRANKENSTEIN code built from examples and
samples. here is my code:
success: function(label) {
var valid_img = '';
I found the issue I wasnt using the errorPlacement option. I
added this.
errorPlacement: function(error, element) {
error.appendTo( element.parent() );
},
On Aug 10, 4:17 pm, Miket3 wrote:
> This thing has kicked my butt all w
I have been struggling with the validation plugin for a while. And I
finally got it to work. As a result I created a multi-purpose lookup
script. I hope this comes in handy for someone else. This script can
be used for the validation plugin or for returning field values back
to your jquery event
OK. the validation plugin is kicking my ass. as does every new thing
I try to learn.
FIRST: I need to clarify that there is a BUG up front so someone
doesn't offer it as a solution.
I am using version 1.5.5. It has a bug in the REMOTE rule/method so
this is not an option to check for duplicate e
Sorry Jorn I spelled your name Zorn. I am using version 1.5.5
On Aug 8, 7:20 am, Miket3 wrote:
> James,
> Thanks for the response. yes, I created a single lookup function
> rather than having to generate mutiple lookups. Shouldn't be a problem
> if zorn checks the u
oth username and email validation checks have
> the same url and data. Ideally, you're suppose to pass the inputted
> username and email data to that URL for your remote script to check
> your database again those values, and return "true" or "false".
>
> On Aug 7
I need a way to debug what is being returned when I use the REMOTE
option. I cant get the validation to give me an error class when a
duplicate is found. here is my lookup.php which works perfectly fine
when I use jquery $get to call it.
Lookup.php
0) {
echo $foundmsg;
} else {echo $failmsg;
wrote:
> jQuerysupportcustomattributes, may be you can post a sample?
>
> Anyway, this works
>
> $(document).ready(function(){
> alert($("[custom='test']").length);
>
> });
>
>
>
>
>
>
> On Aug 5, 10:04 am, Miket3 wrote:
>
> >
One issue I ran across while learning jquery was that I often wanted/
needed a way to tell jquery to get data for the current element from a
related element. jQuery immediately tends to be friendly when you need
to work with a class of elements via the CLASS attribute, or a
specific element via th
14 matches
Mail list logo