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
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
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
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.
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
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
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
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
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
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,
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
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,
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
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);
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
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
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
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
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
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
20 matches
Mail list logo