[jQuery] ui.datepicker trouble

2008-06-15 Thread Shawn


I'm having a problem wit the ui.datepicker.  Specifically 
setting/getting the default date.  I have the following function:


function setDefaultDates() {
  var temp = new Date();
  var sd = new Date(temp.getFullYear(), temp.getMonth(), temp.getDate() 
- 8);
  var ed = new Date(temp.getFullYear(), temp.getMonth(), temp.getDate() 
- 1);


  $(#criteriaStart).datepicker(setDate, sd);
  $(#criteriaEnd).datepicker(setDate, ed);

alert(sd + \n + $(#criteriaStart).datepicker(getDate));

  $(#criteriaStart).val($.datepicker.formatDate( d M yy, 
$(#criteriaStart).datepicker(getDate) ));
  $(#criteriaEnd).val($.datepicker.formatDate( d M yy, 
$(#criteriaEnd).datepicker(getDate) ));


  return;
}

The alert() is showing that sd does have a value, but the 
datepicker(getDate) bit returns null.


So, the rest of the routine obviously fails because there doesn't appear 
to be any value stored in the datepicker.


I've checked the docs and this code looks to be fine.  Except for the 
formatDate() method.  I've tried commenting those lines out without any 
difference.  (the code was written about a 2 months ago, so may have 
been using one version older of the datepicker.  The site is now moving 
from prototype to production...)


The question is how do I a) set the date for the date picker, then set 
the text for the datepicker text box with that date (preferably formated 
to the datepickers dateFormat option)?


My processing code later looks to the value of the datepicker - not the 
text value of the textbox.  So if I can't fix this, I need to rip out 
the ui.datepicker and use something else.  Oh, btw, this is using the 
latest UI code (complete set).


Thanks for any tips.

Shawn


[jQuery] Re: Help with tabsLoad

2008-06-15 Thread Klaus Hartl

So what is going wrong now? To me it looks like everything works as
expected (Tabs are loading correctly and the link saying This link
load page 3 in current tab via ajax does exactly what it says)...

--Klaus


On 15 Jun., 00:36, keny [EMAIL PROTECTED] wrote:
 hi thanks for helping

 i have upload a new version and still dont work

 no sherif code in this one

 http://www.snipvideo.com/tabs/
 help is very appreciate

 On 14 juin, 01:58, Klaus Hartl [EMAIL PROTECTED] wrote:

  On 13 Jun., 23:17, keny [EMAIL PROTECTED] wrote:

   Thanks

   Is there a way to make a function that will work ? I am not expert in
   JS like you. Maybe you can check this site that offer tab and a
   function that work to load link via ajax in there tab :

  All you need to do is *not* include the Red Sheriff tracker code
  included in the Ajax tab pages...

  --Klaus


[jQuery] Re: HotChili (Greasemonkey/userscript) breaks easing

2008-06-15 Thread aercolino

I've tested right now some jquery enabled sites and all went fine.


[jQuery] Re: New JQuery Plugin - Menu Toggle Adder

2008-06-15 Thread C.Everson

On Sat, 14 Jun 2008 14:35:14 -0700 (PDT), Ed wrote:

 I fixed an error on the demo page (not the script) that was causing
 the error. On the demo page, I had an extra comma at the end of the
 last value in the settings object... rookie mistake. I appreciate you
 help!

Glad you got it sorted out - nice Plugin!

Chuck



[jQuery] Re: I love JQuery but why is it slower than Dojo and ExtJS Core

2008-06-15 Thread Dan

If the loading time of the jQuery file is a real problem, you could
look at gzipping it. This will make it more compact while it transfers
from the server to the browser. It's something a lot of web developers
over look and easily quadrupled the speed of the files I was looking
at.

Also, the jQuery file only has to be transfered once to each person
that used it. Then the browser just uses the cached file. Another
trick to speed up loading time is the correct placement of the html
tag calling jquery.js. It's recommended to put javascript last and let
the rest of the page load. But if it is really important, called it
first. It will then stated transferring as the other files are being
called and transfered. There are often things you can do to make up
for, what I guess is, the large file size of jQuery.


[jQuery] Getting the correct Selector code

2008-06-15 Thread Dan

I have a list like:
li
h3span class=addADD/span/h3
div class=dialogContent 1/div
/li
li
h3span class=addADD/span/h3
div class=dialogText 2/div
/li

I want to open a dialog, which are the divs, when the ADD is clicked.
But I only want the dialog that is in the same li tag as the Add
button being clicked. I though the following might work, but it's not
right:

$(.add).click(function () {
$(this).parent().parent().$(.dialog).dialog(open);
});

Shouldn't that go span - h3 - li - div (dialog)  ??? What should it
be?


[jQuery] Re: replace html on ajax success ie7

2008-06-15 Thread sparkpool

Is the returned html well formed? Does it make sense for it to be
inserted into the dom where you're trying to put it? Have you verified
that the selector for your target div actually finds it in IE?

On Jun 14, 5:22 pm, Fred [EMAIL PROTECTED] wrote:
 no, just html.

 On Jun 14, 3:03 am, ilrobyt [EMAIL PROTECTED] wrote:

  On 14 Giu, 01:02, Fred [EMAIL PROTECTED] wrote:

   Hi guys, I am having a wierd issue. It seems all is fine in firefox
   but in IE for some reason, although I can alert the value returned to
   the ajax post, I cannot seem to populate the html of my div. Here is
   my code:

   $.post(SERVER_URL,
 'temp_key='+temp_post_key_n,
 function(data){
alert(data); // Displays returned html in ie and firefox
$('#message_div').html(data); // Populated in Firefox, not in IE
},
 'html'
   );

   Also, If I set $('#message_div').html(data) to $
   ('#message_div').html('testing') I see testing in my div in both IE
   and Firefox. Thanks a ton!

   Fred.

  have you some javascript code in the server answer?
  IE strip script


[jQuery] Getting the correct Selector code

2008-06-15 Thread Dan

I have a list like:
li
h3span class=addADD/span/h3
div class=dialogContent 1/div
/li
li
h3span class=addADD/span/h3
div class=dialogText 2/div
/li

I want to open a dialog, which are the divs, when the ADD is clicked.
But I only want the dialog that is in the same li tag as the Add
button being clicked. I though the following might work, but it's not
right:

$(.add).click(function () {
$(this).parent().parent().$(.dialog).dialog(open);
});

Shouldn't that go span - h3 - li - div (dialog)  ??? What should it
be?


[jQuery] Getting the correct Selector code

2008-06-15 Thread Dan

I have a list like:
li
h3span class=addADD/span/h3
div class=dialogContent 1/div
/li
li
h3span class=addADD/span/h3
div class=dialogText 2/div
/li

I want to open a dialog, which are the divs, when the ADD is clicked.
But I only want the dialog that is in the same li tag as the Add
button being clicked. I though the following might work, but it's not
right:

$(.add).click(function () {
$(this).parent().parent().$(.dialog).dialog(open);
});

Shouldn't that go span - h3 - li - div (dialog)  ??? What should it
be?


[jQuery] Getting the correct Selector code

2008-06-15 Thread Dan

I have a list like:
li
h3span class=addADD/span/h3
div class=dialogContent 1/div
/li
li
h3span class=addADD/span/h3
div class=dialogText 2/div
/li

I want to open a dialog, which are the divs, when the ADD is clicked.
But I only want the dialog that is in the same li tag as the Add
button being clicked. I though the following might work, but it's not
right:

$(.add).click(function () {
$(this).parent().parent().$(.dialog).dialog(open);
});

Shouldn't that go span - h3 - li - div (dialog)  ??? What should it
be?


[jQuery] Re: Working with text

2008-06-15 Thread yo2lux

Thanks and which is the best way to obtain the last number of string,
for example I have:

forum-list-1
forum-list-2
forum-list-3

I need the numbers: 1, 2 or 3.

On Jun 12, 6:44 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 And that's why Ariel is da man! Nice one.

 --Karl
 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote:



  Ooor

  var fileName = $('img').attr('src').split('/').pop();

  Cheers :)

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

  On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote:
  Hi there,

  You could do it like this:

  var path = $('img').attr('src');
  var fileName = path.slice(path.lastIndexOf('/')+1);

  --Karl
  
  Karl Swedbergwww.englishrules.comwww.learningjquery.com

  On Jun 11, 2008, at 7:36 PM, yo2lux wrote:

  path variable store the following: /themes/mytheme/images/logo.gif:

  var path = $('img').attr('src');

  is possible to obtain the image name without path ? I need logo.gif
  I need a Javascript or jQuery function to solve this?

  Thanks!- Ocultar texto de la cita -

  - Mostrar texto de la cita -


[jQuery] Re: Working with text

2008-06-15 Thread Klaus Hartl


var n = parseInt(/\d/.exec(forum-list-1)[0]);

Or even easier using split (if you can rely on the format of the
string) - pretty much what Ariel already showed:

var n = parseInt(forum-list-1.split('-').pop());

--Klaus


On 15 Jun., 13:18, yo2lux [EMAIL PROTECTED] wrote:
 Thanks and which is the best way to obtain the last number of string,
 for example I have:

 forum-list-1
 forum-list-2
 forum-list-3

 I need the numbers: 1, 2 or 3.

 On Jun 12, 6:44 pm, Karl Swedberg [EMAIL PROTECTED] wrote:

  And that's why Ariel is da man! Nice one.

  --Karl
  
  Karl Swedbergwww.englishrules.comwww.learningjquery.com

  On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote:

   Ooor

   var fileName = $('img').attr('src').split('/').pop();

   Cheers :)

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

   On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote:
   Hi there,

   You could do it like this:

   var path = $('img').attr('src');
   var fileName = path.slice(path.lastIndexOf('/')+1);

   --Karl
   
   Karl Swedbergwww.englishrules.comwww.learningjquery.com

   On Jun 11, 2008, at 7:36 PM, yo2lux wrote:

   path variable store the following: /themes/mytheme/images/logo.gif:

   var path = $('img').attr('src');

   is possible to obtain the image name without path ? I need logo.gif
   I need a Javascript or jQuery function to solve this?

   Thanks!- Ocultar texto de la cita -

   - Mostrar texto de la cita -


[jQuery] Re: Working with text

2008-06-15 Thread Klaus Hartl

And in case you want to shorten the parseInt:

var n = +forum-list-1.split('-').pop();

--Klaus


On 15 Jun., 14:24, Klaus Hartl [EMAIL PROTECTED] wrote:
 var n = parseInt(/\d/.exec(forum-list-1)[0]);

 Or even easier using split (if you can rely on the format of the
 string) - pretty much what Ariel already showed:

 var n = parseInt(forum-list-1.split('-').pop());

 --Klaus

 On 15 Jun., 13:18, yo2lux [EMAIL PROTECTED] wrote:

  Thanks and which is the best way to obtain the last number of string,
  for example I have:

  forum-list-1
  forum-list-2
  forum-list-3

  I need the numbers: 1, 2 or 3.

  On Jun 12, 6:44 pm, Karl Swedberg [EMAIL PROTECTED] wrote:

   And that's why Ariel is da man! Nice one.

   --Karl
   
   Karl Swedbergwww.englishrules.comwww.learningjquery.com

   On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote:

Ooor

var fileName = $('img').attr('src').split('/').pop();

Cheers :)

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

On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote:
Hi there,

You could do it like this:

var path = $('img').attr('src');
var fileName = path.slice(path.lastIndexOf('/')+1);

--Karl

Karl Swedbergwww.englishrules.comwww.learningjquery.com

On Jun 11, 2008, at 7:36 PM, yo2lux wrote:

path variable store the following: /themes/mytheme/images/logo.gif:

var path = $('img').attr('src');

is possible to obtain the image name without path ? I need logo.gif
I need a Javascript or jQuery function to solve this?

Thanks!- Ocultar texto de la cita -

- Mostrar texto de la cita -


[jQuery] Re: Optimizing jQuery Tabs - improving load time

2008-06-15 Thread Klaus Hartl

If you want to prevent a flash of unstyled content, you can add the
classes that are added by the plugin right away to your HTML:

ul class=ui-tabs-nav.../ul

div class=ui-tabs-panel.../div

And in case you want to keep your panels hidden:

div class=ui-tabs-panel ui-tabs-hide.../div

--Klaus


On 14 Jun., 06:12, Illah [EMAIL PROTECTED] wrote:
 Thanks for the feedback...so I guess I was correct in my assumption
 that the general page load was affecting the script?  The majority of
 that ~1MB page load is the images, and I can't really get rid of those
 (all the flash will be gone soon, it's part of an ad campaign ending
 this weekend).

 I checked out Texas Online and the dynamic load feature is a great
 idea.  My only concern is the my site is pretty visual and the images
 are a key feature, I worry about the user experience on an initial
 load...every time the carousel flips they'll have to watch another
 image load.  I'd almost rather a short pause up front than repetitive
 image load.

 Is there a way to prevent it from waiting for images to load, or to
 maybe put a 1px GIF in there to trick the script into thinking it has
 loaded already?

 --Illah

 On Jun 13, 5:49 pm, Joe [EMAIL PROTECTED] wrote:

  Hmm, I think it has to do with the enormous page weight (Firebug
  calculates it at 1.05 MB).  I would look for an overall optimization
  first to the site's weight (optimize images, clean up markup, pack/
  minify javascript and/or CSS files at a minimum).

  I ran into an issue with having to maintain an ultra low page weight
  on a tabbed structure (containing 7 tabs) with each tab containing a
  photo (additional weight).  I went with the plugin you've chosen
  initially and found it did not suit my needs.  So I wrote a rather
  clean and efficient (IMO) script that reduced the page weight by
  almost 30%.

  Check out the Quick Answers section of this site:

 www.texasonline.com

  View the source and the tabs in the global.js.  You'll notice that
  each image is dynamically loaded thus reducing page weight.

  Not sure if this is the solution, but I would think it's a start.

  Cheers.

  Joe

 www.subprint.com

  On Jun 13, 4:08 pm, Illah [EMAIL PROTECTED] wrote:

   Hi,

   I'm a bit of a newb with JavaScript though pretty fluent in general
   xHTML/CSS web design.  Anyway, I use jQuery Tabs for the carousel on
   my site's homepage since I had prior experience with it.  It works
   just fine, though the only issue I'm having is that while the page is
   loading, the divs holding the content for each tab all show on the
   page, and on a slower connection it can hang like that for a few
   seconds before the script pops them into place.

   It's much easier to show an example:

  http://www.grooveeffect.com/

   Is there a way to optimize the tabs to prevent that?  As far as I can
   tell, the script is waiting for all the content to load before tab-
   ifying the content...can I force it to simply put everything into tabs
   whether loaded or not?

   If not, I'd be happy simply hiding all but the first tab until the
   rest load up.

   Thanks!

   --Illah


[jQuery] Re: Working with text

2008-06-15 Thread Ariel Flesler
var n = +forum-list-1.slice(-1);   ;-)

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


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


 And in case you want to shorten the parseInt:

 var n = +forum-list-1.split('-').pop();

 --Klaus


 On 15 Jun., 14:24, Klaus Hartl [EMAIL PROTECTED] wrote:
  var n = parseInt(/\d/.exec(forum-list-1)[0]);
 
  Or even easier using split (if you can rely on the format of the
  string) - pretty much what Ariel already showed:
 
  var n = parseInt(forum-list-1.split('-').pop());
 
  --Klaus
 
  On 15 Jun., 13:18, yo2lux [EMAIL PROTECTED] wrote:
 
   Thanks and which is the best way to obtain the last number of string,
   for example I have:
 
   forum-list-1
   forum-list-2
   forum-list-3
 
   I need the numbers: 1, 2 or 3.
 
   On Jun 12, 6:44 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 
And that's why Ariel is da man! Nice one.
 
--Karl

Karl Swedbergwww.englishrules.comwww.learningjquery.com
 
On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote:
 
 Ooor
 
 var fileName = $('img').attr('src').split('/').pop();
 
 Cheers :)
 
 --
 Ariel Flesler
http://flesler.blogspot.com/
 
 On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote:
 Hi there,
 
 You could do it like this:
 
 var path = $('img').attr('src');
 var fileName = path.slice(path.lastIndexOf('/')+1);
 
 --Karl
 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com
 
 On Jun 11, 2008, at 7:36 PM, yo2lux wrote:
 
 path variable store the following:
 /themes/mytheme/images/logo.gif:
 
 var path = $('img').attr('src');
 
 is possible to obtain the image name without path ? I need
 logo.gif
 I need a Javascript or jQuery function to solve this?
 
 Thanks!- Ocultar texto de la cita -
 
 - Mostrar texto de la cita -
 



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


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

2008-06-15 Thread Jörn Zaefferer

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



[jQuery] Re: jQuery Plugins Group dead?

2008-06-15 Thread Jörn Zaefferer

That, it isn't dead. First posts from a user go through the moderation
queue, and it can take a few hours for them to get through.

Jörn

On Sat, Jun 14, 2008 at 1:01 PM, Georg [EMAIL PROTECTED] wrote:

 Hi there,

 i joined the jquery plugins group a few days ago to ask some questions
 about the treeview plugin. On second glance i mentioned that there are
 only 26 threads in this group till now and the last post dates from
 March 15 2007. Also it is not possible to make new posts at all. You
 can write a message and send it, but it is never published.

 So i guess this group is dead. Can you confirm?

 GH.



[jQuery] Re: Working with text

2008-06-15 Thread Klaus Hartl

Aaargh, can somebody please stop Ariel ;-)

