Microsoft Content Management Server - Runtime error: Object Doesn't support this property or method

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > January 2006 > Runtime error: Object Doesn't support this property or method





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Runtime error: Object Doesn't support this property or method
DG

2006-01-29, 9:09 pm

Greetings!

We have few templates where the listing of some postings are displayed
programmatically using c#. We have added an HTMLControl to few of them. All
Templates are working fine but one with the Runtime error: Object Doesn't
support this property or method: 'p.Global'. => The error is coming from
script in the MCMS library probably for authoring tool bar. BTW the full
formatting are set to true for all these HTMLControls in the mentioned
templates.

If I take the HTML control out of the template I don't get the error! Any
help is really appreciated.

Regards.
Stefan [MSFT]

2006-01-29, 9:09 pm

Hi DG,

is this error coming from .NET or is it a javascript error?
What is "p"?

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"DG" <DG@discussions.microsoft.com> wrote in message
news:016A653A-E592-4BA4-A6DC-768371FD8194@microsoft.com...
> Greetings!
>
> We have few templates where the listing of some postings are displayed
> programmatically using c#. We have added an HTMLControl to few of them.
> All
> Templates are working fine but one with the Runtime error: Object Doesn't
> support this property or method: 'p.Global'. => The error is coming from
> script in the MCMS library probably for authoring tool bar. BTW the full
> formatting are set to true for all these HTMLControls in the mentioned
> templates.
>
> If I take the HTML control out of the template I don't get the error! Any
> help is really appreciated.
>
> Regards.



DG

2006-01-29, 9:09 pm

Thanks for the reply Stefan.
The error is javascript error. Coming from the file ActiveXEditing.vbs under
.../CMS/WebAuthor/Client/PLaceholderContentSupport/ActiveXEditing.vbs

....
call edit_toolbar.AddSeperator
edit_toolbar.AddButton "Undo", "", "undo.gif", IDS_UI_TOOLTIP_ACTIVEX_UNDO
edit_toolbar.AddButton "Redo", "", "redo.gif", IDS_UI_TOOLTIP_ACTIVEX_REDO
call edit_toolbar.AddSeperator

set p = edit_toolbar.AddButton("SpellCheck", "", "spell.gif",
IDS_UI_TOOLTIP_ACTIVEX_SPELL_CHECK)
p.Global = true
p.Enabled = document.ToolbarInterface.CanSpellCheck
.....

Error is from p.Global = true line.
...
Thanks.

"Stefan [MSFT]" wrote:

> Hi DG,
>
> is this error coming from .NET or is it a javascript error?
> What is "p"?
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "DG" <DG@discussions.microsoft.com> wrote in message
> news:016A653A-E592-4BA4-A6DC-768371FD8194@microsoft.com...
>
>
>

Stefan [MSFT]

2006-01-29, 9:09 pm

Hi DG,

thanks! You mentioned that only one template is affected. If this is true,
then it might be that there is some javascript code included in this
template which badly interacts with the script code of the ActiveX control.

You should compare a working template with the not working one and try to
isolate the differences.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"DG" <DG@discussions.microsoft.com> wrote in message
news:95F04CF5-3348-4F2E-A30F-4C47CAA5BD6B@microsoft.com...[vbcol=seagreen]
> Thanks for the reply Stefan.
> The error is javascript error. Coming from the file ActiveXEditing.vbs
> under
> ../CMS/WebAuthor/Client/PLaceholderContentSupport/ActiveXEditing.vbs
>
> ...
> call edit_toolbar.AddSeperator
> edit_toolbar.AddButton "Undo", "", "undo.gif",
> IDS_UI_TOOLTIP_ACTIVEX_UNDO
> edit_toolbar.AddButton "Redo", "", "redo.gif",
> IDS_UI_TOOLTIP_ACTIVEX_REDO
> call edit_toolbar.AddSeperator
>
> set p = edit_toolbar.AddButton("SpellCheck", "", "spell.gif",
> IDS_UI_TOOLTIP_ACTIVEX_SPELL_CHECK)
> p.Global = true
> p.Enabled = document.ToolbarInterface.CanSpellCheck
> ....
>
> Error is from p.Global = true line.
> ..
> Thanks.
>
> "Stefan [MSFT]" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com