IE DOM manipulation

37 views
Skip to first unread message

h99

unread,
May 18, 2013, 5:16:01 AM5/18/13
to vvv...@googlegroups.com
Hello

the attached patch it's a random image rotator. On page loading it also renders a different image - though I had to patch several times same logic to obtain this: that togedge is fundamental - changing the value of a src attribute.

At the moment this is tested and working on FF, Chrome, Apple mobiles, Opera, but

IE(9) finds some indigestible code at line 325 in vvvv.core.js

       this.VVVVConnector = new VVVV.Core.VVVVConnector(this);

or at least this is what I understand.

I've searched into documentation but wasn't able find anything useful.
So, sorry to bother, but is there any advice about this topic?

Thanks for your attention.
ranban.v4p

zauner

unread,
May 20, 2013, 5:39:51 PM5/20/13
to vvv...@googlegroups.com
Sorry h99, right now, VVVV.js development focuses on FF/Chrome/Safari, and kind of ignores IE. IE support is a dedicated milestone which is not any near at the moment. Maybe it's only small things to make it work in IE, but I don't know, to be honest.

h99

unread,
May 21, 2013, 2:22:33 AM5/21/13
to vvv...@googlegroups.com
Thank you Zauner.
I've checked patch also with android, I guess latest version, and it works.
Ok, so I just have to understand how to switch code in case of IE.
Thank you again.

h99

unread,
May 24, 2013, 7:14:19 AM5/24/13
to vvv...@googlegroups.com
Hello,
just in case someone else should step into this issue, I found that conditional comments are working - though they're not the best choice out there, I know; and CC are no longer supported in IE10...

So something like this

<head>
Your vvvvjs code
</head>
...
<div>
<img id="yourID" src="">
                <!--[if IE]>
                <script>
                document.getElementById("yourID").src="images/*.*";
                </script>
                <![endif]-->
</div>
...

should work.

I can barely keep excitement under control.

Gratefully,

h99

h99

unread,
Jun 6, 2013, 2:14:16 AM6/6/13
to vvv...@googlegroups.com
Hello,
just tested above patch on a Win8 IE10 and it works as expected. I haven't tried more DOM stuff, like mouse events and so on though, but at this point I think it's possible to manage it.
So thank you, again.
Reply all
Reply to author
Forward
0 new messages