HieuLsw / mraid-web-tester

Automatically exported from code.google.com/p/mraid-web-tester
0 stars 0 forks source link

document.write snippet spacing different from raw html #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Originally reported by Adam Schuetz <adam at admarvel.com>on Feb 28, 2013

I was trying to see if I could provide JS snippets for our test ads instead of 
just the raw content of the ad.  However I'm noticing that the spacing seems to 
be different when we use our JS snippets instead of the raw contents.  I 
figured it might be an issue with our JS snippet but both render the same in 
our SDKs.  Do you have any idea what is going on?  At this point I'll likely 
just provide the raw ad snippet contents but I'm curious what is going on.  I 
have attached screenshots of how the JS ad behaves versus just loading the raw 
ad contents.  Here is the JS:

&lt;script type="text/javascript"&gt;
document.write("<scr"+"ipt type='text/javascript' 
src='http://ads.admarvel.com/fam/javascriptGetAd.php?partner_id=1dd21b33bd603c95
&amp;site_id=56892&amp;included_banners=639466&amp;cb="+ 
Math.floor(Math.random() * 99999999999) +"'><\/scr"+"ipt>");
&lt;/script&gt;

The snippet is here: 
http://admarvel.s3.amazonaws.com/demo/mraid/MRAID_v1_expand_with_custom_close.tx
t.  You need to replace the doReadyCheck though.

Original issue reported on code.google.com by nathan.c...@crispmedia.com on 21 Oct 2013 at 10:07

GoogleCodeExporter commented 9 years ago
Screen shot attachments added.

Original comment by nathan.c...@crispmedia.com on 21 Oct 2013 at 10:08

Attachments:

GoogleCodeExporter commented 9 years ago
Adam,

We've made a number of updates around this issue in the last version. This is 
ok to retest.

Thanks,
-Nathan

Original comment by nathan.c...@crispmedia.com on 28 Apr 2014 at 6:18