i am a newbee to this prototype thing and i am trying to use a
Class.create() in an example, but i am not able to figure how to use
the classes and their functions. Can anyone here send me a complete
working example, which involves creating a class, writing functions in
that class, subclassing
I recently discovered that Element.update/insert automatically call an
object's toElement method if it exists, which would be pretty
handy...except that when a DocumentFragment is returned, it inserts
[ object DocumentFragment ].
Is there any reason this shouldn't work? It seems that if you're
Hi,
I'm using Prototype 1.6.0.3. I spent a lot of time searching the net
for solutions to this and found a few good suggestions/hints. The most
relevant is the following, which talks about the exact problem I'm
having:
Hi all,
I have been using a js library first time, so please forgive me If I
ask something very fool.
Actually my objective is implementing a reusable component for
1. Returning photo links with AJAX
2. And with the help of back and forward button it should change next
or previous photo
Hi,
...i cudnt
find a COMPLETE WORKING example.
The API docs for Class[1] have one (an Animal class and a Snake
class that derives from it), but ignore the links they have to the
tutorial on classes and inheritance, it's out of date and misleading
if you're using version 1.6.
[1]
Big block of text that's probably useful, but I want a list of methods
that's quick and easy, and always one of the first things I see.
Good point. JavaDoc has the same problem and it's bothered me for
years. We want there to be robust class-level information; but the
index of methods should
Hi all,
I make some tests, and I see the performance problem I have happen when the
table is bigger than the window and so I have the scrollbars (I set the
option scroll: window on my draggable but also without i have the same
performance issue).
I see the prepare function takes a lot fo time to
Ok, i was bored at work :D... So far, this works in my testbench. I
get an array of images, initialize the object, bind the methods to
click events and change the images forward and backward.
I hope this will help you:
img src=/images/assets/add.png id=frame/br/
img
Help me please, this operation is best
I have an object
var MyObj:{
obj1:{
...
prop: ['А', 'C', 'D', 'E']
...
},
obj2:{
...
prop: ['B', 'C', 'D', 'E']
...
},
obj3:{
...
prop: ['А', 'E']
...
},
obj4:{
...
prop: ['D', 'E']
...
}
}
I neet to
var MyObj={
obj1:{
prop: ['А', 'C', 'D', 'E']
},
obj2:{
prop: ['B', 'C', 'D', 'E']
},
obj3:{
prop: ['А', 'E']
},
obj4:{
prop: ['D', 'E']
}
}
var newObj = {}
Object.keys(MyObj).each(function(k,v){
MyObj[k].prop.each(function(x,y){
if(typeof
Спасибо Владимир, помогло!
From: prototype-scriptaculous@googlegroups.com
[mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Vladimir Tkach
Sent: Thursday, October 29, 2009 3:02 PM
To: prototype-scriptaculous@googlegroups.com
Subject: [Proto-Scripty] Re: Help me with hashes
var
TJ-
First, it's great to see there's diligent activity on the docs, which
seemed like they went stale for a while there. To the whole team, keep
up the great work!
Definitely need the quick-look menu of methods (and any other
properties) provided by each of the major classes.
i have a
Is there a way to spoof the window event ...
Basically i have script where the core relies on event being passed
to it to work some stuff out but in one particular script i cant pass
the event object because it goes to a server side script then back
again... is it possible to spoof it - or even
nop but answer in english please
thanks
2009/10/29 budarin budari...@gmail.com
Спасибо Владимир, помогло!
*From:* prototype-scriptaculous@googlegroups.com [mailto:
prototype-scriptacul...@googlegroups.com] *On Behalf Of *Vladimir Tkach
*Sent:* Thursday, October 29, 2009 3:02 PM
*To:*
Sorry - disregard
The function before the one called (the callee) has an event so i just did
window.lastEvent=event instead so i can now access it
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: Alex Mcauley webmas...@thecarmarketplace.com
To: Prototype
I think I'd do it more like this, if i just wanted JSON as the
response:
On the server: set the response type to application/json, something
to the equivalent of = response.setContentType(application/json)
Then print your json object to the response (java stylee again):
Ok, maybe I'm just being dense, but I am reading the API for forms and I
am getting nothing from it.
What is proper use of the $F utility and what can it do for me? I have
read the Form.Element.getValue and it means nothing to me.
I have this form:
form name=createPDF
2009/10/29 Russell Keith russell.ke...@aacreditunion.org:
Ok, maybe I’m just being dense, but I am reading the API for forms and I am
getting nothing from it.
What is proper use of the $F utility and what can it do for me? I have read
the Form.Element.getValue and it means nothing to me.
What would my json response look like (syntax-wise) in this case?
On Thu, 29 Oct 2009 07:28:43 -0700 (PDT), Lapis petter.env...@gmail.com
wrote:
I think I'd do it more like this, if i just wanted JSON as the
response:
On the server: set the response type to application/json, something
to
2009/10/29 Richard Quadling rquadl...@googlemail.com:
2009/10/29 Russell Keith russell.ke...@aacreditunion.org:
Ok, maybe I’m just being dense, but I am reading the API for forms and I am
getting nothing from it.
What is proper use of the $F utility and what can it do for me? I have read
Try giving your form elements IDs to match their NAME property. I have
always needed the ID to be set in order to get a value out of $F.
Walter
On Oct 29, 2009, at 11:08 AM, Russell Keith wrote:
Ok, maybe I’m just being dense, but I am reading the API for forms
and I am getting nothing
Then how is $F() any different than $()?
Also, any idea why I can't get my form to submit. I have been all over
Google and can't figure it out.
-Original Message-
From: prototype-scriptaculous@googlegroups.com
[mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Walter
Lee
You need to give the input tags an id, as follows:
form name=createPDF action=/pdf/pdf_process.php method=POST
input type=hidden id=A_NAME name=A_NAME value=John /
input type=hidden id=APPLY_DATE name=APPLY_DATE
value=?=date(m/d/Y)? /
input type=hidden id=A_BIRTH_DATE name=A_BIRTH_DATE
Well, the issue was with my function name not the form. I changed my
function name when I couldn't even get alert('test') to work. It all
appears to be working now.
-Original Message-
From: prototype-scriptaculous@googlegroups.com
[mailto:prototype-scriptacul...@googlegroups.com] On
because it gets values from anything (selects that can have multiples
aswell) ...
Where as value on a multiple select would not.!!
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: Russell Keith russell.ke...@aacreditunion.org
To:
Hi Peder,
You can adjust indirectly the speed of the effect with the duration
parameter, which is the effect duration (from start to end).
In your case, you may change:
new Effect.Move(caroImgs[imgIdx], {x: newLeft, y:0, mode:
'absolute'});
by:
new Effect.Move(caroImgs[imgIdx], {x: newLeft,
Thanks, it works!
On 29 окт, 15:33, Vladimir Tkach tea...@gmail.com wrote:
nop but answer in english please
thanks
2009/10/29 budarin budari...@gmail.com
Спасибо Владимир, помогло!
*From:* prototype-scriptaculous@googlegroups.com [mailto:
From a Java horizon it would be:
writer.print({success : true, message : 'good'});
or
writer.print({success : false, message : 'bad'});
(writing to the response's PrintWriter)
Hoping I am not misinterpreting your question right now.
/L
On Oct 29, 4:19 pm, mich...@haston.name wrote:
What
Is it poor practice to use $$?
$$('#grandparent #parent tag.class');
I've been using $$ quite a lot because it has sped up DEVELOPMENT, but
now I have realized that it will slow down MAINTENANCE. Recently, my
boss asked me to move a whole div to another part of the page. Since
I was
$F() gets the *value* of the form element (i.e. a dropdown's value, the
text in a text box, etc.)
$() just gets the DOM element itself (so would return the dropdown, the
text box, etc. respectively).
[so also, using $F() on a non-form element is fairly pointless]
-Original Message-
From:
Hi Joe,
I think you've gotten the wrong impression -- I'm not in charge (or
control) of the new doc stuff, that's Tobie Andrew with some help
from a couple of other people. All I've done is try to merge in (and
update) the old API docs content into the new stuff, since it hadn't
been done.
Forgot to say:
Great. But the natural impulse (mine, at least) to get back to that
list of methods is to use the browser's Back action. Gotcha! The
location bar returns back, but the browser window doesn't.
I *thought* I'd seen that the other day and was irritated by it, glad
to know it's
Though I consider javascript/prototype to be one of my weaker web app skills
(which is why I like Prototype in the first place), I feel compelled to add to
this discussion in that:
While I certainly agree with the Use Case that you are describing (and the one
referenced in the response) I
Didn't seem to work for me. I might have it wrong.
Code ...
function ajaxRequest2(){
var url = /cgidev2p/r_chgpwd.pgm;
var pars = 'v_current=' + escape($F('v_current')) +
'v_new=' + escape($F('v_new')) + 'v_confirm=' +
Seems like this should be easy, but I can't come up with a solution.
What I want to do is to use Effect.Move to move an element to another
element's position. Seems like I need to find the target element's absolute
position to do this.
So, how do I find an element's absolute position? Or is
35 matches
Mail list logo