Runtime error: Object Doesn't support this property or method
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Runtime error: Object Doesn't support this property or method




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:09 AM

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.





[ Post a follow-up to this message ]



    Re: Runtime error: Object Doesn't support this property or method  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:09 AM

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.







[ Post a follow-up to this message ]



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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:09 AM

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[/url...nyurl.com/8ugwj
> ----------------------
>
>
> "DG" <DG@discussions.microsoft.com> wrote in message
> news:016A653A-E592-4BA4-A6DC-768371FD8194@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Re: Runtime error: Object Doesn't support this property or method  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-30-06 02:09 AM

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:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:43 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register