PDA

View Full Version : MvCALL brings in extra <header>


Neocoder
04-15-06, 02:19 PM
I'm building a page using MvCALL to get an HTML page. I'm concerned because the resulting code for the page I'm building now has two headers. The called page (and its header) appears in the middle of my <body>.

It seems to display fine in both Netscape and Explorer, but I hate to generate such messy code and it makes me nervous that it may create problems in some browsers or situations.

The new header appears to take precedence over my original header, so the title displayed is from the new page, but that's not a major concern to me.

Can I quit worrying or is there something more I need to do?

wcw
04-15-06, 04:50 PM
When you run the mvcall, you are mveval the callvalue as it loops through each line. You can change that to an mvassign to a variable. But only start accumulating the variable until after the body tag. Then stop collecting it when the /body is encountered. Then after the mvcall loop, do the mveval of the full variable. This method also gets rid of the space between images and anchor so you don't see the underline character after every image. Some people use this method to "surgically" retrieve just a couple lines from another html file (which in many cases may violate copyright of those sites, eg weather reports).

Neocoder
04-16-06, 12:43 AM
Thank you! Its working great and the code looks so much better. I appreciate your help.