[jQuery] Re: New to JQuery

2009-09-16 Thread Emeka
Kumaran and Whitbeck, Thanks so much! Regards, Emeka On Wed, Sep 16, 2009 at 3:13 PM, Ralph Whitbeck wrote: > The Learning jQuery book is also another great book. > > Also take a look at http://learningjquery.com and > http://15daysofjquery.com/ is a great site to get started. > > Also you can

[jQuery] Re: New to JQuery

2009-09-16 Thread Ralph Whitbeck
The Learning jQuery book is also another great book. Also take a look at http://learningjquery.com and http://15daysofjquery.com/is a great site to get started. Also you can post your questions to the group here and we'll help you out. Good Luck Ralph On Wed, Sep 16, 2009 at 10:50 AM, Anantha K

[jQuery] Re: New to JQuery

2009-09-16 Thread Anantha Kumaran
Read jQuery in Action to get Started and then read the api doc to master it On Wed, Sep 16, 2009 at 6:13 PM, Emeka wrote: > Hello All, > > I am new here and I would need your support in order to get started. > Where can I get tutorials and wikibooks on JQuer

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread andrew.croce
Thanks for your replies, I appreciate it. I put the contents of gallery.js inside the click function and it appears to be working now. I had tried this before, but there must have been an unrelated syntax error or something that was causing it to break. Thanks Andrew On Aug 9, 4:45 pm, Stephan

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread Stephan Beal
On Aug 9, 7:38 pm, "andrew.croce" wrote: > What I was trying to do with  var current_section = $(this).attr > ("name"); was to create a variable that simply contained the "name" of > the particular subsection, which I could then attach to "_tab" to ... > idea, could that be screwing up the whole

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread andrew.croce
What I was trying to do with var current_section = $(this).attr ("name"); was to create a variable that simply contained the "name" of the particular subsection, which I could then attach to "_tab" to pinpoint the currently selected tab. I cant use the ID because it has a different value, used f

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread Stephan Beal
On Aug 8, 7:25 pm, "andrew.croce" wrote: >                 var current_section = $(this).attr("name"); ... >                 $("#"+current_section+"_tab").addClass("current_tab"); This is wrong. The '#' searches by ID, not by name. Try (untested): > var current_section = $(this)

[jQuery] Re: New to JQuery, silly question.

2009-02-13 Thread Alexandru Dinulescu
Oh snap! Thanks ... --- Alexandru Dinulescu Web Developer (X)HTML/CSS Specialist Expert Guarantee Certified Developer XHTML: http://www.expertrating.com/transcript.asp?transcriptid=1879053 CSS : http://www.expertrating.com/transcript.asp?transcriptid=1870619 RentACoder Profile: h

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread Ricardo Tomasi
li:last and li.last are not the same element. li.last is the element, while li:last is giving you the *last* LI in the collection of *all* the LI's descending from ".leftNav ul" - that is the HAX element. Enforcing the child relationship should give you the expected results: $(".leftNav .menu

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread Alexandru Dinulescu
Here is the Link of the page in question. THIS WORKS: http://alexd.adore.ro/projects/threadsmith/getIdeas.html $(document).ready(function(){ if($(".leftNav ul li:last").height() < 32){ $(".leftNav ul li.last").addClass("lastWithItems"); } }) THIS DOESNT; http://alexd.adore.ro/pro

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread Ricardo Tomasi
I guess it's something else in your code that is going wrong. I just copied and pasted your JS and HTML and it works fine: http://jsbin.com/ibete http://jsbin.com/ibete/edit Can you post a test page like the one your working, showing this issue? Then I'm sure someone will spot the problem. chee

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread Liam Potter
Hi Alexandru, I cannot see any reason why li.last would not work, as it would be no different then selecting any li with any class. Alexandru Dinulescu wrote: So this should work right? function blabla() { } $(document).ready(blabla); --- Any info why the li:last and li.last do not work?

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread Alexandru Dinulescu
So this should work right? function blabla() { } $(document).ready(blabla); --- Any info why the li:last and li.last do not work? the html was something like this Test Test Test Test Test Test Test Test Test so li.last and li:last equal the same thing Thanks for all the info so far ---

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread MorningZ
"So all the parantheses are where they belong.." you should not use () in the document.ready line $(document).ready(blabla()) won't work $(document).ready(blabla) will work On Feb 12, 11:32 am, Alexandru Dinulescu wrote: > Also i didnt say this > > I said > function blabla() { > > > > >

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread Alexandru Dinulescu
Also i didnt say this I said function blabla() { > > } > > $(document).ready(blabla()) ? So all the parantheses are where they belong... --- Alexandru Dinulescu Web Developer (X)HTML/CSS Specialist Expert Guarantee Certified Developer XHTML: http://www.expertrating.com/transcript.

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread Alexandru Dinulescu
Yes but in that case the last element is the one with the .last classname so they are identical in meaning (they both refer to the same element) so why it's not working ? --- Alexandru Dinulescu Web Developer (X)HTML/CSS Specialist Expert Guarantee Certified Developer XHTML: http:/

[jQuery] Re: New to JQuery, silly question.

2009-02-12 Thread MorningZ
For the first part of your post li:last gets the last in the given li.last gets any with the class of "last" For the second part of your post, your syntax is wrong $(document).ready(blabla) (note the lack of () after the function name) On Feb 12, 8:59 am, Alexandru Dinulescu wrote:

[jQuery] Re: New to jquery. How to get the following component??

2008-12-07 Thread Richard D. Worth
See http://groups.google.com/group/jquery-ui/browse_thread/thread/b57bf99f2abf6079 Paul Bakaus writes: "I programmed it from scratch just for the UI website, but since developing plugins for UI is so simple, it's a UI plugin ;) However, since there's quite some interest in it, expect it to be re

[jQuery] Re: new to jQuery

2008-10-30 Thread Kru
Hey, Im gonna leave the answer to your question to someone more involved but if you get the chance also have a look at Jonathan Chaffers Learning Jquery. Its a very good book indeed. Oh and by the way Jquery is a javascript library therefore a client side language. For a proper application youll

[jQuery] Re: New to Jquery : Using it on dynmaically created divs

2008-10-24 Thread ricardobeat
Using IDs with the solution I proposed above should work: function divShowHide(divID, imgID){ var $divToShow = $('#'+divID); var arrowURL = $divToShow.is(':visible') ? 'downarrow.gif'' : 'uparrow.gif''; // the above is the same as: if ($divToShow.is(':visible')) { arrow = 'downarrow.gif

[jQuery] Re: New to Jquery : Using it on dynmaically created divs

2008-10-24 Thread James2008
I've now got the divs sliding with this very simple code : function divShowHide(divID, imgID){ // Hides/Shows the vehicle details div and changes arrow appearance var divToChange = document.getElementById(divID); var arrowToChange = document.getElementById(imgID); $(divToChange).slideTogg

[jQuery] Re: New to Jquery : Using it on dynmaically created divs

2008-10-24 Thread James2008
Hi again, Jonathan - I have tried that function in replace of my own and it doesn't seem to work :-s Any ideas? Thanks, James On Oct 23, 9:30 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > A more resilient solution is to use class names instead, you can't > just drop/ignore the IDs altogether: >

[jQuery] Re: New to Jquery : Using it on dynmaically created divs

2008-10-23 Thread ricardobeat
A more resilient solution is to use class names instead, you can't just drop/ignore the IDs altogether: Product 8234 (with background-image: url(downarrow.gif) on CSS) bla bla bla bla $('div.title').click(function(){ var arrow = ( $(this).next('.description').is(':visible') ) ? 'url(downarr

[jQuery] Re: New to Jquery : Using it on dynmaically created divs

2008-10-23 Thread Jonathan Sharp, Out West Media
Hi James, Here's one way to rewrite it using jQuery: function divShowHide(divID, imgID) { var d = $('#' + divID).toggle(); $('#' + imageID).attr('src', 'Images/' + ( d.is(':visible') ? 'down' : 'up' ) + 'arrow.png' ); } Cheers, -Jonathan On Oct 23, 2008, at 8:42 AM, James2008 wro

[jQuery] Re: New to Jquery : Using it on dynmaically created divs

2008-10-23 Thread James2008
I forgot to mention. I want to do this so I can use the up and down animations for hiding/showing the divs (as currently there is none using the above method) On Oct 23, 2:42 pm, James2008 <[EMAIL PROTECTED]> wrote: > Hi. At the moment I've creating 2 divs for each record in a database. > One to

[jQuery] Re: New to jQuery --> Dynamically navigating the DOM

2008-10-16 Thread Jub
Hi Ricardo, Thanks for the reply. Unfortunately there are multiple fields which all need independent error messages - sticking into a class would trigger the same error message for all inputs. :-) On Oct 17, 4:35 am, ricardobeat <[EMAIL PROTECTED]> wrote: > You shouldn't rely on this kind of '

[jQuery] Re: New to jQuery --> Dynamically navigating the DOM

2008-10-16 Thread ricardobeat
You shouldn't rely on this kind of 'navigation' for the exact reasons you are having problems. Elements in the DOM will change positions everytime you manipulate them, this relative navigation is prone to errors. Base your code on IDs, classes and think always from the top to bottom (parent > chil

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread TimW66
Understood. The problem is, this will be replacing an existing application that does re-focus the previous field. And the plan is to make the web app work much like the existing app, but with even more functionality. The only way I've found so far to handle the focus is with a setTimeout() to f

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Jörn Zaefferer
Forcing focus on a field is always a bad idea. Consider other means, like disabling fields. Jörn On Tue, Oct 14, 2008 at 9:23 PM, TimW66 <[EMAIL PROTECTED]> wrote: > > Sorry to hijack a topic, but I too am writing some custom validation, > and I am running into a problem. I have a table form whe

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread TimW66
Sorry to hijack a topic, but I too am writing some custom validation, and I am running into a problem. I have a table form where after data is entered in the first field on the row, a new blank row will be added to the bottom of the table. I want to keep the user from entering a duplicate value

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Rick Faircloth
Good to know... and yes, Jorn's work is great and we appreciate his contributions to the community! Rick Kevin Scholl wrote: Yeah, I have to speak very highly of Jorn's plugin. It's quite comprehensive and very solid. When I started on mine (the first simple version was about a year ago) I sim

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Kevin Scholl
Yeah, I have to speak very highly of Jorn's plugin. It's quite comprehensive and very solid. When I started on mine (the first simple version was about a year ago) I simply wanted to see what I could do on my own, so I didn't use any of the existing plugins. But I don't think you can go wrong with

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Jörn Zaefferer
Yes it does. It even validates on keypress. Details about that are documented here: http://docs.jquery.com/Plugins/Validation/Reference#Validation_event Jörn On Tue, Oct 14, 2008 at 12:23 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > > Jorn, > > Does your plug-in offer on-blur validation? > > R

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Rick Faircloth
Jorn, Does your plug-in offer on-blur validation? Rick Jörn Zaefferer wrote: Have you looked at this validation plugin? http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Jörn On Tue, Oct 14, 2008 at 5:16 AM, Nishan Karassik <[EMAIL PROTECTED]> wrote: That is really slick.

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-14 Thread Jörn Zaefferer
Have you looked at this validation plugin? http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Jörn On Tue, Oct 14, 2008 at 5:16 AM, Nishan Karassik <[EMAIL PROTECTED]> wrote: > > That is really slick. I like the check boxes after it validates. It > looks like you are very well verse

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-13 Thread Nishan Karassik
That is really slick. I like the check boxes after it validates. It looks like you are very well versed in jQuery. This is my first script, but I haven't had time to test it yet. It took me two days (well evenings) to research the right strategy to get that far. I am hoping to submit the form

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-13 Thread Kevin Scholl
I've done something similar to this, where validation is may be run at either field level or on form submit, or both (default is both, can be overridden by invocation setting, below). http://beta.ksscholl.com/jquery/formvalidate.html Routine is invoked by the following snippet in the HEAD of the

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-13 Thread Nishan Karassik
Wouldn't the $("#my-form [EMAIL PROTECTED]'input']").blur(function() { be my trigger? I would like to validate as the user tabs through the form. How would I not run the function if the field just tabbed from is blank? Thanks for your validation of my script. Nishan On Oct 13, 7:30 am, "Jörn

[jQuery] Re: New to Jquery, have written Validation script...

2008-10-13 Thread Jörn Zaefferer
Validation should always hook into the submit event, eg. $(#myform").submit(function() { ... }); That handles both clicking the submit button as well as hitting enter while an input field has focus. Apart from that, the form plugin handles submitting forms via ajax and handling the response quite

[jQuery] Re: New to jQuery.. Seeking help with early ideas

2008-05-04 Thread Hamish Campbell
First of all, hide the div so it's initially... err.. hidden. $('#subNav').hide(); Now you can throw in a function to call when the div loads content: $("a#interactive").click(function () { $("#subNav").load("work_interactive.html", {}, function() { $(this).show('slow'); // change t

[jQuery] Re: new to jquery

2008-04-04 Thread Nicolas R
try .parents() instead of .parent() if the parent you are looking for is not the immediate parent of the element you specify (what Andy said). so $(this).parents("fieldset") should work also, perhaps you should use .toggleClass $(function(){ $("a.toggle") .click(function

[jQuery] Re: new to jquery

2008-04-04 Thread noon
=== jQuery code === $(function(){ $("a.toggle") .click(function(){ if ( $(this).parent("fieldset").hasClass("collapsed") ) { $(this).parent("fieldset").removeClass("collapsed"); }

[jQuery] Re: new to jquery

2008-04-03 Thread Andy Matthews
We'd really need to see your HTML code, but if you want to get the parent of an object. Let's say you have HTML code like this: this is my paragraph You want to get the immediate parent of all P tags: $('p').parent(); or you want to get a div that is a par

[jQuery] Re: New to jquery. Things just don't work.

2008-02-03 Thread Charles K. Clarkson
Sathya wrote: : ${'a'}.click(function() { That should be: $('a').click(function() { HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 http://www.clarksonenergyhomes.com/wordpress/about/

[jQuery] Re: New to jquery. Things just don't work.

2008-02-03 Thread Muhammad Mohsin
hello sathya there is an error in ur code. u miss the semi colon(;) after the function end. ${document}.ready(function() { ${'a'}.click(function() { alert("Link clicked"); ${'#main-content'}.html(' Hello '); return false; }); <=Here u miss the semi colon }

[jQuery] Re: New to jquery. Things just don't work.

2008-02-03 Thread Karl Swedberg
On Feb 3, 2008, at 7:47 AM, Sathya wrote: Hi, Am new to jquery and also not so proficient with . So bear with me if it sounds silly. I just can't get jquery to work the way its promised. I did these, 1. Downloaded jquery-1.2.js 2. Included it in my html. And wrote my first code as this ${d

[jQuery] Re: New to jquery. Things just don't work.

2008-02-03 Thread Chris Scott
On Feb 3, 2008, at 7:47 AM, Sathya wrote: Hi, Am new to jquery and also not so proficient with . So bear with me if it sounds silly. I just can't get jquery to work the way its promised. I did these, 1. Downloaded jquery-1.2.js 2. Included it in my html. And wrote my first code as this ${d

[jQuery] Re: New to JQuery with error message

2008-01-16 Thread Glen Lipka
That URL doesn't resolve in my browser. Maybe the [2] is messing it up? Glen On Jan 16, 2008 1:34 PM, Jian <[EMAIL PROTECTED]> wrote: > > Dear all: > >I am new to JQuery and encounted this error message just load the > latest JQuery library. Following is the code: > > http://tana.am.lilly.

[jQuery] Re: New to jQuery

2007-11-13 Thread Rey Bango
That's a tough question to ask and it's best to post that on the Adobe forum as they can best answer your Spry question. As for jQuery, we just do quite a bit of testing in all browsers to ensure compatibility. Rey md wrote: My experience w/ Ajax is limited at best. I've used the Spry frame

[jQuery] Re: New to jQuery, question on accessing form elements in nested HTML documents

2007-10-22 Thread Tobias Parent
I'd suggest looking at the LiveQuery jQuery plugin. It allows you, at a later time, to connect with dynamically-generated content and attach events to them. Regards! -Toby jmcintyre_jdg wrote: I have a form that lives in its own HTML file. If I load the jQuery library into the page, I can a

[jQuery] Re: New to jquery, adding/modify option box in a block

2007-08-05 Thread Glen Lipka
There is a plugin that makes that pretty easy. http://www.texotela.co.uk/code/jquery/select/ Does it do the kinds of things you are looking for? Glen On 8/4/07, Steve Finkelstein <[EMAIL PROTECTED]> wrote: > > > Hi all, > > Given the enthusiasm of the community that surrounds jquery, in > additi

[jQuery] Re: New to jQuery: Problem setting current time to some element

2007-08-03 Thread drainman
Hi! For me it works if i do like this: function displayDate(){ var date = new Date(); $("#dateandtime").text(""+date); } hope it helps /Jonas

[jQuery] Re: New to jQuery: Problem setting current time to some element

2007-08-01 Thread Nazgulled
Solved: $("#dateandtime").text(date.toString());

[jQuery] Re: New to jQuery: Problem setting current time to some element

2007-08-01 Thread Brad Perkins
Try this: function displayDate(){ var date = new Date(); $("#dateandtime").text(date.toString()); } On Aug 1, 5:56 pm, Nazgulled <[EMAIL PROTECTED]> wrote: > Hi, > This is my code: > > function displayDate(){ > var date = new Date(); > $("#dateandtime").text(date); > > } > > $(document).

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread skimber
On Apr 16, 2:36 pm, Joel Birch <[EMAIL PROTECTED]> wrote: > Yes there are always exceptions, which is I have been wracking my > brain trying to think of the one ones that apply here, so thanks for > your input Dan. I use JS/jQuery inline when I'm working on a dynamic PHP site with an include

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread wls
> However, I am trying to add an additional $(document).ready(function() > {}); in the middle of the document (i.e. inline) but it is not working > and i don't know why. I don't believe that you're going to find behavior chained. Doing so raises the interesting question of does your second funct

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Dan G. Switzer, II
>:) I'm always amazed how much an emoticon can affect the meaning of a message. I sent a sarcastic message to a friend once--which was the norm for us, but left off the ;) emoticon. He got really upset with me (he was having a bad day as it was.) The fact that I forgot the emoticon made him proba

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Andy Matthews
:) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Monday, April 16, 2007 8:34 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: New to jQuery and struggling >You should be able to use jQuery inline, but

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Andy Matthews
Sniff sniff... I'll just go play on the Prototype mailing list now. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Monday, April 16, 2007 8:34 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: New to jQuer

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Joel Birch
On 16/04/2007, at 11:34 PM, Dan G. Switzer, II wrote: PS - This really isn't addressed to Andy, just a general note. Sometimes we developers get too stuck on following "golden rules" and we end up making our code harder to work with. So if you find you have to go to long lengths to code a c

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Dan G. Switzer, II
>You should be able to use jQuery inline, but you might want to ask yourself >WHY you want to use it inline. The power of jQuery is that it can affect >EVERY part of the document from just one spot. I'd recommend rethinking >your code so as to remove the need for inline JS. While that is generall

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Dan G. Switzer, II
>Can jQuery be used inline? It definitely can be. My guess is you're running into an error. Are you using any JS debuggers to help you out. Firebug for Firefox is highly recommended. MS also has a script debugger for IE--but it's not as intuitive as Firebug. -Dan

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Andy Matthews
query-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, April 16, 2007 5:59 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: New to jQuery and struggling Thanks for the help. Moving into the head does work, but keeping it inline doesn't. Can

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Joel Birch
On 16/04/2007, at 8:58 PM, [EMAIL PROTECTED] wrote: Can jQuery be used inline? jQuery can be used inline (maybe not the 'document ready' function it seems though). However, one of the cool things about jQuery is that due to the strength of its selector engine (using CSS to target element

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread [EMAIL PROTECTED]
Thanks for the help. Moving into the head does work, but keeping it inline doesn't. Can jQuery be used inline? Fam Joel Birch wrote: On 16/04/2007, at 7:36 PM, fambizzari wrote: However, I am trying to add an additional $(document).ready(function() {}); in the middle of the document (i.e.

[jQuery] Re: New to jQuery and struggling

2007-04-16 Thread Joel Birch
On 16/04/2007, at 7:36 PM, fambizzari wrote: However, I am trying to add an additional $(document).ready(function() {}); in the middle of the document (i.e. inline) but it is not working and i don't know why. Does it work if you move the inline $(document).ready(function(){}); into the head