--Klaus


On 15 Jun., 14:55, Ariel Flesler [EMAIL PROTECTED] wrote:
 var n = +forum-list-1.slice(-1);   ;-)

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

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





  And in case you want to shorten the parseInt:

  var n = +forum-list-1.split('-').pop();

  --Klaus

  On 15 Jun., 14:24, Klaus Hartl [EMAIL PROTECTED] wrote:
   var n = parseInt(/\d/.exec(forum-list-1)[0]);

   Or even easier using split (if you can rely on the format of the
   string) - pretty much what Ariel already showed:

   var n = parseInt(forum-list-1.split('-').pop());

   --Klaus

   On 15 Jun., 13:18, yo2lux [EMAIL PROTECTED] wrote:

Thanks and which is the best way to obtain the last number of string,
for example I have:

forum-list-1
forum-list-2
forum-list-3

I need the numbers: 1, 2 or 3.

On Jun 12, 6:44 pm, Karl Swedberg [EMAIL PROTECTED] wrote:

 And that's why Ariel is da man! Nice one.

 --Karl
 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote:

  Ooor

  var fileName = $('img').attr('src').split('/').pop();

  Cheers :)

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

  On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote:
  Hi there,

  You could do it like this:

  var path = $('img').attr('src');
  var fileName = path.slice(path.lastIndexOf('/')+1);

  --Karl
  
  Karl Swedbergwww.englishrules.comwww.learningjquery.com

  On Jun 11, 2008, at 7:36 PM, yo2lux wrote:

  path variable store the following:
  /themes/mytheme/images/logo.gif:

  var path = $('img').attr('src');

  is possible to obtain the image name without path ? I need
  logo.gif
  I need a Javascript or jQuery function to solve this?

  Thanks!- Ocultar texto de la cita -

  - Mostrar texto de la cita -

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


