[mochikit] Re: playing with canvas and mochikit
On 15-Aug-06, at 2:15 AM, Lawrence Oluyede wrote: > What do you mean by... "then it works!" ? You get the actual drawing > at the exact point you start the onmousedown event and to the exact > point you stop with onmouseup event? > > Which Firefox version are you using? I tried with Firefox 1.5 on > Ubuntu and MacOSX, with Opera9 on Ubuntu and with Camino on MacOSX. > Only Safari seems to handle it correctly. I think the problem isn't the JavaScript code, it's the HTML that includes the JavaScript. Instead of: Try: Beau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~--~~~~--~~--~--~---
[mochikit] Re: playing with canvas and mochikit
> And then it works! I used the latest MK SVN. What do you mean by... "then it works!" ? You get the actual drawing at the exact point you start the onmousedown event and to the exact point you stop with onmouseup event? Which Firefox version are you using? I tried with Firefox 1.5 on Ubuntu and MacOSX, with Opera9 on Ubuntu and with Camino on MacOSX. Only Safari seems to handle it correctly. -- Lawrence http://www.oluyede.org/blog --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~--~~~~--~~--~--~---
[mochikit] Re: playing with canvas and mochikit
> Lawrence, > > Are you trying this against MochiKit 1.3.1 or SVN? If you're using > SVN, do simpler things work? Like can you get an alert() to pop up in > the draw function? Thanks for posting a complete example! I'm using SVN and alert("foo"); inside draw() or inside sub handlers work correctly. It's the actual drawing that is not done correctly. I also tried with plain javascript (with no libraries) and I have the same behavior. Only Safari do it right. I think there's something going on between and event handling. I also tried to debug it with Firebug but seems all smooth. -- Lawrence http://www.oluyede.org/blog --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~--~~~~--~~--~--~---
[mochikit] Re: playing with canvas and mochikit
I get a syntax error in FF that is solved by closing the MK reference with "", so try
[mochikit] Re: playing with canvas and mochikit
On 14-Aug-06, at 7:40 PM, Lawrence Oluyede wrote: > I'm trying to attach simple event to the element but only > Safari seems to work right with the following code (it's all condesed > in one html page): Lawrence, Are you trying this against MochiKit 1.3.1 or SVN? If you're using SVN, do simpler things work? Like can you get an alert() to pop up in the draw function? Thanks for posting a complete example! Beau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~--~~~~--~~--~--~---