Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Mon, 19 May 2008 05:09:12 -0700 (PDT),    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


stop browser downloading a js script   
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
date: Mon, 19 May 2008 05:09:12 -0700 (PDT)   author:   peter.boot

Re: stop browser downloading a js script   
"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
date: Mon, 19 May 2008 08:16:55 -0400   author:   Igor Tandetnik

Re: stop browser downloading a js script   
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
date: Mon, 19 May 2008 12:05:59 -0700 (PDT)   author:   peter.boot

Re: stop browser downloading a js script   
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
date: Mon, 19 May 2008 16:39:05 -0400   author:   Igor Tandetnik

Re: stop browser downloading a js script   
>> 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
date: Mon, 19 May 2008 14:41:34 -0700 (PDT)   author:   peter.boot

Re: stop browser downloading a js script   
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
date: Mon, 19 May 2008 18:01:23 -0400   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us