[Proto-Scripty] Re: prototype.js with jquery-1.3.2.min.js is not working.

2010-01-06 Thread lvdesign
hi,
 the prototype's library is pretentieuse so the others must do the
work

bibliotheque
conflit de library
//---jQuery

bien definir l'espace de jQuery:

jQuery(function($) {
//la function
});

jQuery.noConflict();
jQuery(document).ready(function ($) {
 $('.infiniteCarousel').infiniteCarousel();
});

-  source:
http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

//---Mootools
Pas de solution pour l'instant sauf transformer tout les identifiants


//---Protopype-scriptaculos
script type=text/javascript language=javascript
  // ![CDATA[
  $('element_id').appear();
  // ]]
/script

On 4 jan, 22:18, Mence olgaysa...@gmail.com wrote:
 hi.
 i must to use : prototype.js with jquery-1.3.2.min.js 
 (http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js) .

 but it is not working.

 can you help me plase ?
-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




[Proto-Scripty] How to highlight the current slide's number

2010-01-06 Thread MH
I would like to ask a question in relation to Takashi's old MudCorp
Image Gallery. I have implemented his gallery but would like to ask
how I can further add functionality to it.

www.mudcorporation.com/code/js/MudFadeGallery-2.2.1/

If you check the above page for the online gallery, you can click on:
1, 2, 3 to go to the direct slide. I want to know if you can highlight
the current slide with its slide number? So for example, if Slide 2
will come in, the number 2 will be highlighted - by css or css styled
into the .js file. Please help.
-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




Re: [Proto-Scripty] Finding the first form item of any type within a div

2010-01-06 Thread Alex McAuley

$('mydiv').select('input','select')[0];



Alex Mcauley
http://www.thevacancymarket.com
- Original Message - 
From: Tony Andrews tony.andrew...@googlemail.com

To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, January 05, 2010 3:17 PM
Subject: [Proto-Scripty] Finding the first form item of any type within a 
div




I have already posted a question about this on StackOverflow here
(http://stackoverflow.com/questions/2006432/finding-the-first-
focusable-item-of-any-type-within-a-div) so I won't repeat the whole
thing.  My issue is that I want to select the first form item of any
type (input, select etc.) within a div.  When I try $('mydiv').select
('input', 'select') for example, it returns all the inputs, then all
the selects.  So the first item it returns is not necessarily the
first item in document order: if the first item is a select and the
scond is an input, it will return the second item first.  Any ideas?








--
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to 
prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.






-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




[Proto-Scripty] Re: prototype.js with jquery-1.3.2.min.js is not working.

2010-01-06 Thread Mence
thank for your reply
-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




Re: [Proto-Scripty] Re: prototype.js with jquery-1.3.2.min.js is not working.

2010-01-06 Thread Alex McAuley

You can also assign jquery to a different variable

$j=jQuery.noConflict();


