[Proto-Scripty] clonePosition - problem in IE and Opera

2009-03-02 Thread zero

This code works in firefox 2, firefox3 and chrome but in  in opera,
ie6, ie7 olive div appear in wrong place when u scroll list. In ie it
goes up and in opera down. Why, any solution?.



ul{margin: 200px 0px;padding: 0px;list-style: none;background-color:
blue;overflow: auto;width:120px;height: 150px;}
li{width:100px;height: 100px;background-color: green;}
#klon{position:absolute;width:100px;height: 100px;z-index:
10;background-color: olive; }



a
b
n
m
t
u
o






http://ajax.googleapis.com/ajax/
libs/prototype/1.6.0.3/prototype.js" >
http://ajax.googleapis.com/ajax/
libs/scriptaculous/1.8.1/scriptaculous.js" >


Event.observe(window, 'load', function() {
var klon;
$$('li').each(function(el){
Event.observe(el, 'mouseover', function(event) {
klon = $('klon');
klon.clonePosition(el);
klon.show();
klon.clonePosition(el);
});
});

Event.observe('klon', 'mouseout', function(event) {
klon.hide();
});

});


--~--~-~--~~~---~--~~
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-scriptaculous@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: User triggered download with no page refresh.

2009-03-02 Thread zero

On page that iframe load u can put code:

parent.name_of_some_js_function();

Works for me in all browsers.

On 2 Mar, 14:21, Richard Quadling  wrote:
> Hi.
>
> I'm currently using an iframe to act as a report downloader.
>
> The user enters some criteria which is generated dynamically as they
> change options. They then click a document button (PDF, XLS, DOC) and
> this is sent to the server for validation. The result is a key for the
> Crystal Reports. The JS code generates an iframe and passes the key as
> part of the URL. As the key is a hash, and has to be part of the
> user's session, security is quite high. Guessing keys is useless
> unless there is corresponding data already submitted for the key.
>
> On screen, I dim the form for ajax requests and fade in a spinner.
>
> So far so good.
>
> My problem is that once I've created the iframe I've no way of knowing
> about the state of the iframe - has it loaded and presented the user
> with the appropriate download box.
>
> Are there any events I can observe with regard to an iframe (ie7, FF,
> Chrome - intranet only and so can be limited in support).
>
> I suppose as a side question, how do I find what events are observable
> for any element? Is there a way? Or is it just a case of RTF HTML/JS M
>
> Regards,
>
> Richard Quadling.
>
> --
> -
> Richard Quadling
> Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731
> "Standing on the shoulders of some very clever giants!"
--~--~-~--~~~---~--~~
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-scriptaculous@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: repost of previous problem

2009-03-03 Thread zero

i also got such sortables with anchors and they works even in IE.

The problem is your code.
Do u use firebug in firefox?.


Maybe some div hide anchors. Try to disable all css and see is it
works.



On 2 Mar, 20:10, gonesail  wrote:
> I am having a problem where an href contained in a sortable div is
> prevented from honoring the click by the sortable (allowing you to
> drag it) in IE7.  This is a big problem .. is this a reported bug?
> thanks.
>
> here is the previous post:
>
> I have two sortables that have divs as the draggable elements.
> Included in those divs are some anchor tags to make some buttons that
> call javascript functions elsewhere in the page.
>
> It all works fine in Firefox & Safari, but in IE7 it's a matter of
> luck if the link will accept clicks. Sometimes you click the link,
> sometimes the div acts like it's being dragged (it fades as per the
> start of the drag, but doesn't move). I've tried to click the mouse as
> quickly as possible, and holding it completely still, but it makes no
> difference.
>
> This is a showstopper for me, as IE is such a big part of my audience.
> Anyone got any suggestions?
--~--~-~--~~~---~--~~
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-scriptaculous@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: repost of previous problem

2009-03-03 Thread zero

i also got such sortables and they works, even in IE.

Problem is your code.

Maybe sobe div hide anchor. Try to disable all css and check is it
work.

