Click here to Skip to main content
15,918,168 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Can anyone reply if they KNOW CSS...... Pin
ZoogieZork23-Aug-03 5:35
ZoogieZork23-Aug-03 5:35 
GeneralRe: Can anyone reply if they KNOW CSS...... Pin
Snyp23-Aug-03 7:23
Snyp23-Aug-03 7:23 
GeneralRe: Can anyone reply if they KNOW CSS...... Pin
ZoogieZork23-Aug-03 7:39
ZoogieZork23-Aug-03 7:39 
GeneralUsing a variable to assign content to an iframe Pin
dewson23-Aug-03 2:05
dewson23-Aug-03 2:05 
GeneralRe: Using a variable to assign content to an iframe Pin
theJazzyBrain26-Aug-03 0:09
theJazzyBrain26-Aug-03 0:09 
GeneralRe: Using a variable to assign content to an iframe Pin
dewson26-Aug-03 13:43
dewson26-Aug-03 13:43 
Generalencoding Pin
andyg.10122-Aug-03 18:47
andyg.10122-Aug-03 18:47 
Generalredirecting image download in mshtml Pin
psangeljg22-Aug-03 14:06
psangeljg22-Aug-03 14:06 
Hello !

I have some experience with com/webbrowser/mshtml. Recently I run into a very interesting problem, and after spending some days on it(no success) I decided to try geting some answers from other programmers.

So: I wrote a simple browser helper object. On a machine without internet access, when detecting BeforeNavigate2 event, I redirect navigation. For example, if the user enters http://www.google.com, i redirect to http://mygateway/page.aspx?url="http://www.google.com".
This works fine, the problem is I can't redirect the location of the objects in the document (objects; images; flash; etc), and the page can not load them.
I couldn't find an event that fires when a resource download begins, and a mechanism for redirecting these downloads. (please note that implementing a download manager dows not solve this problem; dm objects are invoked only when the user explicitly selects "download targer..." from the context menu for example).

Please let me know if you have any ideas ( is it possible ? is it not ? a source for more info -> i've already read all I could find in msdn and microsoft on this topic and got no answer ).

I don't need specific code / code samples, I only need a hint on how to do it. I'm not interested in parsing the html code and modifying the links. pages may contain flash/applets, and i can't parse them to change the links. I need browser redirection.

As soon as I'll solve this problem, I'll post the project (no mfc; no atl; just pure C++/Com).

All the best,
psangeljg

ps. I did find a solution, but it's not what I want. I figured that mshtml uses wininet (wininet.dll) to access the resources. I could write my own wininet.dll that calls the actual wininet.dll, changing the urls. However, I try to avoid this soultion, since wininet.dll varies with the os version. Performance is also important.

QuestionStretch Image Background? Pin
J. Dunlap22-Aug-03 11:15
J. Dunlap22-Aug-03 11:15 
AnswerRe: Stretch Image Background? Pin
Hesham Amin22-Aug-03 21:46
Hesham Amin22-Aug-03 21:46 
GeneralRe: Stretch Image Background? Pin
J. Dunlap24-Aug-03 10:43
J. Dunlap24-Aug-03 10:43 
Generalloading html Pin
andyg.10121-Aug-03 21:09
andyg.10121-Aug-03 21:09 
GeneralRe: loading html Pin
simonchen.net22-Aug-03 0:07
simonchen.net22-Aug-03 0:07 
GeneralRe: loading html Pin
andyg.10122-Aug-03 16:58
andyg.10122-Aug-03 16:58 
QuestionHTML POST from C++ ? Pin
megaadam21-Aug-03 6:17
professionalmegaadam21-Aug-03 6:17 
AnswerRe: HTML POST from C++ ? Pin
theJazzyBrain24-Aug-03 22:55
theJazzyBrain24-Aug-03 22:55 
QuestionAnimated BMP? Pin
Henrik Husted20-Aug-03 23:37
Henrik Husted20-Aug-03 23:37 
AnswerRe: Animated BMP? Pin
Roger Wright21-Aug-03 7:21
professionalRoger Wright21-Aug-03 7:21 
AnswerRe: Animated BMP? Pin
theJazzyBrain24-Aug-03 23:02
theJazzyBrain24-Aug-03 23:02 
Generalloading texture image from a Web Service Pin
Siddharth Jain20-Aug-03 9:46
Siddharth Jain20-Aug-03 9:46 
QuestionHow to bring Traffic to my website? Pin
mittalpa19-Aug-03 18:34
mittalpa19-Aug-03 18:34 
AnswerRe: How to bring Traffic to my website? Pin
Rocky Moore19-Aug-03 22:27
Rocky Moore19-Aug-03 22:27 
Generalscript that autimatically enters a the specified character at a certain point in a text box Pin
BPDecaf19-Aug-03 4:53
BPDecaf19-Aug-03 4:53 
GeneralRe: script that autimatically enters a the specified character at a certain point in a text box Pin
webProgrammer20-Aug-03 7:37
webProgrammer20-Aug-03 7:37 
GeneralProblem consuming java axis web service Pin
EnkelIk18-Aug-03 22:43
EnkelIk18-Aug-03 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.