Hi all, I have this code to work with,
var head = $j('head').get(0);
var script = document.createElement('script');
script.src = _tokenScriptSrc+'&num='+_cnt++; // Add uniqueness to the script so we don't get a cached version
So this becomes,
And becomes the last element in the head.
This is within a function and is called when a form is submitted.
My question is how does "script.id" work into this and where would it go? Am I misunderstanding this?
BTW the script id is defined as var kTokenScriptID = 'TKN'; but why is it needed?
Thanks in advance,