[Proto-Scripty] Re: Decimal places

2009-03-05 Thread RobG
On Mar 5, 7:50 am, Bob wrote: > I'm relativley new to PrototypeJS. I >  am doing some calculation in a back end program and returning a JSON > string to my web page. One of the values is a price. If I return > 14.20, it gets converted in evalJSON to 14.2. I want to keep both > digits. I can fin

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread RobG
On Mar 5, 6:53 pm, Tobie Langel wrote: > Rob, > > Please have a look at the DOM specs. I have, the issue is how it's implemented. When the specs are written without ambiguity and all browsers follow them, it might be reasonable to use them as the sole criterion for doing something. But life’s

[Proto-Scripty] Re: $$ failing in FF3.1b3

2009-03-05 Thread Tobie Langel
Hi, Extending Object.prototype is regarded as a Bad Thing[1]. The main reason being that cross-browser support for hasOwnProperty is fairly recent (Safari 2 doesn't have it for example). Best, Tobie [1] http://erik.eae.net/archives/2005/06/06/22.13.54/ On Mar 5, 6:34 pm, Jim Higson wrote: >

[Proto-Scripty] Re: DOM and drag and drop

2009-03-05 Thread janrmr
oh I see.. so how can i register the id="image1" after the page load, so i can pass it to scriptaculous drag and drop? I'm really new in javascript and DOM so I hope you dont mind explaining to me and pointing me to the right solutions TIA On Mar 6, 12:56 am, ColinFine wrote: > On Mar 4, 3:51 

[Proto-Scripty] Re: passthrough of

2009-03-05 Thread erling
Hi Many hours of work and still no solution, thanks for the help to all of you who have responded to my post. Now I do not know what to do, had really needed to achieve this. Yours Erling function test(url) { var element='trimm'; var req=new Ajax.Request(url, { evalScripts: false,

[Proto-Scripty] How to get the latest prototypejs source under windows system?

2009-03-05 Thread buda
it's not clear how for now the right way to get the latest source Early it was possible with Rubby for Windows with rake command Now, as I understand, it's not working How to get the latest prototypejs source under windows system? --~--~-~--~~~---~--~~ You receive

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread Quleczka
> It's ok, I can use the method you mentioned > above for Form Elements and the generic version for others. I think $(a).attribute=value; works for both types... but I'm not the expert ;) Good luck :) Quleczka --~--~-~--~~~---~--~~ You received this message becau

[Proto-Scripty] Re: General Questions

2009-03-05 Thread Lee Jenkins
Quleczka wrote: >> http://ajax.googleapis.com/ajax/ >> libs/prototype/1.6.0.3/prototype.js"> >> >> Event.observe(window, 'load', function() { >> >> }); >> >> >> > > Why? > > Why not include prototype and other things in the head section of the > page? If you use observe it on window load

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread Lee Jenkins
Quleczka wrote: > Hi, > >> That may have well been the case. I was trying to use writeAttribute with a >> Text Input. I assumed that it would work and apparent does in IE7. > > I'm curious, which attribute were you trying to set - just a value > of this input field? > >> - For setting or ge

[Proto-Scripty] Effect Problems

2009-03-05 Thread John McGowan
As I said in my last post, I'm brand new to Proto and Scripty. I apologize a head of time for this newbie question. I was just testing out a simple little page that uses Ajax.Updater to get new content and drop it into a div. It works just fine, over and over again, without trouble. However, wh

[Proto-Scripty] Re: $$ failing in FF3.1b3

2009-03-05 Thread Jim Higson
On Thursday 05 March 2009 16:16:05 Jim Higson wrote: > Hi, > > Is anybody else finding this? Does Prototype from git work with FF3.1? On closer inspection, it is quite easy to get Prototype to throw similar errors even in FF3. It just happens that my present code only provokes it in 3.1. For e

[Proto-Scripty] Array.without() problem

2009-03-05 Thread webbear1000
Hey peeps! I'm sure I'm missing something obvious here but I can't for the life of me figure out what's going wrong. I'm trying to use Array.without() to get rid of a number from an array in the fourth line of my code. The trouble is, it returns an array with all instances of the index set to ze

[Proto-Scripty] Re: Drag and Drop with conditional revert

2009-03-05 Thread ColinFine
On Mar 5, 12:30 pm, david wrote: > Hi ColinFine, > Thanks for replying. > I think that the method that will hide the element during request is > as you say BAD :(( Yes > I will do another way: > - if dropsite is good, just lauch AJAX request, but before set a > spinner inside, near, where you

[Proto-Scripty] Re: observe changes from javascript

2009-03-05 Thread ColinFine
On Mar 4, 4:14 pm, Matt Zagrabelny wrote: > Greetings, > > I am trying to observe a element's value changing when its > value changes programmatically. The observation works when a human > changes the select's value, but not when the javascript changes it. > > I know that I could add some more

[Proto-Scripty] Re: DOM and drag and drop

2009-03-05 Thread ColinFine
On Mar 4, 3:51 am, janrmr wrote: > hi to all expert > > How can i drag an item when using DOM , so far I am receiving an error > in prototype.js line 1903 "element is null" > That error nearly always means that you're calling a Prototype (or scriptaculous) method on an element which doesn't (y

[Proto-Scripty] Re: Processing Ajax.updater response before updating container

2009-03-05 Thread Quleczka
> In my framework, sometimes there is debugging information dumped at > the bottom of the page. I would like to know what the easiest way to > "scrub" that debug output would be with prototype.  My framework > outputs a very unique string before the debug output. So, a simple > "substring-before"

[Proto-Scripty] Re: Position of div with suggests

2009-03-05 Thread Quleczka
> Is it possible, to manually set the div's position? I had another > autocomplete script before, where I could playce the div via > stylesheets and it worked perfect in every browser. Now in > scriptaculous' autocomplete script no settings related to the div's > width or position are working. Wh

[Proto-Scripty] $$ failing in FF3.1b3

2009-03-05 Thread Jim Higson
Hi, Is anybody else finding this? Does Prototype from git work with FF3.1? Thanks, Jim -- Jim my wiki ajaxification thing: http://wikizzle.org my blog: http://jimhigson.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Proto-Scripty] Processing Ajax.updater response before updating container

2009-03-05 Thread Steakfest
I just started using prototype and scriptalicous yesterday. I was able to get an Ajax update call working with very little effort. Thanks to the community for such great documentation. In my framework, sometimes there is debugging information dumped at the bottom of the page. I would like to kno

[Proto-Scripty] Re: Decimal places

2009-03-05 Thread T.J. Crowder
Hi, If you're passing it as a numeric literal, e.g.: { "price": 14.20 } ...what you're dealing with is a number, which you'll later *render* as a string for display. All JavaScript numbers have the same precision, which I'm not quite geeky enough to quote you. ;-) You'll need to handl

[Proto-Scripty] Re: General Questions

2009-03-05 Thread Quleczka
> http://ajax.googleapis.com/ajax/ > libs/prototype/1.6.0.3/prototype.js"> > > Event.observe(window, 'load', function() { > > }); > > > Why? Why not include prototype and other things in the head section of the page? If you use observe it on window load it doesn't haveto byat the end of

[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  Bl

[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 subsc

[Proto-Scripty] Re: Passing value sub pseudo function

2009-03-05 Thread T.J. Crowder
Hi, > The question is, how can I pass the currentElement value to that > pseudo function? It's not a psuedo-function, it's a function. It's anonymous, but other than that it's exactly the same as any other function. I'm not saying that to be pedantic. Getting a deep understanding JavaScript f

[Proto-Scripty] Re: Having an issue with bubbling of a SELECT's onChange event in IE.

2009-03-05 Thread Walter Lee Davis
On Mar 5, 2009, at 9:44 AM, Richard Quadling wrote: > > 2009/3/5 david : >> >> Hi Richard, >> >> not tested, just thought: does it works with DOM0 event ?? >> >> -- >> [snip] > > Sorry for being such a newbie, but can you explain that? > > -- > - I think he means if you use an inline 'onch

[Proto-Scripty] Re: Decimal places

2009-03-05 Thread Matt Zagrabelny
On Wed, 2009-03-04 at 13:50 -0800, Bob wrote: > I'm relativley new to PrototypeJS. I > am doing some calculation in a back end program and returning a JSON > string to my web page. One of the values is a price. If I return > 14.20, it gets converted in evalJSON to 14.2. I want to keep both > digit

[Proto-Scripty] Fade In and Fade Off

2009-03-05 Thread Akshit Soota
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-scriptacu

[Proto-Scripty] Passing value sub pseudo function

2009-03-05 Thread DasJan
Hi! I have the following code: var LightIt = { timeout : null, highLight : function(elementId){ clearTimeout(this.timeout); var allpics = 50; for (var i=0; i < allpics; i++) { var currentElement = 'pic' + i; var dumm

[Proto-Scripty] Problem with Effect.SlideDown on MSIE6

2009-03-05 Thread Julien
Dear all, I've been trying a lot of things but I can't get it work. I use Effect.SlideDown on a page but it won't work, even with another div inside my main div: http://tinyurl.com/d5n2l2 Click on the "+" button on the bottom right thumbnail or call the addLine() function. It works perfectly in

[Proto-Scripty] Decimal places

2009-03-05 Thread Bob
I'm relativley new to PrototypeJS. I am doing some calculation in a back end program and returning a JSON string to my web page. One of the values is a price. If I return 14.20, it gets converted in evalJSON to 14.2. I want to keep both digits. I can find how to pad the left of a nmber to a certa

[Proto-Scripty] observe changes from javascript

2009-03-05 Thread Matt Zagrabelny
Greetings, I am trying to observe a element's value changing when its value changes programmatically. The observation works when a human changes the select's value, but not when the javascript changes it. I know that I could add some more logic to the button push, but would like to avoid that if

[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

[Proto-Scripty] [Ajax.Autocomplete] Position of div with suggests

2009-03-05 Thread Mr. Snoot
Hi, I've tried Ajax.Autocomplete and it works fine in Firefox 3 and Opera 9. Unfortunately it doesn't in IE6, 7, 8. In IE8 the div with the suggested words from the database is placed not correct. In FF/Opera the div is directly shown below the input field but in IE8 it's about 100 px above and

[Proto-Scripty] Slide Down/Slide Up w/Overlay

2009-03-05 Thread Avram
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

[Proto-Scripty] DOM and drag and drop

2009-03-05 Thread janrmr
hi to all expert How can i drag an item when using DOM , so far I am receiving an error in prototype.js line 1903 "element is null" here is my simple code function imagedrag(name) { new Draggable(name); } function gen() { document.getElementById("wa").innerHTML="

[Proto-Scripty] General Questions

2009-03-05 Thread Lee Jenkins
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

[Proto-Scripty] Re: Having an issue with bubbling of a SELECT's onChange event in IE.

2009-03-05 Thread Richard Quadling
2009/3/5 david : > > Hi Richard, > > not tested, just thought: does it works with DOM0 event ?? > > -- > david > > On 26 fév, 16:22, Richard Quadling wrote: >> Hi. >> >> Below is a simple example of the problem I'm having. >> >> In FF and Chrome, the change event is bubbled to the dynamicContaine

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread Quleczka
Hi, > That may have well been the case.  I was trying to use writeAttribute with a > Text Input.  I assumed that it would work and apparent does in IE7. I'm curious, which attribute were you trying to set - just a value of this input field? > - For setting or getting the value attribute of Fo

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread Lee Jenkins
Tobie Langel wrote: > Rob, > > Please have a look at the DOM specs. > > The only area where you should not be using writeAttribute is: > > - When you want to store anything but a string (use the new storage > API or expandos directly). > - For setting or getting the value attribute of Form elem

[Proto-Scripty] Re: On Licensing for a Calculator Generator

2009-03-05 Thread david
Hi, I did not think there is any conflict with the MIT license, until you respect the term of MIT license :)) -- david On 26 fév, 17:49, Eman Calso wrote: > I'm developing a calculator generator[1] using prototype and i'm > wondering if i can release this under the GNU GPL (version 2) License >

[Proto-Scripty] Re: Having an issue with bubbling of a SELECT's onChange event in IE.

2009-03-05 Thread david
Hi Richard, not tested, just thought: does it works with DOM0 event ?? -- david On 26 fév, 16:22, Richard Quadling wrote: > Hi. > > Below is a simple example of the problem I'm having. > > In FF and Chrome, the change event is bubbled to the dynamicContainer. > In IE it isn't. > > Am I doing s

[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{margi

[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

[Proto-Scripty] Re: Drag and Drop with conditional revert

2009-03-05 Thread david
Hi ColinFine, I think that the method that will hide the element during request is as you say BAD :(( I will do another way: - if dropsite is good, just lauch AJAX request, but before set a spinner inside, near, where you want to indicate that actually the apply is processing something. - If resp

[Proto-Scripty] Re: positionedOffset with floated elements

2009-03-05 Thread david
Hi Knad, I would probably use the "afterUpdateElement" callback of the autocompleter to modify the autocompleter DIV poisition. In fact, it just need to reset the left value. -- david On 25 fév, 16:59, Knad wrote: > Hello All! > > I am struggling to get this autocomplete div positioned correct

[Proto-Scripty] Re: How to resize window without screen flickering

2009-03-05 Thread david
Hi Mel, Could we have an online exemple ?? because just reading the code, What you does seems good !! -- david On 25 fév, 16:16, Mel wrote: > I have a JSP page whereby I am displaying a table that contains rows > of each data record.  Each record has an icon at the beginning of each > row that

[Proto-Scripty] Internet Explorer 7 & 8

2009-03-05 Thread Jeztah
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.

[Proto-Scripty] Re: writeAttribute problem

2009-03-05 Thread Tobie Langel
Rob, Please have a look at the DOM specs. The only area where you should not be using writeAttribute is: - When you want to store anything but a string (use the new storage API or expandos directly). - For setting or getting the value attribute of Form elements (use FormElement#(get|set)Value i

[Proto-Scripty] Re: passthrough of

2009-03-05 Thread majestixx
Hi, I got it now running with element.innerHTML instead of element.update. Seems that when set by innerHTML the scripts are fortunately not executed and then stripped out. $(element).innerHTML = transport.responseText; Hope thats also the solution to your problem. On 4 Mrz., 22:05, erling wrot