[jQuery] Re: jQuery 1.1.2 Released: Happy 2nd Birthday!

2008-01-14 Thread Stefan Petre
Happy Birthday jQuery and congrats to dev team.

2008/1/15, Joel Birch [EMAIL PROTECTED]:


 Waahh, happy birthday jQuery! My, how you have matured!

 Huge thanks to John, Brandon, David (a warm welcome to you), and all
 the other cool dudes in the jQuery team.

 Respect and admiration.
 Joel Birch.



[jQuery] [ANNOUNCE] Space gallery

2008-01-09 Thread Stefan Petre


Image gallery with perspective

http://eyecon.ro/spacegallery/

Regards,
Stefan


[jQuery] Re: Attaching events to dynamic DOM IDs

2007-12-22 Thread Stefan Petre
for(var i = 0; i  30; i++) {
 jQuery('#day_' + i).click(function() {
   jQuery('#' + this.id+ '_modal').jqmShow();
 });
}

maybe it works this way

2007/12/22, Rabbit [EMAIL PROTECTED]:


 The following code:

 for(var i = 0; i  30; i++) {
   jQuery('#day_' + i).click(function() {
 console.log('i is ' + i);
 jQuery('#day_' + i + '_modal').jqmShow();
   });
 }

 Runs, but always reports i is 30.

 Now, I understand why it does that, but why doesn't the jqmShow method
 work? It appears as though the code that gets executed is dynamic.
 In other words, when the click event occurs JavaScript looks up the
 code as it was at the end of its execution, when variable i is 30,
 instead of remembering that at one point it was something else.

 Did that make sense?

 Any ideas how to get around this without typing in all 30 click events?



[jQuery] Re: internet explorer debugging

2007-12-21 Thread Stefan Petre
Maybe this helps http://www.debugbar.com/

2007/12/21, Alexandre Plennevaux [EMAIL PROTECTED]:


 hello friends,

 my application is running ok in firefox but is not doing so great in
 internet explorer. I'm having a hard time tracking down the bug(s).
 Can someone help me? Problem is i didn't find any decent tool to debug
 javascrpt in internet explorer.

 Anyway, here is the prototype i'm working on:

 http://www.pixeline.be/test/m2/

 the source code is here:

 http://www.pixeline.be/test/m2/_js/frontend/6_proto_strata+datascape+project.js

 Basically, a good part of the code is used to make sure all elements
 fits nicely graphically on the background 4px grid, whatever the
 screen resolution.
 The top menu is strataGrid and after clicking on the second line of
 options in the menu, you get to the datascape.

 now, i'm not an expert in javascript so any coding improvement you can
 suggest is welcomed, i did it my way :)

 The issue comes with the apparition of the datascape. It chokes and
 does not finish appearing. In firefox 2 it works well though.


 I think the error is somewhere here:

 $('.strataTrigger').bind('click', function(){
 var $thisMenu = $(this).parents('.mainmenu');
 var li = $(this).parent();
 var index = li.parent().children('li').index(li[0]);
 $newLeft = strataGrid.startX + (strataGrid.colCenter - (index
 + 1)) * strataGrid.colWidth;
 $('.strataTrigger', $thisMenu).removeClass('selected');
 $(this).addClass('selected');
 $thisMenu.animate({
 left: $newLeft + 'px'
 });
 // 4._ SHOW/HIDES MENUS
 if ($thisMenu.attr('id') == 'strata1') {
 var showme = $(this).metadata().showme;
 //remove datascape if displayed
 if ($('#datascape').length) {
 $('#datascape').unbind().fadeOut(slow, function(){
 clearInterval(datascape.$interval);
 $(this).hide(); // HIDE OR REMOVE ?? _ A SURVEILLER
 });
 }

 $('.strata2').each(function(){
 if ($(this).hasClass(showme)) {
 $(this).show();
 }
 else {
 $(this).hide();
 }
 });
 }
 else
 if ($thisMenu.hasClass('strata2')) {
 $('#strata3').html('');
 $(#datascape).load('ajax_datascape.inc.html',
 function(){
 $(this).fadeIn(slow);
 drawDatascape(strataGrid, '');
 });
 }
 return false;
 });



 --
 Alexandre Plennevaux
 LAb[au]

 http://www.lab-au.com