[jQuery] Re: How to clone jQuery object?

2008-06-15 Thread R. Rajesh Jeba Anbiah

On May 26, 2:14 am, Michael Geary [EMAIL PROTECTED] wrote:
   $.extend(foo) merely returns a reference to foo. It doesn't
   clone foo.

   $.extend( {}, foo ) creates a new object and copies all of foo's
   properties into it (doing a shallow copy).

   So in theory you may be able to use $.extend( {}, $ ) - or more
   properly, jQuery( {}, jQuery ) - to clone the jQuery constructor. I
   wouldn't promise that this would work, though - it depends on what
   assumptions the jQuery code makes.
 This also doesn't work. I have tried both $.extend({}, $)
  and $.extend(true, {}, $). This results in $D('body') is not
  a function error. Seems that it doesn't copy really.

 That's what I get for posting late at night. Of course that wouldn't work,
 because you need to clone the jQuery constructor function itself - which {}
 doesn't do.

 This would have a better chance of working:

   $D = eval( '' + jQuery );
   $D.prototype = jQuery.extend( {}, jQuery.prototype );

 A quick test seems to work - but I'm not sure about cross-browser support,
 and there could be issues because of assumptions made inside the jQuery
 code.
   snip

I'm sorry for the very late follow up. I was quite busy to try
this. And, it works for $D('body'), but I get error when trying to
extend:
$D.fn.extend({
click: function() {
alert('overridden click');
return this;
}
});

Throws $D.fn has no properties error like before.

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


[jQuery] Server Side jQuery

2008-06-15 Thread howa

Currently I have only tested 2 way to do server side jquery

1. env.js + rhino
2. jaxer

Both 2 methods are following John's blog


Anyone know other ways such as other JavaScript server
implementations?


Thanks.


[jQuery] jQuery tabs and cookies

2008-06-15 Thread Isaak Malik
Dear list,

I am trying to remember the last selected tab using cookies but it doesn't
seem to work no matter what I do.

My code is the following:

$(function()
{
   $('#tabCont  ul').tabs({fx: {opacity: 'toggle', duration: 500, cookie:
{expires: 7, path: '/'}}});
});

Should this be enough to gain the wanted result or do I need to add custom
code which handles the automated selecting on page reload?
Many thanks
-- 
Isaak Malik
Web Developer


[jQuery] Reversing slideDown/slideUp behavior

2008-06-15 Thread fallingandlaughing

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


[jQuery] Re: jQuery Plugins Group dead?

2008-06-15 Thread Georg

 That, it isn't dead. First posts from a user go through the moderation
 queue, and it can take a few hours for them to get through.

I now that it could take a while to approve mails to a mailinglist. My
message is still not posted after 4 days and i understand that can
happen if the moderator is busy, on vacancy or has some real-life
stuff to do. But again, the last posted message to that list dates
from March 15 2007, and all questions about plugins are posted in the
general discussion list. Sorry, but that's what i call dead.

For me it's ok to have just one list for jquery.
But to prevent list-newbies (like me) to post messages to the plugin
list maybe it should be closed.

GH.


[jQuery] Re: jQuery + Prototype on newest release (1.2.6)

2008-06-15 Thread Alex Bilbie
Bump.

I've also been having the same problem.

Cheers,

Alex


