[Proto-Scripty] Re: Sortable onUpdate not working on IE7

2009-06-17 Thread T.J. Crowder

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 antiu...@gmail.com 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 prototype-scriptaculous@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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Sortable onUpdate not working on IE7

2009-06-17 Thread Adriano Santi

On Jun 17, 1:31 am, T.J. Crowder t...@crowdersoftware.com wrote:
 Is the script tag including that JS file *below* the script tag that
 contains the document.observe call?  If so, move it above it.

It's way above. All my external .js files are called on the head of
the html. First one called is prototype, then scriptaculous, then the
one with the custom functions. The document.observe call is way at the
bottom of the document, after the list it affects.

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