[jQuery] Re: Autocomplete: Multi-dim JSON array and Custom format

2008-06-18 Thread Shawn


Check out the result method the autocomplete makes available:

http://docs.jquery.com/Plugins/Autocomplete/result#handler

The data parameter represents the raw data array.

OR, you may need to set up the formatResult parameter when 
initializing the autocomplete (or via the setOptions() method).


http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions
http://docs.jquery.com/Plugins/Autocomplete

I believe the formatResult method would probably be what you are looking 
for, though it's been a while since I used autocomplete and don't fully 
understand your app.. :)


Hope that helps.

Shawn

Adam wrote:

Ok, that's a great article but not exactly what I need. I don't need
to modify the results of the select (yet) but I need to modify the
output of the results: a mulit-dimensional array that would need to be
looped and shown. It might require a whole script entirely, but
there's just too much good stuff in Jorn's plugin that I could never
do on my own.



On Jun 17, 2:59 pm, Shawn [EMAIL PROTECTED] wrote:

Which autocomplete are you using?  Which version?

Not meaning to do a shameless plug, but I wrote a blog article that
covered using database IDs with Jorn's autocomplete.

http://grover.open2space.com/node/190

This was back in December, so might be a little dated.  But I believe
what you are trying to do seems relatively similar.  Perhaps that might
help?

Shawn

Adam wrote:

Tried to post this question once before but didn't seem to work...
I'm needing to get a multi-dim JSON array to work for my autocomplete,
in an effort to mimic the Spotlight design.
My JSON currently looks like this:
[
{key:names, values:[ bunch of values]},
{key:emails,values: [ bunch of email values ]}
]
I am wanting to put into an HTML structure like this:
dl
dtNames/dt
dda href=#name/dd
dda href=#name/dd
dtEmails/dt
dda href=#email/dd
dda href=#email/dd
/dl
Basically, I want my JS to loop through the JSON array and spit out
the key into a dt tag, then each item into a dd. Easier said than
done.
Can anyone give me some direction? I've got it as far as listing all
the names and emails in dd's, but no dt's are happening...
Here is my adapted autocomplete.js code:
   function parse(data) {
   var parsed = [];
   $(data).each( function() {
   var rows = this.values;
   for (var i=0; i  rows.length; i++) {
   var row = rows[i];
   if (row) {
   row = row.split(|);
   parsed[parsed.length] = {
   data: row,
   value: row[0],
   result: options.formatResult  
options.formatResult(row,
row[0]) || row[0]
   };
   }
   }
   });
   return parsed;
   };
Thanks.


[jQuery] UI - Uploader

2008-06-18 Thread Vincent Majer


Hi,

I found a discussion about this site and demos :
http://uploader.webunity.nl/jQuery/demo3/
http://docs.jquery.com/UI/Uploader

I really like it.. But i can't find any docs on the php file behind the 
scene.. Neither a link to download this plugin.. If this is a plugin.. ? 
or a part of jquery UI ? But i didn't see any mention of it, on the 
jquery UI site..


Anybody has informations about .. ?

thanks




[jQuery] Re: UI - Uploader

2008-06-18 Thread Richard D. Worth
This was an experimental plugin before the 1.0 release. Here are the old
files in the svn archive:

http://dev.jquery.com/browser/trunk/plugins/ui/uiUpload?rev=2854

The UI Roadmap lists it as a plugin that is still being discussed for
inclusion:

http://docs.jquery.com/UI/Roadmap

- Richard

On Wed, Jun 18, 2008 at 5:06 AM, Vincent Majer [EMAIL PROTECTED]
wrote:


 Hi,

 I found a discussion about this site and demos :
 http://uploader.webunity.nl/jQuery/demo3/
 http://docs.jquery.com/UI/Uploader

 I really like it.. But i can't find any docs on the php file behind the
 scene.. Neither a link to download this plugin.. If this is a plugin.. ? or
 a part of jquery UI ? But i didn't see any mention of it, on the jquery UI
 site..

 Anybody has informations about .. ?

 thanks





[jQuery] Re: UI - Uploader

2008-06-18 Thread Vincent Majer


Is there a problem with this ? Not to use in a real site ?

It's seems to be the most advanced uploader i've seen.. i can't 
understand why it's not still included in UI.. And neither in the 
roadmap.. only in discussion .. ?


thanks anyway for this informations



Richard D. Worth a écrit :
This was an experimental plugin before the 1.0 release. Here are the old 
files in the svn archive:


http://dev.jquery.com/browser/trunk/plugins/ui/uiUpload?rev=2854

The UI Roadmap lists it as a plugin that is still being discussed for 
inclusion:


http://docs.jquery.com/UI/Roadmap

- Richard

On Wed, Jun 18, 2008 at 5:06 AM, Vincent Majer [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



Hi,

I found a discussion about this site and demos :
http://uploader.webunity.nl/jQuery/demo3/
http://docs.jquery.com/UI/Uploader

I really like it.. But i can't find any docs on the php file behind
the scene.. Neither a link to download this plugin.. If this is a
plugin.. ? or a part of jquery UI ? But i didn't see any mention of
it, on the jquery UI site..

Anybody has informations about .. ?

thanks







[jQuery] Re: UI - Uploader

2008-06-18 Thread Vincent Majer


And.. on the demo site, the revision is 4660.. And in the svn, only 2854 ?


Richard D. Worth a écrit :
This was an experimental plugin before the 1.0 release. Here are the old 
files in the svn archive:


http://dev.jquery.com/browser/trunk/plugins/ui/uiUpload?rev=2854

The UI Roadmap lists it as a plugin that is still being discussed for 
inclusion:


http://docs.jquery.com/UI/Roadmap

- Richard

On Wed, Jun 18, 2008 at 5:06 AM, Vincent Majer [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



Hi,

I found a discussion about this site and demos :
http://uploader.webunity.nl/jQuery/demo3/
http://docs.jquery.com/UI/Uploader

I really like it.. But i can't find any docs on the php file behind
the scene.. Neither a link to download this plugin.. If this is a
plugin.. ? or a part of jquery UI ? But i didn't see any mention of
it, on the jquery UI site..

Anybody has informations about .. ?

thanks







[jQuery] Re: UI - Uploader

2008-06-18 Thread Richard D. Worth
I haven't seen progress or discussion of the plugin in many months. As to
whether or when it might be included in UI, it could depend on any number of
factors (maintainer, architecture, maturity/stability, dependencies, fit
with project plans/goals, demand). I don't know in this case.

- Richard

On Wed, Jun 18, 2008 at 5:37 AM, Vincent Majer [EMAIL PROTECTED]
wrote:


 Is there a problem with this ? Not to use in a real site ?

 It's seems to be the most advanced uploader i've seen.. i can't understand
 why it's not still included in UI.. And neither in the roadmap.. only in
 discussion .. ?

 thanks anyway for this informations



 Richard D. Worth a écrit :

 This was an experimental plugin before the 1.0 release. Here are the old
 files in the svn archive:

 http://dev.jquery.com/browser/trunk/plugins/ui/uiUpload?rev=2854

 The UI Roadmap lists it as a plugin that is still being discussed for
 inclusion:

 http://docs.jquery.com/UI/Roadmap

 - Richard

 On Wed, Jun 18, 2008 at 5:06 AM, Vincent Majer [EMAIL PROTECTED]mailto:
 [EMAIL PROTECTED] wrote:


Hi,

I found a discussion about this site and demos :
http://uploader.webunity.nl/jQuery/demo3/
http://docs.jquery.com/UI/Uploader

I really like it.. But i can't find any docs on the php file behind
the scene.. Neither a link to download this plugin.. If this is a
plugin.. ? or a part of jquery UI ? But i didn't see any mention of
it, on the jquery UI site..

Anybody has informations about .. ?

thanks







[jQuery] Re: UI - Uploader

2008-06-18 Thread Richard D. Worth
Here's the latest revision I could find:

http://dev.jquery.com/browser/trunk/ui/experimental/Uploader%20source?rev=4573

I didn't link to that one earlier since you mentioned you were looking for
PHP files and 2854 is the last change that still has PHP files.

My best guess is that the reference you see on the demo page to 'Library:
jQuery (SVN revision: 4660)' relates to the version of jQuery used on that
demo page, not the svn rev of the uploader used on that page, as the page
has this script tag:

script type=text/javascript src=../jquery-svn.js/script

- Richard

On Wed, Jun 18, 2008 at 5:47 AM, Vincent Majer [EMAIL PROTECTED]
wrote:


 And.. on the demo site, the revision is 4660.. And in the svn, only 2854 ?


 Richard D. Worth a écrit :

 This was an experimental plugin before the 1.0 release. Here are the old
 files in the svn archive:

 http://dev.jquery.com/browser/trunk/plugins/ui/uiUpload?rev=2854

 The UI Roadmap lists it as a plugin that is still being discussed for
 inclusion:

 http://docs.jquery.com/UI/Roadmap

 - Richard

 On Wed, Jun 18, 2008 at 5:06 AM, Vincent Majer [EMAIL PROTECTED]mailto:
 [EMAIL PROTECTED] wrote:


Hi,

I found a discussion about this site and demos :
http://uploader.webunity.nl/jQuery/demo3/
http://docs.jquery.com/UI/Uploader

I really like it.. But i can't find any docs on the php file behind
the scene.. Neither a link to download this plugin.. If this is a
plugin.. ? or a part of jquery UI ? But i didn't see any mention of
it, on the jquery UI site..

Anybody has informations about .. ?

thanks







[jQuery] Re: UI - Uploader

2008-06-18 Thread Vincent Majer


ok, thanks for all this, richard, i'll try to implement it anyway.. and 
i'll see..





Richard D. Worth a écrit :

Here's the latest revision I could find:

http://dev.jquery.com/browser/trunk/ui/experimental/Uploader%20source?rev=4573

I didn't link to that one earlier since you mentioned you were looking 
for PHP files and 2854 is the last change that still has PHP files.


My best guess is that the reference you see on the demo page to 
'Library: jQuery (SVN revision: 4660)' relates to the version of jQuery 
used on that demo page, not the svn rev of the uploader used on that 
page, as the page has this script tag:


script type=text/javascript src=../jquery-svn.js/script

- Richard

On Wed, Jun 18, 2008 at 5:47 AM, Vincent Majer [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



And.. on the demo site, the revision is 4660.. And in the svn, only
2854 ?



Richard D. Worth a écrit :

This was an experimental plugin before the 1.0 release. Here are
the old files in the svn archive:


http://dev.jquery.com/browser/trunk/plugins/ui/uiUpload?rev=2854

The UI Roadmap lists it as a plugin that is still being
discussed for inclusion:

http://docs.jquery.com/UI/Roadmap

- Richard

On Wed, Jun 18, 2008 at 5:06 AM, Vincent Majer
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:


   Hi,

   I found a discussion about this site and demos :
   http://uploader.webunity.nl/jQuery/demo3/
   http://docs.jquery.com/UI/Uploader

   I really like it.. But i can't find any docs on the php file
behind
   the scene.. Neither a link to download this plugin.. If this is a
   plugin.. ? or a part of jquery UI ? But i didn't see any
mention of
   it, on the jquery UI site..

   Anybody has informations about .. ?

   thanks









[jQuery] Re: Help with tabsLoad

2008-06-18 Thread Klaus Hartl

I think you're now running into the common Ajax rebinding problem. You
may want to read the FAQ entry on this:

http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F

--Klaus


On 18 Jun., 00:09, keny [EMAIL PROTECTED] wrote:
 Hi,

 Thanks now ist 99% right and better.

 Everyting work for the fisrt level of link but not for other one.

 If you check my examle under tab # 2 click to load page #3
 Page load in the tab  right.  (a big big thanks you !)

 Next click to load page #1 or #2
 Page load not in tab .

 Is it possible to make that one load in tab 2 ? Why that page will not
 load in tab ?

 Thanks you very much for your time, patience and effort on this
 problem.

 On 17 juin, 02:07, Klaus Hartl [EMAIL PROTECTED] wrote:

  No that's wrong. As I already stated:

  The problem with your loadTab function was that it was
  reinitializing tabs turning them into in-page tabs as all anchor
  elements are already pointing to a hash at that point of time.

  In other words, you must not call tabs() a second time.

  The problem with using a function in javascript: is that the keyword
  this doesn't refer to what I expected it to. By using this technique
  you're making things unnecessarily difficult.

  You're saying that you need some links to have that behaviour and some
  not. That is easy and that's what selectors are for.

  So, I suggest to add a certain class, for example remote, to these
  links and select only these:

  a class=remote href=ahah_3.htmlI will load content via Ajax/a

  $(function() {
      $('#container-8  ul').tabs({
          load: function(ui) {
              $('a.remote', ui.panel).click(function() {
                  $(ui.panel).load(this.href);
                  return false;
              });
          }
      });

  });

  --Klaus

  On 16 Jun., 23:30, keny [EMAIL PROTECTED] wrote:

   Hi,

   Without the return statement nothing happen :-(

   And i understand why you told me to choose a normal link but dont
   worry ist in a member section of my site and google dont even crawl
   those web page. And i can't use the second function as in the page i
   show i whant some link to point to my function (and load in tab) and
   some to do not load in tab that why i try to use the first function.

   that no way to use that one and reload the tab to work after ?

   function loadTab(tab) {
   var tab ;

           $('#container-8').tabs({
       load: function(ui) {

               $(ui.panel).load(tab);

   // here someting to make it work ???

       }

   });
   }

   thanks you

   On 16 juin, 02:12, Klaus Hartl [EMAIL PROTECTED] wrote:

Sigh, I'm not used to using javascript: urls in links, which is
considered bad practice. Please change it to:

javascript:void(loadTab( 'ahah_3.html' ));

Removing the return statement should also work:

function loadTab(url) {
    $(this).parents('#container-8').load(url);

}

Please 
read:http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Op...

But I encourage you to use a standard link

a href=whatever.html.../a

and bind an event to ajaxify this link by using the load callback in
tabs itself. All you need is this then:

$(function() {
    $('#container-8  ul').tabs({
        load: function(ui) {
            $('a', ui.panel).click(function() {
                $(ui.panel).load(this.href);
                return false;
            });
        }
    });

});

--Klaus

On 16 Jun., 01:01, keny [EMAIL PROTECTED] wrote:

 Hi, thanks again for answer me,

 Your function dont work, it only show in another page the word false

 I have try all of these combinaison whit the same result :

 function loadTab(url) {
 var url;
     $(this).parents('div.ui-tabs-panel').load(url);
     return false;

 }

 function loadTab(url) {
     $(this).parents('#container-8').load(url);
     return false;

 }

 See by yourself here :http://www.snipvideo.com/tabs/

 Thanks

 On 15 juin, 18:27, Klaus Hartl [EMAIL PROTECTED] wrote:

  Ah, I see. Please change the loadTab function to this:

  function loadTab(url) {
      $(this).parents('div.ui-tabs-panel').load(url);
      return false;

  }

  and try again. The problem with your loadTab function was that it 
  was
  reinitializing tabs turning them into in-page tabs as all anchor
  elements are already pointing to a hash at that point of time.

  --Klaus

  On 15 Jun., 16:55, keny [EMAIL PROTECTED] wrote:

   Hi,

   Ya like i said everyting work the link is loaded but afther that,
    even if you click on tab 1 or 2 or 3 the page d'ont load anymore 
   ist
   stay to page 3

   If i click tab 1 ist should reload the page 1 same thing for tab 
   2 ...

   Thank you !

   On 15 juin, 02:50, Klaus Hartl [EMAIL 

[jQuery] Re: Adding the dialog function dynamically to each li element

2008-06-18 Thread Dan

Thanks Jason for the help so far.

That solved the problem I was having. I also added :first to a
couple of things to make it work even better.

Now for some reason, the content of the dialog is not being displayed.
From what Firebug is showing, append or dialog has taken the html and
messed it up. Each div tag in the dialog content has a style attr with
a lot of css in it and the content inside of the divs have been
stripped away. Not a lot of information to go by... would clone be a
better jQuery function to use than append? I had it working correctly
with append in a single test dialog, but now with this dynamic
applying it isn't working.

Maybe the append is adding the future dialog content to the wrong
location? I'll try some things out until a better idea comes around.


[jQuery] Re: cluetip question: is it possible to have tabs inside a cluetip?

2008-06-18 Thread Skurmedel

I've done some tool tip-related stuff myself recently. I found it
easiest to have an
initially hidden element with absolute positioning somewhere. Using
events I
display the tooltip next to the element using jQuery.offset,
jQuery.height and
jQuery.width.

On Jun 18, 1:36 am, se [EMAIL PROTECTED] wrote:
 here's what i'm trying to achieve, a tooltip that looks like this
 http://wa5190.fv15.de/transfer/tips/ and stays open until closed (no
 close button there atm). is this possible, and if so -- how? i tried
 to rebuild this into the page from where the tooltip is called but i
 couldn't get it to work at all. any help on how to proceed here is
 highly appreciated!


[jQuery] Re: Adding the dialog function dynamically to each li element

2008-06-18 Thread Dan

I've done a little messing around and have found that something is
wrong with:
$(this).append( div id=' + title + '
class='edit_dialog' ).append( $(.edit_accordion) ).append( /
div );

It only inserts the div tag and skips or looses the middle append
data. The div tag is also converted into a single tag, such as div
id='title' class='edit_dialog' /


[jQuery] slideDown and slideUp are jerky

2008-06-18 Thread JohnieKarr

Hello,

I have a site: www.lovinggodlovingyouonline.com that the menu is jerky
in IE6  7 on xp.  FF is really smooth.

I would prefer onmouseover, but I changed my code to onmouseclick to
help remedy the problem, but it did not work.  Does anyone have any
suggestions regarding this?  My jquery code is below:

script type=text/javascript src=jquery-1.2.3.js/script
  script type=text/javascript src=jquery.blockUI.js?v2.04/
script
  script type=text/javascript src=bubble.js/script
  script type=text/javascript src=jquery.ifixpng.js/script
  script type=text/javascript

   // unblock when ajax activity stops
   $().ajaxStop($.unblockUI);

   $(document).ready(function() {
jQuery('#GetlogIn').click(function() {
 jQuery.blockUI({ message: $('#loginForm') });
 });

   $('#cancelLogIn').click($.unblockUI);

   $('[EMAIL PROTECTED]').ifixpng();

   $(dd:not(:first)).hide();
$(dt a).click(function(){
$(dd:visible).slideUp(slow);
$(this).parent().next().slideDown(slow);
return false;
});

   });
  /script

I included all the scripts that I am using if that helps.

Thanks,
Johnie Karr


[jQuery] Re: li:gt(...) keeps counting to the next list

2008-06-18 Thread Panos

Ah, got it! Thanks Karl!

On Jun 18, 2:27 am, Karl Rudd [EMAIL PROTECTED] wrote:
 The selector ul li selects _all_ LI elements in all UL elements, and
 puts them in the same collection. So the collection/array will look
 like this:

   lialpha/li, libeta/li, ligamma/li, lidelta/li

 If you want to deal with each UL element separately then use each(), like 
 so:

   $(ul).each( function() {
     // this == a UL element
     $(li:gt(0), this).hide();
     // etc
   });

 Karl Rudd

 On Tue, Jun 17, 2008 at 10:51 PM, Panos [EMAIL PROTECTED] wrote:

  Using two ul lists:

  ul
         lialpha/li
         libeta/li
  /ul

  ul
         ligamma/li
         lidelta/li
  /ul

  In jQuery, I am trying to select all li's *except* the first one:

  $(ul li:gt(0)).hide();

  and then on hover, reveal them:

  $(ul:first-child).hover(
                 function() {
                         $(#preferences ul li:gt(0)).show();
                 },
                 function() {
                         $(#preferences ul li:gt(0)).hide();
                 }
  );

  The problem is, that the selector ul li:gt(0), goes on and hides the
  second list ('gamma', 'delta').

  As those are two individual lists, I thought that 'gamma' was
  index[0], and not part of the first list, ie index[2].

  Am I wrong? Is there another way to do this?


[jQuery] tablesorter: Glue two rows together

2008-06-18 Thread melwood

Hi,

is it possible to glue two table rows together, so that when the first
row is sorted, the second row always comes next?

Michael


[jQuery] [validate] addWrapper bug

2008-06-18 Thread Cao Le Thang Long

Any suggestion, Jorn?

On Jun 16, 10:11 am, Cao Le Thang Long [EMAIL PROTECTED] wrote:
 Hi,

 I'm currently using the validation plugin. However I ran into some
 problems.

 When I use div (or even ul) as a wrapper, if there is a validation
 error and I correct it, the whole form disappear, in fact the whole
 body element is marked as display: none.

 I did a search on Google and found out that this has been briefly
 discussed at 
 :http://bassistance.de/jquery-plugins/jquery-plugin-validation/#commen...
 (read the comment of Michiel Thalen) , and Jorn also said that the fix
 will be included. However I checked the latest CVS and nothing
 changed.

 As far as I tried, changing:

 toToggle.push( toToggle.parents( this.settings.wrapper ) );

 to:

 toToggle.push( toToggle.parent() );

 fixes this problem. But I am not certain that this change will affect
 any other behaviors of the plugin.

 I guess this is a pretty annoying bug that should be fixed in the next
 release.

 Thanks


[jQuery] Re: cluetip question: is it possible to have tabs inside a cluetip? (SOLVED)

2008-06-18 Thread se

On Jun 18, 1:36 am, se [EMAIL PROTECTED] wrote:
 here's what i'm trying to achieve, a tooltip that looks like this
 http://wa5190.fv15.de/transfer/tips/ and stays open until closed (no
 close button there atm). is this possible, and if so -- how? i tried
 to rebuild this into the page from where the tooltip is called but i
 couldn't get it to work at all. any help on how to proceed here is
 highly appreciated!

sorry, i overlooked it in the FAQ, onShow solves my issues.


[jQuery] Re: Layout manager

2008-06-18 Thread Stefan Sturm
Hello,

2008/6/17 Jquery user - z [EMAIL PROTECTED]:


 in jqueryUI, you com find something called splitpane in the dir
 jquery.ui-1.5\demos\real-world\splitpane\index.html


yes, but this is just a demo for the resizer.

I saw in the Roadmap, that a LayoutManager is planed for Version 1.7 :-) Is
there any Timetable for this?
And I found something in the Experimental Folder about Layout. Is this
useable?

Thanks and greetings,
Stefan Sturm


[jQuery] About events and memory

2008-06-18 Thread Skurmedel

Hi, I've been using jQuery for a couple of projects and I love it, it
really quells the pain of traversing the HTML.

However, I wonder if jQuery unbinds the events on page unload, to
avoid memory leaks. I don't see it being mentioned anywhere on the
main site.

Thanks in advance.


[jQuery] overflow:visible; during animate?

2008-06-18 Thread gpbmike

Hi, is there an easy way to override the overflow:hidden; that
animate() applies during the animation? I'd like my overflow to be
visible. :)

I looked around this site and the web in general and the only thing I
found was a patch to the animate() method. I'd like to do it without
messing with jquery.js if possible.

Thanks.


[jQuery] File operation...

2008-06-18 Thread kiran

Hi Friends,

I am very new to JQuery, infact Iam checking if we can use JQuery for
our requirements. In regards to that I  have couple of queries.

1. Can we do file operations using JQuery ? For instance if I make
some modifications to DOM/HTML, can I save it back to the disk?

2. Can I use Jquery for search/replace text in non html/XML files(like
JS files)?

Any inputs on this will be very helpful.

Thanks in advance


[jQuery] Re: Autocomplete: Multi-dim JSON array and Custom format

2008-06-18 Thread Mike Nichols

I Have an plugin called 'cascade' that does this using templating very
easily here http://plugins.jquery.com/project/cascade or consider the
very lightweight autocomplete here 
http://plugins.jquery.com/project/jq-autocomplete
which also uses the templating plugin.
I hopped to this autocomplete for this kind of flexibility and
scalability.

On Jun 17, 11:07 pm, Shawn [EMAIL PROTECTED] wrote:
 Check out the result method the autocomplete makes available:

 http://docs.jquery.com/Plugins/Autocomplete/result#handler

 The data parameter represents the raw data array.

 OR, you may need to set up the formatResult parameter when
 initializing the autocomplete (or via the setOptions() method).

 http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_datao...http://docs.jquery.com/Plugins/Autocomplete

 I believe the formatResult method would probably be what you are looking
 for, though it's been a while since I used autocomplete and don't fully
 understand your app.. :)

 Hope that helps.

 Shawn

 Adam wrote:
  Ok, that's a great article but not exactly what I need. I don't need
  to modify the results of the select (yet) but I need to modify the
  output of the results: a mulit-dimensional array that would need to be
  looped and shown. It might require a whole script entirely, but
  there's just too much good stuff in Jorn's plugin that I could never
  do on my own.

  On Jun 17, 2:59 pm, Shawn [EMAIL PROTECTED] wrote:
  Which autocomplete are you using?  Which version?

  Not meaning to do a shameless plug, but I wrote a blog article that
  covered using database IDs with Jorn's autocomplete.

 http://grover.open2space.com/node/190

  This was back in December, so might be a little dated.  But I believe
  what you are trying to do seems relatively similar.  Perhaps that might
  help?

  Shawn

  Adam wrote:
  Tried to post this question once before but didn't seem to work...
  I'm needing to get a multi-dim JSON array to work for my autocomplete,
  in an effort to mimic the Spotlight design.
  My JSON currently looks like this:
  [
  {key:names, values:[ bunch of values]},
  {key:emails,values: [ bunch of email values ]}
  ]
  I am wanting to put into an HTML structure like this:
  dl
  dtNames/dt
  dda href=#name/dd
  dda href=#name/dd
  dtEmails/dt
  dda href=#email/dd
  dda href=#email/dd
  /dl
  Basically, I want my JS to loop through the JSON array and spit out
  the key into a dt tag, then each item into a dd. Easier said than
  done.
  Can anyone give me some direction? I've got it as far as listing all
  the names and emails in dd's, but no dt's are happening...
  Here is my adapted autocomplete.js code:
     function parse(data) {
             var parsed = [];
             $(data).each( function() {
                     var rows = this.values;
                     for (var i=0; i  rows.length; i++) {
                             var row = rows[i];
                             if (row) {
                                     row = row.split(|);
                                     parsed[parsed.length] = {
                                             data: row,
                                             value: row[0],
                                             result: options.formatResult 
   options.formatResult(row,
  row[0]) || row[0]
                                     };
                             }
                     }
             });
             return parsed;
     };
  Thanks.


[jQuery] Re: cluetip question: is it possible to have tabs inside a cluetip?

2008-06-18 Thread JohnieKarr

I can't remember the name of it, but there is a tool tip plug-in that
allows the plug-in to be another page.  I can't remember if you can
take your mouse inside the tooltip or not.  I'm sure it can be made to
do so.  I use it at work. so I will get the name of it in the morning
for you and post.

On Jun 17, 6:36 pm, se [EMAIL PROTECTED] wrote:
 here's what i'm trying to achieve, a tooltip that looks like this
 http://wa5190.fv15.de/transfer/tips/ and stays open until closed (no
 close button there atm). is this possible, and if so -- how? i tried
 to rebuild this into the page from where the tooltip is called but i
 couldn't get it to work at all. any help on how to proceed here is
 highly appreciated!


[jQuery] onRighClick method?

2008-06-18 Thread Andy Matthews

Is there now, or are there any plans to have, an onRightClick method
in jQuery?

I found a ContextMenu plugin but it was last updated almost a year
ago.

Alternately, are there any other plugins out there that would offer
ContextMenu support for right clicking?


[jQuery] Re: Adding the dialog function dynamically to each li element

2008-06-18 Thread Richard D. Worth
Each append call expects an entire valid html element. You need to build up
the string, then append it in one go, or create the entire div element (
div ../div ) then select that div and do a separate append to it for
its content. Examples (untested):

$(this).append(
  'div id=' + title + ' class=edit_dialog' +
$(.edit_accordion).html() + '/div'
);

$(this).append(
  $('div id=' + title + ' class=edit_dialog/div).append(
$(.edit_accordion) )
);

- Richard

On Tue, Jun 17, 2008 at 11:31 PM, Dan [EMAIL PROTECTED] wrote:


 I've done a little messing around and have found that something is
 wrong with:
 $(this).append( div id=' + title + '
 class='edit_dialog' ).append( $(.edit_accordion) ).append( /
 div );

 It only inserts the div tag and skips or looses the middle append
 data. The div tag is also converted into a single tag, such as div
 id='title' class='edit_dialog' /



[jQuery] Re: File operation...

2008-06-18 Thread Liam Byrne


kiran wrote:

Hi Friends,

I am very new to JQuery, infact Iam checking if we can use JQuery for
our requirements. In regards to that I  have couple of queries.

1. Can we do file operations using JQuery ? For instance if I make
some modifications to DOM/HTML, can I save it back to the disk?
  

Not unless you have a server-side technology that you can POST to, e.g. PHP.

2. Can I use Jquery for search/replace text in non html/XML files(like
JS files)?
  
This sounds like something that would be more suited to standard 
JavaScript. jQuery doesn't improve search/replace, only manipulating the 
DOM (find, access, remove, add), so if there's no DOM there's no real 
benefit to using it.

Any inputs on this will be very helpful.

Thanks in advance


  




[jQuery] Re: xml parsing error

2008-06-18 Thread koko


Thanks but it's not working !!! I'm using IE7 for testing , maybe in
IE6 it's wroking

any solution?


[jQuery] Re: onRighClick method?

2008-06-18 Thread Isaak Malik
The reason that they don't implement this directly into the jQuery library
is probably because of the lack of support by the Opera browser.

Also the contextmenu plugin may be a little old but it still works

On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED]
wrote:


 Is there now, or are there any plans to have, an onRightClick method
 in jQuery?

 I found a ContextMenu plugin but it was last updated almost a year
 ago.

 Alternately, are there any other plugins out there that would offer
 ContextMenu support for right clicking?




