<%@Language="JScript"%><% // This version of simple hidden cleans up after itself by resetting the src attribute of the // script element. This has to be done via setTimeout or IE will NEVER attempt to redownload // the URL specified by src function WriteLine(s) { Response.Write(s + "\r\n"); } Response.ContentType = "application/x-javascript"; var guid = Request.QueryString.Item("pass"); var passes = Session.Contents("passes"); var pass = passes.selectSingleNode("//pass[@guid='" + guid + "']"); if(pass == null) { // This is what we'll consider to be the "Fake Code" Response.Write("//fake"); } else { passes.documentElement.removeChild(pass); // This is what we'll consider to be the "Real Code" WriteLine(" var s = wtf.src; "); WriteLine(" wtf.src=''; "); WriteLine(" setTimeout(function(){wtf.src=s;},0); "); } %>