Solved

Prevent Frontpage change imagemap to webbot

Posted on 1998-05-05
19
1,748 Views
Last Modified: 2009-12-16
When I have made a imagemap, e.g. with the program Mapinfo,
and load the same page in Frontpage,
FrontPage changes the <img scr><map>...</map> information
into a <!--webbot...>.
Frontpage does not asks me if I want this to happen.
This is very annoying since FrontPage looses information:

 - the javascript tags are removed
 - the "alt" identification information is removed

How do I prevent FrontPage 3.0.2 from changing my map?


Code follows
-----------------After mapedit:--------------------------------------------
<html>

<head>
<title>New Page 1</title>
</head>

<body>

<p><img src="test.gif" width="568" height="289" alt="test" usemap="#test" border="0"></p>
<map name="test">
<area shape="polygon" alt="URL1" coords="177,6,209,283,20,281,10,24,179,7"
 href="#URL1" target="FRAMELEFT" onMouseOver="dosomething">
<area shape="polygon" alt="URL2" coords="190,7,237,274,449,71,188,8"
 href="#URL2" target="FRAMERIGHT" onMouseOver="dosomething" onMouseOut="dosomethingelse">
<area shape="default" nohref>
</map>
</body>
</html>
----------------After loading it in FrontPage:-----------------------------------------
<html>
<head>
<title>New Page 1</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>
<body>

<p><!--webbot bot="ImageMap"
polygon="(177,6) (209,283) (20,281) (10,24) (179,7) #URL1#FRAMELEFT"
polygon="(190,7) (237,274) (449,71) (188,8) #URL2#FRAMERIGHT" default
src="test.gif" width="568" height="289"
alt="test.gif (11677 bytes)" border="0" --></p>
</body>
</html>
-------------------------------------------------------------
0
Comment
Question by:pihana
  • 7
  • 5
  • 3
  • +2
19 Comments
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1842800
what did you enter when asked for the type of image map? (CSIM, NCSA...)
0
 

Author Comment

by:pihana
ID: 1842801
Ok, let me clarify.

I only use the FrontPage editor, not the FrontPage explore.

I made a page with the FrontPage editor, containing
a image, and quit FrontPage.

Then I started MapEdit, selected the HTML page,
and selected the picture.
I then draw the polygones onto the picture,
added the onMouse events, and so on.

After saving the picture with MapEdit, I tried to view it with N3, MSIE 3 and MSIE 4 and the imagemap was just how I wanted it
to be. Worked perfectly.

But then I opened the page with FrontPage editor,
and without asking for anything, it changed my
imagemap into a webbot, with the problems mentioned above,
plus with the extra problem, that the reference to
the image wasn't relatief anymore (like images\map1.gif),
but absolute (like file://K|site1\tryout\version1\images),
so when I ftp the stuff to the Internet, I have to
change it back again. Horrible.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842802
Welcome to FrontPage!  For the very reason you describe, I only use FrontPage to initially set up my pages and get a framework going.  There is no way to turn off all the modifications that FrontPage does for you.  Notice that it also turns all
<CENTER><P>
to
<p align="center">

adds <div> stuff, and in general just really screws up your HTML coding style.  If you are looking for an editor that doesn't mess with your code but provides much of the functionality that FP does, take a look at
http://kanga.unixnet.org/~bigelos/temp/html_editors.html

0
 

Author Comment

by:pihana
ID: 1842803
Bigelos,

I'd noticed some other 'hyper-intelligent' transformations as well.
FrontPage should be renamed ChangesPage.

I hoped there was a (undocumented) keyword like:
 LEAVEALONE="yes"

I visited your page, but was overwhelmed by the huge amount
of links. I do not want all editors, just one.

I am looking for a HTML-editor, which
 -1 allows me to easily manipulate tables
 -2 works reasonable reliable WYSIWYG
 -3 does not make any 'intelligent' changes
   without asking me first
 -4 is preferably able to show the frames WYSIWYG
 -5 is downloable, at least for evaluation, of the Internet
 -6 is able to use most of the recent HTML additions
 -7 preferable has a FrontPage look and feel

You being the expert, which one do you recomment
and which of the above points it isn't able of?

Submit this as a answer if you like. I will then happily
grant you the points.

Thank you.
Pihana

0
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1842804
I personally recommend HoTMetaL 4.0 by SoftQuad - it's quite inexpensive (I paid for an update from an earlier version that was sent to me by CompuServe about $90), does very little changes with your code, had a built-in image map editor and has a good interface (IMHO). There should be a 30 days evaluation version of it at www.sq.com.
Tell me if you like it!
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842805
I cannot give a good recommendation since I use Notepad (comes with Windows) to edit my pages (after the initial creation w/FP).  I have heard good things about HTML Assistant, but it most definitely doesn't have the look and feel of FP98.

Just for kicks and giggles, try opening an html file with the extension shtml (server parsed html) in FP98.  I wouldn't even call what FP98 does with that file "intelligent"!
0
 
LVL 27

Expert Comment

by:aburr
ID: 1842806
To get a map into Front Page without changes., put the map html code in your clip board. Open your page in FP, change the display to HTML (with tab at bottom), paste your html code in where ever you wish, toggle back to normal, save, and use.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1842807
Guess what happens when you save when not viewing in HTML form? ;-)
0
 

Author Comment

by:pihana
ID: 1842808
Well, strictly speaking Aburr is right,

The question was:
 - How do I prevent FrontPage 3.0.2 from changing my map?

Answers just as right, or better, as the one of Aburr would be:

 - Do not use FrontPage
 - Do not use a map
 - Do not use a computer at all  ;-))

However, I reject your answer Aburr.
If you Bigelos submit your comment as a answer I will give you the points,
if you care for them.



0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:pihana
ID: 1842809
To Christian_Wenz:

I installed HoTMetaL 4.0 by SoftQuad.

You asked me my opinion.

I think it it total trash. It is worthless junk.

The first file (large), which views OK in FP, N4, N3 & MSIE4 : Memory error.
Sure. I never have them.

The second file, a small one, which views OK too in the above mentioned:
Hot metal said: I think there is something wrong with this file, and
wanted to remove some legal tags regarding frames, like target.  Yeah, right, like I don't needed them.

After that I looked if there was a patch, and I installed the Powerpack or something:
crashed during installation.

It is worthless.

I had a look on Macromedia Dreamweaver too.
The GUI, I find not OK for building the pages, but it is a nice tool for
a final touch since it is helping you making them N3/4 IE3/4 compatibele.

Thanks anyway :-((


0
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1842810
hi pihana,
sorry about your negative experiences, I have been quite happy with Hotmetal for years (despite using most of the time NOTEPAD, as well).
0
 

Author Comment

by:pihana
ID: 1842811
Since 48 hours I have been using Macromedia Dreamweaver 1.0 .
It turns out to be a very reliable program. Try it sometime.
It is by way the best editor I have seen sinces times, not counting
single browser targeting editors like FP.

The three (or 1 if you have enough cash to buy the needed hardware) disadvantages are:
 - on a 17'' monitor it uses too much screen space to work with comfortable:
   a lot of overlapping screens. You need a 19 or 21 '' at least.
-  you need a pent II 266 mhz at least, otherwise it is too slow
-  modifying tables is a bit awkward.

Ciao.
0
 

Author Comment

by:pihana
ID: 1842812
Bigelos: please submit your previous comment as a answer,
so that we can close these question.
0
 
LVL 8

Expert Comment

by:MaDdUCK
ID: 1842813
Too bad that I did not see this thread earlier. I have Dreamweaver 1.2 and it rocks!!! Seriously. It does not modify code, let's you use style sheets, and has a library function to replace frontpage's shared borders. The only thing I am missing is the navigation feature of frontpage which is a good idea, but with a little more work and dreamweaver's link checker I can work all my pages perfectly.

btw: if you have an
0
 
LVL 8

Expert Comment

by:MaDdUCK
ID: 1842814
Too bad that I did not see this thread earlier. I have Dreamweaver 1.2 and it rocks!!! Seriously. It does not modify code, let's you use style sheets, and has a library function to replace frontpage's shared borders. The only thing I am missing is the navigation feature of frontpage which is a good idea, but with a little more work and dreamweaver's link checker I can work all my pages perfectly.

btw: if you have any questions regarding dreamweaverm please ask. I feel quite comfortable with it.
0
 
LVL 8

Expert Comment

by:MaDdUCK
ID: 1842815
(I did not want it to comment twice - ARGH)
0
 

Author Comment

by:pihana
ID: 1842816
Thanks MaDduck,

I am very new to MD (I am using 1.0). I do have some questions.


- Is there a update to 1.2 available (freely I hope)?
- Is 1.2 supporting polygones on the client sided image maps? 1.0 doesn't (
  though it support rectangles).
- What is the best way to get a preview in N4 or MSIE4?
  Launching N4 or MSIE4 from MD by pressing <f12> or <shift><f12>
  is horrible: Frequently I get all duplicate browser on my screen and my 96 Mb RAM is
  being used up fast.
  Saving the page, and reloading it from the browser is OK for MSIE4 but
  N4 is a bit lazy about reloading its images (doesn't do it, unless the
  cache is reduced to zero).
- Sometimes you want to search and replace plain HTML code,
  e.g. by Notepad. The internal text-editor doesn't support replacing:
  has this changed with 1.2 or is there a nice way to use a external browser?
 
Thanks...


Bigelos or someone: submit a answer....so that I can close this question.

0
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 70 total points
ID: 1842817
- Is there a update to 1.2 available (freely I hope)?

Yes: http://www.macromedia.com/support/dreamweaver/upndown/

- Is 1.2 supporting polygones on the client sided image maps? 1.0 doesn't (though it support rectangles).

(give me a little time (2hrs.) then I'll tell you)

- What is the best way to get a preview in N4 or MSIE4?

I use your MSIE4 method. In Netscape, one thing you may want to try is to hold shift while you click the reload button.

- Sometimes you want to search and replace plain HTML code,
  e.g. by Notepad.

The internal HTML editor of DW supports that just fine. I did it every time I had to convert a FRONTPAGEHTML document to REALHTML.

I will be back with the answer to (2) but I am quite swamped right now so I cannot experiment. See you in 2 hrs.
0
 
LVL 8

Expert Comment

by:MaDdUCK
ID: 1842818
here it is, the answer with polygons:

YES. Just simply edit the map using the map editor and you will have rectangles, circles, and polygons. :-)

with the internal HTML editor in the last answer I meant the HTML display of DW (you may have to open it with F10

And the NAV4 preview thing is tricky! Try the shift method and if that does not work, then I think you'll have to set your cache to 0 or use MSIE3/4 ...
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now