then you can use 
$j(#some-id).somejQueryFunction().css().html().next().chain


and $ becomes unpolluted


Alex Mcauley
http://www.thevacancymarket.com
- Original Message - 
From: Mence olgaysa...@gmail.com

To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, January 06, 2010 9:17 AM
Subject: [Proto-Scripty] Re: prototype.js with jquery-1.3.2.min.js is not 
working.




thank for your reply








--
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to 
prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.






-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




[Proto-Scripty] Re: How to highlight the current slide's number

2010-01-06 Thread MH
I found the onmouseclick actions and they appear as:

function setOnMouseClick() {
var elements = document.getElementsByTagName(a);
for (var i = 0; i  elements.length; i++) {
switch(elements[i].className) {
case next:
elements[i].onclick = function() {
 imgs.nextImg();
 return false;
}
break;
case prev:
elements[i].onclick = function() {
 imgs.prevImg();
 return false;
}
break;
case s0:
elements[i].onclick = function() {
 imgs.showImg(0);
 return false;
$(this).style=font-weight:bold;
}
break;


Because they are a href's, I've also styled them with css. The 1, 2, 3
are all in a div. Does this conflict with the above? I hope I could
either choose to do font-weight: bold; or background-color: etc;

Mike








On Jan 6, 8:52 pm, Alex McAuley webmas...@thecarmarketplace.com
wrote:
 You can check the source code as the href's have a click handler and add a 
 style to them or remove one ...

 find the line that handles it and add $(this).style=

 Alex Mcauleyhttp://www.thevacancymarket.com

   - Original Message -
   From: julien Devouassoud
   To: prototype-scriptaculous@googlegroups.com
   Sent: Wednesday, January 06, 2010 9:30 AM
   Subject: Re: [Proto-Scripty] How to highlight the current slide's number

   Well, for your 0,1,2,3  you have :

   a class=s0 href=#0/a

   just give an id to the element (ids are unique in a page, be carefull with 
 that or it can bug if you got duplicate ids)

   a class=s0 href=# id=maLink_00/a

   and you can change it's style with

   $(maLink_+number).setStyle(.);

   if you want to reset style of previously modified element, don't forget to 
 save the last changed id in a global variable (global vars ain't the best but 
 easy code):

   var lastHighlight = ;

   function HL(id){
      $(lastHighlight).setStyle();                 // set style @ null resets 
 style to waht it was previously i think
      $(maLink_+id).setStyle(.);
   }

   2010/1/6 MH m.lawrencehu...@gmail.com

     I would like to ask a question in relation to Takashi's old MudCorp
     Image Gallery. I have implemented his gallery but would like to ask
     how I can further add functionality to it.

    www.mudcorporation.com/code/js/MudFadeGallery-2.2.1/

     If you check the above page for the online gallery, you can click on:
     1, 2, 3 to go to the direct slide. I want to know if you can highlight
     the current slide with its slide number? So for example, if Slide 2
     will come in, the number 2 will be highlighted - by css or css styled
     into the .js file. Please help.

     --
     You received this message because you are subscribed to the Google Groups 
 Prototype  script.aculo.us group.
     To post to this group, send email to 
 prototype-scriptacul...@googlegroups.com.
     To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com.
     For more options, visit this group 
 athttp://groups.google.com/group/prototype-scriptaculous?hl=en.

 --

   --
   You received this message because you are subscribed to the Google Groups 
 Prototype  script.aculo.us group.
   To post to this group, send email to 
 prototype-scriptacul...@googlegroups.com.
   To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com.
   For more options, visit this group 
 athttp://groups.google.com/group/prototype-scriptaculous?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




Re: [Proto-Scripty] Assistance with clicks

2010-01-06 Thread Walter Lee Davis
I just did something very similar (also a calendar) and what I came up  
with was this: I had a single overlay DIV hidden at the top of the  
page, and after a click on an empty cell, I would load the overlay  
with the Create Appointment screen, use Element.clonePosition() to set  
the top and left of the overlay to match the cell that was clicked on,  
and then Effect.Grow to cause it to appear.


For an existing appointment, the same thing would happen except that I  
would load the Edit Appointment screen by following the link on the A  
tag that represented the existing appointment.


Here's the relevant code, note that there are some optimizations I  
have not made (substitute Event.findElement for my business with the  
tagName attribute). References to combinator() are simply setting up  
combo box behavior on select elements.


document.observe('click',function(evt){
var elm = evt.element();
var o = $('overlay');
if($('table_week')  elm.descendantOf($('table_week'))){
evt.stop();
if(elm.tagName.toLowerCase() == 'a'){
if(o.visible()) o.hide();

o.clonePosition(elm.up('td'),{setWidth:false,setHeight:false});
new Ajax.Updater('overlay',elm.href,{
onComplete:function(){
o.grow({direction:'top-left',
duration:0.5,
afterFinish:function(){

o.down('img.close').show();

o.down('form').focusFirstElement();

o.setOpacity(0.999);
}
});
combinator();
},
evalScripts: true
});
}else{
if(elm.tagName.toLowerCase() != 'td') elm = 
elm.up('td');
if(elm.id  !elm.hasClassName('disabled')){
evt.stop();
if(o.visible()) o.hide();

o.clonePosition(elm,{setWidth:false,setHeight:false});
var parts = elm.id.split(/_/);
	var date = parts[1] + '-' + parts[2] + '-' + parts[3] + ' ' +  
parts[4];

new 
Ajax.Updater('overlay','appointments/create',{
parameters:{
start_at: date + 
':00:00',
calendars_id: 
$F('calendars_id'),
parent: elm.id
},
onComplete:function(){

o.grow({direction:'top-left',
duration:0.5,

afterFinish:function(){

o.down('img.close').show();

o.down('form').focusFirstElement();

o.setOpacity(0.999);
}
});
combinator();
},
evalScripts: true
});
}
}
}
});
$('overlay').observe('click',function(evt){
if(evt.element().hasClassName('close')) this.hide();
});


Walter


On Jan 6, 2010, at 7:42 AM, bill wrote:

I am trying am ambitious project - a scheduling system (as part of  
another application) and need some assistance.

Via AJAX I will load a div with:
  a header div
  a main div.

The main div will contain 0..40 small divs that are displayed as a 7  
day schedule.

I can do all this.

The user will click on a spot in the main div to create an  
appointment or will click on one of the small divs that represent  
existing appointments.


now for the part with which I need 

Re: [Proto-Scripty] Re: How to highlight the current slide's number

2010-01-06 Thread Alex McAuley
If you have the element as an object then you can easily traverse anything 
surrounding it right up to document level...


i'll take a look at the code in a while and see if i can come up with 
anything


Alex Mcauley
http://www.thevacancymarket.com
- Original Message - 
From: MH m.lawrencehu...@gmail.com

To: Prototype  script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, January 06, 2010 11:17 AM
Subject: [Proto-Scripty] Re: How to highlight the current slide's number


I found the onmouseclick actions and they appear as:

function setOnMouseClick() {
var elements = document.getElementsByTagName(a);
for (var i = 0; i  elements.length; i++) {
switch(elements[i].className) {
case next:
elements[i].onclick = function() {
imgs.nextImg();
return false;
}
break;
case prev:
elements[i].onclick = function() {
imgs.prevImg();
return false;
}
break;
case s0:
elements[i].onclick = function() {
imgs.showImg(0);
return false;
$(this).style=font-weight:bold;
}
break;


Because they are a href's, I've also styled them with css. The 1, 2, 3
are all in a div. Does this conflict with the above? I hope I could
either choose to do font-weight: bold; or background-color: etc;

Mike








On Jan 6, 8:52 pm, Alex McAuley webmas...@thecarmarketplace.com
wrote:
You can check the source code as the href's have a click handler and add a 
style to them or remove one ...


find the line that handles it and add $(this).style=

Alex Mcauleyhttp://www.thevacancymarket.com

- Original Message -
From: julien Devouassoud
To: prototype-scriptaculous@googlegroups.com
Sent: Wednesday, January 06, 2010 9:30 AM
Subject: Re: [Proto-Scripty] How to highlight the current slide's number

Well, for your 0,1,2,3 you have :

a class=s0 href=#0/a

just give an id to the element (ids are unique in a page, be carefull with 
that or it can bug if you got duplicate ids)


a class=s0 href=# id=maLink_00/a

and you can change it's style with

$(maLink_+number).setStyle(.);

if you want to reset style of previously modified element, don't forget to 
save the last changed id in a global variable (global vars ain't the best 
but easy code):


var lastHighlight = ;

function HL(id){
$(lastHighlight).setStyle(); // set style @ null resets style to waht it 
was previously i think

$(maLink_+id).setStyle(.);
}

2010/1/6 MH m.lawrencehu...@gmail.com

I would like to ask a question in relation to Takashi's old MudCorp
Image Gallery. I have implemented his gallery but would like to ask
how I can further add functionality to it.

www.mudcorporation.com/code/js/MudFadeGallery-2.2.1/

If you check the above page for the online gallery, you can click on:
1, 2, 3 to go to the direct slide. I want to know if you can highlight
the current slide with its slide number? So for example, if Slide 2
will come in, the number 2 will be highlighted - by css or css styled
into the .js file. Please help.

--
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to 
prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group 
athttp://groups.google.com/group/prototype-scriptaculous?hl=en.


--

--
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to 
prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group 
athttp://groups.google.com/group/prototype-scriptaculous?hl=en.








--
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to 
prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.






-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.




[Proto-Scripty] Prototype.js Closure Compiler

2010-01-06 Thread Ron Derksen
Hi list,

I was wondering if anyone has any best practices with regards to
Google's Closure Compiler and Prototype.js. What are the best settings
and how do you prevent the Compiler from breaking your code while
optimizing the file size?

Thanks,
Ron
-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.