[Proto-Scripty] Re: Having an issue with a draggable

2009-01-12 Thread alias1
Hrmm, turns out using innerHTML and += wasnt the best choice. Got it working when I switched it to new Element...etc - Glenn On Jan 12, 2:06 am, alias1 gl...@ensquared.net wrote: Hey all, I am having an issue with a draggable not being draggable. It shows up in the list of drags, yet if I

[Proto-Scripty] Re: Problem with retrieving value from form select

2009-01-12 Thread Jonathan Rosenberg
Shouldn't this be $F('user_cert_agency') not just $F(user_cert_agency) -- Jonathan Rosenberg Founder Executive Director Tabby's Place http://www.tabbysplace.org -Original Message- From: prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Can an element of a Sortable also be an independent Droppable?

2009-01-12 Thread Walter Lee Davis
I have a div#timeline which is a Sortable. There are multiple instances of div.clip in a separate div which are each draggable, and when dropped over div#timeline get cloned into #timeline and the Sortable is called again to reset everything. Each cloned .clip can be trimmed (this is a

[Proto-Scripty] 404s for GET /javascript/'+libraryName+'

2009-01-12 Thread Richard Davies
Hi! I think I'm seeing a bug in Scriptaculous 1.8.2, but would appreciate people's help before I report it. My website (www.elastichosts.com) uses Scriptaculous, and I see sequences like the following in my logs... GET / HTTP/1.1 200 15768 - Java/1.6.0_04 GET /javascript/prototype.js HTTP/1.1

[Proto-Scripty] Opera and $$('.wrapper .class') seems not to work correctly

2009-01-12 Thread Cyrus
Hi there, I have found a weird behaviour in the opera browser. I am not sure if this is really a bug or an intended behaviour. The following example shows that the $$ function only returns one element instead of two. This is only because the second element is in a different dom level. All other

[Proto-Scripty] Re: Problem with retrieving value from form select

2009-01-12 Thread ph...@ryangibbons.net
You're correct it should... but that does not fix the problem in this instance, in face it makes it worse. The reason I did not include the single quotes is because that escapes you from the parameters, and without single quotes $F(user_cert_agency) still functions correctly on a normal text

[Proto-Scripty] Prting Mootools-Script to Scriptaculous / Prototype

2009-01-12 Thread zeitmeister
Hi there, I am fairly new to Javascript in general. So I wanted to ask you if you could help me, I'm very frustrated. This is a Mootools-Script: script type=text/javascript !-- window.addEvent('domready', function() { //set the default div activeDiv = 'content1';

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-12 Thread kangax
On Jan 12, 10:37 am, Cyrus arianglan...@googlemail.com wrote: Hi there, I have found a weird behaviour in the opera browser. I am not sure if this is really a bug or an intended behaviour. [...] Which versions of Prototype.js and Opera? -- kangax

[Proto-Scripty] Re: Prting Mootools-Script to Scriptaculous / Prototype

2009-01-12 Thread Walter Lee Davis
I didn't read through all of your script, but if this is your point of failure, then realize that the select method always returns an array, even if it only finds one such. If you want to return one element and use it immediately, try down('a') instead. But if you don't know how many a

[Proto-Scripty] Nearly!

2009-01-12 Thread zeitmeister
That did it, thank you very much! Now, there's a little issue left; have a look here if you want to: http://zentapher.com/designundmedia/test.html I suppose it doesn't manage to attach the correct active-tags to the DIVs and Links ... maybe, I didn't deload them correctly? We are close from

[Proto-Scripty] Re: Prting Mootools-Script to Scriptaculous / Prototype

2009-01-12 Thread Walter Lee Davis
It's probably applying them, but you haven't defined them in your styles. addClassName('active') will turn your link into a href=foo class=active ... but I suspect you are trying to set the :active pseudoclass instead, which browsers have built into their stylesheets and which you can

[Proto-Scripty] Re: change link behavior by classname

2009-01-12 Thread Eric
On Dec 27 2008, 3:38 am, kangax kan...@gmail.com wrote: document.observe('click', function(e, el) {   if (el = e.findElement('.myClassName')) {     e.stop();     alert(e.element().href);   } }) Wouldn't it be: if ((el = e.findElement('.myClassName'))!=document) { ? Prototype 1.6

[Proto-Scripty] Re: Prting Mootools-Script to Scriptaculous / Prototype

2009-01-12 Thread zeitmeister
Hey Walter, it got nothing to do with the link-pseudo-classes ... I suppose. Because I've got it running now!!! Have a look: http://zentapher.com/designundmedia/test.html Thank you very, very much! I'm gonna implement the correct ids now; I hope it wouldn't mess up anything. :-)

[Proto-Scripty] Re: Prting Mootools-Script to Scriptaculous / Prototype

2009-01-12 Thread zeitmeister
One thing: It seems like the script is getting slower the more often it is executed ... in tested in Firefox on Mac. In Safari, everything seems to be okay ... is this a known Bug and does it have something to doch with Scriptaculous or Prototype in General?

[Proto-Scripty] Re: Removing option from form bean

2009-01-12 Thread shintamanning
I find out what was wrong. Just like checkboxes in struts, I have to reset the attribute before I populate it. The script works, but struts is just a little more stubborn. Thanks for your help! Shinta Manning Web Developer (515)557-8880 MAC F4030-030 . AIM Upcoming PTO: December 18th -

[Proto-Scripty] Re: Problem with retrieving value from form select

2009-01-12 Thread freshteapot
Hi, To get it working you need an id, because of the way you have written your code. ( I show you at the end, what I think is a better way ) FROM: new Ajax.Updater('user_cert_type','inc/actions/certifications.php', { method: 'post', parameters:'agency=' + $(id).getValue()}); return false;

[Proto-Scripty] Opera Mobile support

2009-01-12 Thread Lox
Hello, Seems there is a problem using prototype.js with latest Opera Mobile. I remember that a prior (unofficial) beta version of Opera Mobile worked with prototype whereas latest doesn't. I own a HTC Touch HD (lucky guy) with has Opera Mobile. I don't have any clues of what is going wrong

[Proto-Scripty] Re: Opera Mobile support

2009-01-12 Thread kangax
On Jan 12, 9:10 pm, Lox laurent.dincl...@gmail.com wrote: [...] I only found one clue. A guy says that Jquery won't work with Opera Mobile because it relies on function decompile (http://my.opera.com/ hallvors/blog/show.dml/1665828). Does prototype relies on function decompile too? Yes it

[Proto-Scripty] Re: Is this a bug? an element is enclosed unexpectedly by an inserted method.

2009-01-12 Thread kangax
On Jan 12, 11:04 pm, Hamamoto Noriaki norisu...@gmail.com wrote: Hey Kangax, Thank you for the reply. Do you think the reason of the problem I met is because of using div/ instead of div/div ? is Using /div prohibitted? Do you know why it happns? I'm pretty sure some browsers (at least FF)