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


Groups > comp.lang.javascript > #14500

Re: JS injection in Firefox

From Shelly <sheldonlg@thevillages.net>
Newsgroups comp.lang.javascript
Subject Re: JS injection in Firefox
Date 2012-06-14 08:17 -0400
Organization A noiseless patient Spider
Message-ID <jrckoi$59s$1@dont-email.me> (permalink)
References (2 earlier) <jrapsb$c8i$1@dont-email.me> <XnsA071E02544D6Eeejj99@194.109.133.133> <jravv5$nq4$1@news.albasani.net> <jrbg91$i30$1@dont-email.me> <jrbloj$m7p$1@news.albasani.net>

Show all headers | View raw


On 6/13/2012 11:28 PM, Stefan Weiss wrote:
> On 2012-06-14 03:54, Shelly wrote:
>> On 6/13/2012 5:16 PM, Stefan Weiss wrote:
>>> Or you could show us the code that worked in Firefox in 2008. Maybe
>>> there's something else going on.
> ...
>> I can't show the code (company policy).  I wrote this app starting in
>> Jan 2008.  Nothing at all has changed in the code.  I used Firefox to
>> develop it because of its Firebug tool.  The browser problems I had at
>> that time was making all the features work properly in IE.  For example,
>> I put up a popup box that stays fixed in position on the screen even
>> when scrolling the window behind the pop-up.  That was a devil to get
>> working properly in IR.
>>
>> Now the company wants to use this again (they hadn't for a a few years).
>>    So, I went to see if it still worked.  It does in IE, but not in
>> Firefox.  Again, nothing has changed in the interim.
>>
>> Here is what is returned from the server:
> [...]
>
> Since you were using Firebug when you wrote the code back then, I'm
> going to assume you know how to detect JS errors and warnings.
>
> The code you posted doesn't really help; it's just JSON with an
> "innerHTML" key containing a script. I suppose something could have gone
> wrong with the DHTMLSuite scripts, but I don't know that library. It
> would have been more interesting to see how the script gets added to the
> document.
>
> There's really not much I can do at this point. A script that worked in
> 2008 but fails now, without errors or warnings... The only thing that
> comes to mind is that quirks mode was much more prevalent then, but
> that's more likely to produce rendering errors than nothing at all.
>
> You could try to replace the script contents (in the JSON response) with
> something simple like "alert(1)", and see if that gets evaluated. Other
> than that, check if there's a new version of this DHTMLSuite thingie,
> maybe that helps. According to the dhtmlgoodies site, the current
> version was "Last updated: July. 10th. 2009: Bugfix for Firefox 3.5.".
>
> - stefan

Thanks.  I put up what was sent back just to show what it was like, not 
that I expected it to help.  I can look to see if there is a later 
version of the suite that might work with later versions of Firefox.  I 
like your idea of sending back an alert.  I'll try that.

-- 
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