Python / Active Scripting - Value Assignment - HELP
adeptus
adeptus at onebox.com
Wed Mar 13 04:33:46 EST 2002
OK...
Within a script block of a HTML file, I can do the following:
something = ax.document.bgColor
ax.document.write("Background color is %s:" %something)
However, unlike all the Javascript and VB examples I see, I can't do
the
following:
ax.document.bgColor = "#000000"
I always get an error about unicode strings being read only.
The easiest workaround I can concieve of involves simply using the
genhtml module, but something about this bothers me. I should be able
to set the values as I could with VB or Javascript.
I also have a feeling this is something that would be remedied by a
better understanding of COM, but there are only so many hours in a
day... ;)
Thanks in advance...
More information about the Python-list
mailing list