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: Wed, 16 Apr 2008 17:03:04 -0700 (PDT),    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


replace tags sin html page   
Hi,

I want to replace tags in html pages. I want to replace the tags with
some string before the page show. I am thinking of doing it in
DocumentCompleteIe(LPDISPATCH pDisp, VARIANT* URL).
Can someone tell me how to do this?  I want to replace all the strings
between <localize>I </localize>. Is there a way to retrieve list of
strings to be replaced? Thanks.


Here is a sample html page

<jsp:directive.include file="/includes/taglib_stick.jsp" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="GENERATOR" content="Microsoft Visual Studio 8.0" />
<title></title>
<style>
body {
	margin: 0px;
	background: #FFF;
}
#topBarStick {
	position: relative;
	background-image: url("images/topBgsidebar.jpg");
	width: 556px;
	height: 34px;
	font-family: arial;
	font-size: 12px;
	color: #000;
	font-weight: bold;
	padding-top: 8px;
	padding-left: 5px;
}
#bottomBarStick {
	position: absolute;
	background-image: url("images/bottomBgsidebar.jpg");
	bottom: 0px;
	left: 0px;
	width: 556px;
	height: 15px;
	font-family: arial;
	font-size: 12px;
	color: #fff;
	font-weight: bold;
	padding-top: 2px;
	padding-left: 5px;
}
#contentArea {
	padding: 5px;
	font-family: arial;
	font-size: 12px;
	color: #000;
}
</style>

<script language="JavaScript">
// block navaigation to the previous page by key BACKSPACE
function blockBackNav() {
	// keycode for BACK function IS 8
	if (window.event && window.event.keyCode == 8) {
		window.event.cancelBubble = true;
		window.event.returnValue = false;
	}
}
</script>
</head>
<body onKeyDown="blockBackNav()">
	<div id="topBarStick"><localize>IDS_WELCOME_BAR</localize></div>
    <div id="contentArea">
		<localize>IDS_WELCOM</localize>
	</div>
	<div id="bottomBarStick"><localize>IDS_BOTTOMBAR</localize></div>
</body>
</html>
date: Wed, 16 Apr 2008 17:03:04 -0700 (PDT)   author:   Sue

Google
 
Web ureader.com


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