Re: [jQuery] Shopping Cart Demo?

2006-09-16 Thread Sam Collett
On 17/09/06, Gordon Heydon <[EMAIL PROTECTED]> wrote: > Hi, > > Drupal's E-Commerce is going to be implementing a AJAX shopping cart > using jquery for the next release. > > However it is a pity that the interface plugin isn't released under GPL > as it means that I can't add it to the E-Commerce C

Re: [jQuery] Shopping Cart Demo?

2006-09-16 Thread Stefan Petre
John Resig wrote: >> I do not know, but is the interface author going to follow the same path >> as jQuery and dual license. I would make it easy for the Drupal module >> developers to include this into Drupal. (This would also be the same for >> other plugins) >> > > I talked with Stefan, he

Re: [jQuery] Shopping Cart Demo?

2006-09-16 Thread Gordon Heydon
Hi, John Resig wrote: >> I do not know, but is the interface author going to follow the same path >> as jQuery and dual license. I would make it easy for the Drupal module >> developers to include this into Drupal. (This would also be the same for >> other plugins) > > I talked with Stefan, he wi

Re: [jQuery] Shopping Cart Demo?

2006-09-16 Thread John Resig
> I do not know, but is the interface author going to follow the same path > as jQuery and dual license. I would make it easy for the Drupal module > developers to include this into Drupal. (This would also be the same for > other plugins) I talked with Stefan, he will be switching Interface to a

Re: [jQuery] Shopping Cart Demo?

2006-09-16 Thread Gordon Heydon
Hi, Drupal's E-Commerce is going to be implementing a AJAX shopping cart using jquery for the next release. However it is a pity that the interface plugin isn't released under GPL as it means that I can't add it to the E-Commerce CVS, so it will be a little bit fiddly to install. I do not kno

Re: [jQuery] Shopping Cart Demo?

2006-09-16 Thread Rey Bango
Thanks John, Yep, I know that Interface has DnD but if you take a glance at my email again, the bigger task is the dynamic creation of the form fields that need to be created upon the dropping of an item or by clicking the "Add" link. If I drop an item record into the cart container, I need t

Re: [jQuery] Drop Cap help - how to remove a single character?