[jQuery] Stupid little game :)

2007-12-19 Thread Stefan Petre


Hi,

I did a small game (it was a test for a client), about 6kb of code. 
http://www.eyecon.ro/slotmachine/ 


Stefan


[jQuery] Re: Stupid little game :)

2007-12-19 Thread Stefan Petre





Benjamin Sterling wrote:
I think that game is rigged, I lost all my money. :)
  
  On 12/19/07, Erik Beeson [EMAIL PROTECTED]
wrote:
  
  Fun,
thanks for sharing :)

--Erik



On 12/19/07, Stefan Petre [EMAIL PROTECTED]
 wrote:


Hi,
  
I did a small game (it was a test for a client), about 6kb of code.
  http://www.eyecon.ro/slotmachine/
  
Stefan




  
  
  
  
  
-- 
Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  
  http://www.benjaminsterling.com

I can fix this. Give me your IP :)




[jQuery] Re: Ann: Flot 0.1 released

2007-12-04 Thread Stefan Petre
Swt and useful . I like it so much.

2007/12/4, Ole Laursen [EMAIL PROTECTED]:


 Hi!

 I've just released Flot 0.1, a brand-new plot plugin for jQuery which
 focuses on simple usage, attractive looks and interactive features
 like zooming. It's like plotr and Plotkit, but hopefully a bit more
 intelligent when it comes to auto-adjusting axes.

 The project page is here:

   http://code.google.com/p/flot/

 And examples are here:

   http://people.iola.dk/olau/flot/examples/

 I also posted about the news on my blog:

   http://ole-laursen.blogspot.com/2007/12/flot-01-released.html

 I'm in the midst of writing the API documentation, but the examples
 should hopefully get you started and the available settings are
 documented in the source code at the top of the file.

 --
 Ole Laursen
 http://people.iola.dk/olau/



[jQuery] Re: Zoomimage

2007-11-14 Thread Stefan Petre





Stoyan wrote:

  
  
  
  
  Bah, the alert on IE6 appears when I press any key.
  That's valid for the official demo too:
  
  
  http://www.eyecon.ro/zoomimage/
    
  
  
  -- 
  Best regards,
   Stoyan                          mailto:[EMAIL PROTECTED]

Sorry for this. I will fix it in 3 hours.




[jQuery] Re: Zoomimage

2007-11-13 Thread Stefan Petre
1. I have to think about it, I can not promise anything

2. You are right. I will add an option to make this preloading at page load
optional

Sorry, it has to stay this way. I develop this plugins for my need first and
then I will share it with you guys. I can not change the plugins just for
this because I do not have time. Plus I got used with the utility functions
and I use them in all my projects. Beside, if I will release a new plugin it
is a good chance that this files will be used again and the namespace will
stay inside the 'EYE' thing :) . I got a lot from the people that I pollute
jQuery's namespace, so 

Anyway, I fixed some things and added new features. You may what to check it
out.


2007/11/13, Erlend Schei [EMAIL PROTECTED]:


 What a marvellous plugin! Great work, Stefan!

 I hope you don't mind my sharing a few immediate thoughts in all my
 excitement.

 Your plugin is in some ways similar to Leandro Vieira's Lightbox
 plugin. http://leandrovieira.com/projects/jquery/lightbox/ , but yours
 is more customizable.

 What I love about Leandro's plugin is in particular two things

 1) The way you can press either half of the image to go to next/
 previous image. That means you don't have to move the mouse as much.
 You also support keys, so I guess the need isn't as big in your case.
 But it would be a great feature, manye users don't think of using the
 keys (yet).

 2) He only preloads the next image. While preloading is great, it also
 generates a lot of wasted traffic, particularly on pages with loads of
 images. Would you consider makeing this optional? Or is the
 functionality heavily based on the images being preloaded?

 Finally, would you consider makeing the plugin standalone, not
 having to include the other common EYE tools?

 Again, thanks for a great plugin!

 Best regards
 Erlend Schei :)




