Hello,
the demo url http://demo.script.aculo.us/ajax/autocompleter_customized
doesn't works.
Anthony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To post to this group, send
Hi,
I'd like to present 3 ways of building ul list and compare the speed
of them.
I used firebug's profiler on FF3
html:
body
a href=# id=gogo/a
ul id=list/ul
/body
$('go').observe('click',go);
First method:
Time to build (2122.406ms, 84055 wywołań)
function go(e){
Hello,
I am using Ajax.Autocompleter is some pages. It runs perfect in other
cases when the Javascript code and the div elements are included in a
JSP file. The Ajax.AutoCompleter code is:
new Ajax.Autocompleter(destHotels,
listResults,
When I'm populating a select element from the results of an Ajax call
I'm having trouble using the Element constructor.
If I create the element like this:
var oOption = new Element('option', {'text':tag[i].firstChild.data});
It works in IE7 but not in Firefox3. If I create it like this:
Hello,
I'm not sure if this is an IE problem or a Prototype problem.
I am trying to set the value of a select list via the following
code;
$('selectList').setValue('some_value');
I get an error stating that this object does not support this property
or method.
I have also tried these
Hi jason,
try this = $(selectList).childElements()[index].selected=true
this will sets the value for your selec element.
I hope this will work.
Thanks
Ashis
On Tue, May 12, 2009 at 8:40 PM, Jason jason.di...@gmail.com wrote:
Hello,
I'm not sure if this is an IE problem or a Prototype
Hi
Not quite. The validation is a library that does the stuff for me! I
have changed thing a it that almost works:
form id=myform onsubmit=dosubmit()
...
/form
under the form I have the following:
script type=text/javascript
var valid = new Validation('myform');
function dosubmit() {
Hi, how did you collect timing data? I use FF3.5b4 with it's JIT
JavaScript engine an I would like to see how it will change things for
all three methods.
keemor wrote:
Hi,
I'd like to present 3 ways of building ul list and compare the speed
of them.
I used firebug's profiler on FF3
Sorry to be abrupt, but return valid.validate() is terminating this
function. the new Ajax.Updater... is never going to execute. This
should work:
function dosubmit() {
if (valid.validate()) {
new Ajax.Updater( 'result', './test.php', { method: 'post',
parameters:
Sorry, need to fix my own code.
function dosubmit() {
val = valid.validate();
if (val) {
new Ajax.Updater( 'result', './test.php', { method: 'post',
parameters: $('myform').serialize() } );
$('myform').reset();
}
return val;
}
Иван Генчев wrote:
Sorry
Hello,
From it is name I expect that the two elements will have the same
position after cloning the position, but nothing happens!!!
here is the example
html
head
titlePrototype examples/title
script type=text/javascript
src=/javascript/prototype.js
/script
script
function clonePosition(){
Ashis,
Thank you! That worked perfectly. It must be something with IE8. I
tested the syntax I was trying to use in Safari and FireFox and it
worked fine in both browsers.
IE8 is a disaster.
Thanks again!
Jason
On May 13, 5:37 am, rai.ashis ashis@gmail.com wrote:
Hi jason,
try this =
Use Profile from firebug manually or :
console.profile([title]) console.profileEnd()
http://getfirebug.com/console.html
On May 13, 12:32 pm, Иван Генчев igenc...@deo.uni-sofia.bg wrote:
Hi, how did you collect timing data? I use FF3.5b4 with it's JIT
JavaScript engine an I would like to see
On May 13, 6:12 pm, keemor kee...@gmail.com wrote:
Hi,
I'd like to present 3 ways of building ul list and compare the speed
of them.
I used firebug's profiler on FF3
html:
body
a href=# id=gogo/a
ul id=list/ul
/body
$('go').observe('click',go);
[...]
Third:
Time
Thanks for all your advices T.J.! I read some snippets of the Proto-
Scripty wiki and my dynamic script loading was in the right way.
It doesn't process them if you assign them as strings via innerHTML,
which is what your modified update would do (Element#update uses
innerHTML behind the
Thanks T.J. for this long answer.
Maybe not many people will face such a performance problem, but this could
be written in documentation, so we can avoid such issues at the beginning.
This could be also good topic for PimpMyCode series at Prototype's blog.
Greetings
Romek
2009/5/13 T.J. Crowder
Evening guys, Does anyone know if i can queue effects in
scriptaculous...
Basically what i want to do is... On document loaded a div moves from
one position to another (Effect.Move) then when its finished fire
another Effect (Effect.Grow) after it... in the past i would do this
with setTimeout
You might want to use the afterFinish() callback on one effect to call
the next one. While Scripty effects guarantee to finish in the time
they say they will, there may be network lag to account for if any of
the events rely on Ajax callbacks. Chaining the effects through
callbacks is
It's a very common development pattern/problem that comes up.
Creating a bunch of repetitive DOM elements and inserting them into
the page.
It comes down to:
1) Native for loops will always be faster then calling a function
that then does the loop
2) Native inserts are faster then library
I have an array containing a number of strings. I would like to
continue exucuting my script only if an item has ANY/ALL of the
strings assigned as a class name.
$A(['foo', 'bar', 'foob']);
Is there an elegant want to do this without having to loop through the
items?
Hey Joker,
A method is just a property of an object. You can access any property
using either dot notation (i.e.: foo.property) or square brackets
(i.e.: foo[property]). So you could do this:
foo.myMethod(); // common way to call the method
var methName = 'myMethod';
foo[methName](); // call
Have a look here:
http://zenofshen.com/posts/ajax-sortable-lists-tutorial
and here:
http://wiki.github.com/madrobby/scriptaculous/sortable
:)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype
this is a very strange phenomenon - I asked this question before, but
it seems that other people don't care about this demo page. I never
opened this page. I was told the dead link should be removed, but
it's still there.
This is my previous question and answers:
fromdavid
Hi,
i think you can you can use include which will return either true or false
depending upon.
I think this one works.
Thanks
On Thu, May 14, 2009 at 12:19 AM, louis w louiswa...@gmail.com wrote:
I have an array containing a number of strings. I would like to
continue exucuting my script
Hi everyone,
I have use the sortable list of scriptaculous and it's awesome.
i want to create blank sortable list with fixed width say 100% so that
i can drop either left or right side of the ul list and drag the
list element from right to left. I have no idea how to do this, can
anyone help me
25 matches
Mail list logo