homepage Welcome to WebmasterWorld Guest from 54.227.182.191
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Print This Page.cgi
ignore a div
Visit Thailand




msg:3275976
 2:21 am on Mar 9, 2007 (gmt 0)

I use a simple .cgi code to get user friendly print pages.

You can start the print at one place and end in another.

Recently though I added a div in the middle of the text which shows up as a blank box when printing.

Is there anyway for me to get the script to ignore the div?

 

Moby_Dim




msg:3278205
 7:28 am on Mar 11, 2007 (gmt 0)

Let your script parse the content before output. If you haven't any DIVs in the content except this one, eliminate it simply by something like $content =~ s/<div>[^<]+<\/div>//; but if you have other DIVs there, assign an id to the taget DIV like this : $content =~ s/<div id="remove_it"[^<]+<\/div>//;, for example. Depends on the content implementation anyway.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved