Note that there are some explanatory texts on larger screens.

plurals
  1. POThis code doesn't seem to fire this button. What's going wrong?
    primarykey
    data
    text
    <p>I'm working on something for a client and an agency have built a small bit of jQuery to fire off a DoubleClick Floodlight Tag but for some reason the tag doesn't work:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function () { //var origOnClick = $('#trackingButton').attr("onclick"); $('#trackingButton').click(fireFloodlight); function fireFloodlight() { if (Page_IsValid) { var axel = Math.random() + ""; var a = axel * 10000000000000; $("body").append('&lt;img src="https://ad.doubleclick.net/activity;src=2499215;type=axa_l124;cat=lpg_g263;ord=' + a + '?" width="1" height="1" alt=""/&gt;'); //eval(origOnClick); } } }); &lt;/script&gt; </code></pre> <p>To me this script looks fine, but in a live environment the call to "<code>ad.doubleclick.net</code>" is never made? Any help would be much appreciated. Strangely the tag was working until this weekend but now is not recording any actions?</p> <p>EDIT: I did a <code>console.log(Page_IsValid)</code> which returned <code>True</code>.</p> <p>EDIT: Here is the HTML for the button in question:</p> <pre><code>&lt;input type="submit" name="ctl00$ctl00$ctl00$BodyPlaceHolder$BodyPlaceHolder$WizardContentPlaceHolder$WizardCollectBasicSMEInfo$trackingButton" value="Get your quick quote" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&amp;quot;ctl00$ctl00$ctl00$BodyPlaceHolder$BodyPlaceHolder$WizardContentPlaceHolder$WizardCollectBasicSMEInfo$trackingButton&amp;quot;, &amp;quot;&amp;quot;, true, &amp;quot;Form&amp;quot;, &amp;quot;&amp;quot;, false, false))" id="trackingButton" class="button" /&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload