-
February 21st, 2011, 10:03 AM
#2
Hi,
in your second example you're assigning to onItemUpdate a value that at that moment is undefined, that's why it does not work.
Each <script> element is executed as soon as it is parsed; note that during the parsing phase functions inside the element are created, that's why the first example correctly work even if formatValue is declared below the piece of code that "uses" it (table.onChangingValues = formatValues; )
There are several ways you can rewrite the code to let it work, just be sure that when you use something it already exists;
e.g.: you may include the format.js above the "new OverwriteTable" code.
HTH
Similar Threads
-
By karthik655 in forum Client SDKs
Replies: 2
Last Post: April 25th, 2012, 06:02 AM
-
By AidasOzelis in forum Client SDKs
Replies: 13
Last Post: June 3rd, 2010, 01:13 PM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: August 19th, 2009, 10:17 AM
-
By craigtype3 in forum General
Replies: 1
Last Post: July 3rd, 2009, 08:26 AM
-
By georgeeapen in forum Client SDKs
Replies: 2
Last Post: April 21st, 2009, 11:17 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 05:00 AM.
Bookmarks