View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd/addons/dictionarypop
In directory usw-pr-cvs1:/tmp/cvs-serv19356/addons/dictionarypop
Modified Files:
dictionarypop.xml
Log Message:
Cleaned up HTML returned from web service to get rid of disclaimer, etc.; added note
to change history
Index: dictionarypop.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/addons/dictionarypop/dictionarypop.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** dictionarypop.xml 26 Aug 2002 19:07:39 -0000 1.1
--- dictionarypop.xml 27 Aug 2002 20:15:34 -0000 1.2
***************
*** 124,127 ****
--- 124,137 ----
if ( sReturnedHTML != '' )
{
+ sReturnedHTML = sReturnedHTML.replace( /\n/g, '' )
+ // get rid of newlines
+ .replace( /(.*<table>.+<\/table>).*/i, '$1' )
+ // get of everything after the last TABLE tag
+ .replace( /<script.*<\/script>/i, '' )
+ // get rid of SCRIPT tags
+ .replace( /(<\/table>.*)<table.*Legal
+Disclaimer.*/i, '$1' ) // save only stuff before the disclaimer
+ .replace( /<tr class="[EO]RL1"><td
+><\/td><\/tr>/gi, '' ) // get rid of extra rows at the end of the table
+ .replace( /<body.*<div id="main">(.*)/i, '$1'
+) // get rid of the BODY tag and its event handlers
+ .replace( /(<td>Word:)([^>]+) > (<\/td>)/i,
+'$1 <b>$2</b>$3' ) // get rid of weird angle bracket and make word bold
+ .replace( /cellPadding="3"/i,
+'cellPadding="0"' ) // get rid of some of the whitespace
+ writeFile( "c:\\dicpop.xml", sReturnedHTML );
+
displayPopupMessage( sReturnedHTML, "<base
href=http://www.mybubble.com><link rel=\"stylesheet\"
href=\"/mybubbleEntServer/css/layout.css\" />" );
}
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/