cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript error in MII: Object doesn't support this property or method

Former Member
0 Kudos

Hello,

I try to do dynamic change of SVG attributes in html page. I use javascript.

When i test this code in the MII Workbench all work fine, but when i do it in the MII portal

i get this error: Object doesn't support this property or method

Maybe somebody know what's problem? Or somebody can check this situation on your MII server.

Version MII 12.0.4(120)

Thank in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

I tested this files in SAP Corporate portal (I used URL iView with link to MII html file) and it worked fine.

Maybe it's problem only MII Portal.

Best regards,

Mikhail

Edited by: Mikhail Knjazhev on Aug 11, 2008 9:13 AM

agentry_src
Active Contributor
0 Kudos

Did you try to test it from the workbench?

Regards,

Mike

Edited by: Michael Appleby on Aug 11, 2008 9:20 PM

Former Member
0 Kudos

Mikhail,

the svg-to-html.svg using in the script top.ChangeColor("blue"). Please change this to parent.ChangeColor("blue").

This will working without error. I tested this on MII 12.0.4.

Regards

Pedro

Former Member
0 Kudos

Hello

To Michael:

Yes. I checked it in the workbench and it worked perfectly.

To Pedro:

Thanks for help. Now it's working.

Regards,

Mikhail

Answers (2)

Answers (2)

Former Member
0 Kudos

Example of the code you can find in

http://wiki.svg.org/Inter-Document_Communication#html-to-svg.html

I use this html and svg files.

agentry_src
Active Contributor
0 Kudos

Hi Mikhail,

I am not sure I understand your situation. Can you give a bit more detail, especially on the SVG and script that you are using?

Thanks,

Mike