Hi,

> The updateTeamList is a function in a .js file that is used by this
> page.

Is the script tag including that JS file *below* the script tag that
contains the document.observe call?  If so, move it above it.

If that's not it, I'd pick up with #3 on this list:
http://proto-scripty.wikidot.com/faq#xyzprob

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Jun 16, 9:26 pm, Adriano Santi <[email protected]> wrote:
> I have a page with a simple sortable UL, with the id attribute
> "lister". I'm using the following code:
>
> document.observe("dom:loaded", function() {
>         Sortable.create('lister',{tag:'li', onUpdate:updateTeamList});
>
> });
>
> However, when the page is loaded, IE7 gives me the following errors:
>
> A Runtime Error has occurred. Do you wish to Debug?
> Line: 259
> Error: 'updateTeamList' is undefined
>
> The updateTeamList is a function in a .js file that is used by this
> page. Other functions from the same file work, and on Firefox,
> everything works with absolutely no glitches. Just FYI, this is the
> function in question:
>
> function updateTeamList() {
>         args = Sortable.serialize('lister');
>         Sortable.destroy('lister');
>         loadXMLDoc('ajax/team_list_update.php', args);
>
> }
>
> I've been googling left and right but haven't found any instances of
> this occurring to anyone else. Does anyone have a clue what might be
> happening here?
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to