-- 
Isaak Malik
Web Developer


[jQuery] Re: Resetting validation rules dynamically

2008-06-18 Thread kapowaz

Alright, I've found the bug with the above code (the callback function
itself doesn't return true or false; only the anonymous method inside
it does), and corrected it. However I've since stumbled upon another
problem; if any field uses a callback method to determine required
status, but *also* happens to use a custom validation method, it will
always be flagged as required.

I've augmented my demo at 
http://www.kapowaz.net/files/conditional-validation.html
to demonstrate this problem in action. Might this be a bug within the
plugin itself, or am I doing something else wrong?


[jQuery] Re: onRighClick method?

2008-06-18 Thread Andy Matthews
Ahh...
 
Opera doesn't support it? Interesting. I'll take a look at the ContextMenu
plugin, but it's a shame that jQuery doesn't offer a rightclick method.
Besides...who really cares about Opera?
 
 
:)

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Isaak Malik
Sent: Wednesday, June 18, 2008 6:38 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: onRighClick method?


The reason that they don't implement this directly into the jQuery library
is probably because of the lack of support by the Opera browser.

Also the contextmenu plugin may be a little old but it still works


On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED]
wrote:



Is there now, or are there any plans to have, an onRightClick method
in jQuery?

I found a ContextMenu plugin but it was last updated almost a year
ago.

Alternately, are there any other plugins out there that would offer
ContextMenu support for right clicking?





-- 
Isaak Malik
Web Developer 


[jQuery] Re: tablesorter: Glue two rows together

2008-06-18 Thread Dan G. Switzer, II

Michael,

is it possible to glue two table rows together, so that when the first
row is sorted, the second row always comes next?

Awhile back, I modded the tablesorter plug-in to do just that:

http://blog.pengoworks.com/index.cfm/2008/3/28/Finished-jQuery-Tablesorter-m
od-for-Collapsible-Table-Rows

My code *has* been merged into the tablesorter code (in the SVN,) but the
updated version has still not been officially released.

With my mod you can add the CSS class of expand-child to each paired tr/
element in order to group the tr/ tags together. You can change the CSS
class with the cssChildRow option.

You can actually have multiple rows grouped together. Basically what happens
is every consecutive tr/ tag with the expand-child class is going to be
grouped with the last tr/ tag without the css class.

Here's an example:
http://www.pengoworks.com/workshop/jquery/tablesorter/tablesorter.htm

-Dan



[jQuery] Re: CYCLE PLUGIN -- Creating a Realtime Status/Progress Bar

2008-06-18 Thread Joe