On Thu, Jun 12, 2008 at 11:48 PM, mike [EMAIL PROTECTED] wrote:


 Hello,

 I just made the jump from Prototype to jQuery and so far I'm really
 enjoying it. However, some parts of my website are still using the
 Prototype library and I don't have the time or resources at the moment
 to recode everything using the jQuery framework.

 The problem I have is that I can't seem to use both libraries on the
 same page with the 1.2.6 release of jQuery. Here's a very simple
 example of what I'm trying to do:

 1) I load jQuery core 1.2.6
 2) I load Prototype only if the page needs it (through a PHP
 framework)
 3) At the top of my page: after the jQuery script includes, but
 before the Prototype ones (I don't think it matters?):

 script type=text/javascript
jQuery(document).ready(function($){
var $j = jQuery;
$j(#userImg).hide();
//jQuery(#userImg).hide();
});
 /script

 This short script should hide a div with an ID of userImg. However,
 all I see is one of those two errors (they seem to appear randomly) in
 the Firebug error console.

 Error: [Exception... Component returned failure code: 0x80004005
 (NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle]  nsresult:
 0x80004005 (NS_ERROR_FAILURE)  location: JS frame :: {WEBSITE}/
 jQuery/jquery.js :: anonymous :: line 871  data: no]
 Source File: {WEBSITE}/jQuery/jquery.js
 Line: 22

 OR

 Error: [Exception... Node cannot be inserted at the specified point
 in the hierarchy  code: 3 nsresult: 0x80530003
 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)  location: {WEBSITE}/jQuery/
 jquery.js Line: 251]
 Source File: {WEBSITE}/jQuery/jquery.js
 Line: 12

 I tried all the methods described here (http://docs.jquery.com/
 Using_jQuery_with_Other_Libraries), but with no luck. The same two
 errors always pop in Firebug when using jQuery 1.2.6.

 The exact same piece of code works perfectly when I load the 1.2.4
 version of jQuery instead of the 1.2.6 (1.2.5 doesn't work either).

 Can anyone think of a way I could fix this and use 1.2.6 (and further
 versions). I would hate being stuck with an older version, especially
 when updates to jQuery are frequent.

 Thanks,
 mike



[jQuery] Issue with IE 7 and multiple simultaneous ajax requests

2008-06-15 Thread rernens

I have implemented a form validation process that uses ajax to check
fields whenever a field value changes and also at form load when
fields are filled with existing values.
This process works just fine in all browsers execpt in IE when a form
loads.
In IE7 page loading hangs when a form that requires content checking
is included.
I have tried to implement several forms of ajax request queuing but
have not been able to fix the problem.
Any idea where the problem could come from
Using jquery 1.2.6 .


[jQuery] Re: Help with tabsLoad

2008-06-15 Thread keny

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 PROTECTED] wrote:
 So what is going wrong now? To me it looks like everything works as
 expected (Tabs are loading correctly and the link saying This link
 load page 3 in current tab via ajax does exactly what it says)...

 --Klaus

 On 15 Jun., 00:36, keny [EMAIL PROTECTED] wrote:



  hi thanks for helping

  i have upload a new version and still dont work

  no sherif code in this one

 http://www.snipvideo.com/tabs/
  help is very appreciate

  On 14 juin, 01:58, Klaus Hartl [EMAIL PROTECTED] wrote:

   On 13 Jun., 23:17, keny [EMAIL PROTECTED] wrote:

Thanks

Is there a way to make a function that will work ? I am not expert in
JS like you. Maybe you can check this site that offer tab and a
function that work to load link via ajax in there tab :

   All you need to do is *not* include the Red Sheriff tracker code
   included in the Ajax tab pages...

   --Klaus- Masquer le texte des messages précédents -

 - Afficher le texte des messages précédents -


[jQuery] Re: Working with text

2008-06-15 Thread yo2lux

Sorry, I need the number (marked with x):

forum-list-x

and not the string before the number.

On Jun 15, 3:55 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
 var n = +forum-list-1.slice(-1);   ;-)

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

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





  And in case you want to shorten the parseInt:

  var n = +forum-list-1.split('-').pop();

  --Klaus

  On 15 Jun., 14:24, Klaus Hartl [EMAIL PROTECTED] wrote:
   var n = parseInt(/\d/.exec(forum-list-1)[0]);

   Or even easier using split (if you can rely on the format of the
   string) - pretty much what Ariel already showed:

   var n = parseInt(forum-list-1.split('-').pop());

   --Klaus

   On 15 Jun., 13:18, yo2lux [EMAIL PROTECTED] wrote:

Thanks and which is the best way to obtain the last number of string,
for example I have:

forum-list-1
forum-list-2
forum-list-3

I need the numbers: 1, 2 or 3.

On Jun 12, 6:44 pm, Karl Swedberg [EMAIL PROTECTED] wrote:

 And that's why Ariel is da man! Nice one.

 --Karl
 
 Karl Swedbergwww.englishrules.comwww.learningjquery.com

 On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote:

  Ooor

  var fileName = $('img').attr('src').split('/').pop();

  Cheers :)

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

  On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote:
  Hi there,

  You could do it like this:

  var path = $('img').attr('src');
  var fileName = path.slice(path.lastIndexOf('/')+1);

  --Karl
  
  Karl Swedbergwww.englishrules.comwww.learningjquery.com

  On Jun 11, 2008, at 7:36 PM, yo2lux wrote:

  path variable store the following:
  /themes/mytheme/images/logo.gif:

  var path = $('img').attr('src');

  is possible to obtain the image name without path ? I need
  logo.gif
  I need a Javascript or jQuery function to solve this?

  Thanks!- Ocultar texto de la cita -

  - Mostrar texto de la cita -

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


[jQuery] Positioning in IE

2008-06-15 Thread Jamesm

Hi,

I just started learning jQuery and wrote this script to make an image
enlarge when you click on it and return to normal when clicked on
again.

However, to make it return gracefully to its original position, I need
to record of its top and left properties.
The script works fine in Firefox, but IE sets the top and left to
auto, as soon as I set the css position to absolute, so I can't use
those values.

I can I get a workaround for this?

Here is the code:

[code]
$(document).ready(function(){

var w;
var h;
var t;
var l;
var open = false;
var oldsrc;

$(img).toggle(
function()
{
if (!open)
{
open = true;
oldsrc = $(this).attr('src');
var newsrc = oldsrc.replace(.jpg,)+_large.jpg;
$(this).attr({'src':newsrc,'title':'Click to close'});
$(this).css('position', 'absolute');
t = $(this).css('top');
l = $(this).css('left');
w = $(this).width();
h = $(this).height();
var newH = h / w * 800;
$(this).animate({width: 800,height: newH, 
top:20,left:20},
750, function() {
$(this).css({border:2px yellow solid});
});
}

},function()
{
var src = $(this).attr('src');

if (src.indexOf(_large) != -1)
{
$(this).animate({width: w,height: 
h,top:t,left:l},750,function(){

$(this).css('position','static');
$(this).css({border:1px black solid});
$(this).attr({'src':oldsrc, 'title':'Click to 
enlarge'});
});
open = false;
}
}
);
});
[/code]

Thanks


[jQuery] Difficult to describe issue relating to selects!!!

2008-06-15 Thread fambi

We nest our form inputs into unordered lists and use jquery to
highlight the parent list item of the active input:

$(function()
{
$(ul.form).find(input,select,textarea,option,.file)
.focus
(
function()
{
$(this).parents('li').addClass('ShowGuidelines');
}
)
.blur
(
function()
{
$(this).parents('li').removeClass('ShowGuidelines');
}
);
});

One interesting problem which we're facing is that, when selecting a
select box, rather than bring down the list of options, it simply
focuses on the select box and we then need to click again to bring the
list down (i.e. 2 clicks needed instead of one!)

If the addClass is replace with css(etc.), it works fine.

Anyone have any idea what's going on???

Thanks


[jQuery] Re: Working with text

2008-06-15 Thread yo2lux

var n = this.parentNode.parentNode.id ; // return: forum-list-x  (x is
an integer).

I use this statement to extract the number:

var n = this.parentNode.parentNode.id.slice(11);

I think this is the good solution!!

On Jun 15, 6:56 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
 Aaargh, can somebody please stop Ariel ;-)

 --Klaus

 On 15 Jun., 14:55, Ariel Flesler [EMAIL PROTECTED] wrote:

  var n = +forum-list-1.slice(-1);   ;-)

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

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

   And in case you want to shorten the parseInt:

   var n = +forum-list-1.split('-').pop();

   --Klaus

   On 15 Jun., 14:24, Klaus Hartl [EMAIL PROTECTED] wrote:
var n = parseInt(/\d/.exec(forum-list-1)[0]);

Or even easier using split (if you can rely on the format of the
string) - pretty much what Ariel already showed:

var n = parseInt(forum-list-1.split('-').pop());

--Klaus

On 15 Jun., 13:18, yo2lux [EMAIL PROTECTED] wrote:

 Thanks and which is the best way to obtain the last number of string,
 for example I have:

 forum-list-1
 forum-list-2
 forum-list-3

 I need the numbers: 1, 2 or 3.

 On Jun 12, 6:44 pm, Karl Swedberg [EMAIL PROTECTED] wrote:

  And that's why Ariel is da man! Nice one.

  --Karl
  
  Karl Swedbergwww.englishrules.comwww.learningjquery.com

  On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote:

   Ooor

   var fileName = $('img').attr('src').split('/').pop();

   Cheers :)

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

   On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote:
   Hi there,

   You could do it like this:

   var path = $('img').attr('src');
   var fileName = path.slice(path.lastIndexOf('/')+1);

   --Karl
   
   Karl Swedbergwww.englishrules.comwww.learningjquery.com

   On Jun 11, 2008, at 7:36 PM, yo2lux wrote:

   path variable store the following:
   /themes/mytheme/images/logo.gif:

   var path = $('img').attr('src');

   is possible to obtain the image name without path ? I need
   logo.gif
   I need a Javascript or jQuery function to solve this?

   Thanks!- Ocultar texto de la cita -

   - Mostrar texto de la cita -

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


[jQuery] ANN: MathTran JavaScript - Google SOC and jQuery

2008-06-15 Thread jfine

Hello

You may know already that Google pays students to write open-source
software, as part of the Google Summer of Code (GSOC).

You may not know that this this year there is, sort of, a jQuery GSOC
project!  And it involves the (La)TeX typesetting system for
mathematics.  (Even if you don't care about math, perhaps read on.
The project is also about a JavaScript library for using a web
service, and the editing of structured content.)

