[Proto-Scripty] Re: Overwrite onClick in IE

2009-03-24 Thread Richard Quadling
2009/3/24 tkane2000 tkthomp...@gmail.com: ...long story as to why I need to do this, but I have a set of links that already have onClick event handlers set and I need to overwrite them.  If I could just get them to return false and do nothing else, I could use the observe method to the the

[Proto-Scripty] Disappearing List Bug

2009-03-24 Thread vanq69
Hi guys, I have a list of sortable items, there are 2 droppables enabled with the list, 1 to delete it and the other to place a linked item in another sortable list utilising a relational database. This all works fine except for this bug: When I add an item to the second list it goes there no

[Proto-Scripty] Re: Overwrite onClick in IE

2009-03-24 Thread Gabriel Gilini
Are they all DOM 0 handlers? If so, just set them all to null. links.each(function(el){el.onclick=null}); Gabriel Gilini www.usosim.com.br gabr...@usosim.com.br gabr...@souagil.com.br On Tue, Mar 24, 2009 at 2:24 AM, tkane2000 tkthomp...@gmail.com wrote: ...long story as to why I need to do

[Proto-Scripty] HTML from a web serivce

2009-03-24 Thread S
I am calling a web serivce passing parms like the example:. It shoul return html like the below. The web service is getting called it is returing data but the html is being outputed as literal text not html text. What am I missing from this call? Everything works bu the output is not correct.

[Proto-Scripty] Re: Prototype Code Collides with Existing Code

2009-03-24 Thread T.J. Crowder
Hi, If you're using Prototype and jQuery on the same page, you'll need to use jQuery's noConflict mode[1] because both Prototype and jQuery (by default) try to use the same global symbol ($). Another (unrelated) common reason things stop working when Prototype is added to a page is that other

[Proto-Scripty] new Ajax.Updater, method: get, asynchronous:true....

2009-03-24 Thread JT
I have a loop that runs this: new Ajax.Updater('usersOnline','users.php', { method:'get', asynchronous:true }); which returns a list of users that are online. If a new user appears it will play a sound (ding). In the data that is returned (from users.php) I want to include code (javascript) to

[Proto-Scripty] Re: Overwrite onClick in IE

2009-03-24 Thread T.J. Crowder
Are they all DOM 0 handlers? If so, just set them all to null. links.each(function(el){el.onclick=null}); Indeed, no need for writeAttribute or anything. Set the onclick property to null or '' (but not undefined; for some reason IE doesn't like undefined). There was a recent discussion on a

[Proto-Scripty] Re: HTML from a web serivce

2009-03-24 Thread T.J. Crowder
Hi, My suspicion is that your web service is escaping what you return at a lower level, and so what you're getting back is a document (probably an XML document, given this is web services) containing lt;h1gt;This is a testlt;h1gt;. If you use Firebug[1] or the IE developer's toolbar, you should

[Proto-Scripty] Re: new Ajax.Updater, method: get, asynchronous:true....

2009-03-24 Thread T.J. Crowder
Hi, Ajax.Updater does support scripts, but only inline (not external JS files). It uses Element#update[1] behind the scenes, which in turn uses String#evalScripts[2]; more in the API pages for those. FWIW, an alternate approach would be to return the data in JSON format with flags on new

[Proto-Scripty] Re: a problem with event.stop in FF2

2009-03-24 Thread doron
ok, this was my mistake. it seems we sometimes pass Event.stop an object which is not an event. On 23 מרץ, 14:46, T.J. Crowder t...@crowdersoftware.com wrote: Hi, I definitely successfully used Event#stop with FF2 in Prototype 1.6 at some point.  Can you post a minimalist, but complete,

[Proto-Scripty] Re: Ajax.Autocompleter no default selection

2009-03-24 Thread claus.k...@googlemail.com
Hello everyone, I would like to use Ajax.Autocompleter as suggestions, i.e. not automatically select the first entry. How can I do that? Ok, it seems this is simply not possible... Here is what I do: pChoose Search criteria:/p p select name=type id=type size=5

[Proto-Scripty] Re: new Ajax.Updater, method: get, asynchronous:true....

2009-03-24 Thread JT
Much appreciated! On Mar 24, 7:21 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Ajax.Updater does support scripts, but only inline (not external JS files).  It uses Element#update[1] behind the scenes, which in turn uses String#evalScripts[2]; more in the API pages for those. FWIW,

[Proto-Scripty] Re: new Ajax.Updater, method: get, asynchronous:true....

2009-03-24 Thread Richard Quadling
2009/3/24 T.J. Crowder t...@crowdersoftware.com: Hi, Ajax.Updater does support scripts, but only inline (not external JS files).  It uses Element#update[1] behind the scenes, which in turn uses String#evalScripts[2]; more in the API pages for those. FWIW, an alternate approach would be to

[Proto-Scripty] IE8 and Position.clone (prototype 1.4) and Element.clonePosition (prototype 1.6)

2009-03-24 Thread ced
I had a problem cloning position with prototype 1.4 and 1.6 in ie8 don't know exactly why it behaves like this.. but that's my solution: hope it could be useful: In 1.4 I changed this if (Element.getStyle(target,'position') == 'absolute') { parent = Position.offsetParent(target);

[Proto-Scripty] Scriptaculous Ajax.InPlaceEditor does not work with HTML

2009-03-24 Thread Yako
Hello, I'm using the Scriptaculous Ajax.InPlaceEditor to edit data from my database. Actually, it works perfectly at first, when there is no data in the database ; Here is what I have in my navigator source code : p id=edit title=Click to edit New text to edit here /p I can create a new

[Proto-Scripty] Rails auto_complete and Prototype 1.6.0.3

2009-03-24 Thread Jon Garvin
I also posted this to the Rails mailing list, but seeing as how these seems to be more prototype related, I figured I'd try here too. We've got a site running on Rails 2.2.2 with Prototype 1.6.0.3 that uses the rails/auto_complete plugin from github. We just discovered that, in IE7 (haven't

[Proto-Scripty] Issue with Safari and IFrame

2009-03-24 Thread Samyem Tuladhar
Guys, I have a test case here that makes a simple call with prototype/ scriptaculous: http://www.yomari.net/~samyem/tests/test.html It seems to work in all browsers except for Safari. Commenting the getdoc(); inside the iframe makes it work though. Not sure what's happening. Any help

[Proto-Scripty] Re: IE8 and Position.clone (prototype 1.4) and Element.clonePosition (prototype 1.6)

2009-03-24 Thread Rod
Is your target element visible? I hit this same problem with IE8 in our app for elements that were created with display:none;, IE8 seems to think they don't have the right offsetParent. To fix, I simply made them visible before calling clonePosition and the parent delta was included correctly in

[Proto-Scripty] Windows.AddObserver({onEndResize:ResizeFunction})

2009-03-24 Thread Edward
Has anyone ever gotten this method to work on IE? I am trying to handle an event when resizing has been completed. (ResizeFunction is the name of my function that will do this.) Yet it seems at if either the event never fires or the addObserver never adds the handler. I tried to google a

[Proto-Scripty] multi-page apps -- code organization

2009-03-24 Thread Doug Reeder
I'm writing an app with three or four views, which are implemented as separate HTML pages. Any of the pages might be the first one loaded. Some code needs to be executed regardless of which page loads first, and some code is specific to each of the pages. Currently, I have code strewn