[Proto-Scripty] Sortable scrollSensitivity

2008-10-14 Thread Sixer
Hi all, The argument of Sortable.create() : scrollSensitivity, will start scrolling when element is x pixels from the bottom, where x is the scrollSensitivity. But i want a feature that i can control the scrollSensitivity when element is x pixels from the bottom and y pixels from the

[Proto-Scripty] Re: Drag Drop 'not-allowed' in IE for images

2008-10-14 Thread Jennifer
I'm getting this in IE7, too, despite setting my alt and title to "". I also found a two-year-old bug report on the issue: http://dev.rubyonrails.org/ticket/5274. Anyone have any other work- arounds to suggest? I haven't been having much luck. On Sep 5, 9:48 am, nimesh <[EMAIL PROTECTED]> wrote

[Proto-Scripty] Re: writing unintrusive javascript with prototype

2008-10-14 Thread RobG
On Oct 14, 5:07 pm, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: [...] > One way to do this is to have the relevant fields tagged with a > specific CSS class. An excellent response overall, but just for the record: the HTML class attribute is not targeted at CSS, it is for any purpose you wish to

[Proto-Scripty] Re: Datagrid using json

2008-10-14 Thread jason maina
@TJ: Been there and didnt see anything close to a datagrid unless the naming was 'flashy', will check again. @Matt will be checking the link & will give a feedback after giving it a test run. Thanks so far, hope to get more replies which will help more users of proto-scripty. On 10/14/08, T.J.

[Proto-Scripty] Re: unescape HTML tags

2008-10-14 Thread buda
I'm sorry - I forgot to add that this string is a part of HTML string 'Note from 14.10.2008 23:02:59
>' On 14 окт, 23:41, kangax <[EMAIL PROTECTED]> wrote: > On Oct 14, 4:28 pm, buda <[EMAIL PROTECTED]> wrote: > > > I have a string - 'Note from 14.10.2008 23:02:59 > b>
' >

[Proto-Scripty] Re: Datagrid using json

Hi, Have you checked over on http://scripteka.com/? Lots of stuff there. More resources on the "Extras" page of the unofficial wiki: http://proto-scripty.wikidot.com/extras HTH, -- T.J. Crowder tj / crowder software / com On Oct 14, 8:49 pm, "jason maina" <[EMAIL PROTECTED]> wrote: > Hi, > Ha

[Proto-Scripty] Re: unescape HTML tags

On Oct 14, 4:28 pm, buda <[EMAIL PROTECTED]> wrote: > I have a string - 'Note from 14.10.2008 23:02:59 b>
' > > I need to cobert it to an HTML form - 'Note from 14.10.2008 > 23:02:59' > > is it possible accomplish with prototype.js? 'Note from 14.10.2008 23:02:59
'.unescap

[Proto-Scripty] unescape HTML tags

I have a string - 'Note from 14.10.2008 23:02:59
' I need to cobert it to an HTML form - 'Note from 14.10.2008 23:02:59' is it possible accomplish with prototype.js? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Proto-Scripty] Re: Further constraints in sortable

Apply a more specific class to the top level element that you wish to make sortable. On Oct 14, 7:57 am, Lapis <[EMAIL PROTECTED]> wrote: > Hi! > > I hope someone has a good idea that can help me here. > I do Sortable.create(...) on some element () and > pass tag: 'div' and only: 'item' in the op

[Proto-Scripty] Re: Datagrid using json

I built some stuff, i wouldn't consider it a very robust datagrid control but I did develop two classes to deal with some basic datagrid stuff. GridBase is an abstract class that propagates events like rowover/ cellover stuff like that for handling highlights. http://positionabsolute.net/blog/200

[Proto-Scripty] NaN value crash showing up in slider.js script

In script.aculo.us v1.8.1 I'm getting a javascript NaN triggered error in IE6 in the slider.js (Line 143). Tracking it down with the basic debugger, I've discovered that offsetX and offsetY values are both NaN when the draw function is called. Sounds a lot like this bug: http://dev.rubyonrails.

[Proto-Scripty] Re: prototype and iframe

