[jQuery] fadeIn, fadeOut malfunction

2009-05-12 Thread runrunforest

Hi,

I have a button hidden initially, when mouse hovers the parent element
of the button, button will fadeIn, and when mouse out, the button will
fadeOut ( disappear).

the problem is when, you hover multiple time in a quick pace (6 hover
ins outs in 1 second), the button will disappear forever. No what I
want.

Please have a look at it here:

http://www.badede.com/op.html


[jQuery] Re: slideUp() does not make animation before remove() occurs

2009-05-12 Thread waseem sabjee
I have made a slight change in your code. also note you did set the opacity
to 0 before the slideUp that could effect your code

> function removeChekbox(data){
>  $.each(data, function(i, val){

>   $('input[value="'+val+'"]').parents(".item-container").animate({opacity:
0.0}, "slow", function(){
>$(this).slideUp("500", function(){
setTimeout(function() {
> $(this).remove();
},500);
>});
>   });
>  });
>
> }

i just added a 0.5 sec delay

On Wed, May 13, 2009 at 1:33 AM, Ricardo  wrote:

>
> Maybe it's because opacity is already 0?
>
> Try using animate({ height:'toggle' }) instead
>
> On May 12, 2:16 pm, Massimiliano Marini  wrote:
> > Hi all,
> >
> > I'm using jQuery 1.3.2 that's the code:
> >
> > function removeChekbox(data){
> >  $.each(data, function(i, val){
>
> >
> $('input[value="'+val+'"]').parents(".item-container").animate({opacity:
> 0.0}, "slow", function(){
> >$(this).slideUp("slow", function(){
> > $(this).remove();
> >});
> >   });
> >  });
> >
> > }
> >
> > the code is correct, the remove() works well, but the slideUp()
> > does not make the animation. Why?


[jQuery] JQuery Treeview

2009-05-12 Thread eclipseTalk

Hi,
I'm using the JQuery treeview but I'm running into some weird
behavior. The tree expands by itself sometimes and it cannot be
collapsed. It happens every time I'm displaying a slide show for
instance. When I clear the cookies it goes away. Any idea on how I
can't prevent the whole tree from expanding?
Thanks for your help


[jQuery] Re: make the Fading like opening DOOR

