User talk:CristianCantoro: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
Kaldari (talk | contribs)
javascript errors
 
Kaldari (talk | contribs)
No edit summary
 
Line 1: Line 1:
The following code in [[Template:2010/Donate-nowIT]] is throwing Javascript errors (probably because the code is trying to execute before the form is built, rather than afterwards, i.e. it's not in a function.
The following code in [[Template:2010/Donate-nowIT]] is throwing Javascript errors (probably because the code is trying to execute before the form is built, rather than afterwards, i.e. it's not in a function.
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
<code>
document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
document.paypalcontribution.referrer.value = document.referrer;
document.paypalcontribution.referrer.value = document.referrer;
</code>
[[User:Kaldari|Kaldari]] 02:16, 13 November 2010 (UTC)
[[User:Kaldari|Kaldari]] 02:16, 13 November 2010 (UTC)

Latest revision as of 02:16, 13 November 2010

The following code in Template:2010/Donate-nowIT is throwing Javascript errors (probably because the code is trying to execute before the form is built, rather than afterwards, i.e. it's not in a function.

document.paypalcontribution.utm_medium.value = getQuerystring( 'utm_medium' );
document.paypalcontribution.utm_campaign.value = getQuerystring( 'utm_campaign' );
document.paypalcontribution.referrer.value = document.referrer;

Kaldari 02:16, 13 November 2010 (UTC)[reply]