Thanks to all. I wanted to use the IFRAME to display the data of a query. But this display two scrollbars and they are ugly. as say Matt, I'm going to change for a DIV 2008/10/10 Diodeus <[EMAIL PROTECTED]> > > You don't use AJAX to put content into an Iframe. An Iframe is a new > separate docum

[Proto-Scripty] Datagrid using json

Hi, Have been searching for a datagrid 'control' for prototype+scriptaculous so far nothing positive. Any ideas in this direction rather how would one make such a UI? Thanks in advance, - Jason -- Sent from Gmail for mobile | mobile.google.com --~--~-~--~~~---~--~---

[Proto-Scripty] Re: Position.within - deprecated any alternatives?

The deprecated Position stuff needs to be moved into Scriptaculous. I remember there was a comment saying that but dunno when that's gonna happen. By now people are probably using Position.within/overlap methods without using Scriptaculous, moving them out of Prototype is probably gonna cause some

[Proto-Scripty] Re: Draggable interferes with Scrollbar operation

You can use defer (http://www.prototypejs.org/api/function/defer) to hold off execution of a function until the interpreter is idle. It should ensure the inserted content exists. Something like onComplete: function(){ ... ... (function(){ /* init draggable here*/ }).defer(); }

[Proto-Scripty] Position.within - deprecated any alternatives?

I've revising some old classes, since Position.within is deprecated, are there any alternatives? whiteShadow --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group,

[Proto-Scripty] Re: Ajax.Autocomplete Questions

I modified interface.php so that no additional URL parameter is required. The script has a require statement to pull in a DB access class and the code necessary to query the database and print the unordered list. I'm still seeing the same behavior. Hopefully firebug will shed some light once it

[Proto-Scripty] Further constraints in sortable

Hi! I hope someone has a good idea that can help me here. I do Sortable.create(...) on some element () and pass tag: 'div' and only: 'item' in the options. The problem is that the element I do Sortable.create on can contain nested elements of its own kind, and the options to Sortable.create will

[Proto-Scripty] Re: "Prototype.js (1.6.0.3) breaks Firebug (1.2.1) Options" allegedly.

On Oct 14, 11:03 am, "Richard Quadling" <[EMAIL PROTECTED]> wrote: > 2008/10/14 Justin Perkins <[EMAIL PROTECTED]>: > > > > > Ever since Firefox3, there have been many issues with Firebug and I > > find it pretty hard to believe that Prototype is the cause of these > > issues. There didn't seem to

[Proto-Scripty] Re: Problems with Chrome

On Oct 14, 4:32 am, "__proto__.__proto__" <[EMAIL PROTECTED]> wrote: > I think the problem comes from : > > Element.extend = (function() { >   if (Prototype.BrowserFeatures.SpecificElementExtensions) >     return Prototype.K; > ... > > } > > "Runtime created" elements do not behave as "HTML source

[Proto-Scripty] Re: "Prototype.js (1.6.0.3) breaks Firebug (1.2.1) Options" allegedly.

2008/10/14 Justin Perkins <[EMAIL PROTECTED]>: > > Ever since Firefox3, there have been many issues with Firebug and I > find it pretty hard to believe that Prototype is the cause of these > issues. There didn't seem to be anything wrong with running Firebug > and Prototype side-by-side on Firefox

[Proto-Scripty] Re: tutorials any help?

Hi T.J. Thank you for your quick answer, I am an architect and my brother is a graphic Designer who make webs, I try to help him to communicate with you guys the "GURUS" of this. I have no clue what so ever how he can learn about the background image that change at page load, Is anybody can help

[Proto-Scripty] Re: "Prototype.js (1.6.0.3) breaks Firebug (1.2.1) Options" allegedly.

Ever since Firefox3, there have been many issues with Firebug and I find it pretty hard to believe that Prototype is the cause of these issues. There didn't seem to be anything wrong with running Firebug and Prototype side-by-side on Firefox2. Guess it's easier to blame than to fix. What specifi

[Proto-Scripty] Re: Draggable interferes with Scrollbar operation

Aha. What might be happening here is that the result of this Ajax request is not "there" when your draggable code is invoked. Are you running your draggable wire-up in the onComplete of your Ajax update? If you do that, everything should be there by the time your code runs. If not, you mig

[Proto-Scripty] Re: writing unintrusive javascript with prototype

On Oct 14, 2008, at 3:07 AM, T.J. Crowder wrote: > So in that situation, we > don't want the HTML designers to have to do much to enable the > JavaScript, and we don't want the JavaScript coders to know that much > about the HTML. We want them both to have an agreed set of things > they each pro

[Proto-Scripty] "Prototype.js (1.6.0.3) breaks Firebug (1.2.1) Options" allegedly.

Hi. There's been this recent thread in the FireBug Google Group - http://groups.google.com/group/firebug/browse_thread/thread/095caa522cecbeca?hl=en# Is there any real issue here? -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on

[Proto-Scripty] Re: Draggable interferes with Scrollbar operation

On Mon, Oct 13, 2008 at 4:43 PM, Walter Lee Davis <[EMAIL PROTECTED]> wrote: > > I presume you are using 1.5 or later of Scriptaculous ... 1.8.1, yes. > I have always used the class form of the handle, but I see that you > may use an ID as well -- I stand corrected. > > > > Drag Me, oh please

[Proto-Scripty] Re: Problems with Chrome

I think the problem comes from : Element.extend = (function() { if (Prototype.BrowserFeatures.SpecificElementExtensions) return Prototype.K; ... } "Runtime created" elements do not behave as "HTML source" elements, in Chrome... It looks like they do not share the same prototype ! It seems

[Proto-Scripty] Re: SlideDown starting fron the bottom

Peter is right. SlideUp starts with a visible div and hides it from the bottom up. I want to hide a div and show it from the bottom up. On 14 okt, 10:42, Peter De Berdt <[EMAIL PROTECTED]> wrote: > I think the OP wants the element to start off hidden and slide up from   > the bottom. > > On 14 O

[Proto-Scripty] Re: SlideDown starting fron the bottom

I think the OP wants the element to start off hidden and slide up from the bottom. On 14 Oct 2008, at 10:31, T.J. Crowder wrote: > Isn't that a SlideUp? > http://github.com/madrobby/scriptaculous/wikis/effect-slideup > > I think I'm missing the point, though. > -- > T.J. Crowder > tj / crowder

[Proto-Scripty] Re: SlideDown starting fron the bottom

Isn't that a SlideUp? http://github.com/madrobby/scriptaculous/wikis/effect-slideup I think I'm missing the point, though. -- T.J. Crowder tj / crowder software / com On Oct 14, 9:29 am, Bart <[EMAIL PROTECTED]> wrote: > Hi > > I want to use the SlideDown effect, but it has to start from the > b

[Proto-Scripty] SlideDown starting fron the bottom

Hi I want to use the SlideDown effect, but it has to start from the bottom. So the contents from the div must be reveiled from bottom to top. Is this possible with scriptaculous? Thanks a lot. Bart --~--~-~--~~~---~--~~ You received this message because you a

[Proto-Scripty] Minimizing Download Times

Hi folks, It seems like there have been several threads recently that were (indirectly) about minimizing download times. I've thrown together a tip for the unofficial wiki on the topic, but it could (frankly) use review and improvement by people who've done more work on this stuff, like JDD. ht

[Proto-Scripty] Re: Using a string as object name?

> That would be considered an abuse of eval by most, bracket notation is > a much more appropriate solution. You're quite right, I was thinking the general case of turning text into executable code at runtime, but the OP's question was specifically about object names -- the other responses were d

[Proto-Scripty] Re: Adding onkeypress attribute at run time

> Am I missing anything? ...the earlier replies in this thread? ;-) Adapting kangax and Justin's responses to your handleEnter function: Step 1: Modify your handleEnter function so it accepts an event argument and calls its stop() function if it handles the keypress: function handleEnter(e

[Proto-Scripty] Re: writing unintrusive javascript with prototype

Hi Juan, Let's step back a moment and remember *why* we want to have minimally- intrusive JavaScript in our pages: Separation of concerns. In a decent-sized shop, the JavaScript coders are not the same people as the HTML designers. Each is a distinct skillset, and a shop that's big enough is s