It's probably an error in the script you're loading. Please create a working example here: http://jsfiddle.net/
I have script wich i load with this way:
$(funcion() {
var html = ''
html += "<script type="text/javascript" src="http://example.com/
test.js"></script>"
$('#divid').html(writeCapture.sanitize(html,function(){
// if my test.js returns special content i do this:
var cap = ""
cap += "<script type="text/javascript" src="http://example.com/
example.js"></script>"
$('#divid').html(writeCapture.sanitize(cap))
})
})
But i have error NOT_FOUND_ERR: DOM Exception 8. Where is my mistake?
On 6 дек, 11:44, Константин Сергиенко <rsboar...@gmail.com> wrote:
> Update the code. Now, first ads doesn't appends into the DOM. But, if you
> will open ads directly in URL there will be document.write.
>
> 2011/12/5 noah <iamn...@gmail.com>
>
>
>
>
>
>
>
> > I can't get that js fiddle to work at all. You don't appear to be
> > including write capture. Also, please indent your code. If the ad is
> > working in a particular browser, the fiddle should also work in that
> > browser, but that does not do anything in any browser I tried.
>
> > On Mon, Dec 5, 2011 at 12:07 AM, Константин Сергиенко
> > <rsboar...@gmail.com> wrote:
> > > Script is loading ads well but with error in console, but in IE ads
> > doesn't
> > > show at all. http://jsfiddle.net/rsboarder/AY7YN/1/
>
> > > 2011/12/2 noah <iamn...@gmail.com>
>
> > >> It's probably an error in the script you're loading. Please create a
> > >> working example here:http://jsfiddle.net/
>
1) For some reason, there is an error on this line:
https://github.com/iamnoah/writeCapture/blob/master/writeCapture.js#L669
You might try putting a try catch around that, as it shouldn't cause
write capture to abort.
2) There is a VBScript tag in some HTML that is sanitized. Write
Capture ignores VBScript tags and just passes them through, but jQuery
is trying to execute it, and it causes an exception. You could try
removing that tag and see if the ad still renders (it appears to be
some sort of flash fallback). Write Capture does something similar
here: https://github.com/iamnoah/writeCapture/blob/master/writeCapture.js#L409
If there is VBscript, then why IE doesn't render the code and Chrome renders it well?
06.12.2011 18:42 пользователь "noah" <iam...@gmail.com> написал:
if(!isJs) {
lang = lang.toLowerCase()
if(lang == 'vbscript') element = ''
return element;
}
It removes script with vbscript, but IE now gets from ads server only
images, no flash at all. If i undo changes the error returns.
And I gues that the problem is not in VBscript, but in comment "on
error resume next" which included in VBscript tag. So, plugin doesn''t
works correctly with this comments. Is it possible to fix?
On 6 дек, 21:29, noah <iamn...@gmail.com> wrote:
> The VBScript is written as part of a conditional that only executes in
> IE. Like I said, you could probably take it out without much harm.
>
> On Tue, Dec 6, 2011 at 11:26 AM, ëÏÎÓÔÁÎÔÉÎ óÅÒÇÉÅÎËÏ
>
>
>
>
>
>
>
> <rsboar...@gmail.com> wrote:
> > If there is VBscript, then why IE doesn't render the code and Chrome renders
> > it well?
>
> > 06.12.2011 18:42 ÐÏÌØÚÏ×ÁÔÅÌØ "noah" <iamn...@gmail.com> ÎÁÐÉÓÁÌ:
>
> >> I see two problems:
>
> >> 1) For some reason, there is an error on this line:
> >>https://github.com/iamnoah/writeCapture/blob/master/writeCapture.js#L669
>
> >> You might try putting a try catch around that, as it shouldn't cause
> >> write capture to abort.
>
> >> 2) There is a VBScript tag in some HTML that is sanitized. Write
> >> Capture ignores VBScript tags and just passes them through, but jQuery
> >> is trying to execute it, and it causes an exception. You could try
> >> removing that tag and see if the ad still renders (it appears to be
> >> some sort of flash fallback). Write Capture does something similar
> >> here:
> >>https://github.com/iamnoah/writeCapture/blob/master/writeCapture.js#L409
>
> >> On Tue, Dec 6, 2011 at 7:05 AM, rsboarder <rsboar...@gmail.com> wrote:
> >> > Forgot to give adresshttp://jsfiddle.net/rsboarder/AY7YN/4/
>
> >> > On 6 ÄÅË, 11:44, ëÏÎÓÔÁÎÔÉÎ óÅÒÇÉÅÎËÏ <rsboar...@gmail.com> wrote:
> >> >> Update the code. Now, first ads doesn't appends into the DOM. But, if
> >> >> you
> >> >> will open ads directly in URL there will be document.write.
>
> >> >> 2011/12/5 noah <iamn...@gmail.com>
>
> >> >> > I can't get that js fiddle to work at all. You don't appear to be
> >> >> > including write capture. Also, please indent your code. If the ad is
> >> >> > working in a particular browser, the fiddle should also work in that
> >> >> > browser, but that does not do anything in any browser I tried.
>
> >> >> > On Mon, Dec 5, 2011 at 12:07 AM, ëÏÎÓÔÁÎÔÉÎ óÅÒÇÉÅÎËÏ
> >> >> > <rsboar...@gmail.com> wrote:
> >> >> > > Script is loading ads well but with error in console, but in IE ads
> >> >> > doesn't
> >> >> > > show at all. šhttp://jsfiddle.net/rsboarder/AY7YN/1/
>
> >> >> > > 2011/12/2 noah <iamn...@gmail.com>
>
> >> >> > >> It's probably an error in the script you're loading. Please create
> >> >> > >> a
> >> >> > >> working example here:http://jsfiddle.net/
>
> >> >> > >> On Dec 2, 2011 2:09 AM, "rsboarder" <rsboar...@gmail.com> wrote:
>
> >> >> > >>> I have script wich i load with this way:
>
> >> >> > >>> $(funcion() {
> >> >> > >>> var html = ''
> >> >> > >>> html += "<script type="text/javascript" src="http://example.com/
> >> >> > >>> test.js"></script>"
>
> >> >> > >>> $('#divid').html(writeCapture.sanitize(html,function(){
> >> >> > >>> š// if my test.js returns special content i do this:
So jQuery is what is executing the script, but AFAIK, there isn't a way to dynamically execute VBScript.
if(!isJs) {
lang = lang.toLowerCase()
if(lang == 'vbscript') {
element = ''
element = '<script type="text/javascript">plugin=IsObject( new
ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))</script>'
element = runInline;
}
}
But this doen't firese from the plugin. How to fire it?
2011/12/19 noah <iam...@gmail.com>
2011/12/20 Константин Сергиенко <rsbo...@gmail.com>:
jQuery(el).data('progress',true); // line ~852
Then when result appends to the DIV i want to remove data, but i can't
find where exactly html appends to the DIV. Can you help me?
2011/12/21 Константин Сергиенко <rsbo...@gmail.com>: