[jQuery] Ajax only works once

2006-09-03 Thread ivan quintero
I have form elements that update an HTML table within a DIV. It's an invoices application and the each detail element (invoice items) on the invoice has a input button with that when clicked on it deletes that item.
The problem is that it works only once. I click on the button, the item is deleted, the div is updated with the new HTML. But afterwards all of the input buttons that delete the items stop working. I click on them and nothing happens. I have to refresh the web page to get that functionality again.
Why this behaviour?--  Ivan Quintero
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Thickbox 2.0 and dynamic content

2006-09-03 Thread Dylan Verheul
I think I've seen this subject before, so I thought I'd share my solution.

Case:
- I want to use Thickbox
- Some of my content is dynamically provided through AJAX
- The Thickbox urls in the AJAX content aren't thickboxed in $(document).ready()
- Thickboxing twice gives me errors

My solution:
I changed the TB_init from Thickbox to:

function TB_init(elem) {
if (!elem) elem = document;
$("a.thickbox", elem).click(function() {
var t = this.title || this.name || null;
var g = this.rel || false;
TB_show(t,this.href,g);
this.blur();
return false;
});
}

Now I can provide this function with a DOM element to search in. So
when I load content into , I can call
TB_init($("#ajaxHere")[0]).

I might even extend this by adding a $.fn.thickbox that does this for
the entire jQuery chain to make it look better and play nice with
other jQuery stuff, but I'm hoping Cody might want to add some of this
into Thickbox.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Slider in Opera

2006-09-03 Thread Stefan Petre
Yehuda Katz wrote:
> This seems to have to do with a general Opera issue with dragging. All 
> of the drag demos have the same weird glitch.
>
> On 9/3/06, *Yehuda Katz* < [EMAIL PROTECTED] > 
> wrote:
>
> The Interface slider doesn't work correctly in Opera. When you
> click on the slider, it jumps out of the constraining box.
>
> -- 
> Yehuda Katz
> Web Developer
> (ph)  718.877.1325
> (fax) 718.686.4288
>
>
>
>
> -- 
> Yehuda Katz
> Web Developer
> (ph)  718.877.1325
> (fax) 718.686.4288
> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   
I tested Interface on Opera 8.01 and was OK.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Callback

2006-09-03 Thread Yehuda Katz
AJAX callback function take the XHR request as a param. Event callbacks take the event object as a param, and the "this" variable inside the callback corresponds to the DOM Element the event is called on.
-- YehudaOn 9/3/06, Sam <[EMAIL PROTECTED]> wrote:
http://www.visualjquery.com/index.xmlIn the documentation, I don't see a description of parameters passed to callback functions.Am I missing something; are callback parameters documented elsewhere; or are there no parameters?
Sam___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
-- Yehuda KatzWeb Developer(ph)  718.877.1325(fax) 718.686.4288
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Callback

2006-09-03 Thread Sam
http://www.visualjquery.com/index.xml

In the documentation, I don't see a description of parameters passed to 
callback functions.

Am I missing something; are callback parameters documented elsewhere; or are 
there no parameters?

Sam




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Callback parameters

2006-09-03 Thread Sam
In the documentation on 

Are parameters passed to the callback functions




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] sortable problem

2006-09-03 Thread Will Jessup
List & Stephan,

I'm trying to work w/ sortables here but running across an issue 
whenever i use an FX.

http://www.willjessup.com/sandbox/jquery/sortable/hybrid2.html

If you select an item, then w/out moving it unselect it , you won't be 
able to re-select the item. Then, if you select an item under one of the 
items w/ the "change" it messes up the z-indexing.

Once i turn off any FX on sortables all is well.

Any ideas?
Will



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Semi-New jQuery Site Live

2006-09-03 Thread John Resig
> On more thing:
> jQuery Roadmap (http://jquery.com/dev/upcoming/) shows that 1.0 is 91%
> complete. This can't be right? ;-)

Well, that's sort of right - in that I haven't finished the Prototype
or IE 5 plugins, yet. However, I haven't yet created a new "1.1"
release date, so some bugs and feature requests have been labeled as
1.0, which I'll change.

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Semi-New jQuery Site Live

2006-09-03 Thread Karl Swedberg
On Sep 3, 2006, at 7:36 PM, John Resig wrote:Good catch, I've revamped the source code page completely. There's now only "latest" and Subversion Great! Now there's another issue with that page: Do you want the compressed or the uncompressed to be the recommended download? They're both labeled "compressed," but the first one links to the uncompressed version.     * Compressed Latest jQuery Recommended Download!    * Latest jQuery (Compressed) My guess is that the compressed version is the one you want to recommend, so I took the liberty of changing the Distribution section to read thus:    * Compressed Latest jQuery Recommended Download!    * Uncompressed Latest jQuery Feel free to change this to however else you might want it to be.On more thing:jQuery Roadmap (http://jquery.com/dev/upcoming/) shows that 1.0 is 91% complete. This can't be right? ;-)Karl___Karl Swedbergwww.englishrules.comwww.learningjquery.com___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Semi-New jQuery Site Live

2006-09-03 Thread John Resig
> When I click on the "source code" link in the Advanced section of the
> home page, I go to jquery.com/src. If i then click on the "Download
> jQuery" or "Uncompressed Latest jQuery" link, I still get the old
> (May 12) version of jQuery. That link should probably be changed to
> point to 1.01 or whatever the latest version number is now.

Good catch, I've revamped the source code page completely. There's now
only "latest" and Subversion.

> I would change this myself, but I haven't kept track of where the
> official version is since I've been using svn for the past month or so.

The latest version is now located at:
http://jquery.com/src/jquery-latest.js
http://jquery.com/src/jquery-latest.pack.js

It simply points to whatever the latest, stable, copy of jQuery is -
which, right now, is 1.0.1.

We'll tackle all these pages, one at a time ;-)

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Semi-New jQuery Site Live

2006-09-03 Thread Karl Swedberg
> I've just pushed proj.jquery.com -> jquery.com.

This is excellent news, John! Thanks! There seemed to be quite a bit  
of confusion among new visitors to jquery.com trying to find the  
latest source code, etc. I'm sure this will help alleviate a lot of  
that confusion.

> So, for now, just post messages to this thread and we can sort things
> out as they come in.

When I click on the "source code" link in the Advanced section of the  
home page, I go to jquery.com/src. If i then click on the "Download  
jQuery" or "Uncompressed Latest jQuery" link, I still get the old  
(May 12) version of jQuery. That link should probably be changed to  
point to 1.01 or whatever the latest version number is now.

I would change this myself, but I haven't kept track of where the  
official version is since I've been using svn for the past month or so.


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

On Sep 3, 2006, at 6:52 PM, John Resig wrote:

> Hi Everyone -
> Please, if you spot
> 'bugs', missing pages, let me know.  There's still a bunch wrong with
> it, but I felt that it was important to push this live sooner rather
> than later - since there's so much valuable information on there that
> people need to see.
>
> Nearly everything is a wiki, so you're welcome to
> touch things up too. Thanks!
>
> --John
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Semi-New jQuery Site Live

2006-09-03 Thread John Resig
Hi Everyone -

I've just pushed proj.jquery.com -> jquery.com. Please, if you spot
'bugs', missing pages, let me know.  There's still a bunch wrong with
it, but I felt that it was important to push this live sooner rather
than later - since there's so much valuable information on there that
people need to see.

So, for now, just post messages to this thread and we can sort things
out as they come in. Nearly everything is a wiki, so you're welcome to
touch things up too. Thanks!

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Anything similar to scriptaculous for JQuery

2006-09-03 Thread John Resig
There's the excellent Interface plugin for jQuery - it is a complete
Scriptaculous replacement. We were considering porting Scriptaculous
over, but once Stefan released Interface, it became apparent that
there was no longer a need to go down that path.

Interface:
http://interface.eyecon.ro/

More jQuery Plugins:
http:/proj.jquery.com/plugins/

--John

> Prototype users have the scriptaculous library for all the cool UI
> stuff. Does JQuery have an equivalent effort going on? Can scriptaculous
>   be used with JQuery or is it so intertwined with Prototype that
> decoupling the two is impossible? What moo.fx? Usable with JQuery?
> Alternatives?
>
> Thanks. Just trying to piece all of the options together.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Anything similar to scriptaculous for JQuery

2006-09-03 Thread Yehuda Katz
Yup! jQuery has the Interface library: http://interface.eyecon.roOn 9/3/06, Rey Bango <
[EMAIL PROTECTED]> wrote:Hi everyone,Prototype users have the scriptaculous library for all the cool UI
stuff. Does JQuery have an equivalent effort going on? Can scriptaculous  be used with JQuery or is it so intertwined with Prototype thatdecoupling the two is impossible? What moo.fx? Usable with JQuery?Alternatives?
Thanks. Just trying to piece all of the options together.Rey...___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)  718.877.1325(fax) 718.686.4288
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Anything similar to scriptaculous for JQuery

2006-09-03 Thread Rey Bango
Hi everyone,

Prototype users have the scriptaculous library for all the cool UI 
stuff. Does JQuery have an equivalent effort going on? Can scriptaculous 
  be used with JQuery or is it so intertwined with Prototype that 
decoupling the two is impossible? What moo.fx? Usable with JQuery? 
Alternatives?

Thanks. Just trying to piece all of the options together.

Rey...

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Slider in Opera

2006-09-03 Thread Yehuda Katz
This seems to have to do with a general Opera issue with dragging. All of the drag demos have the same weird glitch.On 9/3/06, Yehuda Katz <
[EMAIL PROTECTED]> wrote:
The Interface slider doesn't work correctly in Opera. When you click on the slider, it jumps out of the constraining box.-- Yehuda KatzWeb Developer(ph)  718.877.1325
(fax) 718.686.4288   -- Yehuda KatzWeb Developer(ph)  718.877.1325(fax) 718.686.4288 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Interface Slider in Opera

2006-09-03 Thread Yehuda Katz
The Interface slider doesn't work correctly in Opera. When you click on the slider, it jumps out of the constraining box.-- Yehuda KatzWeb Developer(ph)  718.877.1325(fax) 718.686.4288 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Announcing the new Learning jQuery blog

2006-09-03 Thread Fil
@ Yehuda Katz <[EMAIL PROTECTED]> :
> Very cool guys. And welcome to the third-party documenting jQuery club! The
> community makes us strong.

Indeed! I'm preparing a "news portal" at http://jquery.info/sedna/ (see
http://sedna.spip.org/ to see what it will look like when it is populated,
and click on http://www.jquery.info/sedna/?lang=en&age=31 to get a taste of
it in English and with several articles)