After loads of reading on the single-threaded nature of javascript and
the inconsistencies with timers ( 
http://ejohn.org/blog/how-javascript-timers-work/
), I have come to realize that a progress bar (on it's own
setInterval() ) and a cycle (on it's own interval) being in sync
with each other are simply not possible in javascript.

I hope this helps someone in the future.

Joe

www.subprint.com

On Jun 17, 9:28 am, Joe [EMAIL PROTECTED] wrote:
 No takers on this?

 On Jun 16, 8:29 am, Joe [EMAIL PROTECTED] wrote:

  I am using Mike Alsup's Cycle Plugin, but am running into a snag.
  Here is what I'm trying to accomplish:

  I have 4 div tags each with an image inside that is a link to that
  image:

  div id=slides class=pics
  div
  a href=img/1.jpgimg src=img/1.jpg
  width=200 height=200 //a
  /div
  div
  a href=img/2.jpgimg src=img/2.jpg
  width=200 height=200 //a
  /div
  div
  a href=img/3.jpgimg src=img/3.jpg
  width=200 height=200 //a
  /div
  div
  a href=img/4.jpgimg src=img/4.jpg
  width=200 height=200 //a
  /div
  /div

  Here is the initial call:

  // Timeout and Speed Values
  var tVal = 3000;
  var sVal = 1000;

  $('#slides').cycle( {fx: 'fade', speed: sVal, timeout: tVal });

  Now, I am using the Report Progress plugin as well, which builds a
  simple progress/status bar. 
  (http://digitalbush.com/projects/progress-bar-plugin
  )

  I have the progress bar using the same time value as the cycle plugin,
  namely, the variable tVal.  So when the page loads, the progress for
  how much longer the current image (the div) is going to be shown is
  displayed.  However, when the user mouse's over the image, the cycle
  plugin pauses as does the progress bar, and then on mouseout the
  progress bar continues as does the current image cycle.

  The issue is if I mouseover with say only 30% of the time elapsed,
  pause, and then mouseout, the progress bar restarts at 31% and
  continues fine, but the image suddenly fades to the next one.  As if
  the transition itself paused, but the time interval did not.  Or
  sometimes, I does the opposite, where the progress bar is ahead of
  the transition, or simply the transition is lagging.  Have a look via
  the link below.

  Ultimately, I will need the progress bar itself to reset upon each new
  image load, but for the time being I need to get them in sync with
  each other.

  Any ideas on this?

 www.subprint.com/dev/cycle/

  Thanks.


[jQuery] Re: xml parsing error

2008-06-18 Thread Sam Sherlock
well for meit works in ff3, ff2, ie6, ie7, ie8b1 and opera 8 and opera 9.5b
also safari 3(windows xp)

I get two alert pop up first
0-1
then
1-2

what is not working for you? double check that you have no errors syntax /
mark up

every time I try this it works fine - whatever browser I opt for.

the first number is the iteration the second the data in the element
2008/6/18 koko [EMAIL PROTECTED]:



 Thanks but it's not working !!! I'm using IE7 for testing , maybe in
 IE6 it's wroking

 any solution?



[jQuery] jQuery best practices

2008-06-18 Thread Estevão Lucas

Hi,

I'd like to know if is there a document, article, or anything that a
can show for  the JavaScripts developers here in the company talking
about best practices;

Best regards


[jQuery] Re: onRighClick method?

2008-06-18 Thread Aaron Heimlich
The ContextMenu plugin you're referring to (
http://www.trendskitchens.co.nz/jquery/contextmenu/) works by listening for
the contextmenu event, e.g.
$(this).bind('contextmenu', function(e) {
// do cool stuff...
});

We use it pretty heavily (although with some mods to allow for activation on
left-click as well) and I can't think of any issues it has with Opera of the
top of my head.

On Wed, Jun 18, 2008 at 8:11 AM, Andy Matthews [EMAIL PROTECTED]
wrote:

  Ahh...

 Opera doesn't support it? Interesting. I'll take a look at the ContextMenu
 plugin, but it's a shame that jQuery doesn't offer a rightclick method.
 Besides...who really cares about Opera?


 :)

  --
 *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Isaak Malik
 *Sent:* Wednesday, June 18, 2008 6:38 AM
 *To:* jquery-en@googlegroups.com
 *Subject:* [jQuery] Re: onRighClick method?

 The reason that they don't implement this directly into the jQuery library
 is probably because of the lack of support by the Opera browser.

 Also the contextmenu plugin may be a little old but it still works

 On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED]
 wrote:


 Is there now, or are there any plans to have, an onRightClick method
 in jQuery?

 I found a ContextMenu plugin but it was last updated almost a year
 ago.

 Alternately, are there any other plugins out there that would offer
 ContextMenu support for right clicking?




 --
 Isaak Malik
 Web Developer




-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]


[jQuery] prevent more than one submit in ajaxsubmit

2008-06-18 Thread Sebastián V. Würtz


Guys I need some litle help.

   var v = jQuery(#send_form).validate({
  .
  ..
  
   },
   submitHandler: function(form) {
   jQuery(form).ajaxSubmit({
   dataType: json,
   success: process_result
   });
   }
   });


how i can prevent or hide or disable the submit button or it behaviour 
when the first submit happend?


[jQuery] New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Dan G. Switzer, II

Awhile back I blogged about a plug-in that my company was planning on
releasing called mcDropdown (multicolumn dropdown.)

Well, the plug-in was officially released today:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

If you like the plug-in, feel free to digg it:
http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

You can jump directly to the example here:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

In a nutshell, this plug-in creates a tree-like form control. We need a UI
control that would allow users to select an option from a large tree of data
and this was the end result.

I think the overall effect is pretty impressive and I've never seen a UI
control like it (especially considering it supports keyboard entry.)

-Dan



[jQuery] Re: Which grid?

2008-06-18 Thread Rey Bango


I'm sure they'd be interested in something like that but the UI team is 
stretched thin as it is. So hopefully others will step in to contribute 
something like a comprehensive grid control that can be included in 
jQuery UI.


Rey
jQuery Project Team

R. Rajesh Jeba Anbiah wrote:

On Jun 17, 10:27 pm, Ken Gregg [EMAIL PROTECTED] wrote:

I was using Rico but dropped it for lack of development activity.
Everything but the grid is available in jquery. I would love to see
the dynamic data part of the grid incorporated into flexigrid. Think
that would make a great combination.

http://sourceforge.net/project/showfiles.php?group_id=140375


   Would be better if the UI team combine all stuffs together under a
single grid plugin.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: onRighClick method?

2008-06-18 Thread Andy Matthews
Hrm...
 
I can't find that contextMenu in the API on Remy's website. Is it just
missing? is it listed under something else?
 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Aaron Heimlich
Sent: Wednesday, June 18, 2008 10:10 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: onRighClick method?


The ContextMenu plugin you're referring to
(http://www.trendskitchens.co.nz/jquery/contextmenu/) works by listening for
the contextmenu event, e.g. 

$(this).bind('contextmenu', function(e) {
// do cool stuff...
});

We use it pretty heavily (although with some mods to allow for activation on
left-click as well) and I can't think of any issues it has with Opera of the
top of my head.

On Wed, Jun 18, 2008 at 8:11 AM, Andy Matthews [EMAIL PROTECTED]
wrote:


Ahh...
 
Opera doesn't support it? Interesting. I'll take a look at the ContextMenu
plugin, but it's a shame that jQuery doesn't offer a rightclick method.
Besides...who really cares about Opera?
 
 
:)

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Isaak Malik
Sent: Wednesday, June 18, 2008 6:38 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: onRighClick method?


The reason that they don't implement this directly into the jQuery library
is probably because of the lack of support by the Opera browser.

Also the contextmenu plugin may be a little old but it still works


On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED]
wrote:



Is there now, or are there any plans to have, an onRightClick method
in jQuery?

I found a ContextMenu plugin but it was last updated almost a year
ago.

Alternately, are there any other plugins out there that would offer
ContextMenu support for right clicking?





-- 
Isaak Malik
Web Developer 




-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED] 


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Rey Bango


This plugin is HOT Dan.

Rey

Dan G. Switzer, II wrote:

Awhile back I blogged about a plug-in that my company was planning on
releasing called mcDropdown (multicolumn dropdown.)

Well, the plug-in was officially released today:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

If you like the plug-in, feel free to digg it:
http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

You can jump directly to the example here:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

In a nutshell, this plug-in creates a tree-like form control. We need a UI
control that would allow users to select an option from a large tree of data
and this was the end result.

I think the overall effect is pretty impressive and I've never seen a UI
control like it (especially considering it supports keyboard entry.)

-Dan




