Yes, the way you would do this in prototype is to create an html element
such as a button, link, input, etc and add an onclick event handler to
that element. When the onclick event is invoked on that element, you would
want to use Element.insert() to dynamically insert a new file input element
to
Thank you for your solution. Now my form removes Ajax.Autocompleter when I
remove a form element.
On Thu, Apr 29, 2010 at 11:49 PM, Sébastien Gruhier sgruh...@gmail.comwrote:
Hi
I'll add a Ajax.Autocompleter#release method like this.
Ajax.Autocompleter.addMethods({
release: function() {
Hi all, I was wondering if anyone could help with an issue I'm seeing
when trying to use Draggables with scriptaculous 1.8.1.
My code is of the following form, where I loop through an array of DOM
elements and create a Draggable providing the element's id:
for (var i = 0; i els.length; i++) {
Hi Walter, if you want to get all similar elements up to but not including
the next head, I would use Prototype's Element.nextSiblings() to loop
through all elements with the same tagName and break when the tagName is
different. Here is a function I created just now that would hopefully do
what
;
}
On Mon, Feb 22, 2010 at 9:50 AM, Alex Wallace alexmlwall...@gmail.comwrote:
Paul, one recommendation: store the results of element.nextSiblings() in a
local variable outside of the loop. DOM traversals are pretty slow.
Best,
Alex
On Mon, Feb 22, 2010 at 12:28 PM, Paul Kim kimba
Hi, I was able to pause and resume PeriodicalExecuter without using your
PeriodicalExecuter class. I ended up using the standard
PeriodicalExecuter#stop method and resumed the PeriodicalExecuter by
delaying the execution for 5 seconds using the Function#delay method and by
binding it to the
I don't know of any examples of what you are trying to achieve. However, it
could be accomplished using PeriodicalExecuter and
Effect.appear/Effect.fade.
On Sun, Jan 31, 2010 at 12:16 PM, greyhound b...@greyhound-computing.comwrote:
Hi everyone,
I have been using the script library to create
. I don't think I would have been able to figure out this problem
without your help so THANK YOU VERY MUCH!
On Wed, Jan 13, 2010 at 11:13 AM, david david.brill...@gmail.com wrote:
Hi Paul,
sorry, I made a mistake, in your case, it return the Element and not a
scriptaculous Effect Object.
I
Hi David, thank you for your response and what you explained is exactly what
I'm trying to do. I have tried your code sample, but I get an error from the
Firebug console: effectInExecution.cancel is not a function. Here is the
code that I have used: http://pastie.org/775288. It seems that
Thanks for your opinion. I think I will take the DOM approach as well.
On Fri, Jan 8, 2010 at 1:12 AM, Alex McAuley
webmas...@thecarmarketplace.com wrote:
Some SEO experts will argue that google for example will mark you down for
hidden content in a page as it may think you are trying to
Sorry, but I'm afraid your simple-but-not-smart way addresses the problem
because I am observing elements with class, not id.
On Thu, Dec 31, 2009 at 2:30 AM, Frédéric f...@gbiloba.org wrote:
On jeudi 31 décembre 2009, kimbaudi wrote:
Hi, I know how to observe elements with class=test.
That is a great solution if I have a few elements with class that starts
with test_ or ends with _test. But what if I have 1,000 elements that
start with test_ or ends with _test? Do you really want me to do this:
$$(.'test_1', 'test_2', ... 'test_1000') or $$('first_test', 'second_test',
...
on the
client
Secondly. If you have to have 1000 elements on a single page that require
observers -I- would go back to thee drawing board and rethink my
application.
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
*From:* Paul Kim kimba...@gmail.com
*To:* prototype
is a pastie to add onclick observers to elements with a class that has
a suffix of _test: http://pastie.org/762433. Glad to know that Prototype
supports CSS3 selectors for the $$ function. Cheers.
On Thu, Dec 31, 2009 at 3:49 AM, Paul Kim kimba...@gmail.com wrote:
Sorry, I was just suggesting
I do not experience your problem of having Element.setOpacity not working in
IE8 w/o compatibility mode. Here is a pastie that demonstrates
Element.setOpacity working in IE8: http://pastie.org/762888. If you view
this in IE8 w/o compatibility mode, you will notice that the setOpacity
makes the
even compensate your for your time, if you can
show me my example working (via screencast video or something).
for reference:
http://wiki.github.com/madrobby/scriptaculous/sortable-create
http://www.gregphoto.net/sortable/advanced/
Thanks
Paul
:
{
parameters: 'id='+myid
}
How can I pass the id as a query parameter in the 2nd Autocompleter?
Thanks,
Paul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email
Wouldn't this work?
var pe = new PeriodicalExecuter(function(pe) {outsideFunction();}, 3);
pe.stop();
On Thu, Aug 27, 2009 at 1:06 AM, T.J. Crowder t...@crowdersoftware.comwrote:
Hi,
I've searched high low for this but I haven't been able to dig
anything specific up about stopping the
Okay, I do see it documented there. I was looking at the PDF version
I downloaded a while ago, which is missing that part. I should have
checked the online version first, but I didn't think of it. Thanks
for your help,
--Paul
On Aug 18, 5:27 pm, T.J. Crowder t...@crowdersoftware.com
that way.
Thanks,
--Paul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group
Thanks Alex, this was exactly what I was looking for:
for(i=0;i=$$('#slidebtn li').length) {
if(i==3) {
alert('Got the 4th list element');
}
- Paul
On Tue, Jul 14, 2009 at 11:08 PM, Alex McAuley
webmas...@thecarmarketplace.com wrote:
You can collect the LI's under the UL like this if you
://icecreamcola.com/testing/
I have pasted the code in pastie.org: http://pastie.org/546795
Any help in the right direction would be most appreciated.
- Paul K
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype
, but instead
wanted to prevent the fade/appear effects from triggering when the image is
currently undergoing a fade/appear effect. Do you know if this is even
possible?
- Paul
On Wed, Jul 15, 2009 at 7:28 AM, Mike Glen mike.g...@mindsweep.net wrote:
Paul Kim wrote:
Basically
);
// this will give me the src attribute value of the img element
alert(element.src);
});
};
The reason I want to return the nth index of the li element is so that I
can pass that as an argument to a function.
Any help in the right direction will be much appreciated.
- Paul K
I guess this mean that I must use DOCTYPES when using Prototype. I was
expecting Prototype to work consistently whether or not there was a DOCTYPE
present.
- Paul
On Mon, Jun 8, 2009 at 11:07 AM, Alex McAuley
webmas...@thecarmarketplace.com wrote:
This has been discussed many times before
have tested the code on IE7, Firefox 3, Opera 9, and
Safari 3 on my Windows Vista operating system.
- Paul
On Thu, May 7, 2009 at 9:54 AM, T.J. Crowder t...@crowdersoftware.com wrote:
Hi Paul,
Hmmm, that's not what it's documented to do. Looking at the code,
it's clearly trying to give you
Hi T.J., I'm sorry for any confusion, but I was trying to get the dimension
of the browser window this whole time. I misunderstood the body element
dimension as being the same thing as the browser window dimension.
- Paul K
On Thu, May 7, 2009 at 10:02 AM, Paul Kim kimba...@gmail.com wrote
(Internet
Explorer in particular), I thought there was a simple method in Prototype
that could easily determine the body element's width and height.
- Paul K
On Wed, May 6, 2009 at 2:05 AM, T.J. Crowder t...@crowdersoftware.com wrote:
Hi Paul,
Just to add to that, I'm guessing the height
Thanks for all your help with this, I really don't know what was
happening but changing the javascript files for new copies has fixed
it for some reason - thanks for the advice though - its certainly
prompted me to go and but exception handling in.
Paul
On Feb 12, 3:24 pm, disccomp discc
-www-form-urlencoded':
print(cgi.parse_header(self.headers.getheader('content-
type')))
data = self.rfile
print(data.data)
Thank you for any help, I really appreciate it as I am totally stumped
Paul
String('(' + this.header('X-JSON');)) */
In the javascript errors console I am getting a:
Error: no element found
Source File: http://127.0.0.1/
Line: 1
but am not sure if this is just due to me not sending a response.
Sorry for a bit of a bitty post, and thankyou for your help so far,
Paul
P.S
-JSON');)) */
Thanks,
Paul
On Feb 11, 7:38 pm, Paul pauljeffer...@gmail.com wrote:
Hi,
Thanks for all your help so far.
I've added the callback function so now have:
SCRIPT type=text/javascript
// ![CDATA[
Sortable.create('group1',{tag:'div',dropOnEmpty: true, containment
. Does anyone have any clues as to what the
underlying cause might be? Thanks,
--Paul
p.s. Someone is bound to want to point out that using synchronous
Ajax is a bad idea. I understand that.
--~--~-~--~~~---~--~~
You received this message because you
customer that she is just imagining
things-- but I don't recommend that. :-)
--Paul
On Dec 22, 12:05 pm, pedz pedz...@gmail.com wrote:
I hope this is not too far off topic.
I have a page that has a PeriodicalExecuter as well as Sound that
plays a beep message. One of my customers runs
Hi Baglan, Thanks for pointing me in the right direction. Now it works
perfectly! Thank you! - Paul
On Tue, Nov 4, 2008 at 4:45 AM, Baglan [EMAIL PROTECTED] wrote:
Sure, there's a feature called 'queues':
http://github.com/madrobby/scriptaculous/wikis/effect-queues
You can queue
';
}
That has resolved the issue by making the browser re-display the div.
On Oct 30, 3:06 pm, Paul Wesson [EMAIL PROTECTED] wrote:
I'm using a pretty basic example that works just find in FireFox but
does not work in IE 6 or 7.
Have a look at this sample (not mine, but is what I used to create my
Thanks for the solution David. Do you have any idea why this worked for
Opera when the ul element wasn't encapsulated inside a div element? -
Paul
On Fri, Oct 31, 2008 at 4:42 AM, david [EMAIL PROTECTED] wrote:
Hi Paul,
You'll have to change the HTML to:
div class=menu
h3 id=menu
grab the Group 2 heading and start to move it, you'll
see the contents re-display properly.
Does anyone have any ideas what is causing this in IE?
Is there a CSS setting required somewhere or something?
Is there something I should be doing in the onUpdate callback?
Thanks
Paul
trying to do is created an absolutely positioned
div element with an opacity of 0.5 and insert it to the bottom of the body
tag, not set the body tag itself with an opacity of 0.5.
- Paul
On Mon, Oct 27, 2008 at 1:20 AM, Tobie Langel [EMAIL PROTECTED]wrote:
Element.extend(document.body
, setOpacity works the way it should. Thanks Tobie for your response.
Without it, I don't think I would have caught that mistake. Sorry about
that.
- Paul
On Mon, Oct 27, 2008 at 8:33 AM, Paul Kim [EMAIL PROTECTED] wrote:
I don't think document.body.insert({bottom: newDiv}).setOpacity(0.5
40 matches
Mail list logo