<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : How to disable scripts when using CXTHtmlView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to disable scripts when using CXTHtmlView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 09 Apr 2026 08:13:02 +0000</pubDate>
  <lastBuildDate>Sun, 10 Dec 2006 03:36:17 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5734</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[How to disable scripts when using CXTHtmlView :    fabien7474 wrote:Okay Guys!!I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18040&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 5734<br /><strong>Posted:</strong> 10 December 2006 at 3:36am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by fabien7474" alt="Originally posted by fabien7474" style="vertical-align: text-bottom;" /> <strong>fabien7474 wrote:</strong><br /><br />Okay Guys!!<br><br>I spent my day on it but I finally figure out how to do it:<br><br>BOOL CMyHtmlView::OnAmbientProperty(COleControlSite* pSite, DISPID dispid,&nbsp;&nbsp;&nbsp; VARIANT* pvar)<br><div id="mb_0">{<br>&nbsp;&nbsp;&nbsp; if (dispid == DISPID_AMBIENT_DLCONTROL) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pvar-&gt;vt = VT_I4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pvar-&gt;lVal = DLCTL_NO_SCRIPTS | DLCTL_NO_JAVA | DLCTL_NO_RUNACTIVEXCTLS | DLCTL_NO_DLACTIVEXCTLS;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return true;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return HtmlView::OnAmbientProperty<wbr>(pSite, dispid, pvar);<br>}<br><br>Thanks,<br><br>Fabien.<br></div><br></td></tr></table><br>Excellent - weel done lad!<br>]]>
   </description>
   <pubDate>Sun, 10 Dec 2006 03:36:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18040&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18040</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable scripts when using CXTHtmlView : Okay Guys!!I spent my day on it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18038&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18038</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2569">fabien7474</a><br /><strong>Subject:</strong> 5734<br /><strong>Posted:</strong> 09 December 2006 at 5:53pm<br /><br />Okay Guys!!<br><br>I spent my day on it but I finally figure out how to do it:<br><br>BOOL CMyHtmlView::OnAmbientProperty(COleControlSite* pSite, DISPID dispid,&nbsp;&nbsp;&nbsp; VARIANT* pvar)<br><div id="mb_0">{<br>&nbsp;&nbsp;&nbsp; if (dispid == DISPID_AMBIENT_DLCONTROL) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pvar-&gt;vt = VT_I4;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pvar-&gt;lVal = DLCTL_NO_SCRIPTS | DLCTL_NO_JAVA | DLCTL_NO_RUNACTIVEXCTLS | DLCTL_NO_DLACTIVEXCTLS;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return true;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return HtmlView::OnAmbientProperty<wbr>(pSite, dispid, pvar);<br>}<br><br>Thanks,<br><br>Fabien.<br></div><br>]]>
   </description>
   <pubDate>Sat, 09 Dec 2006 17:53:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18038&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18038</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable scripts when using CXTHtmlView : Hi Oleg.Thank you very much!!Anyway,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18037&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2569">fabien7474</a><br /><strong>Subject:</strong> 5734<br /><strong>Posted:</strong> 09 December 2006 at 1:25pm<br /><br />Hi Oleg.<br><br>Thank you very much!!<br><br>Anyway, I have been searching for DISPID_AMBIENT_DLCONTROL and DLCTL_NO_SCRIPTS but I didn't find any relevant C++ code, using these properties.<br><br>Do you know how to use it? <br><br>Do I need to use PutProperty() from CHtmlView?<br><br>Do you have a very simple sample code?<br><br>Thank you soooo much for your help...<br><br>Fabien<br>]]>
   </description>
   <pubDate>Sat, 09 Dec 2006 13:25:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18037&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18037</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable scripts when using CXTHtmlView : Hi,  Check in msdn:  DISPID_AMBIENT_DLCONTROL...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18034&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18034</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5734<br /><strong>Posted:</strong> 09 December 2006 at 10:35am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Check in msdn:</DIV><DIV>&nbsp;</DIV><DIV>DISPID_AMBIENT_DLCONTROL and DLCTL_NO_SCRIPTS.</DIV>]]>
   </description>
   <pubDate>Sat, 09 Dec 2006 10:35:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18034&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18034</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable scripts when using CXTHtmlView : I would like to be able to disable...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18030&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18030</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1305">Simon HB9DRV</a><br /><strong>Subject:</strong> 5734<br /><strong>Posted:</strong> 09 December 2006 at 5:40am<br /><br />I would like to be able to disable Flash on various sites, would also like any pointers.]]>
   </description>
   <pubDate>Sat, 09 Dec 2006 05:40:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18030&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18030</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable scripts when using CXTHtmlView : Hi,I am using the CXTHtmlView...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18029&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18029</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2569">fabien7474</a><br /><strong>Subject:</strong> 5734<br /><strong>Posted:</strong> 09 December 2006 at 5:14am<br /><br />Hi,<BR><BR>I am using the CXTHtmlView class in our MFC document/view application in order to display HTML pages in a WebBrowser style.<DIV><BR>Nevertheless, we would like sometimes to disable scripts (for instance java-scripts) when rendering the HTML page (for security reasons).<BR></DIV><DIV>I didn''t find any method/code that provides this functionnality.<BR></DIV><DIV>Do you know if it is possible to do it using CXTHtmlView class. If not, what do you suggest in order to do it.<BR><BR>Thank you very very much,<BR><BR>Fabien.</DIV>]]>
   </description>
   <pubDate>Sat, 09 Dec 2006 05:14:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5734&amp;PID=18029&amp;title=how-to-disable-scripts-when-using-cxthtmlview#18029</guid>
  </item> 
 </channel>
</rss>