[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Dan G. Switzer, II

Thanks! I think it's a pretty unique approach and haven't really seen
anything like it.

We use this control for some really large hierarchical trees of data and it
works very well. Generally the tree depth only goes 3 or 4 levels deep, but
many of the branches have over 20 items.

The multicolumn approach keeps the items in a compact space in the viewport
and the keyboard entry allows for quick keyboard selection.

-Dan

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Wednesday, June 18, 2008 12:01 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown


This plugin is HOT Dan.

Rey

Dan G. Switzer, II wrote:
 Awhile back I blogged about a plug-in that my company was planning on
 releasing called mcDropdown (multicolumn dropdown.)

 Well, the plug-in was officially released today:
 http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

 If you like the plug-in, feel free to digg it:
 http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

 You can jump directly to the example here:
 http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

 In a nutshell, this plug-in creates a tree-like form control. We need a
UI
 control that would allow users to select an option from a large tree of
data
 and this was the end result.

 I think the overall effect is pretty impressive and I've never seen a UI
 control like it (especially considering it supports keyboard entry.)

 -Dan





[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Josh Nathanson


Very nice!

One small issue...if I click in the main part of the dropdown, rather than 
on the down arrow, I can't select any options with the mouse.  This is a 
little different than a native select control, where you can click anywhere 
on it.


-- Josh




- Original Message - 
From: Dan G. Switzer, II [EMAIL PROTECTED]

To: jquery-en@googlegroups.com
Sent: Wednesday, June 18, 2008 8:31 AM
Subject: [jQuery] New jQuery Plug-in: Multicolumn Dropdown




Awhile back I blogged about a plug-in that my company was planning on
releasing called mcDropdown (multicolumn dropdown.)

Well, the plug-in was officially released today:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

If you like the plug-in, feel free to digg it:
http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

You can jump directly to the example here:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

In a nutshell, this plug-in creates a tree-like form control. We need a UI
control that would allow users to select an option from a large tree of 
data

and this was the end result.

I think the overall effect is pretty impressive and I've never seen a UI
control like it (especially considering it supports keyboard entry.)

-Dan





[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Scott Sauyet


R. Rajesh Jeba Anbiah wrote:

Dan G. Switzer, II [EMAIL PROTECTED] wrote:

Awhile back I blogged about a plug-in that my company was planning on
releasing called mcDropdown (multicolumn dropdown.)

Well, the plug-in was officially released 
today:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm


Very, very nice.


Just a thought.. wouldn't be better it's done as a replacement
over the optgroup--so that accessibility is maintained?


I was just looking at the same question, but optgroups can't be nested, 
so they can't get the same sort of functionality.  Perhaps a list 
containing radio buttons...


  -- Scott


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Tony

Dan,
Congratulations for this plugin. It is very usefull.

Some recommendations from me.
It will be great if not only unordered list is supported - I mean a
XML with ajax call.
70% of information is in databases.
We can easy construct query which can return a well structured XML.
Moreover loading only the root elements first and then the childs if
needed will be a great addition.
In this case a very big lists can be supported without loose of speed.

Regards and congratulations again.

Regards
Tony

On 18 Юни, 18:31, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
 Awhile back I blogged about a plug-in that my company was planning on
 releasing called mcDropdown (multicolumn dropdown.)

 Well, the plug-in was officially released 
 today:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

 If you like the plug-in, feel free to digg 
 it:http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

 You can jump directly to the example 
 here:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

 In a nutshell, this plug-in creates a tree-like form control. We need a UI
 control that would allow users to select an option from a large tree of data
 and this was the end result.

 I think the overall effect is pretty impressive and I've never seen a UI
 control like it (especially considering it supports keyboard entry.)

 -Dan


[jQuery] credit card validation UK

2008-06-18 Thread spenoir


I'm using the validation plugin for jquery on our e-commerce site. I was told
that a large percentage of users were dropping out on our payment page. In
the UK card numbers are of the format     so this is
naturally how users will type them in. 

Basically add a space in to the plugin to let users use space delimiters
line 1032. this'll probably make the company some extra cash!

code:
// accept only digits and dashes
if (/[^0-9- ]+/.test(value))

packed version attached.
-- 
View this message in context: 
http://www.nabble.com/credit-card-validation-UK-tp17986138s27240p17986138.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Reversing slideDown/slideUp behavior

2008-06-18 Thread fallingandlaughing

Thanks, Andrea, for the tutorial link. Looks like I might need to have
a go at writing my first custom animation!

Isaak, the slideToggle method works fine when you want the element to
reveal itself by sliding down and hide itself by sliding up; I'm
trying for an upward reveal and a downward hide.

On Jun 16, 3:48 am, Isaak Malik [EMAIL PROTECTED] wrote:
 You could simply use the slideToggle() method, so it would be something like
 this:

 $('#myElement').slideToggle('fast');

 And to check if an element is hidden you can use this:

 if ( $('#myElement').is(':hidden') ) alert('It is hidden!');

 On 6/15/08, fallingandlaughing [EMAIL PROTECTED] wrote:





  Hello,

  I have what seems like a pretty basic question about the slideDown/
  slideUp effects, but I'm new-ish to jquery and haven't been able to
  find a way to do what I'm after. Is there any way to reverse the
  default slideDown/slideUp behavior--so that, when the content is
  revealed, it slides upward, and when it is hidden, it slides downward?
  I going for something kind of like the pop-up bubble effect achieved
  in this tutorial:http://jqueryfordesigners.com/coda-popup-bubbles/
  But instead of the opacity transition and the upward puff, I'd like
  the panel to just smoothly slide upward.

  Thanks in advance for any suggestions or advice!

  Erik

 --
 Isaak Malik
 Web Developer


[jQuery] Re: onRighClick method?

2008-06-18 Thread Isaak Malik
Actually, it's not that Opera doesn't support it as it has support for right
click events but is disabled by default and context menus won't work as good
as on firefox and yes for once also IE because just Opera discourages the
use of context menus.

Dangerous quote by Andy Matthews:
 Besides...who really cares about Opera?

That should rather be: Who doesn't care about Opera, Opera is an amazing
browser with great features, web standard support is almost equal and in
some aspects even better than Firefox. I use Opera next to Firefox for daily
stuff and sometimes even more so I cannot agree with your saying...!

Good luck with your custom context menu, and don't let Opera overlap it with
the default context menu ;).

On Wed, Jun 18, 2008 at 3:11 PM, Andy Matthews [EMAIL PROTECTED]
wrote:

  Ahh...

 Opera doesn't support it? Interesting. I'll take a look at the ContextMenu
 plugin, but it's a shame that jQuery doesn't offer a rightclick method.
 Besides...who really cares about Opera?


 :)

  --
 *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Isaak Malik
 *Sent:* Wednesday, June 18, 2008 6:38 AM
 *To:* jquery-en@googlegroups.com
 *Subject:* [jQuery] Re: onRighClick method?

 The reason that they don't implement this directly into the jQuery library
 is probably because of the lack of support by the Opera browser.

 Also the contextmenu plugin may be a little old but it still works

 On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED]
 wrote:


 Is there now, or are there any plans to have, an onRightClick method
 in jQuery?

 I found a ContextMenu plugin but it was last updated almost a year
 ago.

 Alternately, are there any other plugins out there that would offer
 ContextMenu support for right clicking?




 --
 Isaak Malik
 Web Developer




-- 
Isaak Malik
Web Developer


[jQuery] Re: onRighClick method?

2008-06-18 Thread Isaak Malik
That's the one I last tested in Opera 9.5 because I was also looking for
such a plugin and unfortunately it's not even working.

On Wed, Jun 18, 2008 at 5:10 PM, Aaron Heimlich [EMAIL PROTECTED]
wrote:

 The ContextMenu plugin you're referring to (
 http://www.trendskitchens.co.nz/jquery/contextmenu/) works by listening
 for the contextmenu event, e.g.
 $(this).bind('contextmenu', function(e) {
 // do cool stuff...
 });

 We use it pretty heavily (although with some mods to allow for activation
 on left-click as well) and I can't think of any issues it has with Opera of
 the top of my head.

 On Wed, Jun 18, 2008 at 8:11 AM, Andy Matthews [EMAIL PROTECTED]
 wrote:

  Ahh...

 Opera doesn't support it? Interesting. I'll take a look at the ContextMenu
 plugin, but it's a shame that jQuery doesn't offer a rightclick method.
 Besides...who really cares about Opera?


 :)

  --
 *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Isaak Malik
 *Sent:* Wednesday, June 18, 2008 6:38 AM
 *To:* jquery-en@googlegroups.com
 *Subject:* [jQuery] Re: onRighClick method?

 The reason that they don't implement this directly into the jQuery library
 is probably because of the lack of support by the Opera browser.

 Also the contextmenu plugin may be a little old but it still works

 On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED]
 wrote:


 Is there now, or are there any plans to have, an onRightClick method
 in jQuery?

 I found a ContextMenu plugin but it was last updated almost a year
 ago.

 Alternately, are there any other plugins out there that would offer
 ContextMenu support for right clicking?




 --
 Isaak Malik
 Web Developer




 --
 Aaron Heimlich
 Web Developer
 [EMAIL PROTECTED]




-- 
Isaak Malik
Web Developer


[jQuery] Does jquery's ajax method's identify requests as being ajaxed

2008-06-18 Thread fambi

What I mean to say is, do the native jquery ajax methods append any
parameters that can inform our server side scripts that the request
was submitted using ajax? (e.g. ajax=1)

If not, what could be done to implement this so that we don't need to
repeat ourselves on each and every form?

Thanks


[jQuery] focus doesn't seem to be working in FF3

2008-06-18 Thread Stinkbug

I have the following line in a login form.  Focus doesn't seem to be
working at all.  It worked previously before upgrading to FF3. And it
appears to be working in IE 7.  I suppose it could be FF3, but just
wanted to let you guys know, just in case.

$(#UserEmailAddress).focus();


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Isaak Malik
This plugin looks very interesting, how is the browser support?

On Wed, Jun 18, 2008 at 5:31 PM, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:


 Awhile back I blogged about a plug-in that my company was planning on
 releasing called mcDropdown (multicolumn dropdown.)

 Well, the plug-in was officially released today:
 http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

 If you like the plug-in, feel free to digg it:
 http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

 You can jump directly to the example here:
 http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

 In a nutshell, this plug-in creates a tree-like form control. We need a UI
 control that would allow users to select an option from a large tree of
 data
 and this was the end result.

 I think the overall effect is pretty impressive and I've never seen a UI
 control like it (especially considering it supports keyboard entry.)

 -Dan


-- 
Isaak Malik
Web Developer


[jQuery] Re: hover flickering, snow storm pixels on JPGs (beginner problem)

2008-06-18 Thread Isaak Malik
The IE 6 flickering bug might be solved with this (please in the HEAD):

!--[if lt IE 7]script type='text/javascript'
try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {}
/script![endif]--

If not then your only other option is hope that your visitors will have
Check for new version of this page set to Automatically.

On Wed, Jun 18, 2008 at 4:41 AM, Mike Alsup [EMAIL PROTECTED] wrote:


  Ok, will manage to squeeze the Microsoft Bug
 
  What about the hover issue?


 I don't see any hover issue.  What do you see?




-- 
Isaak Malik
Web Developer


[jQuery] Loading google maps dynamically

2008-06-18 Thread lamy

Hey guys!
I just startet using jQuery a couple days ago - it totally rocks!

Now, I want to give people who write in my blog the opportunity to add
some google maps stuff.
So I have a div - element which can be shown or hidden by pressing a
button. I want google maps to load ONLY when the button is being
clicked. I tried $.getscript(), but apparently he tries to redirect
me. What am I doing wrong?

Help would very much be appreciated! :)

This is the code:
http://pastebin.org/4

What's wrong about that?

Cheers guys.


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread weegekid

Nice Dan.  That's fantastic.

On Jun 18, 11:31 am, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
 Awhile back I blogged about a plug-in that my company was planning on
 releasing called mcDropdown (multicolumn dropdown.)

 Well, the plug-in was officially released 
 today:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

 If you like the plug-in, feel free to digg 
 it:http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

 You can jump directly to the example 
 here:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

 In a nutshell, this plug-in creates a tree-like form control. We need a UI
 control that would allow users to select an option from a large tree of data
 and this was the end result.

 I think the overall effect is pretty impressive and I've never seen a UI
 control like it (especially considering it supports keyboard entry.)

 -Dan


[jQuery] Re: tablesorter: Glue two rows together

2008-06-18 Thread CL (Ciu Loeng) Lam
Great!

2008/6/18 Dan G. Switzer, II [EMAIL PROTECTED]:


 Michael,

 is it possible to glue two table rows together, so that when the first
 row is sorted, the second row always comes next?

 Awhile back, I modded the tablesorter plug-in to do just that:


 http://blog.pengoworks.com/index.cfm/2008/3/28/Finished-jQuery-Tablesorter-m
 od-for-Collapsible-Table-Rowshttp://blog.pengoworks.com/index.cfm/2008/3/28/Finished-jQuery-Tablesorter-mod-for-Collapsible-Table-Rows

 My code *has* been merged into the tablesorter code (in the SVN,) but the
 updated version has still not been officially released.

 With my mod you can add the CSS class of expand-child to each paired
 tr/
 element in order to group the tr/ tags together. You can change the CSS
 class with the cssChildRow option.

 You can actually have multiple rows grouped together. Basically what
 happens
 is every consecutive tr/ tag with the expand-child class is going to be
 grouped with the last tr/ tag without the css class.

 Here's an example:
 http://www.pengoworks.com/workshop/jquery/tablesorter/tablesorter.htm

 -Dan




