[Proto-Scripty] Re: IE7 problems....with simple prototype ajax

2008-12-05 Thread T.J. Crowder
Hi, You'll have better results getting answers from the list if you decribe the errors you're seeing, where they happen, and include code snippets rather than just providing a link. Amongst other things, if you just say What's wrong with this? and provide a link, it looks quite a lot like spam.

[Proto-Scripty] Ajax.Autocompleter is not a constructor error in Scriptaculous 1.8.2

2008-12-05 Thread [EMAIL PROTECTED]
Hello, After updating my scriptaculous library to 1.8.2 from 1.8.1 i get this error in firebug and my autocompleter script doesn't work: my scripts looks like this: script src={$URL_BASE}javascript/scriptaculous-js-1.8.2/lib/ prototype.js type=text/javascript/script script

[Proto-Scripty] Re: Is the new statement ever needed ?

2008-12-05 Thread fero
On Dec 3, 3:19 pm, Jerod Venema [EMAIL PROTECTED] wrote: Follow the documentation. Those are classes, and do need the new. To avoid JSLint errors, simply use extra parens: (new Ajax.Request({foo:'bar'})); Thank you but I prefer to allocate a temp variable, since imo this is not too much

[Proto-Scripty] Extracting the name from a JSON object

2008-12-05 Thread George
Hi Folks, This may be more of a pure JavaScript question than Prototype, but here goes: If I have a JSON array called RS for example containing this: [{bookingref:'A6D98FGR', canceled:0}] is there a way for me to programatically get the names and values? I'd like to be able to do something

[Proto-Scripty] Re: IE eval() question...

2008-12-05 Thread RobG
On Dec 4, 11:17 am, yoshi [EMAIL PROTECTED] wrote: heres my js: var stuff7=eval('function() {alert(stuff..);}') when i alert stuff7 it is undefined. The code passed to eval is treated at a function declaration. Without a name, it is a syntax error. now if i do this: eval('var

[Proto-Scripty] Re: Extracting the name from a JSON object

2008-12-05 Thread T.J. Crowder
Hi George, (It's a JavaScript rather than Prototype/script.aculo.us question, yes.) This object literal / JSON data: [{bookingref:'A6D98FGR', canceled:0}] ...defines an array with a single element, which is an object instance with two properties: bookingref (value 'A6D98FGR') and canceled

[Proto-Scripty] Re: Event.observe not working when called within class

2008-12-05 Thread Kyrus
I've tried Event.observe(window, 'scroll', function() { alert('hi') }); Event.observe(window, 'resize', function() { alert('hi') }); with no luck, not getting the alert. I cant help but think I'm getting the wrong object back for window... it seems like it should work. I event tried the old

[Proto-Scripty] Re: Event.observe not working when called within class

2008-12-05 Thread Kyrus
let me try pulling back the veil so to speak... heres more code, maybe Im doing something more fundamentally wrong: var Popup = Class.create( { initialize: function(Container, Window, FrameDiv, Frame, Title) { this.Container = Container; this.Window

[Proto-Scripty] Re: Event.observe not working when called within class

2008-12-05 Thread T.J. Crowder
Hi, I've tried Event.observe(window, 'scroll', function() { alert('hi') }); Event.observe(window, 'resize', function() { alert('hi') }); Don't know what that issue is, other than there can be a LOT of these events; the browser might suppress alerts. But again, once you've sorted out

[Proto-Scripty] Re: Other way of including Scriptaculus files?

2008-12-05 Thread Walter Lee Davis
On Dec 4, 2008, at 11:35 PM, Pc_Madness wrote: Hey guys, does anyone know of a way of including the Builder and Effects files without using the load function in Scriptaculus.js? I'm passing the page through a Proxy which fiddles with the links to things, but it misses the files which

[Proto-Scripty] Re: Event.observe not working when called within class

2008-12-05 Thread Kyrus
I figgured it out, and the solution makes absolutly no sense... I changed Event.observe(window, 'scroll', function() { alert('hi') }); to Event.observe(this.window, 'scroll', function() { alert('hi') }); and it works; however, when I alert(window) and alert(this.window) the only one that

[Proto-Scripty] Re: sound.js bug

2008-12-05 Thread Jerod Venema
The second argument should be an anonymous object. This should work: play('http://myurl.com/sound.wav', { replace: true }); On Fri, Dec 5, 2008 at 1:29 PM, Bill Walton [EMAIL PROTECTED] wrote: I think I've found a bug in the latest release of sound.js. This is the code in sound.js play:

[Proto-Scripty] Re: Extracting the name from a JSON object

2008-12-05 Thread Gabriel Gilini
I forgot to say that apparently Safari = 2.0 and IE5.2 on mac doesn't implement the hasOwnProperty method. Gabriel Gilini www.usosim.com.br [EMAIL PROTECTED] [EMAIL PROTECTED] On Fri, Dec 5, 2008 at 8:01 PM, Gabriel Gilini [EMAIL PROTECTED]wrote: If you want to iterate through an array with

[Proto-Scripty] Re: sound.js bug

2008-12-05 Thread Jerod Venema
D'you have the code up somewhere that I can take a look at? If not, I'll set one up... On Fri, Dec 5, 2008 at 7:26 PM, bill walton [EMAIL PROTECTED] wrote: Hi Jerod, Update below. I would really appreciate your, or anyone else's, feedback/help on this. I figured making three simple sounds

[Proto-Scripty] which is the right ajax result container in a html table?

2008-12-05 Thread Scrooge
Hello, I have a simple problem for somebody who already dealed with it, but still after trying for several days, no solution yet: I want to use Ajax.Updater to dynamically update single rows of a table. Furthermore I want to use Ajax.Updater to add new rows to the table. What I currently do is

[Proto-Scripty] Re: Problem with Effect.Move, Overflow:hidden and IE7

2008-12-05 Thread sunflower84
Hi I've got the same problem but haven't found a solution yet. Have you fixed your problem? On Nov 6, 10:19 am, hectorvox [EMAIL PROTECTED] wrote: I'm using a div with overflow:hidden wrapped around another div that I move left and right (using Effect.Move) to create a scroll area effect.

[Proto-Scripty] Ajax Slider and handleImage

2008-12-05 Thread David
I have found the following information and demo to be helpful: http://github.com/madrobby/scriptaculous/wikis/slider but, I am attempting to use a GIF in place of the handle by using the 'handleImage' tag. I have the following script in the html scriptnew Control.Slider('e_5_handle',