[jQuery] How can I display an image on callback?

2009-08-31 Thread Miket3
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

[jQuery] Re: AJAX and JSON

2009-08-10 Thread Miket3
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

[jQuery] Re: VALIDATION not validating when submit button clicked....

2009-08-10 Thread Miket3
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&

[jQuery] Re: VALIDATION not validating when submit button clicked....

2009-08-10 Thread Miket3
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

[jQuery] VALIDATION not validating when submit button clicked....

2009-08-10 Thread Miket3
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.

[jQuery] I need Validation Plugin help... (again)

2009-08-10 Thread Miket3
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 = '';

[jQuery] Re: I need Validation Plugin help... (again)

2009-08-10 Thread Miket3
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

[jQuery] Multi-Purpose MySQL Lookup Script inside

2009-08-09 Thread Miket3
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

[jQuery] more VALIDATION issues

2009-08-09 Thread Miket3
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

[jQuery] Re: jquery(VALIDATE)

2009-08-08 Thread Miket3
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

[jQuery] Re: jquery(VALIDATE)

2009-08-08 Thread Miket3
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

[jQuery] jquery(VALIDATE)

2009-08-07 Thread Miket3
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;

[jQuery] Re: Custom Attributes - Beginner tip

2009-08-05 Thread Miket3
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: > > >

[jQuery] Custom Attributes - Beginner tip

2009-08-04 Thread Miket3
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