[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

[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

[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

[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] 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

[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

[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

[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

[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

[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

[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

[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

[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

[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:

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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]

[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:

[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,

[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() {

[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

[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

[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

[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

[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

[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,

[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]

[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

[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

[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

[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) {

[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

[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