[jQuery] Basic newbie question - ''Object doesn't support this property or method

2008-06-18 Thread weegekid

Hi All,

I'm just starting out trying to learn JQuery and I have a very Newbie
question.  I've tried to use the following code to get the link to
change the span text red but get an 'Object doesn't support this
property or method' error when I click the link:

--code--

script language=javascript
$(document).ready(function() {
$(a[rel='redlink']).bind('click', function() {
$('span').addclass('red');
});

});
/script
style type=text/css
.red {
color: red;
}
/style
/head
body
pa href=javascript: void(0); rel=redlinkclick me/a/p
pEu fugiat nulla pariatur. spanQui officia deserunt lorem ipsum
dolor sit amet,/span quis nostrud exercitation. Cupidatat non
proident./p
/body
/html

--end code--

Thanks for any explanation! Again, I'm just a newbie starting out.


[jQuery] How can I make jquery work with Konquerer?

2008-06-18 Thread ryy705


Hello, 
I am using konqeror 3.5.8 in unbuntu.  I can't seem to get any jquery to
work in Konqueror.  Is there a setting that I have to change to make it
recognize it?

Thank you in advance.
-- 
View this message in context: 
http://www.nabble.com/How-can-I-make-jquery-work-with-Konquerer--tp17982462s27240p17982462.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Is there a way to use the css function with $(document) directly?

2008-06-18 Thread Brian J. Fink

Well, I was about to accuse you of a design flaw, but when I followed
the examples in the demo page, I discovered the right way, and it
works perfectly, even when there's more style tags than one. I still
say it's a bit awkward.

And no, they are not chainable, but if you make the rule object an
extension of the jQuery object, it will inherit the properties and
methods of the jQuery object and so will be chainable.

On Jun 17, 11:08 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
  Thanks for the pointer! Say, is there a way this functionality could
  be integrated into jQuery itself?

 Nope.

  Can I chain like this?

 $.rule returns a Rule object with its own methods. I don't recall if
 the methods are chainable, maybe they are.



  Also consider that you may want to distinguish between one window's
  document and another's, as in:

 The rules affects the page once it's added to a style or link. Whose
 window is that style/link from, is up to you.

  These might be considered. Also in the demos it is unclear whether the
  style rule is added to the FIRST tag called style or ALL of them,
  since your page contains only one. This makes a difference, because
  the style listed last in the document is the one that gets applied.

 That's why there is a documentation appart from the demo. The 2nd
 argument of the constructor is the context (just like with jQuery).
 The context can be a selector, a jQuery object, a stylesheet, etc.

 Cheers
 --
 Ariel Fleslerhttp://flesler.blogspot.com/


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread CL (Ciu Loeng) Lam
It looks so great :)  Thanks!

2008/6/18 Dan G. Switzer, II [EMAIL PROTECTED]:


 Awhile back I blogged about a plug-in that my company was planning on
 releasing called mcDropdown (multicolumn dropdown.)

 Well, the plug-in was officially released today:
 http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

 If you like the plug-in, feel free to digg it:
 http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

 You can jump directly to the example here:
 http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

 In a nutshell, this plug-in creates a tree-like form control. We need a UI
 control that would allow users to select an option from a large tree of
 data
 and this was the end result.

 I think the overall effect is pretty impressive and I've never seen a UI
 control like it (especially considering it supports keyboard entry.)

 -Dan




[jQuery] Tablesorter plugin and zebra striping

2008-06-18 Thread Ken

I have the following in my $(document).ready:

$(document).ready(function() {
  $(.zebra tr:not([th]):even).addClass(even);
  $(.zebra tr:not([th]):odd).addClass(odd);
  $(table#sorttable).tablesorter();
)};

This allows my table to sort columns by clicking on the column headers
and works great.  What I need to be able to do, is have the zebra
striping happen after each table sort.

Is there a way to set this up?

Thanks, Ken


[jQuery] Add script dynamically?

2008-06-18 Thread lamy

Hey there! This might be a double post, but I can't find my recent
entry regarding the same topic!

So, once again :)

When I try to load google maps dynamically with $.getscript() with a
click on a button, the script tries to redirect me for some reason.
What am I doing wrong? Please help, I've been stuck on this for hours :
(



This is my code: http://pastebin.org/4

Cheers guys :)
lamy.


[jQuery] Sorting table which consists two sets of data

2008-06-18 Thread Srini

Hi,

I have a table with two sets of data i.e. first 5 rows are active and
the rest of the rows are inactive. When I am sorting I need to sort
active records (5 records) and display as the first five records and
sort the inactive records and start displaying from 6th record. Does
JQuery help in this regard. Thanks in advance for the reply.

Thanks,
Srini


[jQuery] Re: Basic newbie question - ''Object doesn't support this property or method

2008-06-18 Thread Josh Nathanson



$('span').addclass('red');


addClass has to be camel case - javascript is case-sensitive.

-- Josh

- Original Message - 
From: weegekid [EMAIL PROTECTED]

To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, June 18, 2008 7:48 AM
Subject: [jQuery] Basic newbie question - ''Object doesn't support this 
property or method





Hi All,

I'm just starting out trying to learn JQuery and I have a very Newbie
question.  I've tried to use the following code to get the link to
change the span text red but get an 'Object doesn't support this
property or method' error when I click the link:

--code--

script language=javascript
$(document).ready(function() {
$(a[rel='redlink']).bind('click', function() {
$('span').addclass('red');
});

});
/script
style type=text/css
.red {
color: red;
}
/style
/head
body
pa href=javascript: void(0); rel=redlinkclick me/a/p
pEu fugiat nulla pariatur. spanQui officia deserunt lorem ipsum
dolor sit amet,/span quis nostrud exercitation. Cupidatat non
proident./p
/body
/html

--end code--

Thanks for any explanation! Again, I'm just a newbie starting out. 




[jQuery] Re: Does jquery's ajax method's identify requests as being ajaxed

2008-06-18 Thread Aaron Heimlich
jQuery (and many other libraries) adds a custom header to the HTTP request:
X-Requested-With: XMLHttpRequest

Your server-side scripts can look for this header to determine if the
request was sent via Ajax or not.

On Wed, Jun 18, 2008 at 9:21 AM, fambi [EMAIL PROTECTED] wrote:


 What I mean to say is, do the native jquery ajax methods append any
 parameters that can inform our server side scripts that the request
 was submitted using ajax? (e.g. ajax=1)

 If not, what could be done to implement this so that we don't need to
 repeat ourselves on each and every form?

 Thanks




-- 
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Dan G. Switzer, II

On Jun 18, 8:31 pm, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
 Awhile back I blogged about a plug-in that my company was planning on
 releasing called mcDropdown (multicolumn dropdown.)

 Well, the plug-in was officially released
today:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm
   snip

Just a thought.. wouldn't be better it's done as a replacement
over the optgroup--so that accessibility is maintained?

No, because the option/ tag does not allow deep nesting (which was a
requirement for us.)

-Dan



[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Dan G. Switzer, II
It's been tested pretty extensively in Firefox 2  3 and IE 6  7 (because
these are the only browsers used by our userbase.)

 

-Dan

 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Isaak Malik
Sent: Wednesday, June 18, 2008 11:46 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

 

This plugin looks very interesting, how is the browser support?

On Wed, Jun 18, 2008 at 5:31 PM, Dan G. Switzer, II
[EMAIL PROTECTED] wrote:


Awhile back I blogged about a plug-in that my company was planning on
releasing called mcDropdown (multicolumn dropdown.)

Well, the plug-in was officially released today:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

If you like the plug-in, feel free to digg it:
http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

You can jump directly to the example here:
http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

In a nutshell, this plug-in creates a tree-like form control. We need a UI
control that would allow users to select an option from a large tree of data
and this was the end result.

I think the overall effect is pretty impressive and I've never seen a UI
control like it (especially considering it supports keyboard entry.)

-Dan


-- 
Isaak Malik
Web Developer 



[jQuery] Re: onRighClick method?

2008-06-18 Thread Andy Matthews
I was being somewhat tongue in cheek. I know that many developers use Opera,
but arguably Opera is a non-browser with ~1% of the market.
 
Anyway...I'm all for supporting multiple browsers, but we don't even test in
Opera, in fact I've never tested in Opera for any site I've ever created.
I've also never heard one complaint from any of the 100 or so sites I've
developed.
 
Not trying to be belligerent here...just so you know.
 
 
 
andy

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Isaak Malik
Sent: Wednesday, June 18, 2008 8:33 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: onRighClick method?


Actually, it's not that Opera doesn't support it as it has support for right
click events but is disabled by default and context menus won't work as good
as on firefox and yes for once also IE because just Opera discourages the
use of context menus.

Dangerous quote by Andy Matthews:
 Besides...who really cares about Opera?

That should rather be: Who doesn't care about Opera, Opera is an amazing
browser with great features, web standard support is almost equal and in
some aspects even better than Firefox. I use Opera next to Firefox for daily
stuff and sometimes even more so I cannot agree with your saying...!

Good luck with your custom context menu, and don't let Opera overlap it with
the default context menu ;).


On Wed, Jun 18, 2008 at 3:11 PM, Andy Matthews [EMAIL PROTECTED]
wrote:


Ahh...
 
Opera doesn't support it? Interesting. I'll take a look at the ContextMenu
plugin, but it's a shame that jQuery doesn't offer a rightclick method.
Besides...who really cares about Opera?
 
 
:)

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Isaak Malik
Sent: Wednesday, June 18, 2008 6:38 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: onRighClick method?


The reason that they don't implement this directly into the jQuery library
is probably because of the lack of support by the Opera browser.

Also the contextmenu plugin may be a little old but it still works


On Wed, Jun 18, 2008 at 1:33 PM, Andy Matthews [EMAIL PROTECTED]
wrote:



Is there now, or are there any plans to have, an onRightClick method
in jQuery?

I found a ContextMenu plugin but it was last updated almost a year
ago.

Alternately, are there any other plugins out there that would offer
ContextMenu support for right clicking?





-- 
Isaak Malik
Web Developer 




-- 
Isaak Malik
Web Developer 


[jQuery] Remote validation of a telephone number using validate.js

2008-06-18 Thread cryptid

I am using Jörn's validation plugin to validate a form and I want to
validate a telephone number against a database using the remote
function. The telephone number is in the format 999- and it is
being passed to my database as a calculated number instead of as a
string. Does anyone know how I can pass it as a string?


[jQuery] h1length required/h1 response when using .post

2008-06-18 Thread cfdvlpr

Has anyone else noticed this response? What's going on here?
Below is the code that I use to report javascript errors to me.  And,
occasionally, I'll notice this response in Firebug for the post to
the /javascript/emailError.cfm page.

