[jQuery] Animate background position problem

2009-03-22 Thread Hinch
I am trying to create a background fade using a transparent png and altering its position using jQuerys animate function. I've seen this code around a few times but I can't get it to work. The background moves to position but is not animated. I have moved the code into the header so it can be

[jQuery] Re: Backward Compatible Ajax Links - the best way?

2008-07-22 Thread Hinch
Thanks, that's a useful little function and fits my needs. That's much more simple than I had in mind.

[jQuery] Backward Compatible Ajax Links - the best way?

2008-07-21 Thread Hinch
I'm building a site at the moment that uses a flash music player I don't want to re-load. I have removed the use of frames from their old site and plan to 'upgrade' the links to AJAX functionality - so the page isn't re-loading. I have my HTML structure like this: lia href=./page/example

[jQuery] Counting commas and form inputs

2008-07-15 Thread Hinch
I'm looking for a way to simply count or limit the number of commas used. In my form there is a drop down that selects numbers. This needs to correspond to the amount of tags a user can input - separated by commas. The drop down does several other things already so I just need to know how to

[jQuery] Re: Function variables getting lost? (super simple I'm sure)

2008-06-23 Thread Hinch
d'oh Thank you!

[jQuery] Re: Function variables getting lost? (super simple I'm sure)

2008-06-22 Thread Hinch
Yes *date* is a stand in, so the code would be: script type=text/javascript? function loadContent(id) { $(#imacalendar).load('inc/eventcalendar.php?event_date='+id); } /script Then in the body: a href=javascript:loadContent(2008-5);lt;/a Like I say, it works if I make the

[jQuery] Function variables getting lost? (super simple I'm sure)

2008-06-21 Thread Hinch
I'm working on upgrading a calender to AJAX so it is much snappier, however i'm having trouble getting it to recognise my links. I have created this function: function loadContent(id) { $(#imacalendar).load('inc/eventcalendar.php?event_date='+id); } Which is called into use like so:

[jQuery] Loading dynamic AJAX?

2008-06-12 Thread Hinch
I'm coming along OK, my chained combo box is working brilliantly but the last one needs to be dynamic. This is the code I have to power that one: $(#edcounty).change(function() { $county = $(this).val(); $(#edinst1).css(display, block); if($(#educType).val() == 'unirow') {

[jQuery] Re: Loading dynamic AJAX?

2008-06-12 Thread Hinch
thank you, it works very well =)

[jQuery] Val() and if statement? Possibly just wrong syntax

2008-06-11 Thread Hinch
I'm quite new to jQuery but forms are proving difficult for me. I'm trying to make a dynamic select box named 'educType' allow or disallow two other form fields depending on the selection. I'm pretty sure it is just the 'if' statement being incorrect syntax but I can't find examples for it. Here

[jQuery] Re: How do I... select box onclick enable other form elements?

2008-06-10 Thread Hinch
I definitely need some more help, I cannot get this if lark to work out: $(document).ready(function() { $(#question).change(function() { if ($(option:selected) == good answer) { $(#box2, #autocomplete).attr(disabled, this.value == 'no'); } }); }); Am I

[jQuery] How do I... select box onclick enable other form elements?

2008-06-09 Thread Hinch
I'm fairly new to jQuery and getting on OK but this one baffles me. I have a form with a select list with three values. One of the values should do nothing while the other two should enable two other form fields that have been disabled. The structure is like this: select id=question option

[jQuery] Re: How do I... select box onclick enable other form elements?

2008-06-09 Thread Hinch
Oh... I need to add an 'if' statement to it (at least that's how my mind works after years with PHP!), something like this? $(#question).change(function() { if !($(option:selected) == This) { $(#box2, #autocomplete).attr(disabled, this.value == 'no'); } }); Simply I want to ask the

[jQuery] Re: How do I... select box onclick enable other form elements?

2008-06-09 Thread Hinch
== 'no'); }); -- Josh - Original Message - From: Hinch [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Monday, June 09, 2008 12:10 PM Subject: [jQuery] How do I... select box onclick enable other form elements? I'm fairly new to jQuery and getting on OK but this one

[jQuery] Re: How do I... select box onclick enable other form elements?

2008-06-09 Thread Hinch
That makes sense, though the code is needed a second time elsewhere and I think will require an 'if'. The fields are filled from the database so the other options can be selected. PHP checks whether they should be disabled or not at first but I need this disabled/enabled behaviour. Am I correct