If you gals and guys have jQuery-specific RSS feeds to aggregate (your
documentation blogs, flickr and del.icio.us feeds, technorati and so on),
please pass on the feed URLs.

-- Fil


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Download > Cheat Sheet, one page , printable, quick refrence, Jquery

2006-09-03 Thread Rey Bango
Hi Nilesh,

When I try to download the PDF and open it, it generates an error. Is 
there something wrong with it?

Rey..

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Announcing the new Learning jQuery blog

2006-09-03 Thread Patrick Hall
This is a great idea, very much looking forward to following it.

Pat
-- 
http://blogamundo.net/dev

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Announcing the new Learning jQuery blog

2006-09-03 Thread Yehuda Katz
Very cool guys. And welcome to the third-party documenting jQuery club! The community makes us strong.-- YehudaOn 9/3/06, Karl Swedberg <
[EMAIL PROTECTED]> wrote:
Hey everyone,Thought I'd let you know that I just started up a blog, learningjquery.com
. As of now, it only has three entries, but I hope to add a few more each week. For the most part, it will cover basic things that can be done, how to get started, tutorials, and demos. Part of the inspiration for the blog comes from the 
www.learningmovabletype.com blog, which I found very helpful while I got started with that blogging software. The other part comes from all of you on the mailing list (including John Resig, of course) who have provided such excellent help and thoughtful discussion. 
My blog's third entry, which probably should have been the first, sums up what my two friends and I are going to try to do:Welcome to the new Learning jQuery — a multi-author weblog with the aim of sharing information about this most amazing of _javascript_ libraries. As we post entries, you might begin to notice that the three authors — Karl, Dan, and JonBob — approach jQuery, _javascript_, and life in general from three different perspectives. Our programming experience ranges from beginner to advanced, so we hope to appeal to all levels of other programmers out there as well. We'll do our best to make each entry clear, concise, and understandable, and we'll also try to place them in categories according to level of difficulty. If you have questions or critiques or suggestions for improvement, well, that's what the comments are for. Enjoy!

I hope that as we add more entries you find it interesting and useful. Please spread the word!Karl___Karl Swedberg
www.englishrules.com___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- 
Yehuda KatzWeb Developer(ph)  718.877.1325(fax) 718.686.4288 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] JQuery Bug: FF/Mac, ifModified, ResponseHeader

2006-09-03 Thread Arash Yalpani
Hi,

I have this line of code:

  $('#comments').load('/shared/fetch/forum/comments/comments.php');

When calling it in IE, FF/PC, Safari etc. everything is fine. But when 
calling the same line of code in FF/Mac, it does not work and I get an 
NS_ERROR_NOT_AVAILABLE on line 1704 in JQuery 1.0.1.:

  // Cache Last-Modified header, if ifModified mode.
  var modRes = xml.getResponseHeader("Last-Modified");

Creating a plain text file and calling it works as expected:

  
$('#comments').load('/shared/fetch/forum/comments/helloworld.html');

My quick-fix was to change it to:
   
if ( ifModified ) {
var modRes = xml.getResponseHeader("Last-Modified");
if ( ifModified && modRes ) jQuery.lastModified[url] = modRes;
}

John, what would be the right thing to do?
Cheers, Arash

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] xPath

2006-09-03 Thread John Resig
> Can I use jQuery's xPath capability to locate an element in an arbitrary XML 
> file loaded using Ajax?

Yes! For example:

$.post("test.xml",function(data){
  $("//foo/bar",data).each( ... );

  // or, with CSS:

  $("foo > bar").each( ... );
});

It's important to note that jQuery only supports a very very small
subset of the full XPath spec. More details here:
http://proj.jquery.com/docs/Base/Expression/XPath/

--John

--John

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Announcing the new Learning jQuery blog

2006-09-03 Thread Karl Swedberg
Hey everyone,Thought I'd let you know that I just started up a blog, learningjquery.com. As of now, it only has three entries, but I hope to add a few more each week. For the most part, it will cover basic things that can be done, how to get started, tutorials, and demos. Part of the inspiration for the blog comes from the www.learningmovabletype.com blog, which I found very helpful while I got started with that blogging software. The other part comes from all of you on the mailing list (including John Resig, of course) who have provided such excellent help and thoughtful discussion. My blog's third entry, which probably should have been the first, sums up what my two friends and I are going to try to do:Welcome to the new Learning jQuery — a multi-author weblog with the aim of sharing information about this most amazing of _javascript_ libraries. As we post entries, you might begin to notice that the three authors — Karl, Dan, and JonBob — approach jQuery, _javascript_, and life in general from three different perspectives. Our programming experience ranges from beginner to advanced, so we hope to appeal to all levels of other programmers out there as well. We’ll do our best to make each entry clear, concise, and understandable, and we’ll also try to place them in categories according to level of difficulty. If you have questions or critiques or suggestions for improvement, well, that’s what the comments are for. Enjoy! I hope that as we add more entries you find it interesting and useful. Please spread the word!Karl___Karl Swedbergwww.englishrules.com ___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Download > Cheat Sheet, one page , printable, quick refrence, Jquery

2006-09-03 Thread Alex Brem
Nilesh Patel wrote:
> How about this Cheat Sheet I made, based off visual jquery..

Hello Nilesh,

thanks for the sheet, I really like it. About the 2nd/back page: I think
this would be great. Maybe also with some tricks and/or often used
idioms (which would IMHO be a great help for beginners of jQuery).

Greets, Alex

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Arash Yalpani
Stefan Petre schrieb:

>I fixed this, this words are not used anymore.
>  
>
Thank you very much :)
Arash

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Download > Cheat Sheet, one page , printable, quick refrence, Jquery

2006-09-03 Thread Nilesh Patel
How about this Cheat Sheet I made, based off visual jquery..

Download (88kb) Printable One page PDF cheat sheet for Jquery below link:

http://www.define-web.com/jquery_cheat_sheet/jquery_cheat_sheet_080306_v1.pdf

hope that helps, notice, its clean and no "made by XYZ" , so use it for 
what you wish.

to do:
I am thinking about making a 2nd page (back side) that will hold extra 
helpful info such as CSS and XPath Together, and some basic examples.


printing tips:
Set printer settings to horzonal paper layout.
if needed set fit to page option in adobe acrobat.
black ink only (color not needed)

it may not perfect cheat sheet , yet it gets the work done!
enjoy,
Nilesh


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jCarousel

2006-09-03 Thread digital spaghetti
I love this plugin.  One thing I wonder if you can help with?

I would like to use this for my main navigation.  What I'd like to do
is display only 1 image at a time, which is a navigation link.  Each
time the prev/next are pressed and an image is displayed, I would like
to have a div next to it change content, so each item is desribed.
I'd like to do this with the id tag as the link title (i.e. Home) and
the title tag as the description.

What I want to know is how to I modify or use the event handlers from
the button press to include some code for changing the content of some
display tags?

Then using jq, I'll fade out the existing content, replace it using
DOM and then fade the div back in.

Thanks,
Tane

On 9/2/06, Jan Sorgalla <[EMAIL PROTECTED]> wrote:
>
>
> Justin Carter wrote:
> >
> > On 9/1/06, jsorgalla <[EMAIL PROTECTED]> wrote:
> >> Hi there,
> >> [...]
> >> Check it out at http://sorgalla.com/pages/jcarousel.html
> >> and let me know what you think.
> >
> > Looks very very polished for a first release, well done :)
> >
>
> Thanks for your response..
>
>
> Justin Carter wrote:
> >
> > To make it a bit less obtrusive for browsers with javascript turned
> > off might there be a better way to insert the Prev / Next buttons
> > after the script kicks in, instead of having to put them into the
> > HTML?
> >
> > Another reason I would consider that option is from a CMS users point
> > of view where they know very little HTML, it would save them inserting
> > the two images, because in those cases the less they need to know
> > about structural HTML the better!
> >
>
> That would restrict the flexibility of designing controls a bit i think...
> Theoretically you can use more than one control for next/prev or use
> other elements like .
>
>
> Justin Carter wrote:
> >
> > In an ideal world it would actually be nice to achieve with just a
> > class name on the unordered list, but I know that might be taking it a
> > bit too far :)
> >
>
> Thats a good suggestion. I'll keep that in mind...
>
> Thanks, Jan
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/jCarousel-tf2205628.html#a6112444
> Sent from the JQuery forum at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Stefan Petre
I fixed this, this words are not used anymore.

Michael Geary wrote:
>> Ok, I have renamed "interface" to iface on line 62. And line 74 to:
>>
>> z.iface = iface;
>>
>> Now it does not throw an error on load anymore, but I haven't 
>> tested the functionality itself, since I don't use Scale, 
>> Puff or Grow anyway. In fact, I have removed ifxscale from my 
>> packed file now.
>>
>> And I have found another error on Firefox/Mac:
>> 
>>
>> Error: missing name after . operator
>>
>> In isortables.js on line 92:
>>
>> shs.float = 'none';
>> 
>>
>>
>> But I haven't tried to change this. Excluded isortables completely...
>> 
>
> Yes, 'float' is a reserved word just like 'interface'!
>
> Sounds like the Interface code could use a good going-over looking for any
> other reserved words...
>
> -Mike
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>   


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Compilation of jQuery add-ons

2006-09-03 Thread Karl Swedberg
Here is a (temporary?) URL of the most complete list that I know of:

http://proj.jquery.com/docs/Plugins/

Karl
___
Karl Swedberg
www.englishrules.com


On Sep 3, 2006, at 12:29 PM, Sam wrote:

> Is there a list of available 3rd party add-ons (e.g., behaviors,  
> carousel, etc...) built on jQuery?
>
> Sam
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Dave Benjamin
On Sun, 3 Sep 2006, Arash Yalpani wrote:

> And I have found another error on Firefox/Mac:
> 
>
> Error: missing name after . operator
>
> In isortables.js on line 92:
>
>shs.float = 'none';
> 

"float" is a reserved word in JavaScript. The following is equivalent:

shs['float'] = 'none';

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Michael Geary
> Ok, I have renamed "interface" to iface on line 62. And line 74 to:
> 
> z.iface = iface;
> 
> Now it does not throw an error on load anymore, but I haven't 
> tested the functionality itself, since I don't use Scale, 
> Puff or Grow anyway. In fact, I have removed ifxscale from my 
> packed file now.
> 
> And I have found another error on Firefox/Mac:
> 
> 
> Error: missing name after . operator
> 
> In isortables.js on line 92:
> 
> shs.float = 'none';
> 
> 
> 
> But I haven't tried to change this. Excluded isortables completely...

Yes, 'float' is a reserved word just like 'interface'!

Sounds like the Interface code could use a good going-over looking for any
other reserved words...

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Arash Yalpani
Hi Michael, Hi Stefan,

Michael Geary schrieb:

>You could edit the code and change that word to see if it fixes it. The
>function in question begins at line 62 of ifxscale.js. Try a global replace
>and change "interface" to something else, then run the code through Packer
>again.
>  
>

Ok, I have renamed "interface" to iface on line 62. And line 74 to:

z.iface = iface;

Now it does not throw an error on load anymore, but I haven't tested the 
functionality itself, since I don't use Scale, Puff or Grow anyway. In 
fact, I have removed ifxscale from my packed file now.

And I have found another error on Firefox/Mac:


Error: missing name after . operator

In isortables.js on line 92:

shs.float = 'none';



But I haven't tried to change this. Excluded isortables completely...

Cheers, Arash



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Michael Geary
> >"interface" is a reserved word.
> >
> >http://javascript.about.com/library/blreserved.htm

> I guessed somethink like this already...
> 
> Stefan (Petre), is there any quick fix available / possible? 
> :-) Thanks, Arash

You could edit the code and change that word to see if it fixes it. The
function in question begins at line 62 of ifxscale.js. Try a global replace
and change "interface" to something else, then run the code through Packer
again.

-Mike


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Arash Yalpani
Hi Dave,

>"interface" is a reserved word.
>
>http://javascript.about.com/library/blreserved.htm
>  
>
I guessed somethink like this already...

Stefan (Petre), is there any quick fix available / possible? :-)
Thanks,
Arash

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Compilation of jQuery add-ons

2006-09-03 Thread Rafael Santos
hmm... ive tagged some samples, demos, etc ... all jquery relatedhttp://del.icio.us/shanex/jquery =)2006/9/3, Sam <
[EMAIL PROTECTED]>:Is there a list of available 3rd party add-ons (e.g., behaviors, carousel, etc...) built on jQuery?
Sam___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Compilation of jQuery add-ons

2006-09-03 Thread Sam
Is there a list of available 3rd party add-ons (e.g., behaviors, carousel, 
etc...) built on jQuery?

Sam




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] xPath

2006-09-03 Thread Christof Donat
Hi,

> Can I use jQuery's xPath capability to locate an element in an arbitrary
> XML file loaded using Ajax?

Yes:

$('/my/[EMAIL PROTECTED]',XMLDOMDocument)

Christof

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Dave Methvin
> On the JavaScript-Console, the cursor points to "...,interface,...".

"interface" is a reserved word.

http://javascript.about.com/library/blreserved.htm


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] xPath

2006-09-03 Thread Sam
Newbie question:

Can I use jQuery's xPath capability to locate an element in an arbitrary XML 
file loaded using Ajax?

Sam





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Interface Library, Firefox on Mac

2006-09-03 Thread Arash Yalpani
Hi all,

I have just started to test my software on different platforms, 
including Mac. Now I have realized, that on Firefox/Mac, the interface 
library throws this error on load:

---

Error: missing formal parameter
Line: 8, Column: 34

Source:

duration,from,to,restore,callback,interface,type,transition){if(!jQuery.fxCheckTag(e)){jQuery.dequeue(e,\'interfaceFX\');return
 false}var 
z=this;z.el=jQuery(e);z.from=parseInt(from)||100;z.to=parseInt(to)||100;z.transition=transition||\'original\';z.duration=

---

On the JavaScript-Console, the cursor points to "...,interface,...".

Im am using a packed/compiled version of Interface, together with JQuery 
1.0.1.
Any ideas?

Thanks & Cheers, Arash

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] eval.call( window,jscode) does not work in IE

2006-09-03 Thread Francisco Brito
er, "apply" can't be called for execScript.BritoOn 9/3/06, Francisco Brito <[EMAIL PROTECTED]
> wrote:eval can't be called for execScript, but eval is a method of the window you want your scripts evaluated on. That's why I was using 
self.eval:(window.execScript || self.eval)(this.text || this.textContent || this.innerHTML
 || "");BritoOn 9/2/06, John Resig <
[EMAIL PROTECTED]> wrote:
I created a ticket for this issue here:http://proj.jquery.com/dev/bugs/bug/171/I'll get to it ASAP.
--JohnOn 9/1/06, ashutosh bijoor <
[EMAIL PROTECTED]> wrote:> That's IT, Francisco!> That does the trick.> In jquery svn, we need to change the following lines:> Line number 4910:>> eval.call

( window, this.text || this.textContent ||> this.innerHTML || "" );> should be changed to>   {var src="" this.text || this.textContent || this.innerHTML ||> "";

>window.evalScript?window.evalScript(src):eval.apply(window,src);}>> Unfortunately this does not work:>> (window.evalScript?window.evalScript:eval).apply(window,this.text> || 
this.textContent || this.innerHTML || "");>> Similarly, line 5134:> if ( type == "script" ) eval.call( window, data );> should be changed to:> if ( type == "script" )
> {window.evalScript?window.evalScript(data):eval.call( window, data );}>> John, pls do the needful.>> Thanks> Regards> Ashutosh> On 9/1/06, Francisco Brito <
[EMAIL PROTECTED]> wrote:> >> > Use window.execScript for IE.> >
> > (some switch would be needed, such as:)> > (window.execScript
 || self.eval)(script);> >> > cheers> >> > Brito> >> >> >> > On 9/1/06, ashutosh bijoor <
[EMAIL PROTECTED]
> wrote:> > >> > > The solution suggested earlier for executing _javascript_ code embedded in> HTML returned by an ajax call by using eval.call(window,...) works great in> FF, but not in IE6.
> > > eval.call(window,jscode) still executes in the context of the block in> which eval is called. Hence, any functions that are defined in the loaded> _javascript_ are not available outside.

> > >> > > i tried all kinds of things to get around this such as :> > > with (window) {> > > eval(jscode);> > > }> > >> > > I thought maybe the prototype guys have cracked this problem, but alas -
> they do not even do the eval.call (window,...) so I expect their code will> not even work in FF.> > >> > > Any suggestions?> > > How can we change the execution context of eval?
> > >> > > Regards> > > Ashutosh> > >> > >> > >> > > On 8/17/06, ashutosh bijoor <
[EMAIL PROTECTED]
> wrote:> > > >> > > > On a related issue to load, I was running into trouble with the> embedded script execution that jquery does by default as follows:> > > >
> > > > // Execute all the scripts inside of the newly-injected HTML> > > > $("script", self).each(function(){> > > > eval( this.text || 
this.textContent || this.innerHTML ||> "");> > > > });> > > >> > > > I noticed in my tests in FF 1.5, that if there are any functions> defined in the script tags, these functions have scope only in the block
> containing the eval - in this case, the callback function for each, and> hence these are unavailable in the global scope.> > > >> > > > To circumvent this problem, I did the following:
> > > >> > > > // Execute all the scripts inside of the newly-injected HTML> > > > $("script", self).each(function(){> > > >   
eval.call(window,this.text || this.textContent> || this.innerHTML || "");> > > > });> > > >> > > > This solves the problem of making the scripts globally scoped.
> > > >> > > > I also noticed during my tests that the scripts which loaded external> js files were also giving me trouble. But before I suggest my solution for> the same, I'd like some inputs on whether this problem is genuine.
> > > >> > > > To illustrate the above problems, assume we make an ajax call as> follows:> > > > $('#mydiv').load('test.html');> > > >> > > > and 
test.html contained:> > > >> > > > 
> > > > function myfunc() {
> > > > alert("Hi");
> > > > }
> > > > > > > >

Re: [jQuery] eval.call( window,jscode) does not work in IE

2006-09-03 Thread Francisco Brito
eval can't be called for execScript, but eval is a method of the window you want your scripts evaluated on. That's why I was using self.eval:(window.execScript || self.eval)(this.text || this.textContent || this.innerHTML
 || "");BritoOn 9/2/06, John Resig <[EMAIL PROTECTED]> wrote:
I created a ticket for this issue here:http://proj.jquery.com/dev/bugs/bug/171/I'll get to it ASAP.--JohnOn 9/1/06, ashutosh bijoor <
[EMAIL PROTECTED]> wrote:> That's IT, Francisco!> That does the trick.> In jquery svn, we need to change the following lines:> Line number 4910:>> eval.call
( window, this.text || this.textContent ||> this.innerHTML || "" );> should be changed to>   {var src="" this.text || this.textContent || this.innerHTML ||> "";
>window.evalScript?window.evalScript(src):eval.apply(window,src);}>> Unfortunately this does not work:>> (window.evalScript?window.evalScript:eval).apply(window,this.text> || 
this.textContent || this.innerHTML || "");>> Similarly, line 5134:> if ( type == "script" ) eval.call( window, data );> should be changed to:> if ( type == "script" )
> {window.evalScript?window.evalScript(data):eval.call( window, data );}>> John, pls do the needful.>> Thanks> Regards> Ashutosh> On 9/1/06, Francisco Brito <
[EMAIL PROTECTED]> wrote:> >> > Use window.execScript for IE.> >> > (some switch would be needed, such as:)> > (window.execScript
 || self.eval)(script);> >> > cheers> >> > Brito> >> >> >> > On 9/1/06, ashutosh bijoor <[EMAIL PROTECTED]
> wrote:> > >> > > The solution suggested earlier for executing _javascript_ code embedded in> HTML returned by an ajax call by using eval.call(window,...) works great in> FF, but not in IE6.
> > > eval.call(window,jscode) still executes in the context of the block in> which eval is called. Hence, any functions that are defined in the loaded> _javascript_ are not available outside.
> > >> > > i tried all kinds of things to get around this such as :> > > with (window) {> > > eval(jscode);> > > }> > >> > > I thought maybe the prototype guys have cracked this problem, but alas -
> they do not even do the eval.call (window,...) so I expect their code will> not even work in FF.> > >> > > Any suggestions?> > > How can we change the execution context of eval?
> > >> > > Regards> > > Ashutosh> > >> > >> > >> > > On 8/17/06, ashutosh bijoor <[EMAIL PROTECTED]
> wrote:> > > >> > > > On a related issue to load, I was running into trouble with the> embedded script execution that jquery does by default as follows:> > > >
> > > > // Execute all the scripts inside of the newly-injected HTML> > > > $("script", self).each(function(){> > > > eval( this.text || 
this.textContent || this.innerHTML ||> "");> > > > });> > > >> > > > I noticed in my tests in FF 1.5, that if there are any functions> defined in the script tags, these functions have scope only in the block
> containing the eval - in this case, the callback function for each, and> hence these are unavailable in the global scope.> > > >> > > > To circumvent this problem, I did the following:
> > > >> > > > // Execute all the scripts inside of the newly-injected HTML> > > > $("script", self).each(function(){> > > >   
eval.call(window,this.text || this.textContent> || this.innerHTML || "");> > > > });> > > >> > > > This solves the problem of making the scripts globally scoped.
> > > >> > > > I also noticed during my tests that the scripts which loaded external> js files were also giving me trouble. But before I suggest my solution for> the same, I'd like some inputs on whether this problem is genuine.
> > > >> > > > To illustrate the above problems, assume we make an ajax call as> follows:> > > > $('#mydiv').load('test.html');> > > >> > > > and 
test.html contained:> > > >> > > > 
> > > > function myfunc() {
> > > > alert("Hi");
> > > > }
> > > > > > > >

Re: [jQuery] TextMate Bundle for jQuery - updated!

2006-09-03 Thread Jörn Zaefferer
Karl Swedberg wrote:
>  I've sent a couple emails directly to that address because, while 
> jQuery-related, they aren't really mailing-list material.
I guess you are not the only one. It may take a week, but eventually you 
should get an answer :-)

-- Jörn


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Synchronizing

2006-09-03 Thread Jörn Zaefferer
Thanks Franck, John and Dave. All three solutions are quite interessting.

> Neil Mix has released a library that lets you write Javascript code
> just like that:
> http://www.neilmix.com/narrativejs/doc/index.html
I guess this one could be integrated into a build process like the one 
used by jQuery. Concat source, compile narrativejs, pack... Makes 
writing the code itself most convienent.

-- Jörn

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Bugs in 1 and 1.01

2006-09-03 Thread jquery
Well, I've always tended to avoid using blind regexes to perform class  
additions and removals and opted for an array based solution instead.  
Here's my (untested) addClass, removeClass solution as it would appear  
replacing the current system:

jQuery.extend({
  className: {
   add: function(o,c){
if (jQuery.className.has(o,c)) return;
var classNames = o.className.replace(/^\s+|\s+$/g,'').split(/\s+/);
classNames.push(c);
return o.className = classNames.join(' ');
   },
   remove: function(o,c){
if (jQuery.className.has(o,c)) {
 var result = [];
 var classNames = o.className.replace(/^\s+|\s+$/g,'').split(/\s+/);
 for (var i = 0; i < classNames.length; ++i)
  if (classNames[i] != c)
   result.push(classNames[i]);
 o.className = result.join(' ');
}
return !o.className ? false : o.className;
   },
   has: function(e,a) {
if ( e.className != undefined )
 e = e.className;
return new RegExp("(^|\\s)" + a + "(\\s|$)").test(e);
   }
  }
});

I've never had problems with unwanted spaces before or after  
classNames with this code but it's probably heavier than the simple  
regexes in the current system.

-blair

Quoting Matthew Delmarter <[EMAIL PROTECTED]>:

> Hi John,
>
> I just noticed the removeClass problem in IE tonight as well. This code was
> not consistently working:
>
> $("#element").find("table").removeClass("active");
>
> After looking back in the mailing list I came upon this description of the
> problem:
>
> "Hi there, I found this little bug in jQuery that prevents removeClass from
> working when there is a space just before the name of the class. Eg it will
> not work on this element: 
>
> The funny thing is that jQuery is the culprit creating the space: It is left
> there when you apply removeClass to the first of two or more classes on an
> element."
>
> I didn't exactly understand the description 100%, but as a result I tried
> running the following code:
>
>   $("#element").find("table").removeClass("active");
>   $("#element").find("table").removeClass(" active");
>
> This behaves perfectly in IE.
>
> I hope this may help narrow down the problem and provide others with a
> short-term solution...
>
> Regards,
>
> Matthew Delmarter
>
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>> Behalf Of Andrew Buzzell
>> Sent: Sunday, 3 September 2006 1:33 a.m.
>> To: discuss@jquery.com
>> Subject: Re: [jQuery] Bugs in 1 and 1.01
>>
>>
>> Great! I could have sworn some of the docs and visualjquery (nice work
>> Yehuda) still had set yesterday, but I'm seeing attr now.
>>
>> When I'm debugging jquery problems, I have a habit of switching between
>> three or four different versions I have kicking around, and I know one
>> of them did work with toggle/remove on multiple classes. I'll see if I
>> can find it.
>>
>>
>>
>>
>>
>> John Resig wrote:
>> >> It seems that set (both name:value and hash) is not working, as well as
>> >> removeclass on multiple classes (and, of course, toggleclass with
>> >> multiple classes).
>> >
>> > In 1.0, .set is now .attr - I made this particular change as it was
>> > much clearer, and now affords you with the ability to do:
>> >
>> > $("div").attr("height")
>> >
>> > to get the height of the first element matched (for example)
>> >
>> > I'm not sure if removeClass and toggleClass ever worked on multiple
>> > classes - but if they did, cool :-) I'll have to see if I can get
>> > those features back in.
>> >
>> > --John
>> >
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Bugs in 1 and 1.01

2006-09-03 Thread Matthew Delmarter
Hi John,

I just noticed the removeClass problem in IE tonight as well. This code was
not consistently working:

$("#element").find("table").removeClass("active");

After looking back in the mailing list I came upon this description of the
problem:

"Hi there, I found this little bug in jQuery that prevents removeClass from
working when there is a space just before the name of the class. Eg it will
not work on this element: 

The funny thing is that jQuery is the culprit creating the space: It is left
there when you apply removeClass to the first of two or more classes on an
element."

I didn't exactly understand the description 100%, but as a result I tried
running the following code:

$("#element").find("table").removeClass("active");
$("#element").find("table").removeClass(" active");

This behaves perfectly in IE.

I hope this may help narrow down the problem and provide others with a
short-term solution...

Regards,

Matthew Delmarter
 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Andrew Buzzell
> Sent: Sunday, 3 September 2006 1:33 a.m.
> To: discuss@jquery.com
> Subject: Re: [jQuery] Bugs in 1 and 1.01
> 
> 
> Great! I could have sworn some of the docs and visualjquery (nice work
> Yehuda) still had set yesterday, but I'm seeing attr now.
> 
> When I'm debugging jquery problems, I have a habit of switching between
> three or four different versions I have kicking around, and I know one
> of them did work with toggle/remove on multiple classes. I'll see if I
> can find it.
> 
> 
> 
> 
> 
> John Resig wrote:
> >> It seems that set (both name:value and hash) is not working, as well as
> >> removeclass on multiple classes (and, of course, toggleclass with
> >> multiple classes).
> >
> > In 1.0, .set is now .attr - I made this particular change as it was
> > much clearer, and now affords you with the ability to do:
> >
> > $("div").attr("height")
> >
> > to get the height of the first element matched (for example)
> >
> > I'm not sure if removeClass and toggleClass ever worked on multiple
> > classes - but if they did, cool :-) I'll have to see if I can get
> > those features back in.
> >
> > --John
> >
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/