[Proto-Scripty] passthrough of script-Tags

2009-01-25 Thread majestixx
Hi, I am a writing on an Advertisement Manager, in this it should be possible to edit Advertisement Codes in a Textbox (normal Textarea), but I have a problem loading the codes from the database to the textarea via prototypes ajax.updater. In the response of the ajax request the script is still

[Proto-Scripty] Re: Avoiding bubbleling

2009-01-25 Thread T.J. Crowder
Hi, That code is passing Event#element an Element object; it doesn't accept Elements, it accepts Events (the object passed into an event handler). I don't know that I understand what you're trying to do and what the problem is. Can you post a full, self-contained, but minimalist example?

[Proto-Scripty] Re: Avoiding bubbleling

2009-01-25 Thread Geoffroy Gomet
Here is an example of what I want to do: ... div class='center_part' div id='logo'%=image_tag '/images/logo.png'%/div div id='description'lorem ipsum/div /div ... $('logo').observe('mouseover',

[Proto-Scripty] Re: Avoiding bubbleling

2009-01-25 Thread Geoffroy Gomet
Thanks a lot TJ, I was beginning to think in that direction. This should solve my problem. Once more, thank you for the quick response. Geoffroy On Jan 25, 6:14 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, On the mouseover bit, the problem isn't really the bubbling, since you'd

[Proto-Scripty] Re: Draggable and Droppable - Update Database (Very Close!)

2009-01-25 Thread KaR
Hi, I actually figured it out, there were a couple of errors in my syntax. However, I do have one question regarding adding multiple Droppables. Is there any easy way to just declare all the droppables in one line of code? For example, I have five DIVs that are my droppables. They all have an

[Proto-Scripty] Form.request() ... Which submit button did the user press?

2009-01-25 Thread Matt
Is there any way of knowing which submit button was pressed from the post passed by Form.request()? I'm just getting the first submit button in the form, no matter which one I press. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Proto-Scripty] Possible incompatibility with JSON library?

2009-01-25 Thread nlloyds
I'm using this code: script src=http://www.json.org/json2.js;/script script runat=server src=https://ajax.googleapis.com/ajax/libs/ prototype/1.6.0.3/prototype.js/script script runat=server document.write(JSON.stringify([])); /script Which will output null with the Prototype script tag. If

[Proto-Scripty] Re: Possible incompatibility with JSON library?

2009-01-25 Thread Jerod Venema
Not sure about the bug, but is there a reason you can't use the prototype JSON methods? On Sun, Jan 25, 2009 at 7:30 PM, nlloyds nllo...@gmail.com wrote: I'm using this code: script src=http://www.json.org/json2.js;/script script runat=server src=https://ajax.googleapis.com/ajax/libs/