I've been trying to create an mraid compliant ad, but haven't gotten very far. According to the official documentation, which can be found at this link, the addition of a simple
<script src='mraid.js'></script>
should be sufficient. This, however, doesn't seem to be the case. I copied the following example code to test the existence of the mraid object, but it just stays undefined. The precise FireBug error is:
ReferenceError: mraid is not defined
I'm trying to execute the following (very simple) code:
if(mraid.getState() !='ready'){
console.log("MRAID NOT READY");}
Does anyone have any experience with this problem?