[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread evrim
Nobody has problem like that? Select method in your codes can run well in Firefox 3.5 --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread webbear1000
Does it work with the latest stable release? On Jul 29, 8:49 am, evrim wrote: > Nobody has problem like that? > Select method in your codes can run well in Firefox 3.5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: Manipulating the ghostly Clone

2009-07-29 Thread ferion
Nobody? Seems to be a complicated problem. --~--~-~--~~~---~--~~ 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 unsubsc

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread Mona Remlawi
Must be that you're using (dot) or (colon) in your ids. This has been fixed, but not yet released. You can manually change in prototype.js line:3338 to match id = id.replace(/([\.:])/g, "\\$1"); // NOTE the $1 instead of $0 This fix will be a part of next release as it is in the trunk [1] [1]

[Proto-Scripty] Re: how sum value from input?

2009-07-29 Thread T.J. Crowder
Hi, That version seems okay, except it parses the number twice (first for isNaN, then again in parseFloat). There's also no need to check for a blank string, '' can't be converted to a number and so parsing it will result in NaN. Also, parseFloat defaults to base 10, so no need for that param (

[Proto-Scripty] prototype mobile support: best practices?

2009-07-29 Thread Cyrus
Hi, while testing my prototype scripts on Mobile Safari I have seen, that they might need extra attention in my code ;) E.g. I have a menu bar that is only visible when I move the mouse. There is no mouse (movement) on a touch screen device, so I need to do some adjustments. Are there any best

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread evrim
I have done that change but still there is an error then, I changed line 3339 (e = "#" + id + " " + e;) to if (id != 0) e = "#" + id + " " + e; Now it seems working On Jul 29, 12:00 pm, Mona Remlawi wrote: > Must be that you're using (dot) or (colon) in your ids. > Th

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread evrim
No it doesnt work last stable version so that I get RC3 but not work in it neither On Jul 29, 11:54 am, webbear1000 wrote: > Does it work with the latest stable release? > > On Jul 29, 8:49 am, evrim wrote: > > > Nobody has problem like that? > > Select method in your codes can run well in Fire

[Proto-Scripty] Event.stop(event);

2009-07-29 Thread Jeztah
Morning guys/gals. I have some weird behaviour regarding Event.stop(); $$('.quickdetails').invoke('observe','click',function(event) { var this_href=$(this).readAttribute('href'); var element=this; var arr=this_href.split("/"); if(

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Alex McAuley
I should add the bottom Event.stop(event); after the ajax request is not an option as i dont want it stopped there incase somethign went wrong in the request - i would like the click to follow the href and work as normal. Alex Mcauley http://www.thevacancymarket.com - Original

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread evrim
this change fixed only elements whose id = 0 so the new change fixed it well //e = "#" + id + " " + e; I closed this row On Jul 29, 1:19 pm, evrim wrote: > I have done that change but still there is an error then, > I changed line 3339 (e = "#" + id + " " + e;) to >            if (id != 0) >  

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Daniel Rubin
Jeztah wrote: > Morning guys/gals. > > I have some weird behaviour regarding Event.stop(); > > $$('.quickdetails').invoke('observe','click',function(event) { > > > var this_href=$(this).readAttribute('href'); > var element=this; > var arr=this_href.spl

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Alex McAuley
Found an easier way Added "asyncronous: false," to the ajax options!! Thanks for input Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Daniel Rubin" To: Sent: Wednesday, July 29, 2009 12:33 PM Subject: [Proto-Scripty] Re: Event.stop(event); > > Jeztah

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Tobie Langel
> Found an easier way > > Added "asyncronous: false," to the ajax options!! That's no longer ajax, then. ;) The way to handle this issue is to: 1. stop the event immediately. 2. in case of an ajax failure, just change window.location to $ (this).readAttribute('href'); Also, you should cons

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread Alex McAuley
that has a space in it no ? ID's are not allowed spaces Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "evrim" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 12:29 PM Subject: [Proto-Scripty] Re: Firefox v3.5 this change fixed only element

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Alex McAuley
easier to leave it as it is (working) than add more lines of code. Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Tobie Langel" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 1:45 PM Subject: [Proto-Scripty] Re: Event.stop(event); > >> Found

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread evrim
No there is not a space in ID e is expression like "div." and the code adds in front of it "# " after that the expression is "# div." and the expression does not work in this form on "$A(root.querySelectorAll(e)).map(Element.extend);" . but after commented this line code work well. On Jul 29, 3:4

[Proto-Scripty] Re: Firefox v3.5

2009-07-29 Thread Alex McAuley
Misread sorry Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "evrim" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 1:59 PM Subject: [Proto-Scripty] Re: Firefox v3.5 No there is not a space in ID e is expression like "div." and the code adds

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Tobie Langel
For the sake of argument: http://gist.github.com/158165 Turning the async option to false completely defeats the purpose and has tons of usability issues. I'd advise you to have a look at the linked code, research the methods name you don't know in the Prototype API and try to understand what it

[Proto-Scripty] Re: Event.stop(event);

2009-07-29 Thread Alex McAuley
Thanks for the advice Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Tobie Langel" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 2:28 PM Subject: [Proto-Scripty] Re: Event.stop(event); > > For the sake of argument: http://gist.github.com/1

[Proto-Scripty] Re: Error in IE8

2009-07-29 Thread stegel
Did some digging into the tinymce for radiant extension I was using and found the problem. In tiny_mce_settings.js there was a call to getElementsByClassName('asset','assets') that was triggering the Enumerable error. I changed the function to $$('asset','assets') Thanks! On Jul 28, 1:01 pm, "Al

[Proto-Scripty] Re: Manipulating the ghostly Clone

2009-07-29 Thread ColinFine
On Jul 28, 5:06 pm, ferion wrote: > Hello everybody, > > another day - another problem :) > > Due to the design of my project it is nessesary to manipulate the DOM- > Structure of the ghost created by the new Draggable function > "ghosting:true" > > like in > this.Dragger = new Draggable($(this

[Proto-Scripty] Re: how to use scripts without clicks

2009-07-29 Thread David McGlone
On Tuesday 28 July 2009 03:09:32 pm DJ Mangus wrote: > document.observe("dom:loaded", function() { > // initially hide all containers for tab content > $$('div.tabcontent').invoke('hide'); > }); > > Note: you can of course do anything you want in that function. The > function runs when everyt

[Proto-Scripty] Re: how to use scripts without clicks

2009-07-29 Thread DJ Mangus
OK, I'll explain this code, hopefully it's what you want. Observe is a prototype method to set event callbacks. So, document.observe sets an event callback on the document. It takes two arguments, the event name and a function (either name or literal as is used in the example). We are setting

[Proto-Scripty] Re: Manipulating the ghostly Clone

2009-07-29 Thread ferion
Olla, all praises to Mr Fine :) You pointed me in the right direction. I found a workaround, which is fishy but works in IE7+8 and FF2+3 function getGhost(objectId) { var helper = $(objectId); // Das ist das Orginal helper.setAttribute("id","isGhosted"); var ghost = $(ob

[Proto-Scripty] Re: Manipulating the ghostly Clone

2009-07-29 Thread ColinFine
On Jul 29, 4:12 pm, ferion wrote: > Olla, > > all praises to Mr Fine :) > You pointed me in the right direction. I found a workaround, which is > fishy but works in IE7+8 and FF2+3 > > function getGhost(objectId) > { >         var helper = $(objectId); // Das ist das Orginal >         helper.se

[Proto-Scripty] postBody

2009-07-29 Thread jeremyrowe
I am trying to send postBody data through an Ajax.Request - The data contains html tags, and I am wondering what the best way to encode / decode the data so that I can make sure that the data is saved properly. Thanks --~--~-~--~~~---~--~~ You received this messag

[Proto-Scripty] Re: postBody

2009-07-29 Thread T.J. Crowder
Hi, HTML doesn't matter in POSTs, HTML is a browser concept. POSTs are an HTTP concept, which is a different layer and doesn't care about HTML. POST data is URL-encoded (certain characters -- like percent signes -- turned into hex escapes, that sort of thing). Prototype can handle it for you.

[Proto-Scripty] Re: selectors failing in IE8&FF3 @ Colin

2009-07-29 Thread Rick Waldron
Colin, I was just thinking about your statement: "(OTOH I wish that browsers and libraries would object to a very common instance of invalid HTML: duplicate id's)" And how much I agree. This is the result... (function () { var _domIdentities = function () {}; _domIdentities.prototype = {

[Proto-Scripty] Re: Safari 4 will not finish download with 1.6.1

2009-07-29 Thread Jason
I am experiencing the same thing On Jul 1, 7:28 pm, Seppo wrote: > Hi, > Anyone else having prototype 1.6.1 (RC2 & RC3) to not finish loading > on Safari 4 (4.0.1)? > > Safari's Activity window shows extra "about:blank" page about to be > loaded causing page not to finish the loading. Previous v

[Proto-Scripty] Re: Masked Input in Prototype

2009-07-29 Thread Celso
something like this: http://digitalbush.com/projects/masked-input-plugin On 24 jul, 06:48, Richard Quadling wrote: > 2009/7/23 Matt Foster : > > > > > You must further define your idea of "masked input" > > >http://www.google.com/search?q=define%3A+masked+input&ie=utf-8&oe=utf... > > > On Jul 23

[Proto-Scripty] Re: Masked Input in Prototype

2009-07-29 Thread Alex McAuley
why not just port the jquery one... wont take long ! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "Celso" To: "Prototype & script.aculo.us" Sent: Wednesday, July 29, 2009 10:22 PM Subject: [Proto-Scripty] Re: Masked Input in Prototype something like this: h

[Proto-Scripty] Re: Safari 4 will not finish download with 1.6.1

2009-07-29 Thread Tobie Langel
That's fixed in source code. Best, Tobie On Jul 29, 10:00 pm, Jason wrote: > I am experiencing the same thing > > On Jul 1, 7:28 pm, Seppo wrote: > > > > > Hi, > > Anyone else having prototype 1.6.1 (RC2 & RC3) to not finish loading > > on Safari 4 (4.0.1)? > > > Safari's Activity window show

[Proto-Scripty] $F() cannot get radio button values?

2009-07-29 Thread vtsuper
I have a simple question, is $F() cannot get radio button values? Should I use the old method document.form.xxx[0].checked to check the value??? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.ac

[Proto-Scripty] Re: how to use scripts without clicks

2009-07-29 Thread David McGlone
On Wednesday 29 July 2009 10:51:52 am DJ Mangus wrote: > OK, I'll explain this code, hopefully it's what you want. > > Observe is a prototype method to set event callbacks. So, > document.observe sets an event callback on the document. It takes two > arguments, the event name and a function (eit

[Proto-Scripty] Re: how to use scripts without clicks

2009-07-29 Thread DJ Mangus
> > > document.observe("dom:loaded", > >   function ShowEffect(){ >       new Effect.Appear(Show, >       {duration:3}); >   } > >   > > > > >     alt="" /> > > > > -- Quite a few errors there, first off you are naming the function, you cannot do that if you are using a function literal. S

[Proto-Scripty] Re: $F() cannot get radio button values?

2009-07-29 Thread Pong
I found a solution in the following link but is that means $F is only for textbox? http://proto-scripty.wikidot.com/prototype:tip-fetching-radio-button-value Element.addMethods('form',{ getCheckedRadioValue: function (formElement, name) { formElement = $(formElement); var checkedE