On 2 Mar, 20:10, gonesail  wrote:
> I am having a problem where an href contained in a sortable div is
> prevented from honoring the click by the sortable (allowing you to
> drag it) in IE7.  This is a big problem .. is this a reported bug?
> thanks.
>
> here is the previous post:
>
> I have two sortables that have divs as the draggable elements.
> Included in those divs are some anchor tags to make some buttons that
> call javascript functions elsewhere in the page.
>
> It all works fine in Firefox & Safari, but in IE7 it's a matter of
> luck if the link will accept clicks. Sometimes you click the link,
> sometimes the div acts like it's being dragged (it fades as per the
> start of the drag, but doesn't move). I've tried to click the mouse as
> quickly as possible, and holding it completely still, but it makes no
> difference.
>
> This is a showstopper for me, as IE is such a big part of my audience.
> Anyone got any suggestions?
--~--~-~--~~~---~--~~
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-scriptaculous@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: Crop Image With Preview

2009-03-03 Thread zero

u need to make crop image on server side and then display it.

If u cant u can put image in div with css like:  width:
100px;height:100px;overflow:hidden;
but it such a waste of traffic especialy if image is big.

On 3 Mar, 11:06, calitom  wrote:
> Hi,
>
> I wanted to know how you do to display the croped part of an image?
> I tryied to crop an image in php, with imagecopyresamled, but with big
> images it didn't work due to my server memory limit...
>
> How can i do to display just a part of an image with top left position
> of area to display and width/height of the area?
>
> In fact i want to display a part of an image in a div...
--~--~-~--~~~---~--~~
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-scriptaculous@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: Crop Image With Preview

2009-03-03 Thread zero

ye i also used it in the past when i need it.
But its just GUI for user to show part of image to be cropped. So u
can than send params to server to crop image.


On 3 Mar, 17:29, Diodeus  wrote:
> Take a look at this:
>
> http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-pro...
>
> On Mar 3, 5:06 am, calitom  wrote:
>
> > Hi,
>
> > I wanted to know how you do to display the croped part of an image?
> > I tryied to crop an image in php, with imagecopyresamled, but with big
> > images it didn't work due to my server memory limit...
>
> > How can i do to display just a part of an image with top left position
> > of area to display and width/height of the area?
>
> > In fact i want to display a part of an image in a div...
--~--~-~--~~~---~--~~
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-scriptaculous@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: repost of previous problem

2009-03-03 Thread zero

i got sortable lists like:


 
  
 
 
  
  
 


 
  
 
 
  
  
 



and they works even in IE7. So do u try disable css? Or maybe its
because u edited dragdrop?

On 3 Mar, 19:42, gonesail  wrote:
> don't be so quick to say it is the code. in this case I have edited
> dragdrop.js so that it includes IMG in the form elements to ignore in
> the initDrag: function.  this works fine for me since clicking on a
> link should not initiate a drag.  but in reality I still think it is
> an IE7 bug.
--~--~-~--~~~---~--~~
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-scriptaculous@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: Internet Explorer 7 & 8

2009-03-05 Thread zero

Ye i also got that problem, dunno how to fix it.
I got it because i got IE6 and IE7 on the same computer (http://
tredosoft.com/IE7_standalone)

On 5 Mar, 12:36, Jeztah  wrote:
> Hi guys, kind of proto/scriptac related ..
>
> I have some strange behaviour in my internet explorer ...
>
> Everytime i try to select from a select box, the select box wont open,
> instead it gives me a "Popup was blocked" Error ..
>
> THe select box is not dynamic, it has no events bound to it or
> anything... i've tried to debug every piece of script on the page ..
>
> The only way i can not get it to open a select box is to remove all
> javascript includes and script on the page ..
> My first thought was that it was an unclosed anchor - but i checked
> and its not that .. anyone else had this problem and knows a fix ?
>
> Thanks
> Alex
--~--~-~--~~~---~--~~
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-scriptaculous@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: clonePosition - problem in IE and Opera

2009-03-05 Thread zero

is it a prototype bug? Does it have some bug ticket?

On 2 Mar, 12:50, zero  wrote:
> This code works in firefox 2, firefox3 and chrome but in  in opera,
> ie6, ie7 olive div appear in wrong place when u scroll list. In ie it
> goes up and in opera down. Why, any solution?.
>
> 
>         ul{margin: 200px 0px;padding: 0px;list-style: none;background-color:
> blue;overflow: auto;width:120px;height: 150px;}
>         li{width:100px;height: 100px;background-color: green;}
>         #klon{position:absolute;width:100px;height: 100px;z-index:
> 10;background-color: olive; }
> 
>
> 
>         a
>         b
>         n
>         m
>         t
>         u
>         o
> 
>
> 
> 
>
> http://ajax.googleapis.com/ajax/</a>
> libs/prototype/1.6.0.3/prototype.js" >
> http://ajax.googleapis.com/ajax/</a>
> libs/scriptaculous/1.8.1/scriptaculous.js" >
>
> 
>         Event.observe(window, 'load', function() {
>                 var klon;
>                 $$('li').each(function(el){
>                         Event.observe(el, 'mouseover', function(event) {
>                                 klon = $('klon');
>                                 klon.clonePosition(el);
>                                 klon.show();
>                                 klon.clonePosition(el);
>                         });
>                 });
>
>                 Event.observe('klon', 'mouseout', function(event) {
>                         klon.hide();
>                 });
>
>         });
> 
--~--~-~--~~~---~--~~
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-scriptaculous@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: General Questions

2009-03-05 Thread zero

bottom of page just before  tag

http://ajax.googleapis.com/ajax/
libs/prototype/1.6.0.3/prototype.js">

Event.observe(window, 'load', function() {

});



On 5 Mar, 16:01, Lee Jenkins  wrote:
> Hi all,
>
> Stupid question: where is best practices to place startup code that needs to
> register observers, setup page level objects, etc?
>
> Small page level script that kick starts everything?
>
> Thanks,
>
> --
> Warm Regards,
>
> Lee
--~--~-~--~~~---~--~~
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-scriptaculous@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: Fade In and Fade Off

2009-03-05 Thread zero

just look at example http://wiki.github.com/madrobby/scriptaculous/effect-fade

On 5 Mar, 13:52, Akshit Soota  wrote:
> I need the exact code with script includes where a div fades in and
> off !!
--~--~-~--~~~---~--~~
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-scriptaculous@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: Slide Down/Slide Up w/Overlay

2009-03-05 Thread zero

do u know css?

just add position:absolute or position:relative to overlay div. left
and top attributes to set where u want overlay.

On 4 Mar, 05:41, Avram  wrote:
> My group is an interaction design team, not a team of developers, so
> we don’t know much javascript.
>
> We’ve been looking at  Blind Down/Blind Up and Slide Down/Slide Up,
> but these don’t do exactly what we are looking for.  Is there a "slide
> down" script that will overlay, not push down, the content that’s
> below it?
--~--~-~--~~~---~--~~
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-scriptaculous@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: clonePosition - problem in IE and Opera

2009-03-23 Thread zero

anyone got some idea?
Its bug or i do something wrong?
--~--~-~--~~~---~--~~
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-scriptaculous@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: clonePosition - problem in IE and Opera

2009-03-31 Thread zero

ok, no respond so i solved it myself

Event.observe(window, 'load', function() {
var klon;
$$('li').each(function(el){
Event.observe(el, 'mouseover', function(event) {
klon = $('klon');
var r;
if(Prototype.Browser.IE){
r = (el.positionedOffset())[1];
}else if(Prototype.Browser.Opera){
r = 
(el.viewportOffset())[1]-(el.cumulativeScrollOffset())[1];
}else{
r = (el.viewportOffset())[1];
}
klon.setStyle({ top: r + 'px' });
klon.show();
});
});

Event.observe('klon', 'mouseout', function(event) {
klon.hide();
});

});


On 23 Mar, 13:17, zero  wrote:
> anyone got some idea?
> Its bug or i do something wrong?
--~--~-~--~~~---~--~~
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-scriptaculous@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
-~--~~~~--~~--~--~---