Here's some background.  I'm a TeX expert, and have developed
http://www.mathtran.org, which makes TeX typesetting available as a
web service.  This year the TeX Users Group (http://www.tug.org) is a
GSOC mentoring organisation, and I suggested a project to write
JavaScript to use MathTran on web pages.

Christoph Hafemeister applied, and the project was accepted.
Christoph and I then decided to use jQuery as the starting point for
our work.  You can read more about it at http://mathtran.wordpress.com,
and you can try out an autocomplete demo at
http://www.mathtran.org/toys/chafemeister/autocomplete.html.

We're making use not only of jQuery but also some plugins and other
code:
fieldSelection:http://plugins.jquery.com/node/1202
markitup editor:http://markitup.jaysalvat.com/examples/html/

What we're doing with autocomplete is a little special, and so we are
not incorporating existing autocomplete code (but we are learning from
it's ideas).

If there's time we'd like to look at a MathTran plugin for an HTML
editor.  The WYM editor is a prime candidate, in part because it is
based on jQuery.
http://www.wymeditor.org/

If you're interested, or want to help out, please do contact me.

--
Jonathan
http://mathtran.wordpress.com



[jQuery] Re: Server Side jQuery

2008-06-15 Thread Nitsan Bin-Nun
I'm new here,
For what cause you want to execute jquery on the server side?

--
Nitsan

On 15/06/2008, howa [EMAIL PROTECTED] wrote:


 Currently I have only tested 2 way to do server side jquery

 1. env.js + rhino
 2. jaxer

 Both 2 methods are following John's blog


 Anyone know other ways such as other JavaScript server
 implementations?


 Thanks.



[jQuery] AJAX data inserted into DOM does not trigger click-event

2008-06-15 Thread Thasmo

Hoi guys!

I define a event trigger $('#id div a).click().

The url in the href attribute of the a tag is called via $.ajax
and the returned data is inserted into the #id element.

So, the actual HTML in the #id event is replaced
by the data AJAX response data. After the data
was inserted into the #id element, the click event
is not working anymore for HTML code which was
inserted in the #id element.

What can be the reason for this?

Thanks so much for your help!


[jQuery] Re: jQuery tabs and cookies

2008-06-15 Thread Isaak Malik
Oups, it was a mistake at my side, corrected code:

$(function()
{
  $('#tabCont  ul').tabs({fx: {opacity: 'toggle', duration: 500}, cookie:
{expires: 7, path: '/'}});
});

-- 
Isaak Malik
Web Developer


[jQuery] Re: AJAX data inserted into DOM does not trigger click-event

2008-06-15 Thread Hamish Campbell

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

On Jun 16, 4:52 am, Thasmo [EMAIL PROTECTED] wrote:
 Hoi guys!

 I define a event trigger $('#id div a).click().

 The url in the href attribute of the a tag is called via $.ajax
 and the returned data is inserted into the #id element.

 So, the actual HTML in the #id event is replaced
 by the data AJAX response data. After the data
 was inserted into the #id element, the click event
 is not working anymore for HTML code which was
 inserted in the #id element.

 What can be the reason for this?

 Thanks so much for your help!


[jQuery] Re: jQuery tabs and cookies

2008-06-15 Thread Klaus Hartl

That looks correct. Did you not forget to include the cookie plugin?

--Klaus


On 15 Jun., 18:34, Isaak Malik [EMAIL PROTECTED] wrote:
 Oups, it was a mistake at my side, corrected code:

 $(function()
 {
   $('#tabCont  ul').tabs({fx: {opacity: 'toggle', duration: 500}, cookie:
 {expires: 7, path: '/'}});

 });

 --
 Isaak Malik
 Web Developer


[jQuery] Re: I love JQuery but why is it slower than Dojo and ExtJS Core

2008-06-15 Thread timothytoe

Also, the jQuery file only has to be transfered once to each person
that used it. Then the browser just uses the cached file.

Well, that depends on a lot of things. :-)


[jQuery] Re: jQuery + Prototype on newest release (1.2.6)

2008-06-15 Thread Rey Bango


Mike  Alex,

What version of Prototype are you using? Also, are you using 
Scriptaculous as well? If so, which version?


Rey

Alex Bilbie wrote:

Bump.

I've also been having the same problem.

Cheers,

Alex


On Thu, Jun 12, 2008 at 11:48 PM, mike [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:



Hello,

I just made the jump from Prototype to jQuery and so far I'm really
enjoying it. However, some parts of my website are still using the
Prototype library and I don't have the time or resources at the moment
to recode everything using the jQuery framework.

The problem I have is that I can't seem to use both libraries on the
same page with the 1.2.6 release of jQuery. Here's a very simple
example of what I'm trying to do:

1) I load jQuery core 1.2.6
2) I load Prototype only if the page needs it (through a PHP
framework)
3) At the top of my page: after the jQuery script includes, but
before the Prototype ones (I don't think it matters?):

script type=text/javascript
   jQuery(document).ready(function($){
   var $j = jQuery;
   $j(#userImg).hide();
   //jQuery(#userImg).hide();
   });
/script

This short script should hide a div with an ID of userImg. However,
all I see is one of those two errors (they seem to appear randomly) in
the Firebug error console.

Error: [Exception... Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle]  nsresult:
0x80004005 (NS_ERROR_FAILURE)  location: JS frame :: {WEBSITE}/
jQuery/jquery.js :: anonymous :: line 871  data: no]
Source File: {WEBSITE}/jQuery/jquery.js
Line: 22

OR

Error: [Exception... Node cannot be inserted at the specified point
in the hierarchy  code: 3 nsresult: 0x80530003
(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)  location: {WEBSITE}/jQuery/
jquery.js Line: 251]
Source File: {WEBSITE}/jQuery/jquery.js
Line: 12

I tried all the methods described here (http://docs.jquery.com/
Using_jQuery_with_Other_Libraries), but with no luck. The same two
errors always pop in Firebug when using jQuery 1.2.6. http://1.2.6.

The exact same piece of code works perfectly when I load the 1.2.4
version of jQuery instead of the 1.2.6 (1.2.5 doesn't work either).

Can anyone think of a way I could fix this and use 1.2.6 (and further
versions). I would hate being stuck with an older version, especially
when updates to jQuery are frequent.

Thanks,
mike




[jQuery] Re: Server Side jQuery

2008-06-15 Thread howa



On 6月16日, 上午2時34分, Nitsan Bin-Nun [EMAIL PROTECTED] wrote:
 I'm new here,
 For what cause you want to execute jquery on the server side?


'DOM Scraping'

http://www.aptana.com/node/339


[jQuery] [validate] addWrapper bug

2008-06-15 Thread Cao Le Thang Long

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/#comment-50074
(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: [PLUGIN] Tweet! Added Twitter to your website

2008-06-15 Thread Guy Fraser
Rey Bango wrote:

 Found on Twitter:

 Announcing Tweet (http://tweet.seaofclouds.com/), a simple @jquery 
 plugin to put Twitter on your website.

 Rey...

Pity they are sticking stuff on String.prototype :( Aside from that, 
nice plugin.


[jQuery] Re: AJAX data inserted into DOM does not trigger click-event

2008-06-15 Thread Kevin Pepperman
Have you tried the listen plugin?
It works with dynamicly added content.

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

On Sun, Jun 15, 2008 at 12:52 PM, Thasmo [EMAIL PROTECTED] wrote:


 Hoi guys!

 I define a event trigger $('#id div a).click().

 The url in the href attribute of the a tag is called via $.ajax
 and the returned data is inserted into the #id element.

 So, the actual HTML in the #id event is replaced
 by the data AJAX response data. After the data
 was inserted into the #id element, the click event
 is not working anymore for HTML code which was
 inserted in the #id element.

 What can be the reason for this?

 Thanks so much for your help!




-- 
He's spending $300 million in advertising to convince people of something
he claims there is already a consensus on.--
--Think of it as going green by getting lots of green.
-Glenn Beck (CNN) about Al Gore.


[jQuery] Re: how to get jquery working inside XUL extension ?

2008-06-15 Thread Mihailo

Hi Stefan,
Why don't you use local version of the script using script tag in your
xul document like this:
script type=application/x-javascript src=jquery-1.2.3.js/ (well
put whatever version you fancy)?
You might be interested in couple of problems I ran into using jQuery
and actually one of the posts is about script injection:

http://digitalmihailo.blogspot.com/search/label/jQuery
http://digitalmihailo.blogspot.com/2008/05/make-jsonp-work-in-firefox-chrome.html

the jsonp article is interesting from the point of using script
injections since it isn't that easy and jsonp is about injecting
script in runtime.
In chrome you cannot simply inject script that is not part of the
chrome already (e.g. part of your extension). Simply put injecting a
script from web is too big security threat since in chrome any script
have all the privileges that current user running firefox has. So what
the injected script might do is read or corrupt your private data or
system files, especially if you are running firefox with admin
privileges. It is not too hard for someone with malicious intents to
fool you as being jQuery.com and actually serve you some harmful
script.
Sometimes you have to inject the script and the article will show you
how, I have another article coming along the way about making it more
secure, but script injection in chrome will never be 100% secure if
the serving server is not in your intranet.

Hope this helps.
Cheers,
Mihailo



On Jun 14, 10:54 am, Stefan Petrea [EMAIL PROTECTED] wrote:
 Hi,

 I've so far developed an extension.
 Now it's time to start using jquery in it.
 How do I include it inside the extension so that I can use it ?
 I've seen here an 
 examplehttp://www.learningjquery.com/2006/12/jquerify-bookmarklet.
 From there I see that I should do something like this in my code
       var s=document.createElement('script');
       s.setAttribute('src','http://jquery.com/src/jquery-latest.js');
       document.getElementsByTagName('body')[0].appendChild(s);
 Altough I'm not quite sure what this would do ?
 Would it include jquery library at runtime in my code so I can use it ?
 How would you do this ?
 I've also seen this notion of 'script injection' that seems similar to what
 I want to achieve.
 In particular this 
 pagehttp://leftlogic.com/lounge/articles/bookmarklet-coding/#more-18
 shows something like this.
 Has anyone tried to do this ?
 Does it work or am I trying to push a rock that will not move ?
 Either way I'm going to give it a shot,but if you've done this and might have
 any details to share please do :)

 Thank you

 --

 Stefan Petrea
 homepage     :http://perlhobby.googlecode.com/
 mobile phone : +40732070179


[jQuery] Re: Help with tabsLoad

2008-06-15 Thread keny

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 PROTECTED] wrote:

   So what is going wrong now? To me it looks like everything works as
   expected (Tabs are loading correctly and the link saying This link
   load page 3 in current tab via ajax does exactly what it says)...

   --Klaus

   On 15 Jun., 00:36, keny [EMAIL PROTECTED] wrote:

hi thanks for helping

i have upload a new version and still dont work

no sherif code in this one

   http://www.snipvideo.com/tabs/
help is very appreciate

On 14 juin, 01:58, Klaus Hartl [EMAIL PROTECTED] wrote:

 On 13 Jun., 23:17, keny [EMAIL PROTECTED] wrote:

  Thanks

  Is there a way to make a function that will work ? I am not expert 
  in
  JS like you. Maybe you can check this site that offer tab and a
  function that work to load link via ajax in there tab :

 All you need to do is *not* include the Red Sheriff tracker code
 included in the Ajax tab pages...

 --Klaus- Masquer le texte des messages précédents -

   - Afficher le texte des messages précédents -- Masquer le texte des 
   messages précédents -

 - Afficher le texte des messages précédents -


[jQuery] [validate] addWrapper bug

2008-06-15 Thread Cao Le Thang Long

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/#comment-50074
(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: jQuery + Prototype on newest release (1.2.6)

2008-06-15 Thread mike

No, the Scriptaculous library is not being loaded.

Prototype version: 1.5.1_rc3


[jQuery] Re: Getting the correct Selector code

2008-06-15 Thread Michael Geary

Doesn't that code give a not a function JavaScript error when you try to
run it? Load the page with Firebug and it should log an error on this code
when you click:

$(this).parent().parent().$(.dialog).dialog(open);

Let's break it down:

$(this) - the add SPAN
$(this).parent() - the H3
$(this).parent().parent() - the LI
$(this).parent().parent().$ - undefined (a jQuery object does not have a $
property/method).
$(this).parent().parent().$(.dialog) - error calling undefined function

I think what you're looking for may be:

$(this).parent().parent().find(.dialog).dialog(open);

-Mike

 I have a list like:
 li
 h3span class=addADD/span/h3
 div class=dialogContent 1/div
 /li
 li
 h3span class=addADD/span/h3
 div class=dialogText 2/div
 /li
 
 I want to open a dialog, which are the divs, when the ADD is clicked.
 But I only want the dialog that is in the same li tag as the 
 Add button being clicked. I though the following might work, 
 but it's not
 right:
 
 $(.add).click(function () {
 $(this).parent().parent().$(.dialog).dialog(open);
 });
 
 Shouldn't that go span - h3 - li - div (dialog)  ??? What 
 should it be?