Groups
Groups
Sign in
Groups
Groups
jsLINB
Conversations
About
Send feedback
Help
How to add a javascript function in the Code
23 views
Skip to first unread message
Kumaravel Sadras
unread,
Apr 5, 2013, 2:29:50 PM
4/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to li...@googlegroups.com
In the code view I want to call a new javascript function that I wrote from the onRenderer event
something like
function sortByLeft(a,b)
{
a = a.left;
b = b.left;
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
}
How do I do that?
Thanks,
-Kumar.
Message has been deleted
Kumaravel Sadras
unread,
Apr 5, 2013, 5:25:09 PM
4/5/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to li...@googlegroups.com
I fixed this by writing code inline.
But it would be nice to know if there is a way to add more js functions, without modifying the original build, right in the Code View.
Thanks,
-Kumar.
Jack Lee
unread,
Apr 6, 2013, 11:40:23 PM
4/6/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to li...@googlegroups.com
You can write your js code in other file, include it in the html, and you can use it's global name to call it.
Reply all
Reply to author
Forward
0 new messages