2009-05-12 Thread Mohd.Tareq
$().click(function(){ $('#door').animate({ width: 'toggle' });On Wed, May
13, 2009 at 10:03 AM, bharani kumar  wrote:

> On May 12, 11:17 pm, bharani kumar 
> wrote:
> > Hi All ,
> >
> > Can you some one tell me ,
> >
> > I want to make the DIV something like  opening DOOR or single Door
> opening ,
> > double door opening
> >
> > Any idea please
>
> Something like this? (centered element)
>
> http://jsbin.com/afota
>
>
> yes ,
> --
> உங்கள் நண்பன்
> பரணி  குமார்
>
> Regards
> B.S.Bharanikumar
>
> POST YOUR OPINION
> http://bharanikumariyerphp.site88.net/bharanikumar/
>



-- 
---| Regard |---

Mohd.Tareque


[jQuery] make the Fading like opening DOOR

2009-05-12 Thread bharani kumar
On May 12, 11:17 pm, bharani kumar 
wrote:
> Hi All ,
>
> Can you some one tell me ,
>
> I want to make the DIV something like  opening DOOR or single Door opening
,
> double door opening
>
> Any idea please

Something like this? (centered element)

http://jsbin.com/afota


yes ,
-- 
உங்கள் நண்பன்
பரணி  குமார்

Regards
B.S.Bharanikumar

POST YOUR OPINION
http://bharanikumariyerphp.site88.net/bharanikumar/


[jQuery] dealing with a post (json) callback

2009-05-12 Thread sneaks

hi, in firebug my callback data(object) is like so:

[{"product_brand":"Creative Recreation","product_name":"Cesario
Hi","product_slug":"CRM-CESAR-PRIME-
HI","product_active":"1","product_description":"mens- red"}]


i have never noticed the square brackets before ...
but when i attempt to use each to oterate through the obnject for
values... i get nothing:

var obj=eval('(' + json + ')');
console.log( obj );
jQuery.each(obj, function(i, val) {
  if (i) {
  alert(val);
  jQuery('#'+i).append(val);
  }
});


this has always worked fro me before and i am not doing anything
different this time... but i would appreciate any insight into what
may be happeneing here


[jQuery] Re: make the Fading like opening DOOR

2009-05-12 Thread Ricardo

On May 12, 11:17 pm, bharani kumar 
wrote:
> Hi All ,
>
> Can you some one tell me ,
>
> I want to make the DIV something like  opening DOOR or single Door opening ,
> double door opening
>
> Any idea please

Something like this? (centered element)

http://jsbin.com/afota


[jQuery] Re: jQuery Logo

2009-05-12 Thread Jordon Bedwell
Proof reading, FTL.

 

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Karl Swedberg
Sent: Tuesday, May 12, 2009 9:39 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery Logo

 

 

On May 12, 2009, at 9:12 PM, Rafael Santos Sá wrote:





Btw, a friend told me that I can't use jQuery Framework for comercial
purpose without jQuery owner's permission. Is that true?

 

No, that's not true. jQuery is dual-licensed under GPL and MIT. If you're
using it or commercial purpose, you can just refer to the MIT license:

 

Copyright (c) 2009 John Resig, http://jquery.com/

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 


--Karl




Karl Swedberg

www.englishrules.com

www.learningjquery.com

 

 



[jQuery] Re: Hiding Table Columns

2009-05-12 Thread David Blomstrom
Thanks for the tip. As far as I know, there's no way to apply a class or ID
to an entire column, so I'd have to apply it to every cell in a particular
column, right?
Next, how do I enable the visitor to invoke the hide function? For example,
if a visitor is viewing a table with ten columns, and he wants to make four
columns disappear, he would presumably have to click a link, radio button,
etc. to summon $("td").eq().hide().
Is that something else that can be done with JavaScript?
Thanks.

On Tue, May 12, 2009 at 6:19 AM, waseem sabjee wrote:

> $("#myid").hide();
> $(".myclass").hide();
> $("td").eq().hide();
> $("tr").eq().hide();
>
> note if you say
> $("tr)".eq(0).hide();
> it will completely hide the first tr that appears in your code
>
> if you say $("tr").eq(0).remove();
> it will completely remove the first tr in your code from the DOM
> meaning they won't get it back unless they refresh.
>
> On Tue, May 12, 2009 at 12:46 PM, David Blomstrom <
> david.blomst...@gmail.com> wrote:
>
>> Imagine a table with ten columns. Is there a JavaScript function that will
>> let visitors render particular columns invisible?
>> For example, I have a table that uses a jQuery function to create sortable
>> columns. However, it takes forever because the table is so big. But if
>> visitors could make some of the less important columns disappear, then it
>> might sort faster.
>>
>> --
>> David Blomstrom
>> Writer & Web Designer (Mac, M$ & Linux)
>> www.geobop.org
>>
>
>


-- 
David Blomstrom
Writer & Web Designer (Mac, M$ & Linux)
www.geobop.org


[jQuery] Re: jQuery too slow on IE!!!

2009-05-12 Thread RobG



On May 12, 10:42 pm, Chandan  wrote:
> Hi,
>
> I recently started using jQuery, thinking that it is FASTER than usual
> javascript, but i found it is too slow when used with IE. I am using
> IE 6/7.

jQuery is written in javascript, therefore it is unlikely that any
jQuery function is faster than an equivalent plain old javascript
(POJS) function.

Some code snippets using jQuery are very much slower than their POJS
equivalent, though the jQuery code itself might require fewer
characters to type.  It trades off saving a few minutes of writing
code for a lifetime of slower performance (where lifetime is the life
of the code).


--
Rob


[jQuery] Re: make the Fading like opening DOOR

2009-05-12 Thread Richard D. Worth
See if jQuery UI has an effect you're looking for:

http://jqueryui.com/demos/toggle/

- Richard

On Tue, May 12, 2009 at 10:17 PM, bharani kumar <
bharanikumariyer...@gmail.com> wrote:

> Hi All ,
>
> Can you some one tell me ,
>
> I want to make the DIV something like  opening DOOR or single Door opening
> , double door opening
>
> Any idea please
>
>
> Regards
> B.S.Bharanikumar
>
> POST YOUR OPINION
> http://bharanikumariyerphp.site88.net/bharanikumar/
>


[jQuery] Re: jQuery Logo

2009-05-12 Thread Karl Swedberg


On May 12, 2009, at 9:12 PM, Rafael Santos Sá wrote:

Btw, a friend told me that I can't use jQuery Framework for  
comercial purpose without jQuery owner's permission. Is that true?


No, that's not true. jQuery is dual-licensed under GPL and MIT. If  
you're using it or commercial purpose, you can just refer to the MIT  
license:


Copyright (c) 2009 John Resig, http://jquery.com/

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




[jQuery] tablesorter is not a function

2009-05-12 Thread Proh


Hi,

I have some problems with the tablesorter-Plugin (
http://tablesorter.com/docs/ http://tablesorter.com/docs/ .)

I know, the error "tablesorter is not a function" has been mentioned before. 
But the reason, why this message occurres again seems to be different.

One point makes me sure, that it is probably is a bug.

The web-page with its tablesorter-functionality works in Safari!  - but not
with Firefox and IE6.

Version of JQUERY: 1.2.3
Version of Tablesorter: 2.0.3

The HTML-Test-File which doesn't work is included.

Thanx for your help in advance

Peter

http://www.nabble.com/file/p23484986/blbbl.html blbbl.html 
-- 
View this message in context: 
http://www.nabble.com/tablesorter-is-not-a-function-tp23484986s27240p23484986.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] How to submit the form using the date picker

2009-05-12 Thread suman.vape...@gmail.com

Hi

  I have used the datepicker plugin of  "KeithWood" .Here
is my sample script written below




jQuery Datepicker




$(function() {

 $('#validMaxDatepicker').datepick({maxDate: +0,
showOn: 'both', buttonImageOnly: true, buttonImage:
'calendar.gif'});
});


@import "jquery.datepick.css";




jQuery Datepicker
A popup datepicker 





What My problem When the datepicker is closed  i have to get the Date
that  is selected  from the above datepicker.

Any help is highly appreciated
Regards
Suman


[jQuery] .ajax GET not working correctly at webhost

2009-05-12 Thread Nahaz

I have this snippet:

function ajaxAdd() {
$('form').submit(function() {
   var nick = document.register.nick.value;
   $(':submit', this).attr('value', 
'Adding...');
   $(':submit', this).attr('disabled', 
'disabled');
   $.ajax({
  type: 'GET',
  url: 'data.php',
  data: 'nick=' + nick,
  success: function() {
  $(':submit', 
this).removeAttr('disabled');
  
$('#status').load('output.php');
  }
  });
});
}

that is sent when a very simple form (one value and button) is sent.
The thing is, it works on my local webserver, but when I upload it to
my webhost, it wont work. It works if add data.php?nick=Test, then the
data will be added into my database but not when called from .ajax.


[jQuery] Re: Superfish 1.4.8 w/ Supposition

2009-05-12 Thread Steve W

Just wanted to throw my hat in the ring about this issue, Supposition
is an awesome enhancement to Superfish and it would be great to be
able to use it in the latest version. I've reverted back to 1.4.1 for
now after trying unsuccessfully for about an hour to figure out where
the disconnect is in the newer version.

On Apr 27, 8:54 am, Ty Wangsness  wrote:
> On Apr 4, 2009, at 7:29 PM, ayu...@gmail.com wrote:
>
>
>
> > I'm using 1.4.8 with Supersubs...great plugin! One issue I'm running
> > into is getting Supposition to run with it- am getting this JS error:
>
> > $.superfishis undefined (line 57) (Mac 10.5 w/ FF 3)
>
> > This works fine withSuperfish1.4.1, of course. I've tried it with
> > Supersubs turnedoffwith the same result. It appears as though the
> >superfishobject is not being passed and I'm at a loss as to how to
> > pass it in.
>
> > Thanks...
>
> I'm in the same boat here. We recently changed our nav such that we  
> have asubmenuon the far rightsideof thepageand I'd like to use  
> this plugin to get the menu to stay on the screen.  Any way to get it  
> to work?
>
> $("ul.sf-menu").supersubs({minWidth: 12, maxWidth: 27, extraWidth:  
> 1}).superfish().supposition();
>
> Safari shows the error as "Undefined value supposition.js (line 57)"
>
> Thanks,
> -Ty


[jQuery] $(this).next() not matching sibling table

2009-05-12 Thread gravyface

Hello,

Trying to hide a table that's a sibling to the anchor to which the
click event is being called.  It works, with any element but a table
as a sibling.  My code/markup:



 $(document).ready(function(){

   // show/hide details
   $(".show-hide-me").click(function() {
$(this).next().hide();
   });

});





Show/Hide Details




...


[jQuery] Re: $(this).next() not matching sibling table

2009-05-12 Thread GravyFace

Doh.  This totally works now.  Dunno, maybe my page was cached.  Crack
kills, kids.

On Tue, May 12, 2009 at 1:28 PM, gravyface  wrote:
> Hello,
>
> Trying to hide a table that's a sibling to the anchor to which the
> click event is being called.  It works, with any element but a table
> as a sibling.  My code/markup:
>
> 
>
>  $(document).ready(function(){
>
>   // show/hide details
>   $(".show-hide-me").click(function() {
>        $(this).next().hide();
>   });
>
> });
>
> 
>
> 
>
> Show/Hide Details
>
> 
> 
> 
> ...


[jQuery] [validation] I want to add validation for a reCAPTCHA image. Can I give this field error message a unique class?

2009-05-12 Thread wjs3

I have a form consisting mainly of text inputs and selects.  The
inputs are nested within list elements, lists, fieldsets, etc.  I have
configured the validation plugin to place the error messages after the
fields, and successfully used CSS to style the label.error class.

I have recently added a reCAPTCHA image to the form.  I would like to
validate that this field is also not empty before allowing a submit.
The reCAPTCHA input however is buried within a td/table/div, so the
error message gets crammed into the td with the input and is barely
visible.

I thought of going into the module and adding some code around the
showLabel function to test if the field being referenced is the
recaptcha_response_field.  If so, I would conditionally assign a
unique class to this label so I could try and use CSS to place it
elsewhere.

I am by no means a javascript expert and am not sure how to do this
properly in the code.  Any assistance would be much appreciated.
Perhaps there is a better way to tackle this as well.

Thanks in advance,

wjs3


[jQuery] Re: superfish bg images - almost there!

2009-05-12 Thread PapaBear



On Mar 25, 6:32 am, durill  wrote:
> most every part is working for me, including using background images.
> when the mouse hovers, the background image changes as does the text
> color. perfect. currently, i only have thesuperfishmenu on the
> "Discounts" link so that is the link i am speaking of. (as should be
> obvious when looking at the menu, i'm using blank background images
> with actual link text on top of them).
>
> after the hover menu "flys out" and i begin to hover over the "fly
> out" menu, the parent link "Discounts" text color reverts back to its
> original color. the background image stays just like it should though.
> i've tried everything i can think of up to and including using js to
> force the text color to stick but without success.

I am having this same problem, only I am using simple background
colours instead of images and a vertical menu layout.  Is there any
help for this?
(unfortunately my website is not live at this stage but I can email
copies of the css if required).

Cheers
James.


[jQuery] Cycle Plugin and Flash Videos

2009-05-12 Thread Chris Falzone

I am trying to create a slideshow where each slide would have a video
(embedded vimeo video to be exact)

My basic structure is


  
 EMBED CODE 
 HTML BLURB 
  
  ...


I've set pause to 1 so that when the mouse is over the slides it
doesn't advance, but if the user is watching the video and they move
their mouse out of the slideshow area the slides advance.


How do I stop the slideshow if the video is playing?

I have tried setting the click event on the "slide_video" div but it
never fires when clicking on the flash video.  It seems the flash
blocks the click getting through to the div



Here is my code:

$(document).ready(function() {
  $('#slides').cycle({pause:1});
});


Thanks for your help,
Chris




[jQuery] Creative animations for .hover() event

2009-05-12 Thread Dave

Hi All,

I am hoping to find some creative examples of animations of people
using the hover event for image links.  Some of the most common that
I've seen are as follows:

1) Partial fade-in
2) Partial fade-out
3) Fade-in an absolutely positioned image over the image

This seems to be an area where people have not really brached out
(yet!)

Here are some ideas that I'm considering:

1) Animate to top:-20px onHover and back to top:0px onBlur
2) Create some type of zoom-in effect (although it'd be slight)

Any thoughts are welcome and much appreciated!

Cheers,

Dave Romero
http://tsuvo.com";>Web Development Boise


[jQuery] Re: How to parse?

2009-05-12 Thread Peter Warnock

$.get('/endpoint/', '', function (html) {
  $(html).find('.selector').appendTo('.target');
}), 'html');

On May 11, 3:23 pm, "cstolwor...@gmail.com" 
wrote:
> I have an ajax call that will be returning a large chunk of HTML.  The
> thing is that this HTML needs to go to several different places on the
> page.  I would rather not have to make several different requests for
> the data.  Is it possible to take a large (bundled) HTML value, parse
> it into a temporary DOM and insert by finding what I need out of it?


[jQuery] can only type numbers after closing dialog.

2009-05-12 Thread CP

I have a strange one.  I'm working on an app that after i close a
dialog window, i can only type numbers in other forms in the app.
letters seem to fire keystroke events but they don't enter the form
field.  any ideas?


[jQuery] make the Fading like opening DOOR

2009-05-12 Thread bharani kumar
Hi All ,

Can you some one tell me ,

I want to make the DIV something like  opening DOOR or single Door opening ,
double door opening

Any idea please


Regards
B.S.Bharanikumar

POST YOUR OPINION
http://bharanikumariyerphp.site88.net/bharanikumar/


[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread David Blomstrom
Please ignore my last question; I found the thread I was looking for.
I'll give the various solutions that were offered another try, and if it
still doesn't work, I'll put a live example online.
Thanks.

On Tue, May 12, 2009 at 6:18 PM, David Blomstrom
wrote:

> Wow, the idea of sorting multiple tables at the same time is interesting. I
> may check that out, too.
> In the meantime, thanks for the tip, aquaone. I'm now able to place
> multiple sortable tables on a page.
> Now I just have to fix one other problem - numerals with commas don't sort
> properly. I asked about that in another thread and got several responses -
> none of which worked for me - but I can't find that thread now.
> Is there a way to find all threads in this group I've started on the
> Internet? I'm using GMail, and I have a lot of threads to sort through.
> Thanks.
>



-- 
David Blomstrom
Writer & Web Designer (Mac, M$ & Linux)
www.geobop.org


[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread David Blomstrom
Wow, the idea of sorting multiple tables at the same time is interesting. I
may check that out, too.
In the meantime, thanks for the tip, aquaone. I'm now able to place multiple
sortable tables on a page.
Now I just have to fix one other problem - numerals with commas don't sort
properly. I asked about that in another thread and got several responses -
none of which worked for me - but I can't find that thread now.
Is there a way to find all threads in this group I've started on the
Internet? I'm using GMail, and I have a lot of threads to sort through.
Thanks.


[jQuery] Re: jQuery Logo

2009-05-12 Thread Rafael Santos Sá
Btw, a friend told me that I can't use jQuery Framework for comercial
purpose without jQuery owner's permission. Is that true?

On Tue, May 12, 2009 at 12:45 PM, Rey Bango  wrote:

>
> Hi Robert,
>
> Just to clarify that the logo is copyright of the jQuery project and can't
> be used for commercial purposes without the project's permission.
>
> Sorry to have bring this up but if we don't clarify it, it can become a
> greater issue.
>
> If it's just for a preso like at a BarCamp or something along those lines,
> that should be fine.
>
> Rey...
>
>
> Robert MacLean wrote:
>
>> Hi,
>>
>> I am looking for a high res copy of the jQuery logo, ideally with a
>> transparent background for use in a presentation I am giving on it. I
>> can find the old logo like that, but not the new one.
>>
>>


-- 
Rafael Santos Sá
web developer at Wefit - Tecnologia Estratégica
www.wefit.com.br


[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread christopherious

Sorry, forgot to mention in my previous post that with that revision,
tables still sort individually.

On May 12, 5:46 pm, christopherious  wrote:
> Something like this?  (Note that jQuery and JS in general are still
> often a challenge for me).
>
> --
>
> 
>
> $(document).ready(function() {
>     // extend the default setting to always sort on the first column
>     $.tablesorter.defaults.sortList = [[0,0]];
>     // call the tablesorter plugin
>     $("table.tablesorter").tablesorter({ widgets: ['zebra'] });
>     //assign the sortStart event
>     $("table").bind("sortStart",function() {
>         $("#overlay").show();
>     }).bind("sortEnd",function() {
>         $("#overlay").hide();
>     });
>
> });
>
> 
>
> --
>
> On May 12, 5:31 pm, aquaone  wrote:
>
> > You should be able to bind to the sortEnd events to force sorting on all
> > tables based on the sort order of that table...
>
> > On Tue, May 12, 2009 at 16:48, christopherious 
> > wrote:
>
> > > I share David's requirement to sort globally on the page.  When users
> > > click a column header for a given table, I want all tables on that
> > > page to sort by that column rather than for just the table where the
> > > user clicked the header.
>
> > > My JS:
>
> > > 
>
> > > $(document).ready(function() {
> > >    // extend the default setting to always sort on the first column
> > >    $.tablesorter.defaults.sortList = [[0,0]];
> > >    // call the tablesorter plugin
> > >     $("table.tablesorter").tablesorter({ widgets: ['zebra'] });
> > > });
>
> > > 
>
> > > My table tag:
>
> > > 
>
> > > Thanks in advance.
>
> > > On May 1, 5:39 pm, David Blomstrom  wrote:
> > > > Sorry it took me so long to reply. I thought my posts weren't showing up
> > > on
> > > > this forum.
> > > > Anyway, thanks for the tip. I understand it now. Unfortunately, it isn't
> > > > working for some reason.
> > > > Is there a way to instead designate multiple ID's - like myTable,
> > > myTable2
> > > > and myTable3?
> > > > Thanks.
>
> > > > On Thu, Apr 30, 2009 at 1:41 PM, aquaone  wrote:
> > > > > IDs are unique for a document. A document containing multiple elements
> > > with
> > > > > the same ID is invalid. Use a class instead and invoke tablesorter on
> > > all
> > > > > tables with that class.
>
> > > > > e.g.
> > > > > 
> > > > > ...
> > > > > 
>
> > > > > and
>
> > > > > $("table.tablesorter").tablesorter({ widgets: ['zebra'] });
>
> > > > > On Wed, Apr 29, 2009 at 20:35, David Blomstrom <
> > > david.blomst...@gmail.com>wrote:
>
> > > > >> I'm using jQuery's tablesorter.js to create tables with sortable 
> > > > >> rows,
> > > as
> > > > >> applied to tables with the ID "myTable."
> > > > >> I just wondered if there's a way to make it work with multiple tables
> > > on a
> > > > >> single page. I created two tables and gave each of them the ID
> > > myTable, but
> > > > >> only the first table worked. I can't remember if the specific ID is
> > > required
> > > > >> for my Zebra widget (alternate row colors), too, or not, but I would
> > > guess
> > > > >> it is.
> > > > >> I posted my JS links below, to show you my setup. Thanks for any 
> > > > >> tips.
> > > > >> * * * * *
> > > > >> http://MySite/js/jquery-1.3.1.min.js";
> > > > >> type="text/javascript">
> > > > >> http://MySite/js/tablesorter/jquery.tablesorter.js";
> > > > >> type="text/javascript">
> > > > >> 
> > > > >>  $(document).ready(function()
> > > > >>   {
> > > > >>   $("#myTable").tablesorter({ widgets: ['zebra']} );
>
> > > > >> $("#triggerMS").click(function(){
> > > > >>  $("#menuMS").show();
> > > > >>  return false;
> > > > >> });
> > > > >> $("#menuMS").click( function(){
> > > > >>  $("#menuMS").hide();
> > > > >>  return true;
> > > > >> });
>
> > > > >> $("#triggerReg").click(function(){
> > > > >>  $("#menuReg").show();
> > > > >>  return false;
> > > > >> });
> > > > >> $("#menuReg").click( function(){
> > > > >>  $("#menuReg").hide();
> > > > >>  return true;
> > > > >> });
>
> > > > >> $("#triggerKids").click(function(){
> > > > >>  $("#menuKids").show();
> > > > >>  return false;
> > > > >> });
> > > > >> $("#menuKids").click( function(){
> > > > >>  $("#menuKids").hide();
> > > > >>  return true;
> > > > >> });
>
> > > > >> $("#triggerLinks").click(function(){
> > > > >>  $("#menuLinks").show();
> > > > >>  return false;
> > > > >> });
> > > > >> $("#menuLinks").click( function(){
> > > > >>  $("#menuLinks").hide();
> > > > >>  return true;
> > > > >> });
>
> > > > >> $("#triggerBooks").click(function(){
> > > > >>  $("#menuBooks").show();
> > > > >>  return false;
> > > > >> });
> > > > >> $("#menuBooks").click( function(){
> > > > >>  $("#menuBooks").hide();
> > > > >>  return true;
> > > > >> });
>
> > > > >>   }
> > > > >>  );
> > > > >> 
>
> > > > >> --
> > > > >> David Blomstrom
> > > > >> Writer & Web Designer (Mac, M$ & Linux)
> > > > >>www.geobop.org
>
> > > > >> --
> > > > >> David Blomstrom
> > > > >> Writer & Web Designer (Mac, M$ & Linux)
> >

[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread christopherious

Something like this?  (Note that jQuery and JS in general are still
often a challenge for me).

--



$(document).ready(function() {
// extend the default setting to always sort on the first column
$.tablesorter.defaults.sortList = [[0,0]];
// call the tablesorter plugin
$("table.tablesorter").tablesorter({ widgets: ['zebra'] });
//assign the sortStart event
$("table").bind("sortStart",function() {
$("#overlay").show();
}).bind("sortEnd",function() {
$("#overlay").hide();
});
});



--

On May 12, 5:31 pm, aquaone  wrote:
> You should be able to bind to the sortEnd events to force sorting on all
> tables based on the sort order of that table...
>
> On Tue, May 12, 2009 at 16:48, christopherious 
> wrote:
>
>
>
> > I share David's requirement to sort globally on the page.  When users
> > click a column header for a given table, I want all tables on that
> > page to sort by that column rather than for just the table where the
> > user clicked the header.
>
> > My JS:
>
> > 
>
> > $(document).ready(function() {
> >    // extend the default setting to always sort on the first column
> >    $.tablesorter.defaults.sortList = [[0,0]];
> >    // call the tablesorter plugin
> >     $("table.tablesorter").tablesorter({ widgets: ['zebra'] });
> > });
>
> > 
>
> > My table tag:
>
> > 
>
> > Thanks in advance.
>
> > On May 1, 5:39 pm, David Blomstrom  wrote:
> > > Sorry it took me so long to reply. I thought my posts weren't showing up
> > on
> > > this forum.
> > > Anyway, thanks for the tip. I understand it now. Unfortunately, it isn't
> > > working for some reason.
> > > Is there a way to instead designate multiple ID's - like myTable,
> > myTable2
> > > and myTable3?
> > > Thanks.
>
> > > On Thu, Apr 30, 2009 at 1:41 PM, aquaone  wrote:
> > > > IDs are unique for a document. A document containing multiple elements
> > with
> > > > the same ID is invalid. Use a class instead and invoke tablesorter on
> > all
> > > > tables with that class.
>
> > > > e.g.
> > > > 
> > > > ...
> > > > 
>
> > > > and
>
> > > > $("table.tablesorter").tablesorter({ widgets: ['zebra'] });
>
> > > > On Wed, Apr 29, 2009 at 20:35, David Blomstrom <
> > david.blomst...@gmail.com>wrote:
>
> > > >> I'm using jQuery's tablesorter.js to create tables with sortable rows,
> > as
> > > >> applied to tables with the ID "myTable."
> > > >> I just wondered if there's a way to make it work with multiple tables
> > on a
> > > >> single page. I created two tables and gave each of them the ID
> > myTable, but
> > > >> only the first table worked. I can't remember if the specific ID is
> > required
> > > >> for my Zebra widget (alternate row colors), too, or not, but I would
> > guess
> > > >> it is.
> > > >> I posted my JS links below, to show you my setup. Thanks for any tips.
> > > >> * * * * *
> > > >> http://MySite/js/jquery-1.3.1.min.js";
> > > >> type="text/javascript">
> > > >> http://MySite/js/tablesorter/jquery.tablesorter.js";
> > > >> type="text/javascript">
> > > >> 
> > > >>  $(document).ready(function()
> > > >>   {
> > > >>   $("#myTable").tablesorter({ widgets: ['zebra']} );
>
> > > >> $("#triggerMS").click(function(){
> > > >>  $("#menuMS").show();
> > > >>  return false;
> > > >> });
> > > >> $("#menuMS").click( function(){
> > > >>  $("#menuMS").hide();
> > > >>  return true;
> > > >> });
>
> > > >> $("#triggerReg").click(function(){
> > > >>  $("#menuReg").show();
> > > >>  return false;
> > > >> });
> > > >> $("#menuReg").click( function(){
> > > >>  $("#menuReg").hide();
> > > >>  return true;
> > > >> });
>
> > > >> $("#triggerKids").click(function(){
> > > >>  $("#menuKids").show();
> > > >>  return false;
> > > >> });
> > > >> $("#menuKids").click( function(){
> > > >>  $("#menuKids").hide();
> > > >>  return true;
> > > >> });
>
> > > >> $("#triggerLinks").click(function(){
> > > >>  $("#menuLinks").show();
> > > >>  return false;
> > > >> });
> > > >> $("#menuLinks").click( function(){
> > > >>  $("#menuLinks").hide();
> > > >>  return true;
> > > >> });
>
> > > >> $("#triggerBooks").click(function(){
> > > >>  $("#menuBooks").show();
> > > >>  return false;
> > > >> });
> > > >> $("#menuBooks").click( function(){
> > > >>  $("#menuBooks").hide();
> > > >>  return true;
> > > >> });
>
> > > >>   }
> > > >>  );
> > > >> 
>
> > > >> --
> > > >> David Blomstrom
> > > >> Writer & Web Designer (Mac, M$ & Linux)
> > > >>www.geobop.org
>
> > > >> --
> > > >> David Blomstrom
> > > >> Writer & Web Designer (Mac, M$ & Linux)
> > > >>www.geobop.org
>
> > > --
> > > David Blomstrom
> > > Writer & Web Designer (Mac, M$ & Linux)www.geobop.org


[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread aquaone
You should be able to bind to the sortEnd events to force sorting on all
tables based on the sort order of that table...

On Tue, May 12, 2009 at 16:48, christopherious wrote:

>
> I share David's requirement to sort globally on the page.  When users
> click a column header for a given table, I want all tables on that
> page to sort by that column rather than for just the table where the
> user clicked the header.
>
> My JS:
>
> 
>
> $(document).ready(function() {
>// extend the default setting to always sort on the first column
>$.tablesorter.defaults.sortList = [[0,0]];
>// call the tablesorter plugin
> $("table.tablesorter").tablesorter({ widgets: ['zebra'] });
> });
>
> 
>
> My table tag:
>
> 
>
> Thanks in advance.
>
> On May 1, 5:39 pm, David Blomstrom  wrote:
> > Sorry it took me so long to reply. I thought my posts weren't showing up
> on
> > this forum.
> > Anyway, thanks for the tip. I understand it now. Unfortunately, it isn't
> > working for some reason.
> > Is there a way to instead designate multiple ID's - like myTable,
> myTable2
> > and myTable3?
> > Thanks.
> >
> >
> >
> > On Thu, Apr 30, 2009 at 1:41 PM, aquaone  wrote:
> > > IDs are unique for a document. A document containing multiple elements
> with
> > > the same ID is invalid. Use a class instead and invoke tablesorter on
> all
> > > tables with that class.
> >
> > > e.g.
> > > 
> > > ...
> > > 
> >
> > > and
> >
> > > $("table.tablesorter").tablesorter({ widgets: ['zebra'] });
> >
> > > On Wed, Apr 29, 2009 at 20:35, David Blomstrom <
> david.blomst...@gmail.com>wrote:
> >
> > >> I'm using jQuery's tablesorter.js to create tables with sortable rows,
> as
> > >> applied to tables with the ID "myTable."
> > >> I just wondered if there's a way to make it work with multiple tables
> on a
> > >> single page. I created two tables and gave each of them the ID
> myTable, but
> > >> only the first table worked. I can't remember if the specific ID is
> required
> > >> for my Zebra widget (alternate row colors), too, or not, but I would
> guess
> > >> it is.
> > >> I posted my JS links below, to show you my setup. Thanks for any tips.
> > >> * * * * *
> > >> http://MySite/js/jquery-1.3.1.min.js";
> > >> type="text/javascript">
> > >> http://MySite/js/tablesorter/jquery.tablesorter.js";
> > >> type="text/javascript">
> > >> 
> > >>  $(document).ready(function()
> > >>   {
> > >>   $("#myTable").tablesorter({ widgets: ['zebra']} );
> >
> > >> $("#triggerMS").click(function(){
> > >>  $("#menuMS").show();
> > >>  return false;
> > >> });
> > >> $("#menuMS").click( function(){
> > >>  $("#menuMS").hide();
> > >>  return true;
> > >> });
> >
> > >> $("#triggerReg").click(function(){
> > >>  $("#menuReg").show();
> > >>  return false;
> > >> });
> > >> $("#menuReg").click( function(){
> > >>  $("#menuReg").hide();
> > >>  return true;
> > >> });
> >
> > >> $("#triggerKids").click(function(){
> > >>  $("#menuKids").show();
> > >>  return false;
> > >> });
> > >> $("#menuKids").click( function(){
> > >>  $("#menuKids").hide();
> > >>  return true;
> > >> });
> >
> > >> $("#triggerLinks").click(function(){
> > >>  $("#menuLinks").show();
> > >>  return false;
> > >> });
> > >> $("#menuLinks").click( function(){
> > >>  $("#menuLinks").hide();
> > >>  return true;
> > >> });
> >
> > >> $("#triggerBooks").click(function(){
> > >>  $("#menuBooks").show();
> > >>  return false;
> > >> });
> > >> $("#menuBooks").click( function(){
> > >>  $("#menuBooks").hide();
> > >>  return true;
> > >> });
> >
> > >>   }
> > >>  );
> > >> 
> >
> > >> --
> > >> David Blomstrom
> > >> Writer & Web Designer (Mac, M$ & Linux)
> > >>www.geobop.org
> >
> > >> --
> > >> David Blomstrom
> > >> Writer & Web Designer (Mac, M$ & Linux)
> > >>www.geobop.org
> >
> > --
> > David Blomstrom
> > Writer & Web Designer (Mac, M$ & Linux)www.geobop.org
>


[jQuery] Re: Applying Table Row Sorter to Multiple Tables

2009-05-12 Thread christopherious

I share David's requirement to sort globally on the page.  When users
click a column header for a given table, I want all tables on that
page to sort by that column rather than for just the table where the
user clicked the header.

My JS:



$(document).ready(function() {
// extend the default setting to always sort on the first column
$.tablesorter.defaults.sortList = [[0,0]];
// call the tablesorter plugin
$("table.tablesorter").tablesorter({ widgets: ['zebra'] });
});



My table tag:



Thanks in advance.

On May 1, 5:39 pm, David Blomstrom  wrote:
> Sorry it took me so long to reply. I thought my posts weren't showing up on
> this forum.
> Anyway, thanks for the tip. I understand it now. Unfortunately, it isn't
> working for some reason.
> Is there a way to instead designate multiple ID's - like myTable, myTable2
> and myTable3?
> Thanks.
>
>
>
> On Thu, Apr 30, 2009 at 1:41 PM, aquaone  wrote:
> > IDs are unique for a document. A document containing multiple elements with
> > the same ID is invalid. Use a class instead and invoke tablesorter on all
> > tables with that class.
>
> > e.g.
> > 
> > ...
> > 
>
> > and
>
> > $("table.tablesorter").tablesorter({ widgets: ['zebra'] });
>
> > On Wed, Apr 29, 2009 at 20:35, David Blomstrom 
> > wrote:
>
> >> I'm using jQuery's tablesorter.js to create tables with sortable rows, as
> >> applied to tables with the ID "myTable."
> >> I just wondered if there's a way to make it work with multiple tables on a
> >> single page. I created two tables and gave each of them the ID myTable, but
> >> only the first table worked. I can't remember if the specific ID is 
> >> required
> >> for my Zebra widget (alternate row colors), too, or not, but I would guess
> >> it is.
> >> I posted my JS links below, to show you my setup. Thanks for any tips.
> >> * * * * *
> >> http://MySite/js/jquery-1.3.1.min.js";
> >> type="text/javascript">
> >> http://MySite/js/tablesorter/jquery.tablesorter.js";
> >> type="text/javascript">
> >> 
> >>  $(document).ready(function()
> >>   {
> >>   $("#myTable").tablesorter({ widgets: ['zebra']} );
>
> >> $("#triggerMS").click(function(){
> >>  $("#menuMS").show();
> >>  return false;
> >> });
> >> $("#menuMS").click( function(){
> >>  $("#menuMS").hide();
> >>  return true;
> >> });
>
> >> $("#triggerReg").click(function(){
> >>  $("#menuReg").show();
> >>  return false;
> >> });
> >> $("#menuReg").click( function(){
> >>  $("#menuReg").hide();
> >>  return true;
> >> });
>
> >> $("#triggerKids").click(function(){
> >>  $("#menuKids").show();
> >>  return false;
> >> });
> >> $("#menuKids").click( function(){
> >>  $("#menuKids").hide();
> >>  return true;
> >> });
>
> >> $("#triggerLinks").click(function(){
> >>  $("#menuLinks").show();
> >>  return false;
> >> });
> >> $("#menuLinks").click( function(){
> >>  $("#menuLinks").hide();
> >>  return true;
> >> });
>
> >> $("#triggerBooks").click(function(){
> >>  $("#menuBooks").show();
> >>  return false;
> >> });
> >> $("#menuBooks").click( function(){
> >>  $("#menuBooks").hide();
> >>  return true;
> >> });
>
> >>   }
> >>  );
> >> 
>
> >> --
> >> David Blomstrom
> >> Writer & Web Designer (Mac, M$ & Linux)
> >>www.geobop.org
>
> >> --
> >> David Blomstrom
> >> Writer & Web Designer (Mac, M$ & Linux)
> >>www.geobop.org
>
> --
> David Blomstrom
> Writer & Web Designer (Mac, M$ & Linux)www.geobop.org


[jQuery] Re: slideUp() does not make animation before remove() occurs

2009-05-12 Thread Ricardo

Maybe it's because opacity is already 0?

Try using animate({ height:'toggle' }) instead

On May 12, 2:16 pm, Massimiliano Marini  wrote:
> Hi all,
>
> I'm using jQuery 1.3.2 that's the code:
>
> function removeChekbox(data){
>  $.each(data, function(i, val){                                               
>          
>   $('input[value="'+val+'"]').parents(".item-container").animate({opacity: 
> 0.0}, "slow", function(){
>    $(this).slideUp("slow", function(){
>     $(this).remove();
>    });
>   });
>  });
>
> }
>
> the code is correct, the remove() works well, but the slideUp()
> does not make the animation. Why?


[jQuery] Re: Refresh Element After Changing Style

2009-05-12 Thread posh beck
On Tue, May 12,
2009at
7:16 AM, PF
 wrote:

>
> Hi everyone:
>
> I am attempting to change the style after the user has loaded the page
> (every x number of seconds) but the element just doesn't seem to be
> refreshing.  I have done all of the checking, and it seems like it is
> changing it but it isn't showing that on the page.
>
>
> Thanks for any help.


[jQuery] Re: tablesorter messing with other tables

2009-05-12 Thread PaulGCES

Well, actually I would indeed like the subtables to sort, but they
seem to be confusing each other.

I'd like to have a sortable table of data, where one column is itself
a sortable table.

However, whenever I nest this way, the implementation seems to get
confused.

Clicking on one table leads to others being sorted, or sending two
events causing it to sort and again reverse sort with every click.

There seems to be some kind of error with the module where it listens
to events from some tables, but doesn't have handlers in it's array to
deal with them, leading to javascript errors.  Has anyone else tried
this with 2.0?

Thanks again,

--Paul.

On May 12, 11:40 am, aquaone  wrote:
> Tablesorter will sort them like any other content, which may not be what you
> intend. If you want to be able to nest table structures, another plugin may
> be better suited.
>
> On Mon, May 11, 2009 at 18:21, PaulGCES  wrote:
>
> > Hello--
>
> > Does tablesorter support nested tables?  I'm only trying to sort the
> > outer table, but tablesorter seems confused by tables nested within my
> > 's.
>
> > Is it a known issue that tablesorter cannot handle nested tables?
>
> > Many thanks!


[jQuery] [tooltip] Bassistance Tooltip Transparent Text IE7/IE8 problem

2009-05-12 Thread Pappy

I am using a very simple tooltip on my site (just text).  Depending on
where I am on the page, the text renders transparently or white, even
though the css 'color' is set to black.  See this image for an
example...

http://i44.tinypic.com/idhhcz.jpg

The tooltip is definitely the one shown as I can modify other css
properties and they change correctly.  Bear in mind that *sometimes*
the tooltip displays just fine.  Ugh.


[jQuery] Superfish with multicolumn sub navigation

2009-05-12 Thread IschaGast

Is it also possible to use superfish with a multicolumn navigation
like below?
I tried it out but the superfish effect isn't that smooth, the nav_sub
will just show without any nice fade-in & slidedown effect.

I think because Superfish normaly targets the ul ul but now it has to
target the 
I hope it's possible because superfish is really awsome and it would
be nice if it also works with the new big subnavigation trend


item 01


Heading

subitem 02
subitem 03
subitem 04

Heading

subitem 02
subitem 03
subitem 04



Heading

subitem 02
subitem 03
subitem 04

Heading

subitem 02
subitem 03
subitem 04




item 02
item 03
item 04



[jQuery] Re: How to remove error messages from Validation Plugin

2009-05-12 Thread Chuck Cheeze

Here is an interesting way to do it.  In my case, I was using a main
error div at the top of the page, so I didn't need the individual
label.error elements inline.  They kept showing up no matter what I
did until I added this to my validation:

errorElement: "em"

This changes the element that the errors are displayed in from label
to em.  I am not using any em elements on my page, so the error
messages just don't show up (except the main one, which I want to show
up).

jQuery.validator.messages.required = "";
$('#member_form').validate({
//change error element
errorElement: "em",
//use main error div instead
invalidHandler: function(e, validator) {
var errors = validator.numberOfInvalids();
if (errors) {
var message = errors == 1
? 'You missed 1 field. 
It has been highlighted below'
: 'You missed ' + 
errors + ' fields.  They have been
highlighted below';
$("div.error 
span").html(message);
$("div.error").show();
} else {
$("div.error").hide();
}
},

rules: {
username: {
required: true,
email: true
},
password: {
required: true,
minlength: 4,
maxlength: 10
},
password_confirm: {
required: true,
equalTo: "#password",
minlength: 4,
maxlength: 10
},
accept_terms: "required",
cf_member_fname: "required",
cf_member_lname: "required",
cf_member_city: "required",
cf_member_country: "required",
captcha: "required"
  }

});

On Apr 10, 8:08 pm, Rick  wrote:
> I'm using this plugin in its simplest 
> form..http://docs.jquery.com/Plugins/Validation
>
> All I have is this for my code:
>
> 
> $(document).ready(function(){
>         $("#form").validate();});
>
> 
>
> It works fine, but I'm trying to hide the error messages which it
> defaults to "This field is required." The error message shows up in a
> label..
>
> How in the world do I hide those error messages within those labels???
> I'm sure it's easy, but I cannot find any examples anywhere!!
>
> Thanks to whoever helps out..


[jQuery] Re: find ID of input within a div

2009-05-12 Thread Mean Mike

so  what your saying is you may have more the one input in the same
div and you want the id of every input in said div ? what format do
you want them in if you have multiple inputs your gonna have multiple
results..

here is where I'm going with this what if you looped through the div
like this

$('a.stop').click(function() {
var div  = $(this).parents("div:first")
   $(div+" :input")..each(function(){
var input_id = $(this).attr("id");
   // now do something with the id
}
var parent_id = div.attr("id");
$('#'+parent_id).hide();

}

this is untested but I think its the right direction anyhow

On May 12, 10:41 am, heohni 
wrote:
> Thanks, but the page is dynamic and I don't know the names.
> Any other idea?
>
> I thought I could solve it this way:
> var top_div = $(this).parents("div").parents("div").attr("class");
> var select_name = $('.'+top_div+'>select').attr("name");
>
> But it returns me always the first select name, never the current
> one :-(
>
> What's wrong here?
>
> Thanks!
>
> On 12 Mai, 16:12, waseem sabjee  wrote:
>
> > working with selects
>
> > $("a.stop").click(function() {
>
> > var obj = $("select");
> > for(var i = 0; i < obj.length; i++) {
>
> > if(obj.eq(i).attr("name") == "vfo") {
>
> > // you have found the element do what you need to do
> > obj.eq(i).addClass("found"); // add class amy be
> > obj.eq(i).attr( {
> >  id:"found" // how bout give it an ID ?
>
> > });
> > }
> > }
> > });
>
> > On Tue, May 12, 2009 at 3:50 PM, heohni <
>
> > heidi.anselstet...@consultingteam.de> wrote:
>
> > > In my case I used now:
>
> > > var parent_id = $(this).parents("div:first").attr("id");
> > > $('#'+parent_id).hide();
>
> > > var input_id = $('#'+parent_id+">input").attr("id");
> > > $('#'+input_id).val("");
>
> > > To find more than one, I saw some time ago to use find() and each()
> > > functions. But I can't tell you how they work :-/
>
> > > Another questions:
>
> > >        
> > >        * Verpackungsform
> > >        
> > >        
> > >        Neue Eigenschaft
> > >        Oval
> > >        Quadratisch
> > >        Rechteckig
> > >        Rund
> > >        Sonstige
> > >        
> > >         > > height="16" border="0">
> > >         > > class="textInput">
> > >         
>
> > > Within
> > > $('a.stop').click(function() {
>
> > > How can I access the select name?
> > > I need to work on the disbaled attribute, but how can I access it?
>
> > > Thanks!!
>
> > > On 12 Mai, 15:40, waseem sabjee  wrote:
> > > > yeah it is a tough one. mike got it ! but what happens if you have more
> > > than
> > > > one input type ?
>
> > > > On Tue, May 12, 2009 at 3:02 PM, Mean Mike  wrote:
>
> > > > > $('a.stop').click(function() {
> > > > >        var input_id =  $(this).prev().attr("id");
> > > > >         var parent_id = $(this).parents("div:first").attr("id");
> > > > >        $('#'+parent_id).hide();
> > > > > }
>
> > > > > On May 12, 8:48 am, heohni 
> > > > > wrote:
> > > > > > hi!
>
> > > > > > I have this construct:
> > > > > >  > > > > > class="textInput">
>
> > > > > > On click I want to hide the div and empty the input value:
> > > > > > $('a.stop').click(function() {
> > > > > > var parent_id = $(this).parents("div:first").attr("id");
> > > > > > $('#'+parent_id).hide();
> > > > > > ...
>
> > > > > > How can I find out the id of the input field if I don't know it?
> > > > > > I don't think the input can be found with parents, or?
>
> > > > > > Thanks for help!!


[jQuery] Re: Callback function after switchClass()

2009-05-12 Thread waseem sabjee
here is one way to create delay
setTimeout(function() {
 // do function after 0.5 seconds
}, 500);

On Tue, May 12, 2009 at 9:32 PM, waseem sabjee wrote:

> Hi. What type of animation will you be making ? I could help :)
>
>
> On Tue, May 12, 2009 at 9:30 PM, kgosser  wrote:
>
>>
>> Hey all,
>>
>> I'm trying to do some animation designs. Basically where I'm stuck is
>> I have a bunch of things I want to do, but not until the duration of
>> the switchClass method is complete. Looking at the UI documentation
>> site, there doesn't appear to be a callback ability.
>>
>> Anyone have any tips on how I can make a callback on the switchClass?
>> Thanks.
>
>
>


[jQuery] Re: Callback function after switchClass()

2009-05-12 Thread waseem sabjee
Hi. What type of animation will you be making ? I could help :)

On Tue, May 12, 2009 at 9:30 PM, kgosser  wrote:

>
> Hey all,
>
> I'm trying to do some animation designs. Basically where I'm stuck is
> I have a bunch of things I want to do, but not until the duration of
> the switchClass method is complete. Looking at the UI documentation
> site, there doesn't appear to be a callback ability.
>
> Anyone have any tips on how I can make a callback on the switchClass?
> Thanks.


[jQuery] Callback function after switchClass()

2009-05-12 Thread kgosser

Hey all,

I'm trying to do some animation designs. Basically where I'm stuck is
I have a bunch of things I want to do, but not until the duration of
the switchClass method is complete. Looking at the UI documentation
site, there doesn't appear to be a callback ability.

Anyone have any tips on how I can make a callback on the switchClass?
Thanks.


[jQuery] Re: How to parse?

2009-05-12 Thread James

Instead of HTML, you can consider using JSON instead. Since it's just
a data format, you can use the info and populate it with Javascript
anywhere on the page that you want.

On May 11, 12:52 pm, "cstolwor...@gmail.com" 
wrote:
> I have noticed the selectors you can use when making an ajax call.  I
> want to do pretty much the same thing, but I don't want to make
> another call I just want to apply a selector to my existing data
>
> On May 11, 4:23 pm, "cstolwor...@gmail.com" 
> wrote:
>
> > I have an ajax call that will be returning a large chunk of HTML.  The
> > thing is that this HTML needs to go to several different places on the
> > page.  I would rather not have to make several different requests for
> > the data.  Is it possible to take a large (bundled) HTML value, parse
> > it into a temporary DOM and insert by finding what I need out of it?


[jQuery] Re: tablesorter messing with other tables

2009-05-12 Thread aquaone
Tablesorter will sort them like any other content, which may not be what you
intend. If you want to be able to nest table structures, another plugin may
be better suited.

On Mon, May 11, 2009 at 18:21, PaulGCES  wrote:

>
> Hello--
>
> Does tablesorter support nested tables?  I'm only trying to sort the
> outer table, but tablesorter seems confused by tables nested within my
> 's.
>
> Is it a known issue that tablesorter cannot handle nested tables?
>
> Many thanks!
>


[jQuery] Re: jsonp to a static remote file

2009-05-12 Thread Ricardo

On May 12, 11:59 am, Roy M  wrote:
> Hello,
>
> Currently I was able to load remote JSON (php) file using JSONP
> protocol.
>
> However, how to do if my remote file is static?
>
> In the doc, it said:
>
> you can load JSON data located on another domain if you specify a
> JSONP callback, which can be done like so: "myurl?callback=?".
>
> But since my remote file is a static text file, how can I specify the
> callback in the output dynamically?

If it's static, you can't do anything dynamically... hard-coding a
callback function should work:
( in yourfile.js)
myCallback({ json })

>
> In fact, I also wonder if it is possible to control the random
> callback name by modifying jquery source code...

In your case you can just declare the function as you know it's name
and use getScript:

function myCallback( data ){
  //do stuff
}
$.getScript('myjsonpfile.js');


[jQuery] Re: jquery slideViewerPro (beta)

2009-05-12 Thread GianCarlo Mingati

Hello Adam,
the tutorial well... its the page itself.
;-)


On 12 Mag, 19:36, adambundy  wrote:
> Hey GC- looking good! Ive been a SVP user for a while and think this
> is a great upgrade. I second the request for a transition option for a
> future upgrade. Ill take a look at the tutorial once its posted. Great
> stuff!
> -Adam
>
> On May 12, 11:24 am, GianCarlo Mingati 
> wrote:
>
> > Hello Rick,
> > i've just uploaded a new version with all the bugs fixed.
> > Also i'm trying to write a brief tutorial but english is not that
> > good.
> > If anybody got a minute or two, could please check and see if the
> > tutorial (still in development) is comprehensible?
> > Many thanks.
> > GC
>
> > On 10 Mag, 19:21, Rick Faircloth  wrote:
>
> > > Looks really good, GC...
>
> > > I like the auto and manual slideshow functionality.
> > > Thumbnails work well.
>
> > > How about transition effects...others possible?  (Crossfade in
> > > particular...)
>
> > > Rick
>
> > > On Sun, May 10, 2009 at 12:49 PM, GianCarlo Mingati <
>
> > > giancarlo.ming...@gmail.com> wrote:
>
> > > > Hello everyone.
> > > > I had the time to rewrite the slideViewerPro plugin wich is *another*
> > > > gallery engine.
> > > > You start with a DIV and an unordered list of images, and that's the
> > > > result.
> > > > I still have to add typographic information on each image (taken from
> > > > the ALT attribute) and fix a bug.
>
> > > >http://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/index.html
>
> > > > Let me know what you think.
> > > > Cheers
> > > > GC
>
> > > --
> > > ---
> > >  
> > > ---
> > >  ---
> > > "It has been my experience that most bad government is the result of too
> > > much government." - Thomas Jefferson


[jQuery] Re: jquery slideViewerPro (beta)

2009-05-12 Thread adambundy

Hey GC- looking good! Ive been a SVP user for a while and think this
is a great upgrade. I second the request for a transition option for a
future upgrade. Ill take a look at the tutorial once its posted. Great
stuff!
-Adam

On May 12, 11:24 am, GianCarlo Mingati 
wrote:
> Hello Rick,
> i've just uploaded a new version with all the bugs fixed.
> Also i'm trying to write a brief tutorial but english is not that
> good.
> If anybody got a minute or two, could please check and see if the
> tutorial (still in development) is comprehensible?
> Many thanks.
> GC
>
> On 10 Mag, 19:21, Rick Faircloth  wrote:
>
>
>
> > Looks really good, GC...
>
> > I like the auto and manual slideshow functionality.
> > Thumbnails work well.
>
> > How about transition effects...others possible?  (Crossfade in
> > particular...)
>
> > Rick
>
> > On Sun, May 10, 2009 at 12:49 PM, GianCarlo Mingati <
>
> > giancarlo.ming...@gmail.com> wrote:
>
> > > Hello everyone.
> > > I had the time to rewrite the slideViewerPro plugin wich is *another*
> > > gallery engine.
> > > You start with a DIV and an unordered list of images, and that's the
> > > result.
> > > I still have to add typographic information on each image (taken from
> > > the ALT attribute) and fix a bug.
>
> > >http://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/index.html
>
> > > Let me know what you think.
> > > Cheers
> > > GC
>
> > --
> > --- 
> > --- 
> > ---
> > "It has been my experience that most bad government is the result of too
> > much government." - Thomas Jefferson


[jQuery] Re: jquery slideViewerPro (beta)

2009-05-12 Thread GianCarlo Mingati

Hello Rick,
i've just uploaded a new version with all the bugs fixed.
Also i'm trying to write a brief tutorial but english is not that
good.
If anybody got a minute or two, could please check and see if the
tutorial (still in development) is comprehensible?
Many thanks.
GC

On 10 Mag, 19:21, Rick Faircloth  wrote:
> Looks really good, GC...
>
> I like the auto and manual slideshow functionality.
> Thumbnails work well.
>
> How about transition effects...others possible?  (Crossfade in
> particular...)
>
> Rick
>
> On Sun, May 10, 2009 at 12:49 PM, GianCarlo Mingati <
>
>
>
> giancarlo.ming...@gmail.com> wrote:
>
> > Hello everyone.
> > I had the time to rewrite the slideViewerPro plugin wich is *another*
> > gallery engine.
> > You start with a DIV and an unordered list of images, and that's the
> > result.
> > I still have to add typographic information on each image (taken from
> > the ALT attribute) and fix a bug.
>
> >http://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/index.html
>
> > Let me know what you think.
> > Cheers
> > GC
>
> --
> -
> "It has been my experience that most bad government is the result of too
> much government." - Thomas Jefferson


[jQuery] slideUp() does not make animation before remove() occurs

2009-05-12 Thread Massimiliano Marini

Hi all,

I'm using jQuery 1.3.2 that's the code: 

function removeChekbox(data){
 $.each(data, function(i, val){ 

  $('input[value="'+val+'"]').parents(".item-container").animate({opacity: 
0.0}, "slow", function(){
   $(this).slideUp("slow", function(){
$(this).remove();
   });
  });
 });
}

the code is correct, the remove() works well, but the slideUp() 
does not make the animation. Why?


[jQuery] [validate] Page disappear when validation completes !

2009-05-12 Thread antoine

Hello,

the strangest thing ever happens to me.

I'm new with JQuery and more especially withthe validation plugin.

I've created this page: http://dev.sonycenter.be/fr/ and implemented
the validation plugin for the newsletter form

If you look at the bottom right corner, you can try to enter a data
into the input field but as soon as you type one character after
the "." (that follows the domain) the whole page disappear...

I can't understand what's happening...

thanks for your help.

Antoine


[jQuery] [validation] my page disappear when data is filled into input

2009-05-12 Thread antoine

The strangest thing is happening to me... and I can't firgure out
where it comes from !

I'm new with the Jquery framework and more expecially with the
validation plugin.

I've created this page: http://dev.sonycenter.be/fr/

If you go at the bottom right corner of the page, you'll have the
newsletter subscribtion form... try to type in a e-mail adress, as
soon as you type one character after the "." (following the domain)
the page hides (but if you click view source (and scroll down) you can
see that it is there...so the page has not been refreshed or what so
ever)

How can i prevent this ?

thanks for your help !

Antoine


[jQuery] Re: PLease help.. sliding menu?

2009-05-12 Thread Jack Killpatrick

maybe this one:

http://github.com/nathansearles/loopedSlider/tree/master

- Jack

casey_oakland wrote:

Hey all..

by chance / looking for a good sliding menu tutorial.
I did find a great one! > http://www.flowplayer.org/tools/scrollable.html

however.. it's just shy of what i need it to do.

Maybe you can help with suggestions on how to adjust?

What i would like this to do is eventually have it loop
consecutively.
Actually (the perfect example of this) is a top of >
http://jqueryfordesigners.com/the-book-and-the-redesign/
so many great tutorials.. but not the one i need : (

Any thoughts or a nudge in the right direction would be huge help!

  

would be most grateful.



as always..
Thank.
  

j



  




[jQuery] Re: jQuery Logo

2009-05-12 Thread Rey Bango


Hi Robert,

Just to clarify that the logo is copyright of the jQuery project and 
can't be used for commercial purposes without the project's permission.


Sorry to have bring this up but if we don't clarify it, it can become a 
greater issue.


If it's just for a preso like at a BarCamp or something along those 
lines, that should be fine.


Rey...

Robert MacLean wrote:

Hi,

I am looking for a high res copy of the jQuery logo, ideally with a
transparent background for use in a presentation I am giving on it. I
can find the old logo like that, but not the new one.



[jQuery] Problem with toggles and if statements

2009-05-12 Thread Lars Schulz

Hi there,

please have a look at

http://clients.larsschulz.info/cc104_web/panel/quicklinks.html

I have h3 elements that are followed by divs that are toggled when the
h3 element is clicked...

//quicklinks - slide up and down on click
$("h3.trigger").click(function(){
$(this).next(".sectiontext").slideToggle(150);
});

Now I want to have certain divs visible when I load the page:
//quicklinks - activate div
$("h3.active").next(".sectiontext").slideToggle("fast");

I have the problem that the later misbehave, when I toggle them. The
action is actually reversed...
(click the example Test 1 post several times to see what I mean.

Can anybody help with this?


Thank you so much


Cheers


Lars

PS:

I tried the following code as a starting point:

//quicklinks - switch the "Open" and "Close" state per click
if($("h3.trigger").hasClass("active")) {
$("h3.trigger").toggle(function(){
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});
}
else {
$("h3.trigger").toggle(function(){
$(this).removeClass("active");
}, function() {
$(this).addClass("active");
});
}



[jQuery] Re: when use addclass and toggleclass

2009-05-12 Thread sveisvei

Hi

Addclass(this): if class attribute doesnt contain this, then add this

Toggleclass(this): if class attribute contains this, remove this, else
add this.

Cheers :)

On May 11, 3:35 am, runrunforest  wrote:
> Hi,
>
> method addClass and toggleClass do pretty much the same thing, what is
> the true difference between them ?


[jQuery] Re: jQuery too slow on IE!!!

2009-05-12 Thread Andy Matthews

That's quite a loaded statement. jQuery is actually optimized for IE as it's
still the largest share of the browser market. So jQuery is not inherently
slower on IE than on other browsers. Now, having said that, it's possible
that YOUR code could be slower on IE than on Firefox, but as you didn't post
an example link we can't test it, or examine your code.

Care to do that?


Andy matthews

-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Chandan
Sent: Tuesday, May 12, 2009 7:43 AM
To: jQuery (English)
Cc: prabhub@gmail.com
Subject: [jQuery] jQuery too slow on IE!!!


Hi,

I recently started using jQuery, thinking that it is FASTER than usual
javascript, but i found it is too slow when used with IE. I am using IE 6/7.


I also googled to find lots of posting already happened saying it is too
slow.

Can anyone suugest me what needs to be done!

CC to my friend as well, he is gr8 fan of jQuery.

Thanks.
Chandan




[jQuery] Re: SlideMenu & ASlideShow conflict

2009-05-12 Thread Mahmoud M. Abdel-Fattah

I'll do later, but I can't change the design in this case :( !

On May 12, 11:25 am, weidc  wrote:
> try to put the banner before the menu.
>
> atm it is like this:
>
> 
> 
> 
> 
> ...
> 
>
> you should try:
>
> 
> ...
> 
> 
> 
> 
>
> i always do so for ie6 'cause the z-index doesn't work.
> and i didn't found an other way yet. but it always worked for me.
>
> On 11 Mai, 02:12, "Mahmoud M. Abdel-Fattah"  wrote:
>
> > I forgot to mention, this problem appears in IE only not FF!
>
> > On May 11, 2:51 am, "Mahmoud M. Abdel-Fattah" 
> > wrote:
>
> > > I'm using jQuery Slide Menu & jQuery A Slide Show in this URL 
> > > :http://www.al-alee.com/en/
> > > but the A Slide Show appears over the dropdown menu, I'd changed the Z-
> > > Index but the problem still !!
>
> > > Thanks for your time.


[jQuery] Re: [Validate] Pass on message on success, and have a "start message"

2009-05-12 Thread jo...@retype.se

Thank you.

Any suggestions where to assign a class other than error for
showErrors?

Im new to jquery and really appreciate it!

This is (obviously) showErrors as it looks unmodified...

showErrors: function(errors) {
if(errors) {
// add items to error list and map
$.extend( this.errorMap, errors );
this.errorList = [];
for ( var name in errors ) {
this.errorList.push({
message: errors[name],
element: 
this.findByName(name)[0]
});
}
// remove items from success list
this.successList = $.grep( this.successList, 
function(element) {
return !(element.name in errors);
});
}
this.settings.showErrors
? this.settings.showErrors.call( this, 
this.errorMap,
this.errorList )
: this.defaultShowErrors();
},

On 2 Apr, 19:45, Jörn Zaefferer 
wrote:
> None of these is trivial to implement, but not impossible either.
>
> 3. needs a custom method, look at the existing methods and addMethod
> for reference:http://docs.jquery.com/Plugins/Validation/Validator/addMethod
>
> 2. could be achieved using showErrors, though you'd need to replicate
> some of the default functionality
>
> 1. sounds like it would be covered by 2. already
>
> Jörn
>
> On Wed, Apr 1, 2009 at 7:32 PM, jo...@retype.se  wrote:
>
> > Hello.
>
> > I just started implementing the jquery Validate-plugin on a site i'm
> > working on.
>
> > I'm new to jQuery and have not been deeply interested in javascript
> > earlier.
>
> > However, everything works fine. Thanks!
>
> > I have a few problems though, that i need som help on how to fix.
>
> > 1. Im using sucess: "valid" to print a label with the class valid when
> > somethings entered correct. Is it possible without to much pain to
> > pass on a message to the valid-label? Like "Thats right!". Either one
> > globally or even better one for each input.
>
> > 2. Is there possible to have a (again without to much work) label
> > there from the start, with a separate class containing a hint about
> > the input box? Which then switches to .error or .valid when the user
> > starts to type in the input?
>
> > 3. And a last one, is there possible to validate digits/numbers but
> > still allow dashes and whitespaces?
>
> > Thanks in advance!


[jQuery] Re: SuckerFish menus "covered" by main content? please advise

2009-05-12 Thread Simbarashe

We had a similar issue with our website when we first developed this.
When I looked at your site I did not notice the trap (IE7 and
Firefox). However, this is what we did: I set the z-index css property
on the menu containing div to be higher than the content area (if you
use positioning then z-index is assigned by default according to the
order in the source code). I also went one step further and set z-
index values in reverse order on each of the top level li elements
within the menu since we used images for the top level navigation that
made for some weird overlapping issues.

Hope it helps.

On May 11, 2:23 pm, cacaoananda  wrote:
> http://www.jingmasters.com/joomla/- site i am working on
>
> my drop down menus do not show up.
> they seem to be trapped in the menu box.
> please look and see what i mean.
> i feel like this is a CSS issue.
>
> please advise.
>
> thanks


[jQuery] jsonp to a static remote file

2009-05-12 Thread Roy M

Hello,

Currently I was able to load remote JSON (php) file using JSONP
protocol.

However, how to do if my remote file is static?


In the doc, it said:

you can load JSON data located on another domain if you specify a
JSONP callback, which can be done like so: "myurl?callback=?".


But since my remote file is a static text file, how can I specify the
callback in the output dynamically?

In fact, I also wonder if it is possible to control the random
callback name by modifying jquery source code...


[jQuery] after unblockUI styles are not loading.

2009-05-12 Thread harismile

hi,

i am using blockUI plugin. onChange in dropdown i did blockUI to
disable all the links & buttons in the screen. after page gets loaded
i am doing unblockUI.

in FireFox page loaded properly, but in IE6 page loaded with out
sytles. i am using jquery blockUI.js version 2.18.


Thanks in advance,
Sree.





[jQuery] not loading page style after unblocking...

2009-05-12 Thread harismile

hi


[jQuery] Re: Superfish menus in nav-bar style require subnavs to behave correctly?

2009-05-12 Thread Hiousi



my solution was to add childs even if not there by calling doing this
just before invoquing Superfish:
$('ul.sf-menu > li:not(:has(\'ul\'))').each(function() {$(this).append
('');});


[jQuery] Re: Simple innerFade problem

2009-05-12 Thread SuneR

Be sure to include the jquery library before any of its plugins,
otherwise they will fail, and thus not work.

I believe (havent tested it) that your problem will go away as soon as
you load jquery before the plugins.


[jQuery] jQuery too slow on IE!!!

2009-05-12 Thread Chandan

Hi,

I recently started using jQuery, thinking that it is FASTER than usual
javascript, but i found it is too slow when used with IE. I am using
IE 6/7.


I also googled to find lots of posting already happened saying it is
too slow.

Can anyone suugest me what needs to be done!

CC to my friend as well, he is gr8 fan of jQuery.

Thanks.
Chandan


[jQuery] Re: find ID of input within a div

2009-05-12 Thread heohni

Thanks, but the page is dynamic and I don't know the names.
Any other idea?

I thought I could solve it this way:
var top_div = $(this).parents("div").parents("div").attr("class");
var select_name = $('.'+top_div+'>select').attr("name");

But it returns me always the first select name, never the current
one :-(

What's wrong here?

Thanks!

On 12 Mai, 16:12, waseem sabjee  wrote:
> working with selects
>
> $("a.stop").click(function() {
>
> var obj = $("select");
> for(var i = 0; i < obj.length; i++) {
>
> if(obj.eq(i).attr("name") == "vfo") {
>
> // you have found the element do what you need to do
> obj.eq(i).addClass("found"); // add class amy be
> obj.eq(i).attr( {
>  id:"found" // how bout give it an ID ?
>
> });
> }
> }
> });
>
> On Tue, May 12, 2009 at 3:50 PM, heohni <
>
> heidi.anselstet...@consultingteam.de> wrote:
>
> > In my case I used now:
>
> > var parent_id = $(this).parents("div:first").attr("id");
> > $('#'+parent_id).hide();
>
> > var input_id = $('#'+parent_id+">input").attr("id");
> > $('#'+input_id).val("");
>
> > To find more than one, I saw some time ago to use find() and each()
> > functions. But I can't tell you how they work :-/
>
> > Another questions:
>
> >        
> >        * Verpackungsform
> >        
> >        
> >        Neue Eigenschaft
> >        Oval
> >        Quadratisch
> >        Rechteckig
> >        Rund
> >        Sonstige
> >        
> >         > height="16" border="0">
> >         > class="textInput">
> >         
>
> > Within
> > $('a.stop').click(function() {
>
> > How can I access the select name?
> > I need to work on the disbaled attribute, but how can I access it?
>
> > Thanks!!
>
> > On 12 Mai, 15:40, waseem sabjee  wrote:
> > > yeah it is a tough one. mike got it ! but what happens if you have more
> > than
> > > one input type ?
>
> > > On Tue, May 12, 2009 at 3:02 PM, Mean Mike  wrote:
>
> > > > $('a.stop').click(function() {
> > > >        var input_id =  $(this).prev().attr("id");
> > > >         var parent_id = $(this).parents("div:first").attr("id");
> > > >        $('#'+parent_id).hide();
> > > > }
>
> > > > On May 12, 8:48 am, heohni 
> > > > wrote:
> > > > > hi!
>
> > > > > I have this construct:
> > > > >  > > > > class="textInput">
>
> > > > > On click I want to hide the div and empty the input value:
> > > > > $('a.stop').click(function() {
> > > > > var parent_id = $(this).parents("div:first").attr("id");
> > > > > $('#'+parent_id).hide();
> > > > > ...
>
> > > > > How can I find out the id of the input field if I don't know it?
> > > > > I don't think the input can be found with parents, or?
>
> > > > > Thanks for help!!


[jQuery] Re: jQuery Logo

2009-05-12 Thread Karl Swedberg

Hi Robert,

You can find high-res versions here:

http://docs.jquery.com/Design_and_Identity

--Karl


Karl Swedberg
www.englishrules.com
www.learningjquery.com




On May 12, 2009, at 5:34 AM, Robert MacLean wrote:



Hi,

I am looking for a high res copy of the jQuery logo, ideally with a
transparent background for use in a presentation I am giving on it. I
can find the old logo like that, but not the new one.




[jQuery] Re: find ID of input within a div

2009-05-12 Thread waseem sabjee
working with selects



$("a.stop").click(function() {

var obj = $("select");
for(var i = 0; i < obj.length; i++) {

if(obj.eq(i).attr("name") == "vfo") {

// you have found the element do what you need to do
obj.eq(i).addClass("found"); // add class amy be
obj.eq(i).attr( {
 id:"found" // how bout give it an ID ?
});

}

}

});

On Tue, May 12, 2009 at 3:50 PM, heohni <
heidi.anselstet...@consultingteam.de> wrote:

>
> In my case I used now:
>
> var parent_id = $(this).parents("div:first").attr("id");
> $('#'+parent_id).hide();
>
> var input_id = $('#'+parent_id+">input").attr("id");
> $('#'+input_id).val("");
>
> To find more than one, I saw some time ago to use find() and each()
> functions. But I can't tell you how they work :-/
>
> Another questions:
>
>
>
>* Verpackungsform
>
>
>Neue Eigenschaft
>Oval
>Quadratisch
>Rechteckig
>Rund
>Sonstige
>
> height="16" border="0">
> class="textInput">
> 
>
> Within
> $('a.stop').click(function() {
>
> How can I access the select name?
> I need to work on the disbaled attribute, but how can I access it?
>
> Thanks!!
>
>
> On 12 Mai, 15:40, waseem sabjee  wrote:
> > yeah it is a tough one. mike got it ! but what happens if you have more
> than
> > one input type ?
> >
> > On Tue, May 12, 2009 at 3:02 PM, Mean Mike  wrote:
> >
> > > $('a.stop').click(function() {
> > >var input_id =  $(this).prev().attr("id");
> > > var parent_id = $(this).parents("div:first").attr("id");
> > >$('#'+parent_id).hide();
> > > }
> >
> > > On May 12, 8:48 am, heohni 
> > > wrote:
> > > > hi!
> >
> > > > I have this construct:
> > > >  > > > class="textInput">
> >
> > > > On click I want to hide the div and empty the input value:
> > > > $('a.stop').click(function() {
> > > > var parent_id = $(this).parents("div:first").attr("id");
> > > > $('#'+parent_id).hide();
> > > > ...
> >
> > > > How can I find out the id of the input field if I don't know it?
> > > > I don't think the input can be found with parents, or?
> >
> > > > Thanks for help!!
>


[jQuery] Re: find ID of input within a div

2009-05-12 Thread heohni

In my case I used now:

var parent_id = $(this).parents("div:first").attr("id");
$('#'+parent_id).hide();

var input_id = $('#'+parent_id+">input").attr("id");
$('#'+input_id).val("");

To find more than one, I saw some time ago to use find() and each()
functions. But I can't tell you how they work :-/

Another questions:



* Verpackungsform


Neue Eigenschaft
Oval
Quadratisch
Rechteckig
Rund
Sonstige





Within
$('a.stop').click(function() {

How can I access the select name?
I need to work on the disbaled attribute, but how can I access it?

Thanks!!


On 12 Mai, 15:40, waseem sabjee  wrote:
> yeah it is a tough one. mike got it ! but what happens if you have more than
> one input type ?
>
> On Tue, May 12, 2009 at 3:02 PM, Mean Mike  wrote:
>
> > $('a.stop').click(function() {
> >        var input_id =  $(this).prev().attr("id");
> >         var parent_id = $(this).parents("div:first").attr("id");
> >        $('#'+parent_id).hide();
> > }
>
> > On May 12, 8:48 am, heohni 
> > wrote:
> > > hi!
>
> > > I have this construct:
> > >  > > class="textInput">
>
> > > On click I want to hide the div and empty the input value:
> > > $('a.stop').click(function() {
> > > var parent_id = $(this).parents("div:first").attr("id");
> > > $('#'+parent_id).hide();
> > > ...
>
> > > How can I find out the id of the input field if I don't know it?
> > > I don't think the input can be found with parents, or?
>
> > > Thanks for help!!


[jQuery] Re: find ID of input within a div

2009-05-12 Thread waseem sabjee
yeah it is a tough one. mike got it ! but what happens if you have more than
one input type ?

On Tue, May 12, 2009 at 3:02 PM, Mean Mike  wrote:

>
> $('a.stop').click(function() {
>var input_id =  $(this).prev().attr("id");
> var parent_id = $(this).parents("div:first").attr("id");
>$('#'+parent_id).hide();
> }
>
> On May 12, 8:48 am, heohni 
> wrote:
> > hi!
> >
> > I have this construct:
> >  > class="textInput">
> >
> > On click I want to hide the div and empty the input value:
> > $('a.stop').click(function() {
> > var parent_id = $(this).parents("div:first").attr("id");
> > $('#'+parent_id).hide();
> > ...
> >
> > How can I find out the id of the input field if I don't know it?
> > I don't think the input can be found with parents, or?
> >
> > Thanks for help!!
>


[jQuery] Re: setting the style of a div

2009-05-12 Thread waseem sabjee
adding style to an element using jquery


lets say you had this div structure



 
Content for the sub div
 



you want to set main to relative and sub to absolute correct ?

$(function() {
 $("#main").css({ position:"relative", top:"0", left:"0")};
 $(".sub").css({ position:"absolute", top:"30%", left:"40%")};
});


did you mean something else ?

On Tue, May 12, 2009 at 2:37 PM, Mean Mike  wrote:

>
> Ash,
>
> All your design should be done in CSS at least thats my understanding
> of how you design a web site.
>
> a quick google got me this article which shows how to set style with
> jquery
>
> http://ajax.phpmagazine.net/2006/04/event_selector_showdown_the_jq.html
>
> here is the documentation for jquery's css http://docs.jquery.com/CSS
>
>
> personally I would try to do all me css in a css file and have jquery
> switch the class as needed
>
> Mike
>
> On May 11, 5:11 pm, "ash.finlay...@googlemail.com"
>  wrote:
> > Hi All
> >
> > I am just moving over to jquery. Previously i had been using prototype
> > and scriptaculous, im trying to figure out how to set a div relative
> > to another div. in prototype i would of used 'setStyle' to do this.
> > Can anyone give me an example of how to do the same in jquery?
> >
> > Many Thanks
> > Ash
>


[jQuery] Re: jQuery .addClass question

2009-05-12 Thread waseem sabjee
try this instead
note my style is similar to that of a jquery plug in because i feel holding
elements in a variable makes it easier to work with eq();

var obj = $("#basictab ul li"); // reference point
var index = 0; // start tab
obj.eq(index).addClass("current"); // at class to start tab
/*
when you click any tab :
prevent default behavior
get the eq of the tab you just clicked
if the eq of that tab is not equal to the eq of the previous tab remove the
previous tabs class and add it to the current tab
*/
obj.click(function(e) {
e.preventDefault();
var current = obj.index($(this));
if(index != current) {
obj.eq(index).removeClass("current");
obj.eq(current).addClass("current");
index = current
}
});

On Tue, May 12, 2009 at 2:29 PM, Leonardo K  wrote:

> This $("a[href='Menu/appetizersandpizza.aspx']").addClass("current"); work
> for me... Look:
>
> http://jsbin.com/imoju/edit
>
>
>
> On Mon, May 11, 2009 at 18:15, Matt  wrote:
>
>>
>> This seems like such a simple basic task, but I can't seem to get the
>> syntax correct.  I have a menu, and using jQuery it adds a class
>> (.current) to the link that corresponds to the current page.  This
>> works for all pages except the page in a subdirectory (link below
>> marked with a *).
>>
>>
>>  
>>> runat="server"
>> id="lnkDefault">Home
>>*Menu> asp:hyperlink>
>>> ID="lnkCatering">Catering
>>> runat="server" ID="lnkLocation">Location
>>  
>>
>>
>> Here is the jQuery call that I am using for the default.aspx page.
>>
>> $("a[href='Default.aspx']").addClass("current");
>>
>> Here are a few of the different things I have tried for the link with
>> the submenu (obviously only one at a time).
>>
>>  $("a[href*=/Menu]").addClass("current");
>>  $("a[href='Menu/appetizersandpizza.aspx']").addClass("current");
>>  $("a[href*=/Menu]:first").addClass("current");
>>
>> Can anyone shed some light on what I can try (I'm still pretty new to
>> jQuery).  Thanks in advance.
>>
>
>


[jQuery] Re: Hiding Table Columns

2009-05-12 Thread waseem sabjee
$("#myid").hide();
$(".myclass").hide();
$("td").eq().hide();
$("tr").eq().hide();

note if you say
$("tr)".eq(0).hide();
it will completely hide the first tr that appears in your code

if you say $("tr").eq(0).remove();
it will completely remove the first tr in your code from the DOM
meaning they won't get it back unless they refresh.

On Tue, May 12, 2009 at 12:46 PM, David Blomstrom  wrote:

> Imagine a table with ten columns. Is there a JavaScript function that will
> let visitors render particular columns invisible?
> For example, I have a table that uses a jQuery function to create sortable
> columns. However, it takes forever because the table is so big. But if
> visitors could make some of the less important columns disappear, then it
> might sort faster.
>
> --
> David Blomstrom
> Writer & Web Designer (Mac, M$ & Linux)
> www.geobop.org
>


[jQuery] Re: problem with input

2009-05-12 Thread waseem sabjee
new script
 $(function(){
   var prova = new Array();
   prova[0] = "Z";
   prova[1] = "G";
   prova[2] = "N";


   $('#prova').text(prova.join(", "));

   var i =0;
   $('input').click(function(){
   $('#lettere').hide("slow");
$('#scrivi').hide("slow");
   while(i");
   i++;
   }
   $('#prova').append("");


   $("input[name='inserito']").click(function(){

   var k = 0;
   while(k


On Tue, May 12, 2009 at 10:17 AM, Andrea_K  wrote:

>
> Hi!
> I have a problem :) 
> Why when i compare input value with array, he match only the first
> input.
> this is my code
>
>
>  $(function(){
>var prova = new Array();
>prova[0] = "Z";
>prova[1] = "G";
>prova[2] = "N";
>
>
>$('#prova').text(prova.join(", "));
>
>var i =0;
>$('input').click(function(){
>$('#lettere').hide("slow");
> $('#scrivi').hide("slow");
>while(i   $('#prova').append(" name=\""+prova[i]+"\"
> size=\"1\" id=\"testo" + i +"\" value=\"\"/>");
>i++;
>}
>$('#prova').append(" \" value=\"OK\" />");
>
>
>$("input[name='inserito']").click(function(){
>
>var k = 0;
>while(kif($("input[id*='testo']").val() == prova[k]){
>$('#esito').text("ok fattas").show();
>
>//return true;
>}else{
>$('#esito').text("niente").show();
>$('#esito').append(" " +prova[k]);
>return false;
>}
>k++;
>
>}
>
>});
>});
>
>});
>
>
> 
> 
>
> 
> 
> 
>
> 
>   
> 
> 
> 
> 
>
>
> sorry for my bad english and thanks for help!
>


[jQuery] Re: find ID of input within a div

2009-05-12 Thread Mean Mike

$('a.stop').click(function() {
var input_id =  $(this).prev().attr("id");
var parent_id = $(this).parents("div:first").attr("id");
$('#'+parent_id).hide();
}

On May 12, 8:48 am, heohni 
wrote:
> hi!
>
> I have this construct:
>  class="textInput">
>
> On click I want to hide the div and empty the input value:
> $('a.stop').click(function() {
> var parent_id = $(this).parents("div:first").attr("id");
> $('#'+parent_id).hide();
> ...
>
> How can I find out the id of the input field if I don't know it?
> I don't think the input can be found with parents, or?
>
> Thanks for help!!


[jQuery] find ID of input within a div

2009-05-12 Thread heohni

hi!

I have this construct:


On click I want to hide the div and empty the input value:
$('a.stop').click(function() {
var parent_id = $(this).parents("div:first").attr("id");
$('#'+parent_id).hide();
...

How can I find out the id of the input field if I don't know it?
I don't think the input can be found with parents, or?

Thanks for help!!




[jQuery] Re: setting the style of a div

2009-05-12 Thread Mean Mike

Ash,

All your design should be done in CSS at least thats my understanding
of how you design a web site.

a quick google got me this article which shows how to set style with
jquery

http://ajax.phpmagazine.net/2006/04/event_selector_showdown_the_jq.html

here is the documentation for jquery's css http://docs.jquery.com/CSS


personally I would try to do all me css in a css file and have jquery
switch the class as needed

Mike

On May 11, 5:11 pm, "ash.finlay...@googlemail.com"
 wrote:
> Hi All
>
> I am just moving over to jquery. Previously i had been using prototype
> and scriptaculous, im trying to figure out how to set a div relative
> to another div. in prototype i would of used 'setStyle' to do this.
> Can anyone give me an example of how to do the same in jquery?
>
> Many Thanks
> Ash


[jQuery] Re: Form Validation - upload file width

2009-05-12 Thread Jörn Zaefferer

Nope, that isn't possible afaik with JavaScript.

Jörn

On Tue, May 12, 2009 at 10:10 AM, Albert Kidd
 wrote:
>
> Hi,
>
> I would like to use jquery to validate on the server side to make sure
> the uploaded image is 400px by 300px.
>
> Is this possible.
>
> AK
>


[jQuery] Re: jQuery .addClass question

2009-05-12 Thread Leonardo K
This $("a[href='Menu/appetizersandpizza.aspx']").addClass("current"); work
for me... Look:

http://jsbin.com/imoju/edit


On Mon, May 11, 2009 at 18:15, Matt  wrote:

>
> This seems like such a simple basic task, but I can't seem to get the
> syntax correct.  I have a menu, and using jQuery it adds a class
> (.current) to the link that corresponds to the current page.  This
> works for all pages except the page in a subdirectory (link below
> marked with a *).
>
>
>  
> runat="server"
> id="lnkDefault">Home
>*Menu asp:hyperlink>
> ID="lnkCatering">Catering
> runat="server" ID="lnkLocation">Location
>  
>
>
> Here is the jQuery call that I am using for the default.aspx page.
>
> $("a[href='Default.aspx']").addClass("current");
>
> Here are a few of the different things I have tried for the link with
> the submenu (obviously only one at a time).
>
>  $("a[href*=/Menu]").addClass("current");
>  $("a[href='Menu/appetizersandpizza.aspx']").addClass("current");
>  $("a[href*=/Menu]:first").addClass("current");
>
> Can anyone shed some light on what I can try (I'm still pretty new to
> jQuery).  Thanks in advance.
>


[jQuery] jQuery.ajax form submission to MySQL

2009-05-12 Thread spstieng

Hi guys.
I'm using Wordpress CMS where I have created a custom form. I would
like to store the input from this form in a database (MySQL).

I've posted my problem here: 
http://stackoverflow.com/questions/852054/store-form-data-in-mysql-with-jquery-ajax
, but I think maybe this forum is a better place for mye problem.

I have the following script:
jQuery.processForms = function()
{
  jQuery('form#store_data_form').submit(function()
  {
var store_name = 'Test store'; //jQuery("input#store_name").val();
var store_street1 = 'Sesamy street';//Set constant for testing
var store_zipcode = '0574'; //Set constant for testing
var dataString = 'name='+ store_name + '&street1=' + store_street1
+ '&zipcode=' + store_zipcode;
jQuery.ajax(
{
  type: "POST",
  url: "../includes/storelocator/process_frm_store.php",
  data: dataString,
  error: function(XMLHttpRequest, textStatus, errorThrown)
{
  alert(errorThrown); // Just for debugging
  jQuery('#suggestNewStore div.error').fadeIn();
},
  success: function()
{
  alert('It works!');
  jQuery('#suggestNewStore div.success').fadeIn();
}
});
return false;
  });
}

Firebug is reporting a 404 Not Found. I've tried several different
paths in the url property. But no mather what, it can't locate the
process_frm_store.php.

The error message is also triggered, but that only says 'Undefined' -
I have no idea what that means.


[jQuery] Re: jquery.form.2.28 AJAX issue

2009-05-12 Thread Mike Alsup

> I still have the problem of getting the ajaxForm() function to work
> with  of JQuery Form Plugin 2.28 (with JQuery
> 1.2.6), which is supposed to fix a similar/related issue.
>
> For the first mouse click on the type-image-input, _all_ form vars are
> POSTed correctly, including, e.g., """&vu.x=13&vu.y=7""" and updates
> the designated portion within the outer ... with the AJAX
> response, everything seems to be fine.
>
> However, the """&""" vars are completely missing from the _subsequent_
> AJAX POSTs.


Seems to be working just fine here:

http://www.malsup.com/jquery/form/#code-samples

Are you updating the form after the submit?

Mike


[jQuery] tablesorter messing with other tables

2009-05-12 Thread PaulGCES

Hello--

Does tablesorter support nested tables?  I'm only trying to sort the
outer table, but tablesorter seems confused by tables nested within my
's.

Is it a known issue that tablesorter cannot handle nested tables?

Many thanks!


[jQuery] superfish equal distance spacing

2009-05-12 Thread matthewmilk

Hi, Does anyone know how to space the superfish menu links equally
within the div the are contained? If i am posting in the wrong place i
apologise.
Thanks in advance


[jQuery] Superfish and IE6 support - only first submenu item is clickable

2009-05-12 Thread Anna Kalata

First off, thanks to everyone on this list who take the time to help
newbs (and more experienced folks) with their problems. I’ve only
started learning to use jQuery on my own, although I’m sure it’s made
my life easier in more ways than I know!

I’m trying to use the Superfish drop-down menu plugin (version 1.4.8 -
http://users.tpg.com.au/j_birch/plugins/superfish/#download) to
replace a Suckerfish implementation (because I haven’t been able to
get it to work AT ALL in IE6). I’ve recreated the nav menu here:
http://diadem.digitalsymmetri.net/ie-header-test.html.

The issue I’m having in IE 6 is that only the first item in the
submenus is a clickable link, where all of the items in gray should be
clickable. I’m not positive this is something to do with Superfish,
since this is the first time I’ve been able to see any dropdowns in
IE6!  Currently, all the list items use CSS in order to render text as
images, which is why you’ll see a lot of nonbreaking spaces in the
html list.

Does anyone have any advice for debugging this problem?

-A


[jQuery] jquery.form.2.28 AJAX issue

2009-05-12 Thread jerryji

I still have the problem of getting the ajaxForm() function to work
with  of JQuery Form Plugin 2.28 (with JQuery
1.2.6), which is supposed to fix a similar/related issue.

For the first mouse click on the type-image-input, _all_ form vars are
POSTed correctly, including, e.g., """&vu.x=13&vu.y=7""" and updates
the designated portion within the outer ... with the AJAX
response, everything seems to be fine.

However, the """&""" vars are completely missing from the _subsequent_
AJAX POSTs.

I try to set "semantic: True" according to its documentation, but to
no avail.

It probably still sounds hopelessly confusing -- the live problem is
with the link vote up/down portion of the site http://collectivesys.com
(sorry registration/login is required to vote).

Thanks in advance.

Sincerely,
Jerry


[jQuery] Prevent ampersand from splitting up data string during ajax query

2009-05-12 Thread webmas...@stiu

Hi,
  I'm using ajax to store values from a form into MySQL. The form
contains a text field named "title" and the method I'm using to fetch
and pass on the data to the backend is shown below:
===
   _data =  "title=" + $( '#title' ).val
();

   $.ajax({
   async:  true,
   type:
"POST",
   url:
"backend.php",
   dataType:
"json",
   data:
_data,
   success:
function( json ) {  }
   } // success
   });
===
The method works fine for normal text, say "This is a sample text".

However, if an ampersand is used in the title text (example: "This &
That"), the post value is being truncated at it. In effect, the & in
the is causing the string to be split up into two segments and the
part after the & is being treated as a variable,

i.e. instead of passing

title = This & That

what is being passed is,

title = This
That =

Any suggestions on how to fix this?

Thanks,
Sourjya


[jQuery] Superfish : Conflict with RokBox Lightbox after Upgrading to superfish 1.2.2

2009-05-12 Thread deeman001

I had installed v 1.1.1 on a J1.5.10 install and had the light box
called RokBox from RocketLabs installed, then I upgraded to superfish
1.2.2 and RokBox stopped working.

When I disable the superfish module RokBox starts working again.

Is there any solution that could help me to get both working at once?

thanks,
Darren


[jQuery] PLease help.. sliding menu?

2009-05-12 Thread casey_oakland

Hey all..

by chance / looking for a good sliding menu tutorial.
I did find a great one! > http://www.flowplayer.org/tools/scrollable.html

however.. it's just shy of what i need it to do.

Maybe you can help with suggestions on how to adjust?

What i would like this to do is eventually have it loop
consecutively.
Actually (the perfect example of this) is a top of >
http://jqueryfordesigners.com/the-book-and-the-redesign/
so many great tutorials.. but not the one i need : (

Any thoughts or a nudge in the right direction would be huge help!

> would be most grateful.

as always..
Thank.
> j


[jQuery] Problem with chained commands

2009-05-12 Thread meerestier

Hi there,

please have a look at

http://clients.larsschulz.info/cc104_web/panel/quicklinks.html

I have h3 elements that are followed by divs that are toggled when the
h3 element is clicked...

//quicklinks - slide up and down on click
$("h3.trigger").click(function(){
$(this).next(".sectiontext").slideToggle(150);
});

Now I want to have certain divs visible when I load the page:
//quicklinks - activate div
$("h3.active").next(".sectiontext").slideToggle("fast");

I have the problem that the later misbehave, when I toggle them. The
action is actually reversed...
(click the example Test 1 post several times to see what I mean.

Can anybody help with this?


Thank you so much


Cheers


Lars

PS:

I tried the following code as a starting point:

//quicklinks - switch the "Open" and "Close" state per click
if($("h3.trigger").hasClass("active")) {
$("h3.trigger").toggle(function(){
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});
}
else {
$("h3.trigger").toggle(function(){
$(this).removeClass("active");
}, function() {
$(this).addClass("active");
});
}



[jQuery] jQuery Logo

2009-05-12 Thread Robert MacLean

Hi,

I am looking for a high res copy of the jQuery logo, ideally with a
transparent background for use in a presentation I am giving on it. I
can find the old logo like that, but not the new one.


[jQuery] adding fadeIn/fadeOut effect to toggle or toggleclass

2009-05-12 Thread KD

The following works very well to highlight a table cell with a
background color when the cell is clicked:

Code:
jQuery("td").toggle(
  function () {
jQuery(this).addClass("highlight");
  },
  function () {
jQuery(this).removeClass("highlight");});


This also works with toggleClass:

Code:
jQuery("td").click(function() { jQuery(this).toggleClass
('highlight');});


css is simple: highlight {background:yellow;}

I just can't figure out how to incorporate a fadeIn and fadeOut effect
with toggle or toggleClass. I'd like to be able to control the speed
of the highlight when a user clicks a cell on the table. Thanks in
advance for any ideas!


[jQuery] jQuery .addClass question

2009-05-12 Thread Matt

This seems like such a simple basic task, but I can't seem to get the
syntax correct.  I have a menu, and using jQuery it adds a class
(.current) to the link that corresponds to the current page.  This
works for all pages except the page in a subdirectory (link below
marked with a *).


  
Home
*Menu
Catering
Location
  


Here is the jQuery call that I am using for the default.aspx page.

 $("a[href='Default.aspx']").addClass("current");

Here are a few of the different things I have tried for the link with
the submenu (obviously only one at a time).

  $("a[href*=/Menu]").addClass("current");
  $("a[href='Menu/appetizersandpizza.aspx']").addClass("current");
  $("a[href*=/Menu]:first").addClass("current");

Can anyone shed some light on what I can try (I'm still pretty new to
jQuery).  Thanks in advance.


[jQuery] GUCCI bags ( paypal payment )( www.315store.com )

2009-05-12 Thread dddddddddddd

GUCCI bags ( paypal payment )(  www.315store.com )
CHLOE bags
CHANEL bags
CLOTHES
COACH bags ( paypal payment )(  www.315store.com )
DOLCE&GABBANA bags
FENDI bags
GUESS bags
JIMMY CHOO bags ( paypal payment )(  www.315store.com )
JUICY bags
LV bags
PRADA bags ( paypal payment )(  www.315store.com )
BAPE bags
PAUL SMITH bags
AF bags ( paypal payment )(  www.315store.com )










GUCCI bags ( paypal payment )(  www.315store.com )
CHLOE bags
CHANEL bags
CLOTHES
COACH bags ( paypal payment )(  www.315store.com )
DOLCE&GABBANA bags
FENDI bags
GUESS bags
JIMMY CHOO bags ( paypal payment )(  www.315store.com )
JUICY bags
LV bags
PRADA bags ( paypal payment )(  www.315store.com )
BAPE bags
PAUL SMITH bags
AF bags ( paypal payment )(  www.315store.com )










GUCCI bags ( paypal payment )(  www.315store.com )
CHLOE bags
CHANEL bags
CLOTHES
COACH bags ( paypal payment )(  www.315store.com )
DOLCE&GABBANA bags
FENDI bags
GUESS bags
JIMMY CHOO bags ( paypal payment )(  www.315store.com )
JUICY bags
LV bags
PRADA bags ( paypal payment )(  www.315store.com )
BAPE bags
PAUL SMITH bags
AF bags ( paypal payment )(  www.315store.com )













GUCCI bags ( paypal payment )(  www.315store.com )
CHLOE bags
CHANEL bags
CLOTHES
COACH bags ( paypal payment )(  www.315store.com )
DOLCE&GABBANA bags
FENDI bags
GUESS bags
JIMMY CHOO bags ( paypal payment )(  www.315store.com )
JUICY bags
LV bags
PRADA bags ( paypal payment )(  www.315store.com )
BAPE bags
PAUL SMITH bags
AF bags ( paypal payment )(  www.315store.com )






[jQuery] Problem with chained commands

2009-05-12 Thread meerestier

Hi there,

please have a look at

http://clients.larsschulz.info/cc104_web/panel/quicklinks.html

I have h3 elements that are followed by divs that are toggled when the
h3 element is clicked...

//quicklinks - slide up and down on click
$("h3.trigger").click(function(){
$(this).next(".sectiontext").slideToggle(150);
});

Now I want to have certain divs visible when I load the page:
//quicklinks - activate div
$("h3.active").next(".sectiontext").slideToggle("fast");

I have the problem that the later misbehave, when I toggle them. The
action is actually reversed...
(click the example Test 1 post several times to see what I mean.

Can anybody help with this?


Thank you so much


Cheers


Lars

PS:

I tried the following code as a starting point:

//quicklinks - switch the "Open" and "Close" state per click
if($("h3.trigger").hasClass("active")) {
$("h3.trigger").toggle(function(){
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});
}
else {
$("h3.trigger").toggle(function(){
$(this).removeClass("active");
}, function() {
$(this).addClass("active");
});
}



[jQuery] Form Validation - upload file width

2009-05-12 Thread Albert Kidd

Hi,

I would like to use jquery to validate on the server side to make sure
the uploaded image is 400px by 300px.

Is this possible.

AK


[jQuery] Prevent ampersand from splitting up data string during ajax query

2009-05-12 Thread webmas...@stiu

Hi,
   I'm using ajax to store values from a form into MySQL. The form
contains a text field named "title" and the method I'm using to fetch
and pass on the data to the backend is shown below:
===
_data =  "title=" + $( '#title' ).val();

$.ajax({
async:  true,
type:   "POST",
url:
"backend.php",
dataType:   "json",
data:   _data,
success:
function( json ) {  }
} // success
});
===
The method works fine for normal text, say "This is a sample text".

However, if an ampersand is used in the title text (example: "This &
That"), the post value is being truncated at it. In effect, the & in
the is causing the string to be split up into two segments and the
part after the & is being treated as a variable,

i.e. instead of passing

title = This & That

what is being passed is,

title = This
That =

Any suggestions on how to fix this?

Thanks,
Sourjya


[jQuery] Connecting on YouTube using $.ajax ?

2009-05-12 Thread debussy007


Hi,

I try to connect on Youtube using the script below.
But I get the error message:

Access to restricted URI denied" code: "1012

Is there any way to bypass this issue ?

function login() {
var u = 'xyz';
var p = 'xyz';
$.ajax({
type: 'POST',
dataType:'json',
url: 
'https://www.google.com/accounts/ServiceLoginAuth?service=youtube',
beforeSend: function(r) {
r.setRequestHeader('Content-type', 
'application/x-www-form-urlencoded');
r.setRequestHeader('Accept',
'application/atom+xml,application/xml,text/xml,text/html');
},
data:
encodeURI('service=youtube&uilel=3

[jQuery] problem with input

2009-05-12 Thread Andrea_K

Hi!
I have a problem :) 
Why when i compare input value with array, he match only the first
input.
this is my code


 $(function(){
var prova = new Array();
prova[0] = "Z";
prova[1] = "G";
prova[2] = "N";


$('#prova').text(prova.join(", "));

var i =0;
$('input').click(function(){
$('#lettere').hide("slow");
 $('#scrivi').hide("slow");
while(i");
i++;
}
$('#prova').append("");


$("input[name='inserito']").click(function(){

var k = 0;
while(k








   






sorry for my bad english and thanks for help!


[jQuery] Does tablesorter support nested tables?

2009-05-12 Thread PaulGCES

Hello all--

I am unable to get tablesorter to work properly on nested tables.  In
all of my attempts, the clicks on the inner tables seem to populate up
to the parent and across to siblings and vice-versa.

Is this something that tablesorter is supposed to be able to do?

I can post code if needed, but just wanted to ask if this was
supported.

Thank!


[jQuery] setting the style of a div

2009-05-12 Thread ash.finlay...@googlemail.com

Hi All

I am just moving over to jquery. Previously i had been using prototype
and scriptaculous, im trying to figure out how to set a div relative
to another div. in prototype i would of used 'setStyle' to do this.
Can anyone give me an example of how to do the same in jquery?

Many Thanks
Ash


  1   2   >