I have this in the function for the success handler from Google Wallet (for digital goods):
var elem = document.getElementById(div1);
I checked with the debugger and the value of the variable div1
is the same as the id
of the div that I see with the 'inspector' (in Firefox) so I know that it's rendered. Besides, the page is shown, and only after clicking a button does the Google Wallet popup appear.
So why is elem
null? (And how do I solve this?)