[jQuery] Re: Fire bug error : too much recursion

2008-10-01 Thread BB

The syntax of this function is wrong!

$("#div_id").animate({ opacity:1.9 }, 1200);

http://docs.jquery.com/Effects/animate#paramsdurationeasingcallback

On 2 Okt., 08:51, Amardeep <[EMAIL PROTECTED]> wrote:
> sorry for my mistake .. yes its JSON
> i was using this :
> $('#div_id').show('animate', {opacity:1.9}, 1200);
>
> i am not at all sure about the real cause .. i did some search and found
> that it could be a possible reason
>
>
>
> On Thu, Oct 2, 2008 at 8:50 AM, Karl Rudd <[EMAIL PROTECTED]> wrote:
> > Will need a bit more information before anyone can help. An example
> > page would be helpful. How did you find out that "it may be because of
> > the jason library used .."
>
> > Karl Rudd
>
> > (PS On a site note, it's JSON (JavaScript Object Notation), not JASON.)
>
> > On Wed, Oct 1, 2008 at 5:28 PM, Amardeep <[EMAIL PROTECTED]>
> > wrote:
> > > i am using jQuery in drupal .. can u tell me how do i know if i am using
> > > JASON library.
> > > i am pretty new in jquery and do apologize if my question sounds stupid
>
> > > On Wed, Oct 1, 2008 at 6:36 AM, Karl Rudd <[EMAIL PROTECTED]> wrote:
>
> > >> Are you using the JSON library from json.org? If so, make sure it's
> > >> the json2.js one, rather than the earlier, and slightly "broken", one.
>
> > >>http://www.json.org/js.html
>
> > >> Karl Rudd
>
> > >> On Wed, Oct 1, 2008 at 1:46 AM, ♫ cheskonov <[EMAIL PROTECTED]>
> > >> wrote:
>
> > >> > hi ,
>
> > >> > I am getting this error in Firefox 3.0.2 fire bug console :
>
> > >> > too much recursion  /misc/jquery.js  Line 2
>
> > >> > after some searching i found that it may be because of the jason
> > >> > library used ..
> > >> > can any one tell me how do i fix it ..
>
> > >> > In IE i got an alert saying that "Stack Overflow at line [line 1]"
>
> > > --
> > > Amardeep Sarkar
>
> --
> Amardeep Sarkar


[jQuery] Re: Fire bug error : too much recursion

2008-10-01 Thread Amardeep
sorry for my mistake .. yes its JSON
i was using this :
$('#div_id').show('animate', {opacity:1.9}, 1200);

i am not at all sure about the real cause .. i did some search and found
that it could be a possible reason

On Thu, Oct 2, 2008 at 8:50 AM, Karl Rudd <[EMAIL PROTECTED]> wrote:

> Will need a bit more information before anyone can help. An example
> page would be helpful. How did you find out that "it may be because of
> the jason library used .."
>
> Karl Rudd
>
> (PS On a site note, it's JSON (JavaScript Object Notation), not JASON.)
>
> On Wed, Oct 1, 2008 at 5:28 PM, Amardeep <[EMAIL PROTECTED]>
> wrote:
> > i am using jQuery in drupal .. can u tell me how do i know if i am using
> > JASON library.
> > i am pretty new in jquery and do apologize if my question sounds stupid
> >
> > On Wed, Oct 1, 2008 at 6:36 AM, Karl Rudd <[EMAIL PROTECTED]> wrote:
> >>
> >> Are you using the JSON library from json.org? If so, make sure it's
> >> the json2.js one, rather than the earlier, and slightly "broken", one.
> >>
> >> http://www.json.org/js.html
> >>
> >> Karl Rudd
> >>
> >> On Wed, Oct 1, 2008 at 1:46 AM, ♫ cheskonov <[EMAIL PROTECTED]>
> >> wrote:
> >> >
> >> > hi ,
> >> >
> >> > I am getting this error in Firefox 3.0.2 fire bug console :
> >> >
> >> > too much recursion  /misc/jquery.js  Line 2
> >> >
> >> > after some searching i found that it may be because of the jason
> >> > library used ..
> >> > can any one tell me how do i fix it ..
> >> >
> >> > In IE i got an alert saying that "Stack Overflow at line [line 1]"
> >> >
> >
> >
> >
> > --
> > Amardeep Sarkar
> >
>



-- 
Amardeep Sarkar


[jQuery] Re: Bind event to tab selection in 1.1

2008-10-01 Thread Klaus Hartl

It's called onClick in the old tabs... here's an example:
http://stilbuero.de/jquery/tabs/

--Klaus


On 1 Okt., 22:50, "Dan Baughman" <[EMAIL PROTECTED]> wrote:
> Ok so I had something really cool setup in 1.3, then I saw Klaus' history
> object doesnt' integrate with tabs 3!
>
> Does anyone know how to bind events to the tab selection action in JQuery
> 1.1?  I'm just trying to focus on one the fields in the tab content area.  I
> have tried the tabs().bind() and the new select: function syntax.


[jQuery] Sifr removing header when printing

2008-10-01 Thread Seth - TA

I am working to get my print CSS correct, however, the h2 tags which I
am using sifr on, are getting hidden when printing the page. Any
thoughts on how to remedy this? Thanks.

Seth


[jQuery] Re: Order of elements in a jquery object

2008-10-01 Thread Geoffrey

Great. That is what I thought and was hoping for.
Thank you for the info

-Geoff

On Oct 1, 7:00 pm, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > I make a query, say using a class selector.
>
> > I will get a jquery object back.
>
> > I can iterate over that object using each().
>
> > Is there a guaranteed order that the elements in this object will be exposed
> > in the each loop?
>
> > If so, what is it?
>
> > I have looked around and I can't seem to find this documented anywhere. If
> > this is address somewhere, sorry.
>
> > Thanks
>
> > -Geoff
>
> If it's a simple selector, like ".myClass", then the order of the
> elements will match the order in which they appear in the DOM.  If it
> is a compound selector, like ".classOne, .classTwo" then your each
> loop would iterate all the .classOne elements first (in their DOM
> order) and then the .classTwo elements.
>
> Mike


[jQuery] Re: JQuery Cycle Question

2008-10-01 Thread sorahn

awesome.  [EMAIL PROTECTED]

On Oct 1, 5:31 pm, Mike Alsup <[EMAIL PROTECTED]> wrote:
> You could do something like this to add the pause behavior to the
> pager hover:
>
> $('#nav li a').hover(
>         function() { $('.view-content-top-news').cycle('pause'); },
>         function() { $('.view-content-top-news').cycle('resume'); }
> );
>
> I'll make this easier in a future version of Cycle.
>
> Mike
>
> On Oct 1, 5:47 am, sorahn <[EMAIL PROTECTED]> wrote:
>
> > Hey guys, i just had a quick question about settings for the jquery
> > pager.  I've got it doing mostly what i want, but i'm wondering if
> > it's possible to invoke a pause when you hover over a pager item.
>
> > Right now when you hover it changes to that item, then continues about
> > it's business cycling through items.
>
> >http://monsterpocalypsegame.com/
>
> > It's not a huge deal, just something i'd like to be able to change if
> > possible.
>
> > Thanks.


[jQuery] Re: Ui tabs spacing

2008-10-01 Thread wattaka

Hmm formatting was destroyed, here is another try


Home  About | Info | _ |Login |

There is a larger space betweenn the "Info" and "login" tab


Thanks



On 2 Okt., 06:57, wattaka <[EMAIL PROTECTED]> wrote:
> Can someone tell me how I can get different spacing for tabs using
> Ui.tabs? Here is what I am getting at:
>
> Home | About |
> Info|                                                     | Login |
>
> I would like the "Login" tab to be spaced to the left at a setting of
> my choice.
>
> Thanks


[jQuery] Ui tabs spacing

2008-10-01 Thread wattaka

Can someone tell me how I can get different spacing for tabs using
Ui.tabs? Here is what I am getting at:


Home | About |
Info| | Login |


I would like the "Login" tab to be spaced to the left at a setting of
my choice.


Thanks


[jQuery] JQuery Validation Script within a Step Wizard Script

2008-10-01 Thread dotcomtim

I like to incorporate the Validation scripting into a Step Wizard
http://worcesterwideweb.com/jquery/wizard/; I got it pretty much
licked except the section where it only validates the available step
and ignores the others.

I pretty much followed the same layout as in this demo >
http://jquery.bassistance.de/validate/demo/multipart/ the part I am
getting confused with is how it is determining the index in the match
function. Is this part of the validate scripting or found in the
accordion scripting?

Has anyone successfully merged the 2 together?
http://jquery.bassistance.de/validate/ and 
http://worcesterwideweb.com/jquery/wizard/

Any help would be much appropriated.


[jQuery] search and replace TD innards

2008-10-01 Thread matchoo

I tried to build a plugin that would replace all numbers in td's of a
certain class with numbers formatted with commas.

For instance:



Would be replaced with

1,1112,222

Here's the code... doesn't work for phooey.

When I debug in firebug, the variable 'number' equals (literally):
"function (value) {\n return value == undefined ? this.length ?
this[0].innerHTML : null : this.empty().append(value);\n}"

$(".commas").addCommas();

jQuery.fn.addCommas = function() {
number = '' + this.html;
if (number.length > 3) {
var mod = number.length % 3;
var output = (mod > 0 ? (number.substring(0,mod)) : '');
for (i=0 ; i < Math.floor(number.length / 3); i++) {
if ((mod == 0) && (i == 0))
output += number.substring(mod+ 3 * i, mod + 3 * i + 3);
else
output+= ',' + number.substring(mod + 3 * i, mod + 3 * i + 3);
}
return (output);
}
else return number;
};


[jQuery] Re: math with form fields

2008-10-01 Thread Bil Corry

amidude wrote on 10/1/2008 3:20 PM: 
> I've read over that and it's not helping much as it does very simple
> math. I'm not a math genius by any means. But that didn't look like it
> did anything other than add or subtract.
> 
> The math I need to calculate the BMI is a little more involved.

Well, I was thinking you could use parseNumber to convert the strings into 
numbers.  But you can do it manually too:

$('#bmiCalc').bind('submit',function(event) {
var feet = parseFloat($('#feet').val(),10);
var inches = parseFloat($('#inches').val(),10);
var pounds = parseFloat($('#pounds').val(),10);

var totalInches = (feet * 12.0) + inches;

var bmi = Math.round(((pounds / (totalInches * 
totalInches)) * 703.0) * 10.0) / 10.0;
alert(bmi);
});


That will return the correct BMI result.


- Bil



[jQuery] Re: invalid object initializer

2008-10-01 Thread [EMAIL PROTECTED]

Anyone got an idea's I've been looking nearly all day about javascript
variables, and I just dont know enough about them to figure out what
I'm doing wrong. I think its a jquery issue. How can I tell jQuery to
evaluate this var?


On Oct 1, 5:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Basically what I need done is i need "thequery" variable evaluated to
> be my string of params. like Value1: 1, Value2: 2, but I think jQuery
> thinks thequery is similar to declaring value1, it doesnt know any
> better. Is there anyway to say "This is a variable, evaulate it!?"
>
> On Oct 1, 4:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I've also tried this:
>
> >         if ( \$(e.target).is('.legacy_view') ){
> >                 \$("#loading").toggle();
> >                 var thequery = \$("input#legacy_data").val();
> >                 alert (thequery);
> >                 \$("#query").load("/storeops/invoices/invoice.pl", 
> > {thequery},
> > function(){
> >                         \$("#loading").toggle();
> >                 });
>
> > On Oct 1, 3:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hello,
>
> > > I'm very in-experienced in javascript, this is my second javascript /
> > > jQuery experiment. I was wondering if someone could tell me what I'm
> > > doing wrong:
>
> > > I have the following code
>
> > >         if ( \$(e.target).is('.legacy_view') ){
> > >                 \$("#loading").toggle();
> > >                 var thequery = \$("#legacy_data").val();
> > >                 alert (thequery);
> > >                 \$("#query").load("/mysite/thepage.pl", {thequery}, 
> > > function(){
> > >                         \$("#loading").toggle();
> > >                 });
>
> > > thequery is data the looks like this: "Value1: 1, Value2: 2".
> > > Basically I'm creating the list of variables with a perl script else
> > > where, and sending them to the javascript function by a hidden form
> > > field.
>
> > > *The $'s in the javascript are esacped for perl.
>
> > > Everytime I run this with thequery in my param list,  my javascript
> > > debug window says "invalid object initializer".
>
> > > Anyone know whats up here?


[jQuery] Re: Assign 'active' to nav element

2008-10-01 Thread yellowboy


Hi Guys, thanks for the help! I ended up using your suggestions and putting
this together:

$(this).parents('div.menu div.gallery').find('h2').removeAttr('class');
$(this).addClass('active');

It allows me to deselect the other h2 elements upon clicking a different h2.
Your suggestions seemed to add the class but never deselect it - whether I
implemented those suggestions wrong I am unsure. But it was all helpful
nonetheless. 

My only other issue is making sure the fist item with an h2 is set to active
when the page loads. I tried a filter:first on the end of my script above,
but with no success. Any ideas?


Bradley Sepos wrote:
> 
> 
> Just extend Michael's code a bit:
> 
> $(this).addClass('active').siblings().removeClass('active');
> 
> Bradley~
> 
> 
> On Oct 1, 3:47 am, yellowboy <[EMAIL PROTECTED]> wrote:
>> Well I should also say I want it to deselct when another h2 element is
>> clicked.
>>
>>
>>
>> Michael Geary-3 wrote:
>>
>> > That's no problem, we are all newbies at something.
>>
>> > So you just want the H2 element to get an 'active' class when you click
>> on
>> > it? Then add this inside the click function:
>>
>> > $(this).addClass('active');
>>
>> > -Mike
>>
>> >> From: yellowboy
>>
>> >> Yes, that is why I am seeking some assistance.
>>
>> >> Not sure how to implement it within my current code. I know
>> >> how to assign the class as active, but how would I go about
>> >> making it assign an active class to the h2 element when it is
>> >> selected?
>>
>> >> Needless to say I'm a bit of a newbie and was just hoping for
>> >> some suggestions. Thanks
>>
>> >> Michael Geary-3 wrote:
>>
>> >> > I don't see anything in your code that resembles your
>> >> description of
>> >> > what you want. I'd expect to find an addClass('active')
>> >> call in there
>> >> > somewhere.
>> >> > I see a bunch of other code, but nothing like that.
>>
>> >> > Perhaps that is the problem, the code you need simply isn't there?
>>
>> >> > -Mike
>>
>> >> >> From: yellowboy
>>
>> >> >> I want my h2 element to be assigned class 'active' when
>> >> selected, I
>> >> >> have tried numerous methods but to no avail, some guidance
>> >> would be
>> >> >> appreciated!
>>
>> >> >> function initMenus() {
>> >> >>       $('div.menu div.gallery').hide();
>> >> >>       $.each($('.menu'), function(){
>> >> >>               $('#' + this.id + '.expandfirst
>> >> >> div.gallery:first').show();
>> >> >>       });
>> >> >>       $('div.menu h2').click(function() {
>>
>> >> >>                       var checkElement = $(this).next();
>> >> >>                       var parent = this.parentNode.parentNode.id;
>>
>> >> >>                       if($('#' + parent).hasClass('noaccordion')) {
>> >> >>                               $(this).next().slideToggle('normal');
>> >> >>                               return false;
>> >> >>                       }
>> >> >>                       if((checkElement.is('div.gallery')) &&
>> >> >> (checkElement.is(':visible'))) {
>> >> >>                               if($('#' +
>> >> >> parent).hasClass('collapsible')) {
>> >> >>                                       $('#' + parent + '
>> >> >> div.gallery:visible').slideUp('normal');
>> >> >>                               }
>> >> >>                               return false;
>> >> >>                       }
>> >> >>                       if((checkElement.is('div.gallery')) &&
>> >> >> (!checkElement.is(':visible'))) {
>> >> >>                               $('#' + parent + '
>> >> >> div.gallery:visible').slideUp('normal');
>> >> >>                               checkElement.slideDown('normal');
>> >> >>                               return false;
>> >> >>                       }
>> >> >>               }
>> >> >>       );
>> >> >> }
>> >> >> $(document).ready(function() {initMenus();});
>> >> >> --
>> >> >> View this message in context:
>> >> >>http://www.nabble.com/Assign-%27active%27-to-nav-element-tp197
>> >> > 53801s27240p19753801.html
>> >> >> Sent from the jQuery General Discussion mailing list archive at
>> >> >> Nabble.com.
>>
>> >> --
>> >> View this message in context:
>> >>http://www.nabble.com/Assign-%27active%27-to-nav-element-tp197
>> > 53801s27240p19754447.html
>> >> Sent from the jQuery General Discussion mailing list archive
>> >> at Nabble.com.
>>
>> --
>> View this message in
>> context:http://www.nabble.com/Assign-%27active%27-to-nav-element-tp19753801s2...
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Assign-%27active%27-to-nav-element-tp19753801s27240p19773056.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Fire bug error : too much recursion

2008-10-01 Thread Karl Rudd
Will need a bit more information before anyone can help. An example
page would be helpful. How did you find out that "it may be because of
the jason library used .."

Karl Rudd

(PS On a site note, it's JSON (JavaScript Object Notation), not JASON.)

On Wed, Oct 1, 2008 at 5:28 PM, Amardeep <[EMAIL PROTECTED]> wrote:
> i am using jQuery in drupal .. can u tell me how do i know if i am using
> JASON library.
> i am pretty new in jquery and do apologize if my question sounds stupid
>
> On Wed, Oct 1, 2008 at 6:36 AM, Karl Rudd <[EMAIL PROTECTED]> wrote:
>>
>> Are you using the JSON library from json.org? If so, make sure it's
>> the json2.js one, rather than the earlier, and slightly "broken", one.
>>
>> http://www.json.org/js.html
>>
>> Karl Rudd
>>
>> On Wed, Oct 1, 2008 at 1:46 AM, ♫ cheskonov <[EMAIL PROTECTED]>
>> wrote:
>> >
>> > hi ,
>> >
>> > I am getting this error in Firefox 3.0.2 fire bug console :
>> >
>> > too much recursion  /misc/jquery.js  Line 2
>> >
>> > after some searching i found that it may be because of the jason
>> > library used ..
>> > can any one tell me how do i fix it ..
>> >
>> > In IE i got an alert saying that "Stack Overflow at line [line 1]"
>> >
>
>
>
> --
> Amardeep Sarkar
>


[jQuery] Re: Order of elements in a jquery object

2008-10-01 Thread Mike Alsup

> I make a query, say using a class selector.
>
> I will get a jquery object back.
>
> I can iterate over that object using each().
>
> Is there a guaranteed order that the elements in this object will be exposed
> in the each loop?
>
> If so, what is it?
>
> I have looked around and I can't seem to find this documented anywhere. If
> this is address somewhere, sorry.
>
> Thanks
>
> -Geoff

If it's a simple selector, like ".myClass", then the order of the
elements will match the order in which they appear in the DOM.  If it
is a compound selector, like ".classOne, .classTwo" then your each
loop would iterate all the .classOne elements first (in their DOM
order) and then the .classTwo elements.

Mike




[jQuery] chained select - IE mobile/iphone/Opera Mobile

2008-10-01 Thread [EMAIL PROTECTED]

Hi All,

I've been using the jquery based chained select (
http://www.codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/
) for a site im working on

all works in a normal desktop based browser (even IE :) )

but when i tested on the mini/mobile browser it didnt work - they have
a custom select box thing (like the iphone) and once you select an
item in your select box it doesn't seem to register as been changed or
clicked (ie. onclick/onchange didn't seem to do anything)

you can test the demo page 
http://www.codeassembly.com/examples/jquerycombo/test.html
in the online opera mini demo at http://www.operamini.com/demo/ to see
what i mean

anyone know a solution to this??

any help would be greatly appreciated as i need to get my chained
select working on these mobile browsers

Cheers

Justin


refer: http://www.codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/


[jQuery] Re: jQuery method's don't work when adding HTML to page

2008-10-01 Thread Mike Alsup

Hard to say without seeing the code.  It could be something as simple
as a bad selector.  Can you post a link?


On Oct 1, 5:11 pm, blugrasmaniac <[EMAIL PROTECTED]> wrote:
> I have a lightbox variation (boxy to be specific) that I am using to
> load some remote HTML via AJAX.  Inside of the remote HTML, which is
> basically a login panel, I have some javascript to process the login.
>
> However, the normal jQuery methods don't have any affect on the
> elements inside of the HTML that was loaded via AJAX.  If, inside my
> remote HTML javascript, I add an element to the remote HTML using
> document.createElement, then the jQuery methods work fine.
>
> The methods I am trying to get to work are things like hide(),
> focus(), basically anything.
>
> If I use document.getElementById(''), the focus() method does work.
> It's just that getting the jQuery object (wrapper? - I don't quite
> understand how the elements are extended) using $('') shortcut or
> jQuery('') doesn't return an object that will respond to methods
> executed on it.
>
> If I alert the hide function off of the element, I see the code, and I
> am not getting any errors when it executes - just nothing happens.
>
> Any ideas?  Is there a way that I can "register" the elements with
> jQuery?


[jQuery] Re: List. Could someone help me in doing this?

2008-10-01 Thread Mike Alsup

Why don't you show us what you have so far?


On Oct 1, 9:29 pm, shapper <[EMAIL PROTECTED]> wrote:
> Hello,
>
> On a page I have two inputs, A and B, a select, C, and a button.
>
> I also have an unordered list.
>
> When the button is pressed the content of A, B and C should be put
> together into a string:
>
> "A (B) (C)"
>
> And added as a list item into the list.
> There should also be a button for each list item that when pressed
> should remove the list item.
>
> The item should only be added if an option was selected in C and if A
> is not empty. B can be empty.
>
> Is this possible?
>
> Could someone, please, help me out?
>
> Thanks,
> Miguel


[jQuery] Re: There must be a better way to write this

2008-10-01 Thread ferdjuan

Erik and Josh,

Excellent suggestions, I forget about callback functions from time to
time and though both of your suggestions worked as desired, the effect
was not the correct speed, also I wanted to reverse the order of the
fadeouts. I struggled with this for about 30 minutes, made the post,
then immediately wrote this which works as I wanted it to:

$('li.port_main').click(function(){
setInterval(fadeEmOut, 1);
});

count = $('#folio').children().length;

function fadeEmOut(){
if (count == 0)
clearInterval();
else{
$('#folio').find(":nth-child("+count+")").fadeOut();
count--;
}
}

find(":nth-child") actually operates quicker than next() if you can
believe it, well I would have used prev() to go from the bottom up
instead of next() anyway, but the effect can be reversed. Also, you
could fade items in a random order which I think will be my final
effect. To see it in action head to: http://beta.mdcreative.net and
click on the "home" button at the bottom of the page. Thanks again


[jQuery] List. Could someone help me in doing this?

2008-10-01 Thread shapper

Hello,

On a page I have two inputs, A and B, a select, C, and a button.

I also have an unordered list.

When the button is pressed the content of A, B and C should be put
together into a string:

"A (B) (C)"

And added as a list item into the list.
There should also be a button for each list item that when pressed
should remove the list item.

The item should only be added if an option was selected in C and if A
is not empty. B can be empty.

Is this possible?

Could someone, please, help me out?

Thanks,
Miguel


[jQuery] Re: jQuery validation plugin in Drupal

2008-10-01 Thread Jörn Zaefferer
Could you reduce your non-working testpage to just one non-working
element? I still can't see the issue. The validation seems to work
just fine.

Jörn

On Wed, Oct 1, 2008 at 11:57 PM, Jeroen Coumans <[EMAIL PROTECTED]> wrote:
>
> Ok, I've further debugged this, trying to find the exact circumstances
> in which the validator doesn't work. Now I noticed that the values of
> the name and id attributes of input fields aren't the same. I've
> created a fixed version:
>
> http://lab.jeroencoumans.nl/register/index-fixed-name.html
>
> And now the validator works! So it seems that the name and id
> attributes ought to be the same in order for the validator plugin to
> work. But Drupal automatically creates the name attribute without the
> "edit-" part which it prepends in the id attribute. Is there any way I
> can get the validator plugin to work without having to hack the way
> Drupal spits out its forms?
>
> Regards,
> Jeroen
>
> On 1 okt, 15:16, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> wrote:
>> Could you summarize the problem again? I looked at the testpage and
>> couldn't see anything wrong with it.
>>
>> Jörn
>>
>> On Tue, Sep 30, 2008 at 6:16 PM, Jeroen Coumans <[EMAIL PROTECTED]> wrote:
>>
>> > Could it have something to do with the fact that each id starts with
>> > "edit-"? When I try it with manually created markup, changing or
>> > removing the dashes doesn't help, but removing the "edit-" part does.
>> > Is there a workaround possible?
>>
>> > Thanks,
>> > Jeroen
>>
>> > On 29 sep, 00:06, Jeroen  Coumans <[EMAIL PROTECTED]> wrote:
>> >> Hi, I've uploaded the form with the generated HTML markup at:
>>
>> >>http://lab.jeroencoumans.nl/register/
>>
>> >> Thanks a lot,
>> >> Jeroen
>>
>> >> On 27 sep, 13:26, "Jörn Zaefferer" <[EMAIL PROTECTED]>
>> >> wrote:
>>
>> >> > Yes, an example would help a lot.
>>
>> >> > Jörn
>>
>> >> > On Sat, Sep 27, 2008 at 12:45 PM, Jeroen Coumans
>>
>> >> > <[EMAIL PROTECTED]> wrote:
>>
>> >> > > Thanks, I tried that but it doesn't seem to work. Drupal applies the
>> >> > > classes "required" to required form fields, and they're picked up
>> >> > > correctly. But any rule I add doesn't work at all. Even a single rule
>> >> > > to make an extra field required doesn't get picked up.
>>
>> >> > > Would it help if I setup an example of what I'm trying to achieve?
>>
>> >> > > Thanks,
>> >> > > Jeroen
>>
>> >> > > On 27 sep, 02:57, "Jörn Zaefferer" <[EMAIL PROTECTED]>
>> >> > > wrote:
>> >> > >> Yes, details can be found 
>> >> > >> here:http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_compl...
>>
>> >> > >> Jörn
>>
>> >> > >> On Sat, Sep 27, 2008 at 2:34 AM, Jeroen Coumans <[EMAIL PROTECTED]> 
>> >> > >> wrote:
>>
>> >> > >> > Hi,
>>
>> >> > >> > When trying to use the validator plugin, I get the following error:
>>
>> >> > >> > missing : after property id
>> >> > >> > edit-name: "required",
>>
>> >> > >> > It seems like it has problems with the "-" that Drupal puts in the
>> >> > >> > id's of each form field. Is there a workaround possible?
>>
>> >> > >> > Thanks,
>> >> > >> > Jeroen Coumans
>


[jQuery] Re: unsubscribe

2008-10-01 Thread Rick Faircloth
I just searched Google for "Google Groups jQuery"

and got this result at the top:

 

http://groups.google.com/group/jquery-en/about

 

Go there, sign in (top right), click on "Edit My Membership" (right)

and then you'll see an "Unsubscribe" button.

 

Rick

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve 
Schnable
Sent: Wednesday, October 01, 2008 7:19 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] unsubscribe

 

unsubscribe!



[jQuery] Re: There must be a better way to write this

2008-10-01 Thread Josh Nathanson


Hey ferdjuan, give this a whirl - this will work with any number of 
children.


var kid = $("#folio").children(), index = 0, numelements = kid.length;

function fadeEmOut( index ) {
 if ( index <= numelements ) {
  kid.eq( index ).fadeOut( function() { return fadeEmOut( ++index ) });
 }
}

fadeEmOut( index );


- Original Message - 
From: "ferdjuan" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Wednesday, October 01, 2008 2:36 PM
Subject: [jQuery] There must be a better way to write this




I'm trying to fade an element out, then fade it's next sibling out,
with no predetermined amount of elements. Here is an example of how I
have it now but with only 3 elements:

function fadeEmOut(){
var kid = $('#folio').children();
kid.eq(0).fadeOut(function(){
kid.eq(1).fadeOut(function(){
kid.eq(2).fadeOut();
});
});
}

i KNOW there is a better way to write this, I attempted using the
each() function but it fades every element simultaneously. When
someone writes back with the answer I'm gonna feel like a tard. Thanks! 




[jQuery] Re: JQuery Cycle Question

2008-10-01 Thread Mike Alsup

You could do something like this to add the pause behavior to the
pager hover:

$('#nav li a').hover(
function() { $('.view-content-top-news').cycle('pause'); },
function() { $('.view-content-top-news').cycle('resume'); }
);

I'll make this easier in a future version of Cycle.

Mike


On Oct 1, 5:47 am, sorahn <[EMAIL PROTECTED]> wrote:
> Hey guys, i just had a quick question about settings for the jquery
> pager.  I've got it doing mostly what i want, but i'm wondering if
> it's possible to invoke a pause when you hover over a pager item.
>
> Right now when you hover it changes to that item, then continues about
> it's business cycling through items.
>
> http://monsterpocalypsegame.com/
>
> It's not a huge deal, just something i'd like to be able to change if
> possible.
>
> Thanks.


[jQuery] Re: There must be a better way to write this

2008-10-01 Thread Erik Beeson
How about a self calling anonymous function:

$('#folio > :first').fadeOut(function() {
$(this).next().fadeOut(arguments.callee); });
Or if you're uncomfortable with that syntax, just make a function for it:

function fadeNext() {
$(this).next().fadeOut(fadeNext);
}

$('#folio > :first').fadeOut(fadeNext);

--Erik

On Wed, Oct 1, 2008 at 2:36 PM, ferdjuan <[EMAIL PROTECTED]> wrote:

>
> I'm trying to fade an element out, then fade it's next sibling out,
> with no predetermined amount of elements. Here is an example of how I
> have it now but with only 3 elements:
>
> function fadeEmOut(){
>var kid = $('#folio').children();
>kid.eq(0).fadeOut(function(){
>kid.eq(1).fadeOut(function(){
>kid.eq(2).fadeOut();
>});
>});
> }
>
> i KNOW there is a better way to write this, I attempted using the
> each() function but it fades every element simultaneously. When
> someone writes back with the answer I'm gonna feel like a tard. Thanks!
>


[jQuery] Re: jQuery Cycle Lite Plugin

2008-10-01 Thread Mike Alsup

> I've spent hours but couldn't make it work. I don't know what I'm
> missing. Can you please checkhttp://www.chorka.com/jquery/jquery.html
> and comment?

You forgot to include jQuery.  You need to include it before cycle:



...


[jQuery] There must be a better way to write this

2008-10-01 Thread ferdjuan

I'm trying to fade an element out, then fade it's next sibling out,
with no predetermined amount of elements. Here is an example of how I
have it now but with only 3 elements:

function fadeEmOut(){
var kid = $('#folio').children();
kid.eq(0).fadeOut(function(){
kid.eq(1).fadeOut(function(){
kid.eq(2).fadeOut();
});
});
}

i KNOW there is a better way to write this, I attempted using the
each() function but it fades every element simultaneously. When
someone writes back with the answer I'm gonna feel like a tard. Thanks!


[jQuery] On writing beautiful code

2008-10-01 Thread Chris Tan

I'm fairly new to Javascript and although I have become familiar with
the jQuery library, I still have no idea how to structure my code
cleanly.

My current project (http://www.pycmds.org) has risen to about 300
lines of code and although it works, it's basically spaghetti.

So I'd appreciate some advice, examples, idioms, etc. on how to
refactor my current mess into beautiful, readable code.

Thanks,
--Chris


[jQuery] jEditable plugin

2008-10-01 Thread Dr3adl0ck

Is there a way to toggle the editable functionality?

I'd like to activate/deactivate making an edit in place field editable
depending on if a user selects something.

Is there a way in jQuery remove events associated with a class or
something to that effect?

Thanks!


[jQuery] Problem Finding Children

2008-10-01 Thread DrPunchman

I need to fade the image associated to the inputs that have been
checked.

Jquery:

$('input:checked').each(function(k,s){
$( "[EMAIL PROTECTED]'"+s.id+"']" )
   .find(" > span > div >  img" ).fadeTo("fast",0.5);
});

Sample html:







Sample Text








[jQuery] Re: unsubscribe

2008-10-01 Thread Adam Weis
Steve,

To unsubscribe you'll need to edit your jQuery group settings.
http://groups.google.com/group/jquery-en/subscribe?hl=en

Select the "No Email" option and save your settings.

-Adam

On Wed, Oct 1, 2008 at 7:18 PM, Steve Schnable <[EMAIL PROTECTED]> wrote:

> unsubscribe!
>


[jQuery] Re: Should not trim the values in jquery validation

2008-10-01 Thread ♨Sutra

What about adding a valueFilter to replace the trim function.

Code fragment:
-   var result = 
$.validator.methods[method].call( this,
$.trim(element.value), element, rule.parameters );
+   var result = 
jQuery.validator.methods[method].call( this,
jQuery.isFunction(this.settings.valueFilter) ?
this.settings.valueFilter.apply(this, [element, element.value]) :
element.value, element, rule.parameters );


For example, I'd like to trim the full-size space.
String.prototype.trim = function() {
   // \u3000 means wide character space.
   return this.replace( /^[\s\u3000]+|[\s\u3000]+$/g, "" );
}

Then I can set the "valueFilter" setting as(pseudo-code):
valueFilter:function() {
return $(element).value;
}

On 8月28日, 上午4时48分, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> Thanks for pointing this out so clearly. Its now fixed in the latest
> revision:http://dev.jquery.com/changeset/5841
> The first parameter is now the untrimmed value, so methods that relied
> on the trimmed value are now more correct. The required method now
> does the necessary trimming.
>
> Jörn
>
> On Wed, Aug 27, 2008 at 7:26 PM, Sutra Zhou <[EMAIL PROTECTED]> wrote:
> > I think the validation framework should nottrimthe values.
> > var result = $.validator.methods[method].call( this, $.trim(element.value),
> > element, rule.parameters );
> > ^
> > Should NOTtrimit.
>
> > And it now caused a bug:
>
> > In this code:
> > //http://docs.jquery.com/Plugins/Validation/Methods/equalTo
> > equalTo: function(value, element, param) {
> > return value == jQuery(param).val();
> > }
> > if there are two input box: input1 and input2.
> > the value of input1: "abc "
> > the value of input2: "abc "
> > then the equalTo returned false.
> > This because:
> > retun value == jQuery(param).val(); <--
> > value = "abc"// which is trimmed
> > and jQuery(param).value() = "abc " // this is not trimmed.
> > The evidences(the test is
> > fromhttp://docs.jquery.com/Plugins/Validation/Methods/equalTo):


[jQuery] jQuery method's don't work when adding HTML to page

2008-10-01 Thread blugrasmaniac

I have a lightbox variation (boxy to be specific) that I am using to
load some remote HTML via AJAX.  Inside of the remote HTML, which is
basically a login panel, I have some javascript to process the login.

However, the normal jQuery methods don't have any affect on the
elements inside of the HTML that was loaded via AJAX.  If, inside my
remote HTML javascript, I add an element to the remote HTML using
document.createElement, then the jQuery methods work fine.

The methods I am trying to get to work are things like hide(),
focus(), basically anything.

If I use document.getElementById(''), the focus() method does work.
It's just that getting the jQuery object (wrapper? - I don't quite
understand how the elements are extended) using $('') shortcut or
jQuery('') doesn't return an object that will respond to methods
executed on it.

If I alert the hide function off of the element, I see the code, and I
am not getting any errors when it executes - just nothing happens.

Any ideas?  Is there a way that I can "register" the elements with
jQuery?


[jQuery] jCarousel Width Problems

2008-10-01 Thread craq

Hi.

I'm have a big problem with the reload() event for all browsers, and
some weirdness in IE 6 / 7.

I thought I posted this earlier, but doesn't look like it made it on.

Basically my problem looks to be with how carousel is figuring out the
width / left position..

in the reload() event,


this.list.css(this.wh, wh + 'px');
this.list.css(this.lt, -lt + 'px');


im pretty sure its the lt .

What happens is once you toggle the horizontal carousel 'next', and
then resize the browser, you will notice the carousel items vanish.
when you toggle the carousel again, you see 3 items appear, and 2
disappear with 1 left showing.

To me, it looks like the entire carousel got pushed over and it now
thinks its left most position is now what use to be its center so we
see the items that were suppose to be toggled off the carousel since
we are using a circular method which is why we see the 2 fade out. (3
items in a carousel display at a time)

Kinda confuses me.

Can anyone shed some light on this?


[jQuery] jcarousel support

2008-10-01 Thread craq

Hi There.

I'm having a weird problem with jCarousel but I think I've narrowed
down a lot.

So I believe these issues are related, but 1 is to do with IE (both
6 / 7) and the other happens in all browsers (firefox 3 included).

To make this happen in Firefox, you'd have to toggle the carousel 1
direction and then resize the browser window for the 'resize' event
that carousel has to be fired. once that fires, its like the width
value that it once had changes, and the furthest position left becomes
dead center of the screen making it look like items in the carousel
vanished but really the whole carousel is just moved over a bunch.

In IE, sometimes when you toggle a direction, 1 item is missing, or 2.
This seems like the same problem with the width getting changed when
you look at how the animation occurs.

I read in the readme about setting everything's width value with css
in px and we tried that but no go.

Can anyone shed some light on a fix for this?

I am using the nodecarousel module for Drupal with this. The carousel
setup is a 'circular' setup with 3 items on display at a time and
scrolling 3 items.


[jQuery] Re: unsubscribe

2008-10-01 Thread Erik Beeson
Perhaps you're looking for:
http://groups.google.com/group/jquery-en/subscribe

--Erik

On Wed, Oct 1, 2008 at 4:18 PM, Steve Schnable <[EMAIL PROTECTED]> wrote:

> unsubscribe!
>


[jQuery] unsubscribe

2008-10-01 Thread Steve Schnable
unsubscribe!


[jQuery] Re: invalid object initializer

2008-10-01 Thread [EMAIL PROTECTED]

Basically what I need done is i need "thequery" variable evaluated to
be my string of params. like Value1: 1, Value2: 2, but I think jQuery
thinks thequery is similar to declaring value1, it doesnt know any
better. Is there anyway to say "This is a variable, evaulate it!?"

On Oct 1, 4:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I've also tried this:
>
>         if ( \$(e.target).is('.legacy_view') ){
>                 \$("#loading").toggle();
>                 var thequery = \$("input#legacy_data").val();
>                 alert (thequery);
>                 \$("#query").load("/storeops/invoices/invoice.pl", {thequery},
> function(){
>                         \$("#loading").toggle();
>                 });
>
> On Oct 1, 3:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > Hello,
>
> > I'm very in-experienced in javascript, this is my second javascript /
> > jQuery experiment. I was wondering if someone could tell me what I'm
> > doing wrong:
>
> > I have the following code
>
> >         if ( \$(e.target).is('.legacy_view') ){
> >                 \$("#loading").toggle();
> >                 var thequery = \$("#legacy_data").val();
> >                 alert (thequery);
> >                 \$("#query").load("/mysite/thepage.pl", {thequery}, 
> > function(){
> >                         \$("#loading").toggle();
> >                 });
>
> > thequery is data the looks like this: "Value1: 1, Value2: 2".
> > Basically I'm creating the list of variables with a perl script else
> > where, and sending them to the javascript function by a hidden form
> > field.
>
> > *The $'s in the javascript are esacped for perl.
>
> > Everytime I run this with thequery in my param list,  my javascript
> > debug window says "invalid object initializer".
>
> > Anyone know whats up here?


[jQuery] Re: jQuery validation plugin in Drupal

2008-10-01 Thread Jeroen Coumans

Ok, I've further debugged this, trying to find the exact circumstances
in which the validator doesn't work. Now I noticed that the values of
the name and id attributes of input fields aren't the same. I've
created a fixed version:

http://lab.jeroencoumans.nl/register/index-fixed-name.html

And now the validator works! So it seems that the name and id
attributes ought to be the same in order for the validator plugin to
work. But Drupal automatically creates the name attribute without the
"edit-" part which it prepends in the id attribute. Is there any way I
can get the validator plugin to work without having to hack the way
Drupal spits out its forms?

Regards,
Jeroen

On 1 okt, 15:16, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> Could you summarize the problem again? I looked at the testpage and
> couldn't see anything wrong with it.
>
> Jörn
>
> On Tue, Sep 30, 2008 at 6:16 PM, Jeroen Coumans <[EMAIL PROTECTED]> wrote:
>
> > Could it have something to do with the fact that each id starts with
> > "edit-"? When I try it with manually created markup, changing or
> > removing the dashes doesn't help, but removing the "edit-" part does.
> > Is there a workaround possible?
>
> > Thanks,
> > Jeroen
>
> > On 29 sep, 00:06, Jeroen  Coumans <[EMAIL PROTECTED]> wrote:
> >> Hi, I've uploaded the form with the generated HTML markup at:
>
> >>http://lab.jeroencoumans.nl/register/
>
> >> Thanks a lot,
> >> Jeroen
>
> >> On 27 sep, 13:26, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> >> wrote:
>
> >> > Yes, an example would help a lot.
>
> >> > Jörn
>
> >> > On Sat, Sep 27, 2008 at 12:45 PM, Jeroen Coumans
>
> >> > <[EMAIL PROTECTED]> wrote:
>
> >> > > Thanks, I tried that but it doesn't seem to work. Drupal applies the
> >> > > classes "required" to required form fields, and they're picked up
> >> > > correctly. But any rule I add doesn't work at all. Even a single rule
> >> > > to make an extra field required doesn't get picked up.
>
> >> > > Would it help if I setup an example of what I'm trying to achieve?
>
> >> > > Thanks,
> >> > > Jeroen
>
> >> > > On 27 sep, 02:57, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> >> > > wrote:
> >> > >> Yes, details can be found 
> >> > >> here:http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_compl...
>
> >> > >> Jörn
>
> >> > >> On Sat, Sep 27, 2008 at 2:34 AM, Jeroen Coumans <[EMAIL PROTECTED]> 
> >> > >> wrote:
>
> >> > >> > Hi,
>
> >> > >> > When trying to use the validator plugin, I get the following error:
>
> >> > >> > missing : after property id
> >> > >> > edit-name: "required",
>
> >> > >> > It seems like it has problems with the "-" that Drupal puts in the
> >> > >> > id's of each form field. Is there a workaround possible?
>
> >> > >> > Thanks,
> >> > >> > Jeroen Coumans


[jQuery] simple jquery snake game, some feedback appreciated

2008-10-01 Thread Richard W

Hi all
I recently make a classic old school "snakey" game using jQuery. It
was a lot of fun, and something I'd been wanting to do since I was
young. It ain't no serious game, more like proof of concept?
Anyways, it's kinda fun. It supports levels, wall obstacles, snake
growth etc.
I've just create a new project over at google code, you can check it
out there:
http://code.google.com/p/jquery-snakey/

- I will put up a demo soon, for now you can view the source and
download the demo files..
- I would like to get some feedback from people; suggestions, bugs &
errors so I can improve the game.  - I've only tested it on FF2 & FF3.
many thanks



[jQuery] Re: Hover Events Can't "Keep Up" With FadeIn and FadeOut? Events Queue?

2008-10-01 Thread Joe

Still no luck.  Been trying to keep track of a flag value and it
doesn't help at all.

Any suggestions?

On Oct 1, 9:40 am, Joe <[EMAIL PROTECTED]> wrote:
> Go here:
>
> http://www.uisore.com/dev/new_placard/
>
> Now, mouseover the first thru the fifth thumbnails at the bottom
> really quickly and then back from the fifth to the first thumbnail
> really quickly.
>
> You'll notice that it has to "cycle" thru all the thumbnails'
> animations (fadeIn/Out) until it reached the last thumbnail that you
> hovered over.
>
> So it seems there is some sort of queue of events that are stacking up
> and I need to clear that queue when another thumbnail hover state has
> been encounterd.
>
> How do you do this?  I've read up on the queue, dequeue, and stop
> portions of the jQuery API and have had no luck with my current
> scenario.
>
> thanks.
>
> Joe
>
> www.subprint.com


[jQuery] Re: jQuery validation plugin in Drupal

2008-10-01 Thread Jeroen Coumans

Drupal generates input fields with an id like "edit-profile-name". The
jQuery validator plugin seems to ignore those fields completely, at
least on the form at http://lab.jeroencoumans.nl/register/ (which is
the generated HTML from a custom Drupal registration form). Quoting
the id when referencing them for custom rules or messages doesn't
help.

Thanks,
Jeroen

On 1 okt, 15:16, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> Could you summarize the problem again? I looked at the testpage and
> couldn't see anything wrong with it.
>
> Jörn
>
> On Tue, Sep 30, 2008 at 6:16 PM, Jeroen Coumans <[EMAIL PROTECTED]> wrote:
>
> > Could it have something to do with the fact that each id starts with
> > "edit-"? When I try it with manually created markup, changing or
> > removing the dashes doesn't help, but removing the "edit-" part does.
> > Is there a workaround possible?
>
> > Thanks,
> > Jeroen
>
> > On 29 sep, 00:06, Jeroen  Coumans <[EMAIL PROTECTED]> wrote:
> >> Hi, I've uploaded the form with the generated HTML markup at:
>
> >>http://lab.jeroencoumans.nl/register/
>
> >> Thanks a lot,
> >> Jeroen
>
> >> On 27 sep, 13:26, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> >> wrote:
>
> >> > Yes, an example would help a lot.
>
> >> > Jörn
>
> >> > On Sat, Sep 27, 2008 at 12:45 PM, Jeroen Coumans
>
> >> > <[EMAIL PROTECTED]> wrote:
>
> >> > > Thanks, I tried that but it doesn't seem to work. Drupal applies the
> >> > > classes "required" to required form fields, and they're picked up
> >> > > correctly. But any rule I add doesn't work at all. Even a single rule
> >> > > to make an extra field required doesn't get picked up.
>
> >> > > Would it help if I setup an example of what I'm trying to achieve?
>
> >> > > Thanks,
> >> > > Jeroen
>
> >> > > On 27 sep, 02:57, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> >> > > wrote:
> >> > >> Yes, details can be found 
> >> > >> here:http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_compl...
>
> >> > >> Jörn
>
> >> > >> On Sat, Sep 27, 2008 at 2:34 AM, Jeroen Coumans <[EMAIL PROTECTED]> 
> >> > >> wrote:
>
> >> > >> > Hi,
>
> >> > >> > When trying to use the validator plugin, I get the following error:
>
> >> > >> > missing : after property id
> >> > >> > edit-name: "required",
>
> >> > >> > It seems like it has problems with the "-" that Drupal puts in the
> >> > >> > id's of each form field. Is there a workaround possible?
>
> >> > >> > Thanks,
> >> > >> > Jeroen Coumans


[jQuery] Re: invalid object initializer

2008-10-01 Thread [EMAIL PROTECTED]

I've also tried this:

if ( \$(e.target).is('.legacy_view') ){
\$("#loading").toggle();
var thequery = \$("input#legacy_data").val();
alert (thequery);
\$("#query").load("/storeops/invoices/invoice.pl", {thequery},
function(){
\$("#loading").toggle();
});

On Oct 1, 3:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> I'm very in-experienced in javascript, this is my second javascript /
> jQuery experiment. I was wondering if someone could tell me what I'm
> doing wrong:
>
> I have the following code
>
>         if ( \$(e.target).is('.legacy_view') ){
>                 \$("#loading").toggle();
>                 var thequery = \$("#legacy_data").val();
>                 alert (thequery);
>                 \$("#query").load("/mysite/thepage.pl", {thequery}, 
> function(){
>                         \$("#loading").toggle();
>                 });
>
> thequery is data the looks like this: "Value1: 1, Value2: 2".
> Basically I'm creating the list of variables with a perl script else
> where, and sending them to the javascript function by a hidden form
> field.
>
> *The $'s in the javascript are esacped for perl.
>
> Everytime I run this with thequery in my param list,  my javascript
> debug window says "invalid object initializer".
>
> Anyone know whats up here?


[jQuery] Re: math with form fields

2008-10-01 Thread amidude

I shouldn't be trying to do this in jquery should I?

On Oct 1, 3:31 pm, amidude <[EMAIL PROTECTED]> wrote:
> Plus the calc plugin relies on the user inputting data into a field
> whereas I have them just selecting a number for their height in feet
> and inches. I thought it would be easier.
>
> On Oct 1, 3:20 pm, amidude <[EMAIL PROTECTED]> wrote:
>
> > I've read over that and it's not helping much as it does very simple
> > math. I'm not a math genius by any means. But that didn't look like it
> > did anything other than add or subtract.
>
> > The math I need to calculate the BMI is a little more involved.
>
> > On Oct 1, 3:09 pm, Bil Corry <[EMAIL PROTECTED]> wrote:
>
> > > amidude wrote on 10/1/2008 2:50 PM:
>
> > > > the math part is pretty fuzzy too.
>
> > > For the math part, you might look at the Calculation plugin:
>
> > >        
> > > http://www.pengoworks.com/workshop/jquery/calculation/calculation.plu...
>
> > > - Bil


[jQuery] Re: XHTML Selector Nightmare

2008-10-01 Thread Christopher Greenwood
Thanks Erik.  That worked perfectly.  It was one of those "duh..." 
moments as I read your email.  I tried taking the "not" filter out of 
the initial expression and chaining it onto the end but still only used 
an expression rather than using a Jquery array.  I did notice the index 
method is actually faster than pulling 900 rows and filtering out 870 of 
them for a selection but at least I know how to accomplish this in the 
future.


Thanks again.

Chris

Erik Beeson wrote:

Try this:
 
$('.sMarker ~ row', myTable).not($('.eMarker ~ row', myTable))
 
That will get what you want, but I think it won't include the .sMarker 
row. To get .sMarker also, maybe try:
 
$('.sMarker,.sMarker ~ row', myTable).not($('.eMarker ~ row', myTable))
 
You can also do it by index without each() like this:
 
var $rows = $('row', myTable);
var $range = $rows.slice($rows.index($rows.filter('.sMarker')), 
$rows.index($rows.filter('.eMarker'))+1);
 
Hope it helps.
 
--Erik
 

On Wed, Oct 1, 2008 at 11:31 AM, greenteam003 <[EMAIL PROTECTED] 
> wrote:




I really don't know why I'm having such a hard time with this
(maybe its the
two monsters and three cups of coffee) but I'm trying to select a
range of
rows in a 1000 row xhtml table, between starting row with class
"sMarker"
and ending row with class "eMarker".  I'm trying to use the following
selector...

$('.sMarker ~ row:not(".eMarker ~ row")',myTable)

In my mind this should take my ".sMarker" row, grab all sibling
rows after,
and then filter out any rows that come after my ".eMarker" row.
 Or am I
just overthinking this?

Currently that selector will select ALL rows after my ".sMarker"
excluding
the single row marked with ".eMarker".

Note:  To filter out any responses that are blindingly obvious,
the table
row tags in my xhtml are really "row" not tr.

I don't know how else to get this "between" functionality without
using
indexes and the each iteration is a huge performance loss when
dealing with
larger tables.

Please help because I can not wrap my head around this one this
morning.

Thanks,
greenteam







--
View this message in context:

http://www.nabble.com/XHTML-Selector-Nightmare-tp19766491s27240p19766491.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com.






[jQuery] Re: XHTML Selector Nightmare

2008-10-01 Thread Christopher Greenwood


*This message was transferred with a trial version of CommuniGate(r) Pro*
Thanks Erik.  That worked perfectly.  It was one of those "duh..." 
moments as I read your email.  I tried taking the "not" filter out of 
the initial expression and chaining it onto the end but still only used 
an expression rather than using a Jquery array.  I did notice the index 
method is actually faster than pulling 900 rows and filtering out 870 of 
them for a selection but at least I know how to accomplish this in the 
future.


Thanks again.

Chris

Erik Beeson wrote:

Try this:
 
$('.sMarker ~ row', myTable).not($('.eMarker ~ row', myTable))
 
That will get what you want, but I think it won't include the .sMarker 
row. To get .sMarker also, maybe try:
 
$('.sMarker,.sMarker ~ row', myTable).not($('.eMarker ~ row', myTable))
 
You can also do it by index without each() like this:
 
var $rows = $('row', myTable);
var $range = $rows.slice($rows.index($rows.filter('.sMarker')), 
$rows.index($rows.filter('.eMarker'))+1);
 
Hope it helps.
 
--Erik
 

On Wed, Oct 1, 2008 at 11:31 AM, greenteam003 <[EMAIL PROTECTED] 
> wrote:




I really don't know why I'm having such a hard time with this
(maybe its the
two monsters and three cups of coffee) but I'm trying to select a
range of
rows in a 1000 row xhtml table, between starting row with class
"sMarker"
and ending row with class "eMarker".  I'm trying to use the following
selector...

$('.sMarker ~ row:not(".eMarker ~ row")',myTable)

In my mind this should take my ".sMarker" row, grab all sibling
rows after,
and then filter out any rows that come after my ".eMarker" row.
 Or am I
just overthinking this?

Currently that selector will select ALL rows after my ".sMarker"
excluding
the single row marked with ".eMarker".

Note:  To filter out any responses that are blindingly obvious,
the table
row tags in my xhtml are really "row" not tr.

I don't know how else to get this "between" functionality without
using
indexes and the each iteration is a huge performance loss when
dealing with
larger tables.

Please help because I can not wrap my head around this one this
morning.

Thanks,
greenteam







--
View this message in context:

http://www.nabble.com/XHTML-Selector-Nightmare-tp19766491s27240p19766491.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com.






[jQuery] Order of elements in a jquery object

2008-10-01 Thread Geoffrey Knutzen
 

I make a query, say using a class selector. 

I will get a jquery object back.

I can iterate over that object using each().

Is there a guaranteed order that the elements in this object will be exposed
in the each loop?

If so, what is it?

 

I have looked around and I can't seem to find this documented anywhere. If
this is address somewhere, sorry.

 

Thanks

-Geoff

 



[jQuery] Bind event to tab selection in 1.1

2008-10-01 Thread Dan Baughman
Ok so I had something really cool setup in 1.3, then I saw Klaus' history
object doesnt' integrate with tabs 3!

Does anyone know how to bind events to the tab selection action in JQuery
1.1?  I'm just trying to focus on one the fields in the tab content area.  I
have tried the tabs().bind() and the new select: function syntax.


[jQuery] Re: form select...

2008-10-01 Thread GARIL


I did. Thanks Josh. I modified it in such a way that given an index x
I can write:
$("#fruits option").get(x).selected = true;
And that did it.

---
On Oct 1, 3:36 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> Did you try my code?  It should do what you describe.
>
> -- Josh


On Oct 1, 3:36 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> Did you try my code?  It should do what you describe.
>
> -- Josh


[jQuery] Re: form select...

2008-10-01 Thread greenteam003


You could achieve this by using $('#fruits').val('Banana').

All of this is available in the jquery api docs if you take a look.  Take a
look at   http://docs.jquery.com/Attributes
http://docs.jquery.com/Attributes  for examples of what you're trying to
accomplish with the select elements.



GARIL wrote:
> 
> 
> How do I use jQuery to determine which item was selected from the
> forms below?
> Thank you for the help.
> 
> 
> Select your favorite fruit:
> 
>   Apple
>   Orange
>   Pineapple
>   Banana
> 
> 
> 
> 
> Select your favorite fruit:
> 
>   All fruits
>   Some only...
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/form-select...-tp19708959s27240p19767784.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: form select...

2008-10-01 Thread Josh Nathanson


Give this a go:

$("option","#fruits").each(function() {
   $(this).attr("selected", $(this).text() == 'Pineapple' );
});

-- Josh

- Original Message - 
From: "GARIL" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Wednesday, October 01, 2008 12:38 PM
Subject: [jQuery] Re: form select...





Select your favorite fruit:

 Apple
 Orange
 Pineapple
 Banana



In the form above how do I programmatically set using jQuery the
Pineapple option as the selected default?



[jQuery] Re: form select...

2008-10-01 Thread Josh Nathanson


Did you try my code?  It should do what you describe.

-- Josh


- Original Message - 
From: "GARIL" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Wednesday, October 01, 2008 1:12 PM
Subject: [jQuery] Re: form select...




Thank your for your answers but I don't want to set the value.
What I want to happen is to programmatically change the select into:

BEFORE AFTER
   
Select your favorite fruit:  Select your favorite fruit:
 
 AppleApple
 Orange  Orange
 Pineapple  Pineapple
<--
 Banana Banana
  



On Oct 1, 2:50 pm, greenteam003 <[EMAIL PROTECTED]> wrote:

You could achieve this by using $('#fruits').val('Banana').



[jQuery] invalid object initializer

2008-10-01 Thread [EMAIL PROTECTED]

Hello,

I'm very in-experienced in javascript, this is my second javascript /
jQuery experiment. I was wondering if someone could tell me what I'm
doing wrong:

I have the following code

if ( \$(e.target).is('.legacy_view') ){
\$("#loading").toggle();
var thequery = \$("#legacy_data").val();
alert (thequery);
\$("#query").load("/mysite/thepage.pl", {thequery}, function(){
\$("#loading").toggle();
});

thequery is data the looks like this: "Value1: 1, Value2: 2".
Basically I'm creating the list of variables with a perl script else
where, and sending them to the javascript function by a hidden form
field.

*The $'s in the javascript are esacped for perl.

Everytime I run this with thequery in my param list,  my javascript
debug window says "invalid object initializer".

Anyone know whats up here?


[jQuery] Re: XHTML Selector Nightmare

2008-10-01 Thread Erik Beeson
Try this:

$('.sMarker ~ row', myTable).not($('.eMarker ~ row', myTable))

That will get what you want, but I think it won't include the .sMarker row.
To get .sMarker also, maybe try:

 $('.sMarker,.sMarker ~ row', myTable).not($('.eMarker ~ row', myTable))

You can also do it by index without each() like this:

var $rows = $('row', myTable);
var $range = $rows.slice($rows.index($rows.filter('.sMarker')),
$rows.index($rows.filter('.eMarker'))+1);

Hope it helps.

--Erik


On Wed, Oct 1, 2008 at 11:31 AM, greenteam003 <[EMAIL PROTECTED]> wrote:

>
>
> I really don't know why I'm having such a hard time with this (maybe its
> the
> two monsters and three cups of coffee) but I'm trying to select a range of
> rows in a 1000 row xhtml table, between starting row with class "sMarker"
> and ending row with class "eMarker".  I'm trying to use the following
> selector...
>
> $('.sMarker ~ row:not(".eMarker ~ row")',myTable)
>
> In my mind this should take my ".sMarker" row, grab all sibling rows after,
> and then filter out any rows that come after my ".eMarker" row.  Or am I
> just overthinking this?
>
> Currently that selector will select ALL rows after my ".sMarker" excluding
> the single row marked with ".eMarker".
>
> Note:  To filter out any responses that are blindingly obvious, the table
> row tags in my xhtml are really "row" not tr.
>
> I don't know how else to get this "between" functionality without using
> indexes and the each iteration is a huge performance loss when dealing with
> larger tables.
>
> Please help because I can not wrap my head around this one this morning.
>
> Thanks,
> greenteam
>
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/XHTML-Selector-Nightmare-tp19766491s27240p19766491.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>


[jQuery] Re: math with form fields

2008-10-01 Thread amidude

Plus the calc plugin relies on the user inputting data into a field
whereas I have them just selecting a number for their height in feet
and inches. I thought it would be easier.

On Oct 1, 3:20 pm, amidude <[EMAIL PROTECTED]> wrote:
> I've read over that and it's not helping much as it does very simple
> math. I'm not a math genius by any means. But that didn't look like it
> did anything other than add or subtract.
>
> The math I need to calculate the BMI is a little more involved.
>
> On Oct 1, 3:09 pm, Bil Corry <[EMAIL PROTECTED]> wrote:
>
> > amidude wrote on 10/1/2008 2:50 PM:
>
> > > the math part is pretty fuzzy too.
>
> > For the math part, you might look at the Calculation plugin:
>
> >        
> > http://www.pengoworks.com/workshop/jquery/calculation/calculation.plu...
>
> > - Bil


[jQuery] Re: math with form fields

2008-10-01 Thread amidude

I've read over that and it's not helping much as it does very simple
math. I'm not a math genius by any means. But that didn't look like it
did anything other than add or subtract.

The math I need to calculate the BMI is a little more involved.

On Oct 1, 3:09 pm, Bil Corry <[EMAIL PROTECTED]> wrote:
> amidude wrote on 10/1/2008 2:50 PM:
>
> > the math part is pretty fuzzy too.
>
> For the math part, you might look at the Calculation plugin:
>
>        
> http://www.pengoworks.com/workshop/jquery/calculation/calculation.plu...
>
> - Bil


[jQuery] Re: form select...

2008-10-01 Thread GARIL


Thank your for your answers but I don't want to set the value.
What I want to happen is to programmatically change the select into:

BEFORE AFTER
   
Select your favorite fruit:  Select your favorite fruit:
 
  AppleApple
  Orange  Orange
  Pineapple  Pineapple
<--
  Banana Banana
  



On Oct 1, 2:50 pm, greenteam003 <[EMAIL PROTECTED]> wrote:
> You could achieve this by using $('#fruits').val('Banana').
>


[jQuery] Re: math with form fields

2008-10-01 Thread Bil Corry

amidude wrote on 10/1/2008 2:50 PM: 
> the math part is pretty fuzzy too.

For the math part, you might look at the Calculation plugin:


http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm


- Bil



[jQuery] math with form fields

2008-10-01 Thread amidude

Okay here's my form for a BMI Calculator I'm making.



Your BMI

Height

4
5
6
7
 ft

0
1
2
3
4
5
6
7
8
9
10
11
12
 in
Weight





My problem is that I don't know how to retreive a number value from
select items. Then the math part is pretty fuzzy too.

Here's where I am so far...am I on the right track?

$(function () {
$('#subCalc').bind('submit',function(event) {
var feet = $('#feet').val();
var inches = $('#inches').val() || 0;
var pounds = $('#pounds').val();, 10);

var totalInches = feet * 12 + inches;
var bmi = Math.round(pounds * 703 * 10 / totalInches /
totalInches) / 10;
});
  })


[jQuery] XHTML Selector Nightmare

2008-10-01 Thread greenteam003


I really don't know why I'm having such a hard time with this (maybe its the
two monsters and three cups of coffee) but I'm trying to select a range of
rows in a 1000 row xhtml table, between starting row with class "sMarker"
and ending row with class "eMarker".  I'm trying to use the following
selector...

$('.sMarker ~ row:not(".eMarker ~ row")',myTable)

In my mind this should take my ".sMarker" row, grab all sibling rows after,
and then filter out any rows that come after my ".eMarker" row.  Or am I
just overthinking this?

Currently that selector will select ALL rows after my ".sMarker" excluding
the single row marked with ".eMarker".

Note:  To filter out any responses that are blindingly obvious, the table
row tags in my xhtml are really "row" not tr.

I don't know how else to get this "between" functionality without using
indexes and the each iteration is a huge performance loss when dealing with
larger tables.

Please help because I can not wrap my head around this one this morning.

Thanks,
greenteam







-- 
View this message in context: 
http://www.nabble.com/XHTML-Selector-Nightmare-tp19766491s27240p19766491.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: form select...

2008-10-01 Thread GARIL


Select your favorite fruit:

  Apple
  Orange
  Pineapple
  Banana



In the form above how do I programmatically set using jQuery the
Pineapple option as the selected default?



[jQuery] Re: jQuery Cycle Lite Plugin

2008-10-01 Thread Steve Schnable
How can I subscribe it?

Steve


[jQuery] Re: Include Scripts

2008-10-01 Thread Steve Schnable
How can I subscribe it?

Steve


[jQuery] Re: Licenses

2008-10-01 Thread Steve Schnable
How can I subscribe it?

Steve


[jQuery] Re: Problem with JQuery Form, file upload and success option

2008-10-01 Thread Steve Schnable
How can I subscribe it?

Steve


[jQuery] Re: Passing a variable to a function

2008-10-01 Thread Steve Schnable
How can I subscribe it?

Steve


[jQuery] Re: XHTML Selector Nightmare

2008-10-01 Thread Steve Schnable
How can I subscribe it?

Steve


[jQuery] Re: Passing a variable to a function

2008-10-01 Thread amidude

I'm new to jquery as well. But I'm wondering if something like this
wouldn't work.

$(function() {

$(".evname a").click(function() {
$(this.hash).slideToggle(500);
return false;
});

});

You would, of course, have to add an anchor tag in your form. But that
would only help you with showing one. I'm using this as well and am
able to get my hidden to slide open. But since you want to go through
all of them I would there would need to be the need to retreive all of
the elements, determine which one is being clicked, then apply the
action to that particular click event.

On Oct 1, 12:16 pm, andrewsquidge <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I've been trying to get this literally all day! I just can't work it out.
>
> I've got this HTML:
> 
>  1 This is the event name 
> some text here
> 
>
> On click of  the li beneath should reveal. But because
> there are many of these ona page and they will be dynamic I need to set it
> to reveal only the relevant one.
>
> So my plan was to reveal the relevant  in order. Here's
> the jquery:
>
>         $(document).ready(function() {
>
>                 $("li.evname").click(function() {
>                         var id = this.id.replace('show_', "");
>                         $("#eventlist li.evsum:eq("+id+")").slideToggle();
>                 });
>
>         });
>
> But I'm getting nothing. Even when I replace the action (slideToggle) with
> an alert(id) I just get an alert saying "This website says:" and no id! I'm
> stumped!
>
> PLEASE, please please can someone help me out!
>
> Thanks in advance.
> Andy
> --
> View this message in 
> context:http://www.nabble.com/Passing-a-variable-to-a-function-tp19765153s272...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] jQuery Cycle Lite Plugin

2008-10-01 Thread angel

Hi,

I've spent hours but couldn't make it work. I don't know what I'm
missing. Can you please check http://www.chorka.com/jquery/jquery.html
and comment?


Regards,
Sultan Arefin


[jQuery] Re: Problem with JQuery Form, file upload and success option

2008-10-01 Thread kojilab

My mistake. I was doing something wrong in the back end code and since
I couldn't see the response, I thought it was the success option.

On Oct 1, 11:31 am, kojilab <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The code in my success option does not execute when I have a simple
> form with a file field.
>
> When I use a form without a form field, it works.
>
> Here's the code
>
>  
> 
> 
> Choose your photo:
> 
> 
>
> Choose a .jpg, .png, or .gif file (1MB max file size)
> 
>  value="Upload" />
> 
>
> 
>
> $(document).ready(function(){
>
> $('#photo_upload_form').ajaxForm({
> dataType: 'json',
> beforeSubmit: function(){
>alert('here'); // works
> },
> success: function(responseText){
>alert('success'); // doesn't even go there
> }
> });
>
> });


[jQuery] Re: Passing a variable to a function

2008-10-01 Thread MorningZ

So, and if am understanding correctly...  you have this html an are
after some sort of accordion like behavior



Event 1 Name
Summary of Event 1

Event 2 Name
Summary of Event 2

Event 3 Name
Summary of Event 3

Event 4 Name
Summary of Event 4

etc etc..


and you have "evsum" hidden by say:

.evsum { display: none; }

and you want to click on the "evname" and show the related "evsum"

if thats the case, the jQuery could be like:

$(document).ready(function() {
 $(".evname").click(function() {
  $(this).next().toggle();
 });
});


that would show (or hide, hence the use of "toggle") the respective
summary





On Oct 1, 1:16 pm, andrewsquidge <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I've been trying to get this literally all day! I just can't work it out.
>
> I've got this HTML:
> 
>  1 This is the event name 
> some text here
> 
>
> On click of  the li beneath should reveal. But because
> there are many of these ona page and they will be dynamic I need to set it
> to reveal only the relevant one.
>
> So my plan was to reveal the relevant  in order. Here's
> the jquery:
>
>         $(document).ready(function() {
>
>                 $("li.evname").click(function() {
>                         var id = this.id.replace('show_', "");
>                         $("#eventlist li.evsum:eq("+id+")").slideToggle();
>                 });
>
>         });
>
> But I'm getting nothing. Even when I replace the action (slideToggle) with
> an alert(id) I just get an alert saying "This website says:" and no id! I'm
> stumped!
>
> PLEASE, please please can someone help me out!
>
> Thanks in advance.
> Andy
> --
> View this message in 
> context:http://www.nabble.com/Passing-a-variable-to-a-function-tp19765153s272...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Problem with JQuery Form, file upload and success option

2008-10-01 Thread kojilab

Hi,

The code in my success option does not execute when I have a simple
form with a file field.

When I use a form without a form field, it works.

Here's the code

 


Choose your photo:



Choose a .jpg, .png, or .gif file (1MB max file size)






$(document).ready(function(){

$('#photo_upload_form').ajaxForm({
dataType: 'json',
beforeSubmit: function(){
   alert('here'); // works
},
success: function(responseText){
   alert('success'); // doesn't even go there
}
});



});


[jQuery] Passing a variable to a function

2008-10-01 Thread andrewsquidge


Hi guys, 

I've been trying to get this literally all day! I just can't work it out.

I've got this HTML:

 1 This is the event name 
some text here


On click of  the li beneath should reveal. But because
there are many of these ona page and they will be dynamic I need to set it
to reveal only the relevant one.

So my plan was to reveal the relevant  in order. Here's
the jquery:

$(document).ready(function() {

$("li.evname").click(function() {
var id = this.id.replace('show_', "");
$("#eventlist li.evsum:eq("+id+")").slideToggle();
});

});

But I'm getting nothing. Even when I replace the action (slideToggle) with
an alert(id) I just get an alert saying "This website says:" and no id! I'm
stumped!

PLEASE, please please can someone help me out!

Thanks in advance.
Andy
-- 
View this message in context: 
http://www.nabble.com/Passing-a-variable-to-a-function-tp19765153s27240p19765153.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Licenses

2008-10-01 Thread sutra

Hi thought I take this opportunity to ask the license question.

I plan to sell eCommerce themes, and the license has to be OSL 3.0. I
have incorporated jquery accordion and tabs (not from plugins written
by the plugin writers) to my theme. I understand that I have to keep
the jQuery license as it is whenever I use jQuery for website project,
but am not sure if I can have it included in my OSL 3.0 license
theme.

Thanks!
sutra



[jQuery] Re: Include Scripts

2008-10-01 Thread alexanmtz

I develop a script that insert javascript and css on demand and you
have the options to execute callback after the script has loaded

http://plugins.jquery.com/project/includedemand

This way you can load the scripts for the specific page that are used.

I hope it helps,

Alexandre Magno
Web Developer
http://blog.alexandremagno.net

On Aug 17, 7:43 pm, shapper <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am working on a web site where I have a master page.
> Most web site pages use this master page as base.
>
> Some scripts are used in all pages ... other just in a few pages.
> Should I load all scripts in master page ... I think they are cached
> right?
>
> Or should I load the common scripts to all pages in my master page and
> then in each page load the scripts that are not used in all pages?
>
> Thanks,
> Miguel


[jQuery] Re: Licenses

2008-10-01 Thread Rey Bango


The jQuery library is dual licensed under GPL & MIT so you're allowed to 
use it in a commercial product.


Rey

Tomy Lucadamo wrote:

Hi all!
I am using jQuery in a web project for scrolls, accordions and
slideshows.
The client belives that the website become an open source because we
are using an open source library.
Is this correct?
If I use an open source library all the project must be open source?
How can I refuse this idea?

Thanks in advance!



[jQuery] Re: Licenses

2008-10-01 Thread Steve Schnable
How can I unsubscribe it?

Steve


[jQuery] Re: Adding class to a parent element- traversion help?

2008-10-01 Thread Steve Schnable
How can I unsubscribe it?

Steve


[jQuery] Re: Adding class to a parent element- traversion help?

2008-10-01 Thread Vinoj

Grr, well that didn't work. But I understand the basic premise of it,
so thank you.

-v

On Sep 30, 9:55 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> Try an ugly filter function:
>
> $(".bc-wrapper").filter(function(){
>     return !/^\s+$/.test(this.textContent); // "\s" is a shorthand for
> whitespace/line breaks
>
> }).parent().addClass("none");
>
> This will exclude from your selector all elements that have only
> whitespace in it. Be weary that regexes are slow, you don't want this
> code looping over a thousand elements.
>
> - ricardo
>
> On Sep 30, 8:56 pm, Vinoj <[EMAIL PROTECTED]> wrote:
>
> > @Michael Geary -- Thanks, now I get it. But the code is being output
> > by a CMS, which has some whitespace that is output. So then truncate
> > the whitespace?
> > @FrenchilNLA -- It seemed to make sense, but this didn't work as long
> > as I had that extra space. Once I took out the whitespace that Michael
> > Geary spoke of, it worked. Is there a way to basically have the :empty
> > selector work and ignore whitespace?
>
> > Thanks from both of you for responding, I really appreciate it.


[jQuery] Re: Licenses

2008-10-01 Thread Scott Stewart


The open source license applies only to the code that invokes it: IE

JQuery is released under GPL and MIT, however these licenses apply only 
to JQuery, and the really basic jist of these licenses
are "give credit where credit is due, and we have some legal recourse if 
you don't"


Have your client look at who uses it, would he think for a second that 
the Google, CBS, Dell or Major League Baseball websites are open source?

I can almost guarantee that they're not.

Tomy Lucadamo wrote:

Hi all!
I am using jQuery in a web project for scrolls, accordions and
slideshows.
The client belives that the website become an open source because we
are using an open source library.
Is this correct?
If I use an open source library all the project must be open source?
How can I refuse this idea?

Thanks in advance!
  


--
Scott Stewart
ColdFusion Developer

Office of Research Information Systems
Research & Economic Development
University of North Carolina at Chapel Hill

Phone:(919)843-2408
Fax: (919)962-3600
Email: [EMAIL PROTECTED]




[jQuery] Re: dealing with multiple forms having same id

2008-10-01 Thread Donkeybob
XHTML standards based development states that the id attribute must be
unique. So if you want you pages to have valid markup, use the class
attribute.

from w3c:
-
id = ID
The id attribute assigns an identifier to an element. The value of
this attribute must be unique within a document.

http://www.w3.org/TR/xhtml2/mod-core.html#adef_core_id
-



On Sep 29, 3:03 pm, Amardeep <[EMAIL PROTECTED]> wrote:
> HI Donkeybob
>
> can u please tell me what do u mean by invalid page ? r u saying it wont be
> a valid HTML page ??
>
>
>
> On Mon, Sep 29, 2008 at 10:26 PM, Donkeybob <[EMAIL PROTECTED]> wrote:
> > as far as I know . . multiple id's is not allowed and would make your
> > page invalid.
>
> > On Sep 29, 11:40 am, ♫ cheskonov <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > i am a new customer in jQuery so the following may sound stupid .. the
> > > problem i am facing is as bellow:
> > > I am working in a site where i am dealing with multiple forms having
> > > same id and every this .. all the forms contain some radio buttons (no
> > > of buttons may vary) and one submit button .. now how do i find out
> > > which submit button is clicked . all the submit buttons are also
> > > having the same id anb everything . any help please :
>
> > > the html for my page is as follows :
>
> > >  > > id="div_poll">
> > >   
> > >     
> > >       
> > >        > > type="hidden">
> > >       
> > >         
> > >           
> > >             What's the best
> > > version of 'Zelda?'
> > >           
> > >           
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 Legend of Zelda
> > >               
> > >               
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 Majora's Mask
> > >               
> > >               
> > >           
> > >           
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 Twilight Princess
> > >               
> > >               
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 The Wind Waker
> > >               
> > >               
> > >           
> > >           
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 Ocarina of Time
> > >               
> > >               
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 The Minish Cap
> > >               
> > >               
> > >           
> > >           
> > >           
> > >              
> > >              
> > >           
> > >           
> > >              > > class="form-submit legend_polls" onClick="$('#edit-current-
> > > nid').val('2015');return false;" type="submit">
> > >             
> > >             
> > >               
> > >                > > value="poll_view_voting" type="hidden">
> > >             
> > >           
> > >         
> > >       
> > >     
> > >   
> > >   
> > >     
> > >       
> > >        > > type="hidden">
> > >       
> > >         
> > >           
> > >             Best search engine > > h2>
> > >           
> > >           
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 google
> > >               
> > >               
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 yahoo
> > >               
> > >               
> > >           
> > >           
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 msn
> > >               
> > >               
> > >             
> > >               
> > >                 
> > >                  > > type="radio">
> > >                 AOL
> > >               
> > >               
> > >           
> > >           
> > >           
> > >              
> > >              
> > >           
> > >           
> > >              > > class="form-submit legend_polls" onClick="$('#edit-current-
> > > nid').val('2017');return false;" type="submit">
> > >             
> > >             
> > >               
> > >                > > value="poll_view_voting" type="hidden">
> > >             
> > >           
> > >         
> > >       
> > >     
> > >   
> > > 
>
> --
> Amardeep Sarkar

[jQuery] Re: jEditable Clone Referring to the Original Element, livequery ok to use?

2008-10-01 Thread Wayne

Wow! Hey, that actually worked. I don't fully understand why, though.
I thought that clone(true) simply allowed for jQuery to grab a clone
from the new clone. Does livequery duplicate or interfere with that
procedure?

Thanks for digging into my code, Brandon. I seem to be working, now.

-Wayne

On Sep 29, 10:31 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> After glancing over the JS it looks like you are using both live query and
> clone(true). Using both is unnecessary and might be the cause of the issue.
> Just try using one of the two and see if that resolves your issue.
> --
> Brandon Aaron
>
> On Mon, Sep 29, 2008 at 2:04 PM, Wayne <[EMAIL PROTECTED]> wrote:
>
> > On Sep 29, 1:25 pm, Mika Tuupola <[EMAIL PROTECTED]> wrote:
> > > In layman's terms. After clicking baseline the new item is still
> > > editable, but the problem is when triggering the event it also makes
> > > not only the clicked element but also previous element editable.
>
> > > Is this your problem?
>
> > Right, because I'm cloning the ":last" li of the list, that's the
> > element that the editable latches onto. In the example linked, it's
> > the caption tag of each table within the li.
>
> > -Wayne
>
>


[jQuery] Re: html() doesn't work for me. innerHTML() do. Why?

2008-10-01 Thread krlosnow


I've solved my problem. The jsp that generates the html was not including the
struts html taglib, and the element "" wash crashing the
jquery.

Well, I'll continue learning jquery. Best regards:

Carlos.



krlosnow wrote:
> 
> Hello all:
> 
> I'm newby in jquery, and I have the next problem:
> 
> I've a form working with the form plugin. It works fine. I have the next
> callback method:
> 
> function showResponse(responseText, statusText){
>   alert(responseText);
>   $('#frameBody').html(responseText);
>   alert ($('#frameBody').html());
> }
> 
> 
> When the showResponse() method is invoked, the first alert() shows
> something like that:
> 
> 
> 
> 
> 
> 
> 
> buttons
> 
> 
>  
>  
> Main Page
> 
> 
> 
> 
> 
> (I have intentionally changed the "span" tag to "spann", in order to show
> this post correctly)
> 
> As you can imagine, this code is generated by a jsp page, in a struts
> framework.
> The surprise comes with the second alert():
> 
> Main Page
> 
> Where is the rest of the code? If I change :
> 
> $('#frameBody').html(responseText);
> 
> to
> 
> document.getElementById("frameBody").innerHTML = responseText;
> 
> 
> it works fine.  What is happening?   Must I use the old fashioned way
> ?
> 
> This is only a jquery proof of concept, but it is worrying me... Any idea?
> 
> Thanks in advance from Spain (sorry for my english):
> 
> Carlos.
> 

-- 
View this message in context: 
http://www.nabble.com/html%28%29-doesn%27t-work-for-me.-innerHTML%28%29-do.-Why--tp19762027s27240p19762523.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Licenses

2008-10-01 Thread Tomy Lucadamo

Hi all!
I am using jQuery in a web project for scrolls, accordions and
slideshows.
The client belives that the website become an open source because we
are using an open source library.
Is this correct?
If I use an open source library all the project must be open source?
How can I refuse this idea?

Thanks in advance!


[jQuery] jCarousel scroll by 4 breaks in tail section

2008-10-01 Thread [EMAIL PROTECTED]

I'm having a strange problem with a customised jCarousel I'm working
on.

The carousel has 16 dynamically loaded items, 4 are visible and it
scrolls by 4. The prev/next buttons are custom and wrap is set to
both.

Everything works fine until it gets to the 4th page of items, where it
will only scroll in 3 more items, making the last item from the 3rd
page become the first item of the 4th page leaving the very last item
still hidden until you click next - it will then scroll by 1 to
display the last item.

After this point, if you click next again it will wrap to the start as
intended.

I've tried logging the values of the carousel.first / carousel.last to
firebug with some inconsistent results.

When it first loads, carousel.first is set to 1 and carousel.last is
5.
Click next and carousel.first becomes 5 and carousel.last becomes 8
(which I dont think is correct).
Click next again and carousel.first is now 9 and carousel.last is 12
(its acting like scroll option is set to 3).

Anyone come across something similar before?

My code:

$jQ('#featured-carousel').jcarousel({

scroll: 4,
visible: 4,
wrap: 'both',
buttonNextHTML: null, buttonPrevHTML: null, //dont build
buttons - we use custom ones
animation: 1200,
itemLoadCallback: {
  onBeforeAnimation: itemLoadCallback,
  onAfterAnimation: setPageBoxStyle // styling stuff
}

});



function itemLoadCallback(carousel, state) {
  if (state != 'init') {
return;
  }

  // next button
  $jQ('.carousel-next').bind('click', function() {
carousel.next();
setPageBoxStyle(carousel);
return false;
  });

  // previous button
  $jQ('.carousel-prev').bind('click', function() {
carousel.prev();
setPageBoxStyle(carousel);
return false;
  });


  // remote dwr method with call back to get items
  RemotedFeatures.listFeaturedReleases(

  function( releases ) {

$jQ(releases).each(
  function(i){
carousel.add(i, getItemHTML(this));
  }
);

carousel.size(releases.length);
  }
);

}


[jQuery] jQuery Star Rating Plugin Problem

2008-10-01 Thread GarethMatthews

I all,

Using jQuery 1.2.6 and the latest level of the Star Rating plugin
obtained from www.fyneworks.com. The star rating works fine under most
circumstances, however I can make it break and I am not sure why.

The page I am using it on is a AJAX page - i.e. part of the page is
loaded and reloaded dynamically by some javascript. The dynamic part
of the page contains the star ratings.

As such, when the XMLHTTP response comes back and I set the innerHTML
of the dynamic area of the page I then have to make the all important
call to make the options turn into stars (i.e. $
('[EMAIL PROTECTED]').rating();). Again this normally works
fine. However, if the dynamic area of the page is loaded with the same
content (I use the dynamic area for switching between pages of content
- so when I view page 1 it is fine, but then switching to page 2 and
then back to page 1 triggers the fault) the options have changed to
stars, but the rating (i.e. which star is selected) is not shown - so
all the stars appear grey.

I get an error in my Firefox Error console when this happens:

Error: elem.parentNode is null
Source File: http://www.itakeout.co.uk/js/jquery-1.2.6_030908.js
Line: 25

You can see this error for yourself if you go to
http://www.itakeout.co.uk/select_restaurant.php?search=Portsmouth and
moving between pages. They look fine on the first view, but going back
to them the rating disappears.

I can't think this could be anything I am doing as the stars work fine
most of the time. However, I'd really like to get this resolved. From
the error it looks like either a bug in jQuery or something in the
star rating plugin is causing jQuery to mis-behave. Does anyone have
any ideas? I am pretty new to jQuery and so am not sure exactly what I
need to do here.

Cheers,
Gareth


[jQuery] Animations sequences

2008-10-01 Thread MadBrain

Hello,

jQuery and all new to me and let me know if anyone among you have a
technique that could help me with my problem. I try to make 3
animation sequences one after the other. The problem is that I am
unable to complete the animation sequences. They all begin at the same
time. Does anyone ever had is `problem and if so, could you help me.

Thank you in advance for tips, advice, tutorials and example you give
me.

Good day!

MaDBrain


[jQuery] html() doesn't work for me. innerHTML() do. Why?

2008-10-01 Thread krlosnow


Hello all:

I'm newby in jquery, and I have the next problem:

I've a form working with the form plugin. It works fine. I have the next
callback method:

function showResponse(responseText, statusText){
alert(responseText);
$('#frameBody').html(responseText);
alert ($('#frameBody').html());
}


When the showResponse() method is invoked, the first alert() shows something
like that:







buttons


 
 
Main Page





(I have intentionally changed the "span" tag to "spann", in order to show
this post correctly)

As you can imagine, this code is generated by a jsp page, in a struts
framework.
The surprise comes with the second alert():

Main Page

Where is the rest of the code? If I change :

$('#frameBody').html(responseText);

to

document.getElementById("frameBody").innerHTML = responseText;


it works fine.  What is happening?   Must I use the old fashioned way ?

This is only a jquery proof of concept, but it is worrying me... Any idea?

Thanks in advance from Spain (sorry for my english):

Carlos.
-- 
View this message in context: 
http://www.nabble.com/html%28%29-doesn%27t-work-for-me.-innerHTML%28%29-do.-Why--tp19762027s27240p19762027.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: offline docs

2008-10-01 Thread Simon Elliott
looks like there is a redirect to http://docs.jquery.com/Main_Page

2008/10/1 Dan Baughman <[EMAIL PROTECTED]>

> The docs.jquery.com site doesn't lend to easily making available offline
> via wget (or am I missing something) is there any sort of offline
> availability there? I am unable to access the web in the environment I work
> in so it's kind of a pain.
>
>


-- 

Simon


[jQuery] Animation sequences

2008-10-01 Thread MadBrain

Hello,

jQuery and all new to me and let me know if anyone among you have a
technique that could help me with my problem. I try to make 3
animation sequences one after the other. The problem is that I am
unable to complete the animation sequences. They all begin at the same
time. Does anyone ever had is `problem and if so, could you help me.

Thank you in advance for tips, advice, tutorials and example you give
me.

Good day!

MaDBrain


[jQuery] Re: Hidden spam on jquery blog

2008-10-01 Thread John Resig

Fixed, sorry about that.

--John

On Oct 1, 10:22 am, Leanan <[EMAIL PROTECTED]> wrote:
> Wow...  looks like someone's trying to get more links...
>
> On Sep 30, 2:08 pm, equallyunequal <[EMAIL PROTECTED]> wrote:
>
> > Woops looks like jQuery blog got hit by a sql-injection attack!
>
> > On Sep 30, 2:04 pm, zaadjis <[EMAIL PROTECTED]> wrote:
>
> > > Right after the script tag with urchin.js. Can the powers that be fix
> > > this, please?


[jQuery] Re: Assign 'active' to nav element

2008-10-01 Thread Bradley Sepos

Just extend Michael's code a bit:

$(this).addClass('active').siblings().removeClass('active');

Bradley~


On Oct 1, 3:47 am, yellowboy <[EMAIL PROTECTED]> wrote:
> Well I should also say I want it to deselct when another h2 element is
> clicked.
>
>
>
> Michael Geary-3 wrote:
>
> > That's no problem, we are all newbies at something.
>
> > So you just want the H2 element to get an 'active' class when you click on
> > it? Then add this inside the click function:
>
> > $(this).addClass('active');
>
> > -Mike
>
> >> From: yellowboy
>
> >> Yes, that is why I am seeking some assistance.
>
> >> Not sure how to implement it within my current code. I know
> >> how to assign the class as active, but how would I go about
> >> making it assign an active class to the h2 element when it is
> >> selected?
>
> >> Needless to say I'm a bit of a newbie and was just hoping for
> >> some suggestions. Thanks
>
> >> Michael Geary-3 wrote:
>
> >> > I don't see anything in your code that resembles your
> >> description of
> >> > what you want. I'd expect to find an addClass('active')
> >> call in there
> >> > somewhere.
> >> > I see a bunch of other code, but nothing like that.
>
> >> > Perhaps that is the problem, the code you need simply isn't there?
>
> >> > -Mike
>
> >> >> From: yellowboy
>
> >> >> I want my h2 element to be assigned class 'active' when
> >> selected, I
> >> >> have tried numerous methods but to no avail, some guidance
> >> would be
> >> >> appreciated!
>
> >> >> function initMenus() {
> >> >>       $('div.menu div.gallery').hide();
> >> >>       $.each($('.menu'), function(){
> >> >>               $('#' + this.id + '.expandfirst
> >> >> div.gallery:first').show();
> >> >>       });
> >> >>       $('div.menu h2').click(function() {
>
> >> >>                       var checkElement = $(this).next();
> >> >>                       var parent = this.parentNode.parentNode.id;
>
> >> >>                       if($('#' + parent).hasClass('noaccordion')) {
> >> >>                               $(this).next().slideToggle('normal');
> >> >>                               return false;
> >> >>                       }
> >> >>                       if((checkElement.is('div.gallery')) &&
> >> >> (checkElement.is(':visible'))) {
> >> >>                               if($('#' +
> >> >> parent).hasClass('collapsible')) {
> >> >>                                       $('#' + parent + '
> >> >> div.gallery:visible').slideUp('normal');
> >> >>                               }
> >> >>                               return false;
> >> >>                       }
> >> >>                       if((checkElement.is('div.gallery')) &&
> >> >> (!checkElement.is(':visible'))) {
> >> >>                               $('#' + parent + '
> >> >> div.gallery:visible').slideUp('normal');
> >> >>                               checkElement.slideDown('normal');
> >> >>                               return false;
> >> >>                       }
> >> >>               }
> >> >>       );
> >> >> }
> >> >> $(document).ready(function() {initMenus();});
> >> >> --
> >> >> View this message in context:
> >> >>http://www.nabble.com/Assign-%27active%27-to-nav-element-tp197
> >> > 53801s27240p19753801.html
> >> >> Sent from the jQuery General Discussion mailing list archive at
> >> >> Nabble.com.
>
> >> --
> >> View this message in context:
> >>http://www.nabble.com/Assign-%27active%27-to-nav-element-tp197
> > 53801s27240p19754447.html
> >> Sent from the jQuery General Discussion mailing list archive
> >> at Nabble.com.
>
> --
> View this message in 
> context:http://www.nabble.com/Assign-%27active%27-to-nav-element-tp19753801s2...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: I want to reduce the header calls

2008-10-01 Thread jeremyBass

>>>Even if you can capture the HTTP
> request at the server what are you going to do with it?
No I want to capture it on the client side so it never has to go and
wait for the server to answered... The idea is if I cannot have to
make a request I don't want to... I think this would be quicker then
the wait of the server answer.

The canvas option... I don't think would be help full... I don't
think… now what are you talking about with the XHTML option?  Thanks
for the help
jeremyBass




On Sep 30, 9:59 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> My advice is to quit on this one. Even if you can capture the HTTP
> request at the server what are you going to do with it? The server is
> already 'capturing' the requests and telling the browser when it has
> already downloaded the .swf - it IS only downloaded once, but you have
> to wait for each request to be answered so that the browser is told
> "you already have this file". There is no alternative possible. But if
> you used the canvas object or pure XHTML that would be another
> story :)
>
> - ricardo
>
> On Sep 30, 7:59 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
>
>
> > lol... sorry After I read through again... I totally missed the java
> > server part... but on the other... I posted in the wrong spot... sorry
> > about that...> I thought you were looking for a way to download your .swf 
> > once instead of
> > > starting a bunch of simultaneous downloads for it.
>
> > that is what I am after here... controlling downloads of componets
> > called by jquery... I think this would be handy for a lot of other
> > things to... well I hope I haven't lost anyone ... :-) need all the
> > help I can get here... thanks again...
> > jeremyBass
>
> > On Sep 30, 2:12 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
>
> > > I am really lost now.
>
> > > I thought you were looking for a way to download your .swf once instead of
> > > starting a bunch of simultaneous downloads for it.
>
> > > I don't think a clone of mod_rewrite for Java servers would help you at 
> > > all.
> > > (Is your server code in Java? Even if it is, it wouldn't help - you're
> > > trying to avoid hitting the server in the first place.)
>
> > > Now you found some JavaScript code to detect the user's language. How is
> > > that connected with the download issues?
>
> > > (scratching head)
>
> > > -Mike
>
> > > > From: jeremyBass
>
> > > > found this... may-be this may help ???
>
> > > > 
> > > >  if (navigator.browserLanguage){language=navigator.browserLanguage}
> > > >  if (navigator.userLanguage){language=navigator.userLanguage}
> > > >  if (navigator.systemLanguage){language=navigator.systemLanguage}
> > > >  if (navigator.language){language=navigator.language}
> > > >  if (language.indexOf('-')==2) {language=language.substring(0,2);}
> > > >  if (language=='en') { document.write("Hello there!"); }  
> > > > else if (language=='jp') { document.write("Konichiwa!"); }  
> > > > else if (language=='fr') { document.write("Bonjour!"); }  
>
> > > > On Sep 30, 9:47 am, jeremyBass <[EMAIL PROTECTED]> wrote:
> > > > > So I think this is the ticket... but I really am not to sure on the
> > > > > how yet...
>
> > > > >http://code.google.com/p/urlrewritefilter/
>
> > > > > anyone have a sec to help me out with this? thank you jeremyBass
>
> > > > > On Sep 29, 7:37 pm, jeremyBass <[EMAIL PROTECTED]> wrote:
>
> > > > > > I new that was to good to be true... well moving on to a
> > > > new view 
> > > > > > There has to be a way to "capture" the HTTP requests ... I think
> > > > > > I've seen URL rewrites with javascript... so may-be I
> > > > could have it
> > > > > > so that it's more like this... if HTPP request is in
> > > > array die else
> > > > > > execute and push URL to array?  any ideas on that?
>
> > > > > > thanks for the help...
> > > > > > jeremyBass
>
> > > > > > On Sep 29, 4:13 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Oops, sorry, what I meant is that cloning the elements
> > > > is the best
> > > > > > > optimization you can do. It will save you some processing time
> > > > > > > from not creating new elements (or maybe not, as jQuery will be
> > > > > > > re-creating the clone element), but the HTTP requests
> > > > will remain.
>
> > > > > > > $('#flash-round-corner-
>
> > > > thing').clone().appendTo('newcorner').clone().appendTo('anothercor
> > > > > > > ner')
> > > > > > > etc.
>
> > > > > > > On Sep 29, 1:08 am, jeremyBass <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > Thank you for the help...
>
> > > > > > > > >>> And using dozens of flash objects to round
> > > > corners doesn't
> > > > > > > > >>> seem like a good idea...
>
> > > > > > > > Yeah I thought there would be alot of trouble to at
> > > > first... but
> > > > > > > > it's better then cornflex and jcorner altogether... it's
> > > > > > > > absolutely working perfectly.  the 10-12 calls are on
> > > > the first
> > > > > > > > download only and it's not the round boxes... it's mostly the
> > > > > > > 

[jQuery] local/serial scroll with fades?

2008-10-01 Thread yabdab

Hey all, I am hacking around with the coda-slder...
http://jqueryfordesigners.com/demo/coda-slider.html
...and wondered if there was a simple way to have the panels fade in/
out as they scroll left/right?


[jQuery] Validation regarding Jquery

2008-10-01 Thread surya

Hi,

   Small doubt regarding jquery.

   I am getting the jquery messages as the no.of times I clicked the
update button of my form.

  In detail, When i pressed the update button of my form, i am getting
the validation message beside the textbox. But when i pressed the
update button one more time (now 2 times the button is pressed), i am
getting the validation message 2 times and so on..

Can anyone please help me to fix this one.

 Thanks,
 Surya.


[jQuery] List. Is this possible?

2008-10-01 Thread shapper

Hello,

I have three inputs A, B and C and button. This is a group inside a
form.
When I click the button I want to add the information on the inputs
into a list under the button.
The information must be displayed as A ( B ) ( C ) and have a small
button on the right to remove from list.

When the form is submitted I would like to be able to get all items in
the list in order to parse them and create data in my server side
code.

How can I create this list functionality?

Thank You,
Miguel


[jQuery] Hover Events Can't "Keep Up" With FadeIn and FadeOut? Events Queue?

2008-10-01 Thread Joe

Go here:

http://www.uisore.com/dev/new_placard/

Now, mouseover the first thru the fifth thumbnails at the bottom
really quickly and then back from the fifth to the first thumbnail
really quickly.

You'll notice that it has to "cycle" thru all the thumbnails'
animations (fadeIn/Out) until it reached the last thumbnail that you
hovered over.

So it seems there is some sort of queue of events that are stacking up
and I need to clear that queue when another thumbnail hover state has
been encounterd.

How do you do this?  I've read up on the queue, dequeue, and stop
portions of the jQuery API and have had no luck with my current
scenario.

thanks.

Joe

www.subprint.com


[jQuery] Re: ScrollTo problems

2008-10-01 Thread Ariel Flesler

Heh, you're including jQuery twice. Thus overriding the plugins.

As for $('div.name').localScroll(...);

Try:

$.localScroll();

Cheers

--
Ariel Flesler
http://flesler.blogspot.com

On Sep 29, 10:08 pm, nika <[EMAIL PROTECTED]> wrote:
> Hi
> I have been trying to use the scrollTo plug in.. but i just can't get
> it to work.. can someone please point out where the error is?
>
> This is exactly what I typed:
> http://www.w3.org/
> TR/html4/strict.dtd">
> 
> scroll
> 
> 
> 
>
> 
>