playing with IE7 & IE8

78 views
Skip to first unread message

laurent laffont

unread,
Aug 31, 2011, 6:10:31 AM8/31/11
to jtalk-...@googlegroups.com
raaaahhhh IE testing


In IE7 & 8 it's not possible to call appendChild on SCRIPT node.

To make this work, I've changed:

TagBrush>>appendChild: anElement
    "In IE7 and IE8 appendChild fails on several node types. So we need to check" 
    < var element=self['@element'];
       if (null == element.canHaveChildren || element.canHaveChildren) {
     element.appendChild(anElement);
       } else {
    element.text = anElement.innerHTML;
      } >



Looks ugly and hacky. Is there a way to handle cross-browser compatibility better ?

Laurent

Nicolas Petton

unread,
Aug 31, 2011, 7:29:39 AM8/31/11
to jtalk-...@googlegroups.com
On Wed, 2011-08-31 at 12:10 +0200, laurent laffont wrote:
> raaaahhhh IE testing
>
>
>
>
> In IE7 & 8 it's not possible to call appendChild on SCRIPT node.

I think jQuery should be able to handle that.

What about (untested):

TagBrush >> appendChild: anElement
<jQuery(self['@element']).append(anElement)>

Cheers,
Nico

>
>
> To make this work, I've changed:
>
>
> TagBrush>>appendChild: anElement
> "In IE7 and IE8 appendChild fails on several node types. So we
> need to check"
> < var element=self['@element'];
> if (null == element.canHaveChildren || element.canHaveChildren)
> {
> element.appendChild(anElement);
> } else {
> element.text = anElement.innerHTML;
> } >
>
>
>
>
>
>
> Looks ugly and hacky. Is there a way to handle cross-browser
> compatibility better ?
>
>
> Laurent

--
Nicolas Petton
http://www.nicolas-petton.fr

laurent laffont

unread,
Aug 31, 2011, 8:43:16 AM8/31/11
to jtalk-...@googlegroups.com
On Wed, Aug 31, 2011 at 1:29 PM, Nicolas Petton <petton....@gmail.com> wrote:
On Wed, 2011-08-31 at 12:10 +0200, laurent laffont wrote:
> raaaahhhh IE testing
>
>
>
>
> In IE7 & 8 it's not possible to call appendChild on SCRIPT node.

I think jQuery should be able to handle that.

What about (untested):

TagBrush >> appendChild: anElement
   <jQuery(self['@element']).append(anElement)>


Looks like jQuery does not handle this case....

Laurent.

Nicolas Petton

unread,
Aug 31, 2011, 8:51:21 AM8/31/11
to jtalk-...@googlegroups.com
then maybe we could change #appendString:

Nico

laurent laffont

unread,
Aug 31, 2011, 9:28:54 AM8/31/11
to jtalk-...@googlegroups.com
On Wed, Aug 31, 2011 at 2:51 PM, Nicolas Petton <petton....@gmail.com> wrote:
then maybe we could change #appendString:


Actually cannot find a way that work for all browsers :(

Also note that there's some error in IE7 on jtalk-project.org but I think it's time to drop IE7 compatibility.

Laurent.

Nicolas Petton

unread,
Aug 31, 2011, 10:18:15 AM8/31/11
to jtalk-...@googlegroups.com
On Wed, 2011-08-31 at 15:28 +0200, laurent laffont wrote:
> On Wed, Aug 31, 2011 at 2:51 PM, Nicolas Petton
> <petton....@gmail.com> wrote:
> then maybe we could change #appendString:
>
>
>
>
> Actually cannot find a way that work for all browsers :(
>
>
> Also note that there's some error in IE7 on jtalk-project.org but I
> think it's time to drop IE7 compatibility.

Last time I checked, Jtalk (the language) worked on IE7, but the IDE
behaved strangely.

I'll have to run some tests again this week as we're planning to do a
release :)

Cheers,
Nico

paul

unread,
Mar 28, 2012, 8:22:46 AM3/28/12
to amber...@googlegroups.com, jtalk-...@googlegroups.com
Hi Nicolas,
we have an javascript error in IE7 and 8. Do you have encountered something like that before? what could be the problem with the split?

SCRIPT5007: no value for attribute "split" Object is Null or undefinied
amber.js, row 111 character 4

Thank you for your help.
Kind regards,
Paul

Amber Milan Eskridge

unread,
Mar 28, 2012, 8:05:17 PM3/28/12
to amber...@googlegroups.com
That line in amber.js depends on what you give as arguments to the loadAmber-Function. Can you show the loadAmber-call of your code?

paul

unread,
Mar 29, 2012, 4:13:03 AM3/29/12
to amber...@googlegroups.com
Hi Amber,
sure. And thank you already for giving me a hint.

amber.load({ files: ['../../flow/js/Flow-Errors.js', '../../flow/js/Flow-Announcements.js', '../../flow/js/Flow-Models.js', '../../flow/js/Flow-Presenters.js', '../../kando/js/KandoUI-Errors.js', '../../kando/js/KandoUI-Models.js', '../../kando/js/KandoUI-Announcements.js', '../../kando/js/KandoUI-Presenters.js', ],
ready: function (){window.kando = smalltalk.KandoUI._open()}})


Do you think it's the error is just in there or in one of the files?
Kind regards,
Paul

Göran Krampe

unread,
Mar 29, 2012, 5:07:16 AM3/29/12
to amber...@googlegroups.com, amber.e...@googlemail.com
Hi Amber and folks!

I just have to ask - is your name actually Amber? I get confused every
time. ;)

regards, G�ran

Amber Milan Eskridge

unread,
Mar 29, 2012, 9:09:39 AM3/29/12
to amber...@googlegroups.com
I strongly suspect  the error to be in this call, but I do not spot it. 
I came to this page:

and suspect it could be this error but am not sure. Maybe removing the last comma in the array helps. 

paul

unread,
Apr 25, 2012, 4:39:57 PM4/25/12
to amber...@googlegroups.com
Hi Amber,
the error was exactly the trailing comma. Now it's loading but I've got other errors. thank you very much anyways. 
I'm going to try the newest version of amber and maybe this solves the problems.
Kind regards,
Paul
Reply all
Reply to author
Forward
0 new messages