Hi,

> what is the best doc type to run prototype and scriptaculous?

As long as you _use_ a doctype, I don't think it matters much. I use
HTML5 (<!DOCTYPE HTML>) and don't have any trouble (even in an app
that needs to support IE6). I used to use XHTML 4.01 transitional,
which was fine too.

> Error: handler is undefined
> Source file:http://........../js/prototype.js
> Line: 5476

Judging from the line number, that's referring to 1.7 RC 1, the line
where the event responder actually calls the handler you've provided.
You'll get that error if you call Event.observe (or Element#observe)
incorrectly (not specifying a handler), later when the event in
question occurs. For instance, if you hook up a click handelr like
this:

    $('someButton').observe('click'); // <== Wrong, no handler
function

...you'll get that error later when you click the button. So this
looks like an error in your code. If you put together a complete, self-
contained, minimalist test case[1] and post it to JSBin.com or
Pastie.org, we can probably help you figure it out.

[1] http://proto-scripty.wikidot.com/self-contained-test-page

HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


On May 9, 2:28 am, The Dark Lord <the_dark_lord12...@yahoo.com> wrote:
> what is the best doc type to run prototype and scriptaculous? i'm
> running everything as strict, and i get a ton of warnings for
> scriptaculous and a handler not defined for prototype...
>
> Error: handler is undefined
> Source file:http://........../js/prototype.js
> Line: 5476
>
> and there are way too many warnings to post on here...
>
> one other thing... for the sortable list with scriptaculous... when i
> scroll the page, the draggable objects are offset by the amount of
> page scroll... i have looked for ways to correct it, but have not
> found anything to fix it... is there something i may be missing?
>
> thanks for the help
>
> --
> 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-scriptacul...@googlegroups.com.
> To unsubscribe from this group, send email to 
> prototype-scriptaculous+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/prototype-scriptaculous?hl=en.

-- 
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to