Does anyone know a good way to stop a browser downloading the javascript called by a tag like this <script type='text/javascript' src='http://www.xxx.com/xx.js'></ script> One possible idea I was going to try after reading posts form this group was to use IHTMLDocument2 ::get_scripts then overwrite them with IHTMLElement::put_innerText thanks
"peter.boot" wrote in message news:dbc9c64d-b617-49b2-a5ec-d6fc4bcba06a@u6g2000prc.googlegroups.com > Does anyone know a good way to stop a browser downloading the > javascript http://msdn.microsoft.com/en-us/library/aa741313.aspx "Download Control" section. -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925
Thanks Igor I will try that. Do you think I should be able to stop a particular script from downloading or at least executing using those methods ? On May 19, 10:16 pm, "Igor Tandetnik" wrote: > "peter.boot" wrote in message > > news:dbc9c64d-b617-49b2-a5ec-d6fc4bcba06a@u6g2000prc.googlegroups.com > > > Does anyone know a good way to stop a browser downloading the > > javascript > > http://msdn.microsoft.com/en-us/library/aa741313.aspx > > "Download Control" section. > -- > With best wishes, > Igor Tandetnik > > With sufficient thrust, pigs fly just fine. However, this is not > necessarily a good idea. It is hard to be sure where they are going to > land, and it could be dangerous sitting under them as they fly > overhead. -- RFC 1925
peter.boot wrote: > Thanks Igor I will try that. Do you think I should be able to stop a > particular script from downloading or at least executing using those > methods ? It will prevent all scripts from running. I didn't realize you wanted to block just one particular script file. Is that what you want? -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925
>> I didn't realize you wanted to block just one particular script file. Is that what you want? Yes that is what I want to do On May 20, 6:39 am, "Igor Tandetnik" wrote: > peter.boot wrote: > > Thanks Igor I will try that. Do you think I should be able to stop a > > particular script from downloading or at least executing using those > > methods ? > > It will prevent all scripts from running. I didn't realize you wanted to > block just one particular script file. Is that what you want? > -- > With best wishes, > Igor Tandetnik > > With sufficient thrust, pigs fly just fine. However, this is not > necessarily a good idea. It is hard to be sure where they are going to > land, and it could be dangerous sitting under them as they fly > overhead. -- RFC 1925
peter.boot wrote: >>> I didn't realize you wanted to block just one particular script >>> file. Is that what you want? > >Yes that is what I want to do Just a single script? Out of curiosity, why do you want to do that? You could install a temporary Asynchronous Pluggable Protocol (APP) for HTTP protocol. Your implementation would error out (say, return E_ABORT) in IInternetProtocol::Start when given this particular URL, and return INET_E_USE_DEFAULT_PROTOCOLHANDLER in all other cases (this return code means "use default built-in handler"). -- With best wishes, Igor Tandetnik With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925