[jQuery] Zoomimage

2007-11-12 Thread Stefan Petre


Another plugin to present images

http://www.eyecon.ro/zoomimage/


[jQuery] Re: Zoomimage

2007-11-12 Thread Stefan Petre

I'm glad to hear this :).

1. You can edit the CSS and add add cursor move to '.zoomimage_controls'
2. You can do rounded corners too. Change the shadow image to include 
the rounded corners too




Glen Lipka wrote:

I think I want to cry.  This is beautiful.
Keyboard shortcuts, easing, clear styling instructions.
Wonderful.  I am going to switch to this from Highslide for sure.

Although, I can't help myself, I need to point out a couple of tiny 
items (TINY ONES)


1. The header should probably have a css rule of cursor: move.  Even 
though you can move it from anywhere (AWESOME), having an area that 
affords more dragging is a good thing.
2. Alternate styling is nice.  I know highslide somehow figured out 
how to do rounded corners with it.  This is a nice to have, not a have 
to have.


What happens if the image is really big?
I need to test this. :)

What browsers has this been tested with?

I am so excited!

Glen

On Nov 12, 2007 1:36 PM, Matthieu BARBE  [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


I love this plugin... good job stefan !

2007/11/12, Stefan Petre [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]:


Another plugin to present images

http://www.eyecon.ro/zoomimage/







[jQuery] Re: Zoomimage

2007-11-12 Thread Stefan Petre

I can confirm this. I will fix it, I was too tired last night.

Stefan Kilp [sk-software] wrote:

nice plugin.

on testing with Safari/Win i noticed that the keyboard navigation does not work for me , FF is 
fine.


Best regards,
Stefan Kilp

  

Another plugin to present images

http://www.eyecon.ro/zoomimage/




--
Stefan Kilp
SK-Software, Entwicklung  Beratung

email: [EMAIL PROTECTED]

fon  : +49 6151 93344-0
fax  : +49 6151 93344-20
Herta-Mansbacher-Str. 98
64289 Darmstadt, Germany.
-


  




[jQuery] Re: jQuery Challenge

2007-11-04 Thread Stefan Petre


S. Robert James wrote:

While working on this: 
http://groups.google.com/group/jquery-en/browse_thread/thread/7cbc9fb45f7dc133
, I've tried to come up with a way to read attributes out of a CSS
class, even if that class isn't applied to any element.  No luck so
far.

Any jQuery pro's want to take a crack at it? Storing attributes for
animations in CSS - as opposed to JavaScript - would lean to much
cleaner code.


  


if (document.styleSheets) {
for (var i=0, styleSheet; idocument.styleSheets.length; i++) {
styleSheet = document.styleSheets[i];
			for (var 
k=0, 
lng = styleSheet.cssRules ? 
	styleSheet.cssRules.length : 
	styleSheet.rules.length,
cssRule; 
k lng; 
k++) {
cssRule = styleSheet.cssRules ? 
	styleSheet.cssRules[k] : 
	styleSheet.rules[k];

//cssRule.selectorText may have the name of the 
class
//cssRule.style has the properties defined in 
the CSS for current selector
//so do you stuff here
}
}
}



[jQuery] Re: Interface folder-tree requests

2007-04-13 Thread Stefan Petre

Hey,

I will rewrite that demo as soon as Interface 2 is finished

Stefan

2007/4/13, Gilles (Webunity) [EMAIL PROTECTED]:



I don't know if Stefan is reading this discussion group, but i have
some questions for him. I was wondering if he wants to change the demo
at:
http://interface.eyecon.ro/demos/drag_drop_tree.html

so that it does the following thing:
- Don't allow LI's to be dragged and dropped BELOW their structure
(e.g. further down in the hierarchy). This gives firefox currently an
error.
- Don't allow items to be dropped on thesame (direct) UL as they are
allready a part of.
- If an item can't be dropped there, show no (or a different) class.

The last thing might require a change of the draggable/droppable
code...?

Thanx
Gilles




[jQuery] Re: Interface updates

2007-04-12 Thread Stefan Petre


Kush Murod wrote:


Hi,

Just wondering as to when Interface updates/fixes are going to be 
released.
I do release guys could  be very busy,  but little heads up would be 
appreciated.


--Kush


Currently we are working on Interface 2.

Stefan


[jQuery] Small Interface website update

2007-04-06 Thread stefan . petre

Hi guys,

Long time no see.

http://interface.eyecon.ro/dependencies useful to check dependencies .

Starting next week I will have some free time again and me and Paul
will continue working on Interface 2. I hope this month we will
release it.

Take care.



[jQuery] Re: is child of...

2007-04-06 Thread Stefan Petre


Lwis wrote:

Hi,

short version: how do I find out whether my element is a child of
another element?

long version: I think I want to loop through all elements and check
each of them if it is the element I am searching for or not.

I think I want something similar to YUI (http://www.un-instraw.org/
wiki/training/skins/ycal/yui/docs/treeview/overview-summary-
Node.js.html)
isChildOf function.

Any ideas would be appreciated.
Thanks


  

function isChildOf (parentEl, el, container) {
   if (parentEl == el) {
   return true;
   }
   if (parentEl.contains  !$.browser.safari) {
   return parentEl.contains(el);
   }
   if ( parentEl.compareDocumentPosition ) {
   return !!(parentEl.compareDocumentPosition(el)  16);
   }
   var prEl = el.parentNode;
   while(prEl  prEl != container) {
   if (prEl == parentEl)
   return true;
   prEl = prEl.parentNode;
   }
   return false;
   }


parentEl = possible parent
el = the subject
container = stop search the this element


[jQuery] Re: jQuery Powered Sites - The List Continues to Grow

2007-04-05 Thread Stefan Petre


Yes, the back end is PHP driven but the response is XML

Andy Matthews wrote:

Holy WOW!!!

I'm assuming that uses PHP for the back end? 


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gareth Hughes
Sent: Thursday, April 05, 2007 9:03 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow


Looks excellent. Very impressive.

- Original Message -
From: [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Thursday, April 05, 2007 8:49 AM
Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow



I can not show actual links because the products are white labeled. I
made a little screencast from a back end using jQuery to do all sorts
of things

http://www.eyecon.ro/demos/imagebrowser.html




  




[jQuery] Re: jQuery Powered Sites - The List Continues to Grow

2007-04-05 Thread Stefan Petre


I don't think I will release this since Ext does a better job

Andy Matthews wrote:

I'm more interested to see if he's going to be able to release that as a
plugin!

Just to clarify, I think that looks amazing!


andy 


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Priest, James (NIH/NIEHS) [C]
Sent: Thursday, April 05, 2007 9:14 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to Grow


I'll ditto Andy's comment. :)   This is really slick. 


I'd love to hear more on how you actually did this!

Jim

  

-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 05, 2007 10:07 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to 
Grow



Holy WOW!!!

I'm assuming that uses PHP for the back end? 


-Original Message-
From: jquery-en@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Gareth Hughes
Sent: Thursday, April 05, 2007 9:03 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: jQuery Powered Sites - The List Continues to 
Grow



Looks excellent. Very impressive.

- Original Message -
From: [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Thursday, April 05, 2007 8:49 AM
Subject: [jQuery] Re: jQuery Powered Sites - The List 
Continues to Grow




I can not show actual links because the products are white labeled. I
made a little screencast from a back end using jQuery to do all sorts
of things

http://www.eyecon.ro/demos/imagebrowser.html








  




[jQuery] Re: jQuery Powered Sites - The List Continues to Grow

2007-04-05 Thread Stefan Petre


I don't quite understand; where do you want to add the description?

Rey Bango wrote:


Thanks Stefan. Can you give me a description of the site so I can add 
that?


Rey

[EMAIL PROTECTED] wrote:

I can not show actual links because the products are white labeled. I
made a little screencast from a back end using jQuery to do all sorts
of things

http://www.eyecon.ro/demos/imagebrowser.html