script type=text/javascript
onerror = function(msg,url,l)
{
   var error=;
error+=Error:  + msg + \n;
error+=URL:  + url + \n;
error+=Line:  + l + \n\n;
$.post(/javascript/emailError.cfm,{error : 
error} );
return true;
}

$(function(){
...
...


[jQuery] Opera 9.5 freaking out with Cycle Plugin

2008-06-18 Thread macgregor

I have a product gallery that uses the cycle plugin to go through some
products. It has worked fine in all browsers but I tried the site
today with Opera 9.5 and the images that are normally cycled through
are being added to another div (that is created with jquery to bring
in some stats with an ajax request).

http://www2.yoursole.com/  -- with the product gallery
http://www2.yoursole.com/js/product-gallery.js -- js for the for the
gallery

Any help / suggestions would be appreciated.


[jQuery] Re: Tablesorter plugin and zebra striping

2008-06-18 Thread aquaone
Tablesorter comes with a zebra-striping widget.

$(table).tablesorter({
widgets: ['zebra']
});

stephen

On Wed, Jun 18, 2008 at 6:34 AM, Ken [EMAIL PROTECTED] wrote:


 I have the following in my $(document).ready:

 $(document).ready(function() {
  $(.zebra tr:not([th]):even).addClass(even);
  $(.zebra tr:not([th]):odd).addClass(odd);
  $(table#sorttable).tablesorter();
 )};

 This allows my table to sort columns by clicking on the column headers
 and works great.  What I need to be able to do, is have the zebra
 striping happen after each table sort.

 Is there a way to set this up?

 Thanks, Ken



[jQuery] jQuery Auto Unescapes Data

2008-06-18 Thread JeffS

Greetings,

I have come across an issue which I have not been able to solve
directly. The situation I have is that I have an xml file stored in a
backend database which I would like to retrieve and display the
contents -exactly- as it is stored in the database.

The text comes back correctly from the request (i'll use the example:
%lt;cookie), however jQuery gives it back to me unescaped (ex:
cookie ) (Try using %lt; on 
http://15daysofjquery.com/examples/jqueryEditInPlace/divEdit.php
... it exhibits the same behavior I'm referring to )

It doesn't seem to matter what type of get() i use, but I have been
focusing mostly on $.getJSON(url, data, callback);

Does anyone out there have any insight to my issue, or will I just
have to suck it up and manually parse the call myself?

TIA,

--JeffS


[jQuery] Re: Tablesorter plugin and zebra striping

2008-06-18 Thread Carl Von Stetten

Ken,

Tablesorter has a zebra capability built right in through the zebra 
widget - see the docs for the tablesorter plugin.  It will automatically 
redo the striping after each sort.  You can change your code to:

$(document).ready(function() {
  $(table#sorttable).tablesorter({widgets: ['zebra']});
)};

HTH,
Carl

Ken wrote:
 I have the following in my $(document).ready:

 $(document).ready(function() {
   $(.zebra tr:not([th]):even).addClass(even);
   $(.zebra tr:not([th]):odd).addClass(odd);
   $(table#sorttable).tablesorter();
 )};

 This allows my table to sort columns by clicking on the column headers
 and works great.  What I need to be able to do, is have the zebra
 striping happen after each table sort.

 Is there a way to set this up?

 Thanks, Ken


   


[jQuery] jEditable and .load

2008-06-18 Thread Philip Brown

I have a bit of code that uses jEditable to do inline editing of the
content.  An additional jEditable content block appears just below the
last entry to allow for more data to be entered.  Here is the issue:
I need to refresh the div that this information is contained in.  If I
use .load, the content is not editable.  I have even created some
static HTML in a separate file, used .load to import it, but editable
regions are not active.  Has anyone else ran into this issue.  Any
help would be appreciated.


[jQuery] Debugging $.getScript scripts

2008-06-18 Thread ajpiano

Anyone have a clever method for doing step-debugging on scripts
fetched via $.getScript() ?  In firebug, if you add a debugger; to a
remotely fetched script, Firebug shows the variables in the watch tab,
etc, but it doesn't actually pull the script into the script window
(it shows another page, scrolled to the line number of the debugger
cal in the remote script).  If you do the same (debugger;) and
you're using IE and Visual Web Dev for debugging JS, VWD just crashes.

Obviously it's a pain to have to tweak my code to have remote scripts
loaded not-remotely just when I'm debugging the actual remote scripts,
so I was wondering if anyone else out there had dealt with this and
figured it out

--adam

PS. there are no cross-domain issues


[jQuery] Using Dimensions Library

2008-06-18 Thread eric

I apologize if this is a dupe- but would this be the way to use the
dimensions library. I am having a tough time positioning elements and
I can't seem to find too many online demos.

$(#insertLink).click(function(){
$(#insertDiv).offset($(this).offset());
$(#insertDiv).toggle();
});


[jQuery] [Tooltip] - Hovering on tr

2008-06-18 Thread dfiller

I'm using the tooltip plugin by Mr. Zaefferer and trying to get it to
appear on the hover event of a table row.  It works absolutely fine in
Firefox, but of course IE won't display the tooltip.  I know the
plugin is setup correctly because when I move it to another element,
it works fine in both browsers.

Has anyone tried to get this working before or have some possible
solutions?


[jQuery] Re: Adding the dialog function dynamically to each li element

2008-06-18 Thread Dan

I've done some more messing around and came up with a solution that
worked:

$(this).append( div id=' + title + ' class='edit_dialog'/
div );
$(.edit_accordion:first).clone().appendTo( $(# + title) );


Thanks for all the help Jason and Richard.

PROBLEM SOLVED!


[jQuery] Re: Adding the dialog function dynamically to each li element

2008-06-18 Thread Dan

Thanks Richard, I didn't know that it wanted an entire valid html
element.

This code works:
$(this).append( div id=' + title + ' class='edit_dialog'/
div );
$(# + title).clone().append( TEST CONTENT );

but when I replace TEST CONTENT with with the edit_accordion class,
it doesn't work. I tried it with and without the .html()
$(this).append( div id=' + title + ' class='edit_dialog'/
div );
$(# + title).clone().append( $(.edit_accordion).html() );

So it can't get the .edit_accordion for some reason.


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Isaak Malik
I hope that it also works in Opera, thank you for the information.

On Wed, Jun 18, 2008 at 7:34 PM, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:

  It's been tested pretty extensively in Firefox 2  3 and IE 6  7
 (because these are the only browsers used by our userbase.)



 -Dan


   --

 *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Isaak Malik
 *Sent:* Wednesday, June 18, 2008 11:46 AM
 *To:* jquery-en@googlegroups.com
 *Subject:* [jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown



 This plugin looks very interesting, how is the browser support?

 On Wed, Jun 18, 2008 at 5:31 PM, Dan G. Switzer, II 
 [EMAIL PROTECTED] wrote:


 Awhile back I blogged about a plug-in that my company was planning on
 releasing called mcDropdown (multicolumn dropdown.)

 Well, the plug-in was officially released today:
 http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

 If you like the plug-in, feel free to digg it:
 http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

 You can jump directly to the example here:
 http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

 In a nutshell, this plug-in creates a tree-like form control. We need a UI
 control that would allow users to select an option from a large tree of
 data
 and this was the end result.

 I think the overall effect is pretty impressive and I've never seen a UI
 control like it (especially considering it supports keyboard entry.)

 -Dan


 --
 Isaak Malik
 Web Developer




-- 
Isaak Malik
Web Developer


[jQuery] jqGrid save on leave

2008-06-18 Thread maryspt

hi
is there any way to save the edited data without when user leaves the
edit mode by selecting other row? i can't save last row on every
onSelectRow, because it'd be called even when user clicked Escape last
time


[jQuery] Jcarousel and Thickbox

2008-06-18 Thread marmo79

Hello and sorry for my poor English.
I'm using the plugin Jcarousel (http://sorgalla.com/jcarousel/)  for a
Gallery with more than 100 images;so I've decided to load the items
with Ajax, using the author's  'best pratice' example.
Now I must use the plugin Thickbox to open the bigger sizes images; in
the downloadable script there are some examples but I can't understand
how they works;in fact, usually, I just add the thickbox class on a
href tag;unfortunately with Jcarousel the class work in different way
and It doesn't work.
Someone can help me?

Another little question:when  I call the jquery function in the head
tags, I can set the scrollable items;it's possible dinamically set the
number of items that are visible, considering the different width of
some items?
Please, Someone helps me!

Best regards,
Marino


[jQuery] Re: prevent more than one submit in ajaxsubmit

2008-06-18 Thread eldersoto


You can Block the page:
http://www.malsup.com/jquery/block/#page
Saludos.
Don Quijote de Nicaragua.
Elder Soto


quot;Sebastián V. Würtzquot; wrote:
 
 
 Guys I need some litle help.
 
 var v = jQuery(#send_form).validate({
.
..

 },
 submitHandler: function(form) {
 jQuery(form).ajaxSubmit({
 dataType: json,
 success: process_result
 });
 }
 });
 
 
 how i can prevent or hide or disable the submit button or it behaviour 
 when the first submit happend?
 
 

-- 
View this message in context: 
http://www.nabble.com/prevent-more-than-one-submit-in-ajaxsubmit-tp17985286s27240p17987588.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] [validate] How to integrate validation with masking?

2008-06-18 Thread shapper

Hello,

I am validating a form but one of the fields has a mask:
99-99- 99:99:99

This is:
Day-Month-Year Hour:Minutes:Seconds

How can I integrate my validation with my mask?

I am using:
http://digitalbush.com/projects/masked-input-plugin
http://bassistance.de/jquery-plugins/jquery-plugin-validation/

I am not sure if these are the right plugins for this ... at least
this is what I have been using.

Could someone, please, help me out?

Thanks,
Miguel

Here is my code:

  // Form mask
  jQuery(function($){
$(#UpdatedAt).mask(99-99- 99:99:99);
  });

  // Form validation
  $(#Edit).validate({
errorClass: Error,
errorElement: label,
rules: {
  Name: {required: true},
  UpdatedAt: {required: true}
},
messages: {
Name: {required: What is your name?},
UpdatedAt: {
  required: Insert the updated date and time
},
  },
  });


[jQuery] Re: Tablesorter plugin and zebra striping

2008-06-18 Thread Alex

Hi Ken, luckily for us the brilliant Christian Bach created a widget
system for Tablesorter so when you initialize your table use this
instead $(table#sorttable).tablesorter({widgets:[zebra]}); this
will automatically apply a class of odd and even so you just have to
style it!  There are some other cool things that you can do like
disable columns and whatnot just look in the documentation ^_^.
http://tablesorter.com/docs/#Examples

Best of luck!

On Jun 18, 7:34 am, Ken [EMAIL PROTECTED] wrote:
 I have the following in my $(document).ready:

 $(document).ready(function() {
   $(.zebra tr:not([th]):even).addClass(even);
   $(.zebra tr:not([th]):odd).addClass(odd);
   $(table#sorttable).tablesorter();
 )};

 This allows my table to sort columns by clicking on the column headers
 and works great.  What I need to be able to do, is have the zebra
 striping happen after each table sort.

 Is there a way to set this up?

 Thanks, Ken


[jQuery] Quick question about dimensions

2008-06-18 Thread eric

I've recently been exploring the jquery library and I apologize if
this is a silly question. But could someone post a simple example of
using the dimension library to position a div directly below a link. I
have tried something like this:

$(#insertLink).click(function(){
$(#insertDiv).offset($(this).offset());
$(#insertDiv).toggle();
});

but it doesn't seem to work. Am I missing something?


[jQuery] Re: Loading google maps dynamically

2008-06-18 Thread Hamish Campbell

It looks like you're getting the script ok, but there is other stuff
you need to do to create a google map. There are a couple of good
jQuery googlemap plugins (eg, jMaps)

So you'd do something like this:

$(#togglegmaps).toggle(
function(){
$.getScript(http://maps.google.com/maps?
file=apiv=2kexQRunjaLdXZDSuOjYlX_LT10f8SsQ,
function(){
$(#gmapsdiv).gmap(); // or whatever the method is to
create a google map from a div
$(#gmapsdiv).fadeIn(slow);
})
},
function(){$(.gmapsdiv).fadeOut(slow);
});

Note that I'd avoid the fade ins and outs though - googlemaps still
needs to load all sorts of images and pieces before it's ready to be
shown. It might be better just to .show() it.

On Jun 19, 1:47 am, lamy [EMAIL PROTECTED] wrote:
 Hey guys!
 I just startet using jQuery a couple days ago - it totally rocks!

 Now, I want to give people who write in my blog the opportunity to add
 some google maps stuff.
 So I have a div - element which can be shown or hidden by pressing a
 button. I want google maps to load ONLY when the button is being
 clicked. I tried $.getscript(), but apparently he tries to redirect
 me. What am I doing wrong?

 Help would very much be appreciated! :)

 This is the code:http://pastebin.org/4

 What's wrong about that?

 Cheers guys.


[jQuery] Access multiple URLs with ajax

2008-06-18 Thread hubbs

I am wondering if it is possible to use the jQuery .ajax() call to
access multiple URLs right after another.

When I am wanting to do, is have a list of items, each of which has a
check box which is an option to delete the item.  If the box is
checked, and the submit button clicked, I would like ajax to access
each URL that pertains to the checked item, and send the query string ?
action=delete.


[jQuery] Re: Is there a way to use the css function with $(document) directly?

2008-06-18 Thread Ariel Flesler

Well, I was about to accuse you of a design flaw, but when I followed
the examples in the demo page, I discovered the right way, and it
works perfectly, even when there's more style tags than one. I still
say it's a bit awkward.

I really don't understand why is it awkward. It behaves JUST like
jQuery.

 And no, they are not chainable

I checked now, they ARE chainable.

if you make the rule object an
extension of the jQuery object, it will inherit the properties and
methods of the jQuery object and so will be chainable

24 methods are inherited.

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


[jQuery] Re: About events and memory

2008-06-18 Thread Ariel Flesler

Yes, it is done.

Cheers

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

On 18 jun, 05:30, Skurmedel [EMAIL PROTECTED] wrote:
 Hi, I've been using jQuery for a couple of projects and I love it, it
 really quells the pain of traversing the HTML.

 However, I wonder if jQuery unbinds the events on page unload, to
 avoid memory leaks. I don't see it being mentioned anywhere on the
 main site.

 Thanks in advance.


[jQuery] Re: Quick question about dimensions

2008-06-18 Thread Josh Nathanson


The offset() method is only gettable, not settable.

You might need to do something like this:

$(#insertLink).click(function(){
   var offset = $(this).offset();
   $(#insertDiv).css({ top: offset.top, left: offset.left }).toggle();
});

-- Josh

- Original Message - 
From: eric [EMAIL PROTECTED]

To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, June 18, 2008 10:13 AM
Subject: [jQuery] Quick question about dimensions




I've recently been exploring the jquery library and I apologize if
this is a silly question. But could someone post a simple example of
using the dimension library to position a div directly below a link. I
have tried something like this:

   $(#insertLink).click(function(){
   $(#insertDiv).offset($(this).offset());
   $(#insertDiv).toggle();
   });

but it doesn't seem to work. Am I missing something? 




[jQuery] Re: JS Loader w/ Plugin Support??

2008-06-18 Thread Ariel Flesler

I'm not what you mean exactly.

This plugin handles on demand loading of jQuery plugins.
http://plugins.jquery.com/project/Plugin

Cheers

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

On 18 jun, 12:56, Seth - TA [EMAIL PROTECTED] wrote:
 With JSLoader being around and the recent announcement by Google to
 load JS libraries is there any word on plugin support? I would
 definitely be interested in this as well as others I am sure. Just
 curious.

 Regards,

 Seth


[jQuery] Re: JS Loader w/ Plugin Support??

2008-06-18 Thread Ariel Flesler

Oops..
I think you meant google hosting plugins ?
Dunno about that...

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

On 18 jun, 12:56, Seth - TA [EMAIL PROTECTED] wrote:
 With JSLoader being around and the recent announcement by Google to
 load JS libraries is there any word on plugin support? I would
 definitely be interested in this as well as others I am sure. Just
 curious.

 Regards,

 Seth


[jQuery] Re: How can I make jquery work with Konquerer?

2008-06-18 Thread Ariel Flesler

Konqueror is not supported by jQuery.

http://docs.jquery.com/Browser_Compatibility

Cheers

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

On 18 jun, 10:17, ryy705 [EMAIL PROTECTED] wrote:
 Hello,
 I am using konqeror 3.5.8 in unbuntu.  I can't seem to get any jquery to
 work in Konqueror.  Is there a setting that I have to change to make it
 recognize it?

 Thank you in advance.
 --
 View this message in 
 context:http://www.nabble.com/How-can-I-make-jquery-work-with-Konquerer--tp17...
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: Using Dimensions Library

2008-06-18 Thread Ariel Flesler

offset() is only for getting, not setting the offset.

$(#insertLink).click(function(){
   $(#insertDiv)
.css('position','absolute')
.css( $(this).offset() )
.toggle();
});

This should do, haven't tested.

Cheers

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


On 18 jun, 14:20, eric [EMAIL PROTECTED] wrote:
 I apologize if this is a dupe- but would this be the way to use the
 dimensions library. I am having a tough time positioning elements and
 I can't seem to find too many online demos.

             $(#insertLink).click(function(){
                 $(#insertDiv).offset($(this).offset());
                 $(#insertDiv).toggle();
             });


[jQuery] Back button functionality?

2008-06-18 Thread Evil Otto

I've been trying to solve the back button problem with jQuery. I've
run into a couple of .history libraries, but nothing that seems to
work with jQuery 1.2.x.  Any suggestions or approaches to fixing this
would be welcome.


[jQuery] how can I register an event handler as the first one to be executed for that event?

2008-06-18 Thread MarcS

Hi,

I'm looking for a way to register an event handler for the submit
event of a form as the first one to be executed.
nyroModal, a lightbox like plugin I'm using registered its event
handler on this form already but I need my custom one to be executed
before the one from nyromodal.
Is there anyway I can do that?


[jQuery] Re: New jQuery Plug-in: Multicolumn Dropdown

2008-06-18 Thread Adam

Great plugin, Dan.

Quick bug report: if I go down three levels (by using the first
option) and the mouse off of the third out to the left, the 3rd level
stays while I attempt to navigate to another option.

I'm in FF3 on a Mac.

Adam



On Jun 18, 11:31 am, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
 Awhile back I blogged about a plug-in that my company was planning on
 releasing called mcDropdown (multicolumn dropdown.)

 Well, the plug-in was officially released 
 today:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

 If you like the plug-in, feel free to digg 
 it:http://digg.com/programming/Multicolumn_Dropdown_jQuery_Plug_in

 You can jump directly to the example 
 here:http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm#example

 In a nutshell, this plug-in creates a tree-like form control. We need a UI
 control that would allow users to select an option from a large tree of data
 and this was the end result.

 I think the overall effect is pretty impressive and I've never seen a UI
 control like it (especially considering it supports keyboard entry.)

 -Dan


[jQuery] Re: Loading google maps dynamically

2008-06-18 Thread lamy

Hey there!

Yeah, that's pretty obvious - and I already use a plugin from
http://olbertz.de/blog/?p=jquery_googlemaps.

The only problem is - as I said- that I am being redirected to the
script...

On 18 Jun., 22:25, Hamish Campbell [EMAIL PROTECTED] wrote:
 It looks like you're getting the script ok, but there is other stuff
 you need to do to create a google map. There are a couple of good
 jQuery googlemap plugins (eg, jMaps)

 So you'd do something like this:

 $(#togglegmaps).toggle(
     function(){
         $.getScript(http://maps.google.com/maps?
 file=apiv=2kexQRunjaLdXZDSuOjYlX_LT10f8SsQ,
             function(){
                 $(#gmapsdiv).gmap(); // or whatever the method is to
 create a google map from a div
                 $(#gmapsdiv).fadeIn(slow);
             })
         },
     function(){$(.gmapsdiv).fadeOut(slow);

 });

 Note that I'd avoid the fade ins and outs though - googlemaps still
 needs to load all sorts of images and pieces before it's ready to be
 shown. It might be better just to .show() it.

 On Jun 19, 1:47 am, lamy [EMAIL PROTECTED] wrote:

  Hey guys!
  I just startet using jQuery a couple days ago - it totally rocks!

  Now, I want to give people who write in my blog the opportunity to add
  some google maps stuff.
  So I have a div - element which can be shown or hidden by pressing a
  button. I want google maps to load ONLY when the button is being
  clicked. I tried $.getscript(), but apparently he tries to redirect
  me. What am I doing wrong?

  Help would very much be appreciated! :)

  This is the code:http://pastebin.org/4

  What's wrong about that?

  Cheers guys.


[jQuery] Re: [autocomplete] tab issue with autcomplete plugin

2008-06-18 Thread Carl Von Stetten

Jörn,

I have made extensive use of the autocomplete plugin for my intranet 
site.  I just downloaded the updated version from the trunk (changelog 
shows it as 1.0.1, the js file lists the build as 5329).  I still have 
the tab order problem.

Carl

Jörn Zaefferer wrote:
 Yes, that should be fixed in the latest revision:
 http://dev.jquery.com/view/trunk/plugins/autocomplete/

 Can you assert that it actually fixes the issue? I'll create a new
 release, then.

 On Fri, Jun 13, 2008 at 7:53 PM, Priest, James (NIH/NIEHS) [C]
 [EMAIL PROTECTED] wrote:
   
 Jörn, have you made any progress on the TAB issue with the Autocomplete 
 plugin?

 ie: If you in that field and tab away - you loose your tab order.  I know it 
 came up in the comments on the plugin page but I haven't heard any more 
 updates on it...

 Thanks,
 Jim

 


   


  1   2   >