Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14490

Re: JS injection in Firefox

From Shelly <sheldonlg@thevillages.net>
Newsgroups comp.lang.javascript
Subject Re: JS injection in Firefox
Date 2012-06-13 15:32 -0400
Organization A noiseless patient Spider
Message-ID <jrapsb$c8i$1@dont-email.me> (permalink)
References <jraipo$rbk$1@dont-email.me> <4fd8e02a$0$6983$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


On 6/13/2012 2:47 PM, Tom de Neef wrote:
> "Shelly"<sheldonlg@thevillages.net>  schreef
>>
>> I have an application where the AJAX call sends back a javascript and is
>> put up in  a<div>  tag using innerHTML.  In Feb. 2008 this worked on both
>> Firefox and IE.  Now it does not work on IE.
>>
>
> Two days ago, Steafn Weiss answered Jason C in this NG (I don't know how to
> get the ref):
> ...the answer is that scripts inserted with innerHTML are never evaluated.
> ...An ... option would be to scan the inserted HTML for script elements and
> manually evaluate them.
>
> Is this relevant to your question?
> Tom

I found that one.  It said that they are never evaluated.  That is not 
true.  My return uses innerHTML, is a javascript that is returned, and 
evaluates in Internet Explorer.  It used to (Feb. 2008 version) in 
Firefox, but now it doesn't.

-- 
Shelly

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

JS injection in Firefox Shelly <sheldonlg@thevillages.net> - 2012-06-13 13:31 -0400
  Re: JS injection in Firefox "Tom de Neef" <tdeneef@qolor.nl> - 2012-06-13 20:47 +0200
    Re: JS injection in Firefox Shelly <sheldonlg@thevillages.net> - 2012-06-13 15:32 -0400
      Re: JS injection in Firefox "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-13 20:02 +0000
        Re: JS injection in Firefox Stefan Weiss <krewecherl@gmail.com> - 2012-06-13 23:16 +0200
          Re: JS injection in Firefox Shelly <sheldonlg@thevillages.net> - 2012-06-13 21:54 -0400
            Re: JS injection in Firefox Stefan Weiss <krewecherl@gmail.com> - 2012-06-14 05:28 +0200
              Re: JS injection in Firefox Shelly <sheldonlg@thevillages.net> - 2012-06-14 08:17 -0400
    Re: JS injection in Firefox Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-06-15 00:55 +0200

csiph-web