2006-09-16 Thread Karl Swedberg
On Sep 16, 2006, at 8:48 PM, John Resig wrote: > Maybe something like this? > > function swap_letter() { > var firstP = $('#main-content p:first-child')[0]; > var text = firstP.innerHTML; > > if ( text ) { > firstP.innerHTML = text.slice(1). > $('') > .src('/images/alphabet/'

Re: [jQuery] Shopping Cart Demo?

2006-09-16 Thread John Resig
I guess you haven't seen Interface yet - http://interface.eyecon.ro/ It has everything you need to build a full DnD UI. --John On 9/16/06, Rey Bango <[EMAIL PROTECTED]> wrote: > Does anyone have any shopping cart code that use JQuery that I could use > for one of my projects? This is for a back-

Re: [jQuery] Shopping Cart Demo?

2006-09-16 Thread Rey Bango
Anyone? Rey Bango wrote: > Does anyone have any shopping cart code that use JQuery that I could use > for one of my projects? This is for a back-end phone order page and for > internal customer service reps. > > The reps would be able to search for a product and either DnD the item > into the c

Re: [jQuery] How to get the browser client width and height

2006-09-16 Thread limodou
On 9/17/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: > don't ever do browser sniffing if you want actually do object detection. > furthermore I wouldn't automatically assume that there is > document.documentElement (IE in Standards Mode only!)... > > > My proposal: > > $.clientCoords = function() { >

Re: [jQuery] New plugin: cookie

2006-09-16 Thread Klaus Hartl
Klaus Hartl schrieb: >> Perhaps an option to define a date object for expires as well? >> >> var myDate = new Date(); >> myDate.setTime(myDate.getTime() + 30 * 60 * 60 * 1000); >> $.cookie('username', 'fred', {expires: myDate}); > > Sam, > > sounds reasonable to me. I will add that. Updated th

Re: [jQuery] Drop Cap help - how to remove a single character?

2006-09-16 Thread John Resig
Maybe something like this? function swap_letter() { var firstP = $('#main-content p:first-child')[0]; var text = firstP.innerHTML; if ( text ) { firstP.innerHTML = text.slice(1). $('') .src('/images/alphabet/' + text[0].toLowerCase() + '.gif') .addClass('fancy-letter

Re: [jQuery] tweenbox - image gallery

2006-09-16 Thread JFSIII
Will, Did you contact Cody about adding some of the features to ThickBox? I like the transitions between images and the next/previous buttons, but you're missing some great features from ThickBox. For instance, I'd like to see you add ThickBox's support of 'rel="group_name"' to automaticall

[jQuery] Drop Cap help - how to remove a single character?

2006-09-16 Thread Karl Swedberg
Hi folks,I'm trying to convert a little drop cap thing that I had done in DOM scripting to jQuery. Adding the drop cap image has been incredibly easy, but I'm stumped on how to remove the single letter of text that the image is replacing. I'm sure this is really simple, but I'm just not getting it,

Re: [jQuery] events on plugins

2006-09-16 Thread Olivier Percebois-Garve
Thanks a lot You're right now I'm trying to retrive the name of the current field but "this" seem to be nothing e.g "{}" Any thoughts ? $.fn.checkform = function() {   this.bind("click", function(){        msg='';                        $("input.check_empty").eac

Re: [jQuery] events on plugins

2006-09-16 Thread Michael Geary
> > $.fn.checkform = function() { > > $(this).bind("click", function(){alert("it works");} ); > > }; > > > > What am I doing wrong ? > Ok I got it: > > $.fn.checkform = function() { >return this.each(function(){ > $(this).bind("click", function(){alert("it works"

Re: [jQuery] New plugin: cookie

2006-09-16 Thread Klaus Hartl
> Perhaps an option to define a date object for expires as well? > > var myDate = new Date(); > myDate.setTime(myDate.getTime() + 30 * 60 * 60 * 1000); > $.cookie('username', 'fred', {expires: myDate}); Sam, sounds reasonable to me. I will add that. -- Klaus

Re: [jQuery] New plugin: cookie

2006-09-16 Thread Sam Collett
On 16/09/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Hi all, > > I made a cookie plugin and added it to SVN. Contrary to my latest mail > regarding this I made the plugin in a more jQuery style, there's only > one basic $.cookie function. > > Read a cookie: $.cookie('the_cookie'); > > Set a cookie

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread Matt Stith
Or also, dunno why i didnt think of this, just use this:.mousein(function() {//do stuff});duh...On 9/16/06, Rafael Santos < [EMAIL PROTECTED]> wrote:luv ya =) 2006/9/16, Matt Stith <[EMAIL PROTECTED]>: .hover(1,2) is the same thing as.hover(1).mouseout(2)the 2nd argument of hover is what to do on

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread Rafael Santos
luv ya =)2006/9/16, Matt Stith <[EMAIL PROTECTED]>: .hover(1,2) is the same thing as.hover(1).mouseout(2)the 2nd argument of hover is what to do on mouseOut. If you still dont want that, then you could just do this.hover(function(){//do stuff },function(){});On 9/16/06, Klaus Hartl < [EMAIL PROTEC

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread Matt Stith
try http://www.visualjquery.com/That site is much better and prettier to look through :)On 9/16/06, Rafael Santos <[EMAIL PROTECTED]> wrote: hmm thx... =)i was trying to look for documentation @ jquery.com But it was kind of down... 2006/9/16, Klaus Hartl < [EMAIL PROTECTED]>:Matt Stith schrieb: >

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread Matt Stith
.hover(1,2) is the same thing as.hover(1).mouseout(2)the 2nd argument of hover is what to do on mouseOut. If you still dont want that, then you could just do this.hover(function(){//do stuff },function(){});On 9/16/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: Matt Stith schrieb:> I beat you to it ;)H

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread Rafael Santos
hmm thx... =)i was trying to look for documentation @ jquery.com But it was kind of down...2006/9/16, Klaus Hartl < [EMAIL PROTECTED]>:Matt Stith schrieb:> I beat you to it ;) Haha, to letting hover take one argument? Because I just wanted topropose that if hover has only one argument than it shoul

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread Klaus Hartl
Matt Stith schrieb: > I beat you to it ;) Haha, to letting hover take one argument? Because I just wanted to propose that if hover has only one argument than it should use this function for over and out... Not sure if thats really useful. -- Klaus _

Re: [jQuery] New plugin: cookie

2006-09-16 Thread Klaus Hartl
> Delete a cookie: $.cookie('name', '', -1); Sorry, another ups. This should read: $.cookie('name', '', {expires: -1}); Sorry, Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] events on plugins

2006-09-16 Thread Olivier Percebois-Garve
Ok I got it: $.fn.checkform = function() { return this.each(function(){ $(this).bind("click", function(){alert("it works");} ); }); }; ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread Matt Stith
I beat you to it ;)On 9/16/06, John Resig <[EMAIL PROTECTED]> wrote: That's because you didn't pass a second argument in to .hover()$("#menu li a")  .hover(function(){  $(this).parent().background("red");  }, function(){  $(this).parent().background("black");   });--JohnOn 9/16/06, Rafael S

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread Matt Stith
You have to supply an out functions. hover takes 2 parameters, in and out, like this: .hover(in, out);You dont have an out function, so jquery is trying to call a function that doesnt exist. On 9/16/06, Rafael Santos <[EMAIL PROTECTED]> wrote: Here are the lines.after I move the cursor out of i ge

Re: [jQuery] New plugin: cookie

2006-09-16 Thread Klaus Hartl
ups, should read: $.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true}); btw, expires is the number of days until expiration... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss

Re: [jQuery] [jquery] g has no properties

2006-09-16 Thread John Resig
That's because you didn't pass a second argument in to .hover() $("#menu li a") .hover(function(){ $(this).parent().background("red"); }, function(){ $(this).parent().background("black"); }); --John On 9/16/06, Rafael Santos <[EMAIL PROTECTED]> wrote: > Here are the lines. > af

[jQuery] events in plugins

2006-09-16 Thread Olivier Percebois-Garve
hi I'm starting with jquery and I want i a plugin to be bound to an event : $(document).ready(function(){ $("[EMAIL PROTECTED]'submit']").checkform(); }); my plugin: $.fn.checkform = function() { $(this).bind("click", function(){alert("it works");} ); };

Re: [jQuery] New plugin: cookie

2006-09-16 Thread Rey Bango
Awesome Klaus!!! haha. And to think people actually questioned why I wanted some like this. hehe. Thanks for taking the ball bud. Rey... Klaus Hartl wrote: > Hi all, > > I made a cookie plugin and added it to SVN. Contrary to my latest mail > regarding this I made the plugin in a more jQuery s

[jQuery] [dimensions] innerWidth and innerHeight bug

2006-09-16 Thread Brandon Aaron
In IE if there are no borders the innerWidth and innerHeight functions will cause a NaN result. I went ahead and created a bug report with the solution [1]. BTW ... I tried to attach the diff but it just errored out. Any chance of getting the trac fixed so that it is easier to include patches, exa

Re: [jQuery] New plugin: cookie

2006-09-16 Thread Will Jessup
Klaus , Very sweet. Will > Hi all, > > I made a cookie plugin and added it to SVN. Contrary to my latest mail > regarding this I made the plugin in a more jQuery style, there's only > one basic $.cookie function. > > Read a cookie: $.cookie('the_cookie'); > > Set a cookie: $.cookie('the_cookie'

[jQuery] New plugin: cookie

2006-09-16 Thread Klaus Hartl
Hi all, I made a cookie plugin and added it to SVN. Contrary to my latest mail regarding this I made the plugin in a more jQuery style, there's only one basic $.cookie function. Read a cookie: $.cookie('the_cookie'); Set a cookie: $.cookie('the_cookie', 'the_value'); Set a cookie with all ava

[jQuery] [jquery] g has no properties

2006-09-16 Thread Rafael Santos
Here are the lines.after I move the cursor out of i get the error: "g has no properties"$(document).ready( function(){    $("#menu li a").hover( function(){    $(this).parent().background("red");    });     //$("#menu li a").mouseout( function(){    $(this).parent().background("black");    });});/

[jQuery] Shopping Cart Demo?

2006-09-16 Thread Rey Bango
Does anyone have any shopping cart code that use JQuery that I could use for one of my projects? This is for a back-end phone order page and for internal customer service reps. The reps would be able to search for a product and either DnD the item into the cart or click on an icon that will add

Re: [jQuery] a syntax issue

2006-09-16 Thread John Resig
> this works, but it's too much code, I would dream of having a one-liner: > > $('[EMAIL PROTECTED]').after(' ['+this.hreflang+']'); > > It doesn't work (or, not this way), because 'this' is not the current DOM > node, but the HTMLDocument itself. That is correct. The only other option would be

Re: [jQuery] jTip problem (flickering)

2006-09-16 Thread John Resig
> >It works fine in FF here. In IE too, though its a bit slow. Opera lets > >the tooltips flicker like hell, when hovering the icons. > > > what you have seen in Opera happens in FF too (sometimes) :-( Hmm.. I can't seem to duplicate it in Firefox either. (btw - Nice to see you using jQuery, Aras

Re: [jQuery] Test suite refactoring

2006-09-16 Thread John Resig
Great work Jörn, I see the eventTesting bug - related to .load(Function). I'll add that to the pile :-) Thanks. I suspect that we could probably even optomize the tests further, by including all the tests directly in the HTML file itself (or even running the tests using an XSLT file). But that's

[jQuery] a syntax issue

2006-09-16 Thread Fil
Hi, I'm making the hreflang attribute visible ; css would be : a[hreflang]:after { content: "\a0[" attr(hreflang) "]"; } but it doesn't work on MSIE, so I try the jQuery way: $('[EMAIL PROTECTED]').each(function(){ $(this).after( ' ['+this.hreflang+']' ); }); this

Re: [jQuery] jTip problem (flickering)

2006-09-16 Thread Arash Yalpani
Hi Jörn, Jörn Zaefferer schrieb: >It works fine in FF here. In IE too, though its a bit slow. Opera lets >the tooltips flicker like hell, when hovering the icons. > > what you have seen in Opera happens in FF too (sometimes) :-( Cheers, Arash ___ jQ

Re: [jQuery] jTip problem (flickering)

2006-09-16 Thread Jörn Zaefferer
Arash Yalpani schrieb: > Anyone having similar problems? Any ideas? > It works fine in FF here. In IE too, though its a bit slow. Opera lets the tooltips flicker like hell, when hovering the icons. -- Jörn ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Test suite refactoring

2006-09-16 Thread Jörn Zaefferer
Stefan Petre schrieb: > 15 wrap(String) (1, 2, 3) > 3 Died on test #3: [Exception... "Node cannot be inserted at the > specified point in the hierarchy" code: "3" nsresult: "0x80530003 > (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)" location: > "http://joern.jquery.com/dist/jquery.js Line: 626"] > > 34

[jQuery] jTip problem (flickering)

2006-09-16 Thread Arash Yalpani
Hi all, I have a strange problem with jTip. On this page, you can see some yellow "?"-symbols: http://newsride.org/users/arash/ When you mouseover them, jTip should open up and show a message downloaded from the server. Sometimes - NOT always - when opening the page in Firefox, the jTip-Layer

Re: [jQuery] [Interface]

2006-09-16 Thread Stefan Petre
Interface does not alter function like fadeIn/out, animate. Alter the fx function used like myfx = new fx(); Brandon Aaron wrote: > I would like to animate {opacity: 'toggle'} but with the transitions > provided by the Interface plugin. I've looked but I don't see where > Interface overwrites th

Re: [jQuery] Test suite refactoring

2006-09-16 Thread Jörn Zaefferer
Patrick Hall schrieb: > Hi, > > Not sure if this is related to your refactoring but there's a missing > backslash on the end of line 13 in the Makefile: > > 12 ${SRC_DIR}/fx/*\ > 13 ${SRC_DIR}/ajax/* ← right there > 14 ${SRC_DIR}/outro.js\ > Yes, that was r

Re: [jQuery] How to get the browser client width and height

2006-09-16 Thread Klaus Hartl
don't ever do browser sniffing if you want actually do object detection. furthermore I wouldn't automatically assume that there is document.documentElement (IE in Standards Mode only!)... My proposal: $.clientCoords = function() { var dimensions = {width: 0, height: 0}; if (document.

Re: [jQuery] Test suite refactoring

2006-09-16 Thread Patrick Hall
Hi, Not sure if this is related to your refactoring but there's a missing backslash on the end of line 13 in the Makefile: 12 ${SRC_DIR}/fx/*\ 13 ${SRC_DIR}/ajax/* ← right there 14 ${SRC_DIR}/outro.js\ Also, I can't seem to get the tests to run. After the p

Re: [jQuery] Test suite refactoring

2006-09-16 Thread Dan Atkinson
FYI: Tests completed in 6281 milliseconds. - Much faster!!! 6 tests of 188 failed. Win XP SP2 FF 1.5.0.7: 15.3: Died on test #3: [Exception... "Node cannot be inserted at the specified point in the hierarchy" code: "3" nsresult: "0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)" location: "

[jQuery] [Interface]

2006-09-16 Thread Brandon Aaron
I would like to animate {opacity: 'toggle'} but with the transitions provided by the Interface plugin. I've looked but I don't see where Interface overwrites the animate function as well as the fx part. I also was not able to find a fadeIn/Out/Toggle in Interface. Am I looking in the wrong places?

Re: [jQuery] Safari searchbox, the jQuery way

2006-09-16 Thread Dan Atkinson
Well, at least it works on 2% (+/-2%) of all web browsers! :) I really like the idea behind it! Fil wrote: > >> Doesnt seem to do anything for me on FF/Win > > Yes. It does transform the box on Safari, and leaves it as usual on other > browsers (except it empties the field at the first focus

Re: [jQuery] Test suite refactoring

2006-09-16 Thread Stefan Petre
Jörn Zaefferer wrote: Forgot to post a link: http://joern.jquery.com/test/ Check it out :-) -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ Win XP SP2 IE 6 15 wrap(String) (1, 2, 3) 3 Died on test #3: [Exceptio

Re: [jQuery] Test suite refactoring

2006-09-16 Thread Jörn Zaefferer
Forgot to post a link: http://joern.jquery.com/test/ Check it out :-) -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Test suite refactoring

2006-09-16 Thread Jörn Zaefferer
Hi folks, just commited a big refactoring to the test suite. All tests are now compiled to one file. The testsuite should therefore run up to three times faster. For anyone building jQuery via the Makefile: Please check if it works as expected, I currently can't test it here. I'm thinking about

Re: [jQuery] interface compression problems

2006-09-16 Thread Claudio Poli
Stefan Petre wrote: > I fixed this. Try again to download Interface. > hi Stefan, same error, I've downloaded custom interface.js with latest safari and ff 1.5.0.7 mac. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] How to get the browser client width and height

2006-09-16 Thread limodou
On 9/16/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > limodou schrieb: > > I want to implement center() effect, but I don't know how to get the > > correct widht and height of the browser client. I googled and found > > that in (FF) I should use windows.innerHeight and window.innerWidth, > > but

Re: [jQuery] How to get the browser client width and height

2006-09-16 Thread Jörn Zaefferer
limodou schrieb: > I want to implement center() effect, but I don't know how to get the > correct widht and height of the browser client. I googled and found > that in (FF) I should use windows.innerHeight and window.innerWidth, > but in msie I could use document.documentElement.clientWidth and > d

Re: [jQuery] How to get the browser client width and height

2006-09-16 Thread limodou
On 9/16/06, limodou <[EMAIL PROTECTED]> wrote: > I want to implement center() effect, but I don't know how to get the > correct widht and height of the browser client. I googled and found > that in (FF) I should use windows.innerHeight and window.innerWidth, > but in msie I could use document.docum

[jQuery] How to get the browser client width and height

2006-09-16 Thread limodou
I want to implement center() effect, but I don't know how to get the correct widht and height of the browser client. I googled and found that in (FF) I should use windows.innerHeight and window.innerWidth, but in msie I could use document.documentElement.clientWidth and document.documentElement.cli

Re: [jQuery] Thickbox: Smoooooth scrolling with fixed positioning

2006-09-16 Thread Jörn Zaefferer
Klaus Hartl schrieb: > you can see it in action (and the difference) here now, just click on a > thumbnail in the pictures section or in photos nearby and scroll the page... > Very nice. The fixed center position allows much smoother scrolling :-) One small proposal: For better keyboard navigat

Re: [jQuery] EasyDOM is Broken in 1.0.1

2006-09-16 Thread Michael Geary
> Here's a test page that gives me that error: > > http://ruphus.com/code/jquery/easydom.html The DOM creation code in $.create is using the old .cur property in the jQuery object. I think it needs to be updated to handle the result array the same way that jQuery does now. -Mike __

Re: [jQuery] EasyDOM is Broken in 1.0.1

2006-09-16 Thread Patrick Hall
On 9/16/06, John Resig <[EMAIL PROTECTED]> wrote: > Same error with EasyDOM? Or same error while using jQuery? When using EasyDOM and jQuery. Here's a test page that gives me that error: http://ruphus.com/code/jquery/easydom.html -p@ -- ᗷɭoℊẚᗰսɳᑯѲ⁈⁈⁈ _

Re: [jQuery] EasyDOM is Broken in 1.0.1

2006-09-16 Thread John Resig
> I've gotten the same error with this. Would be very interested if > anyone had a lead. Same error with EasyDOM? Or same error while using jQuery? --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/