473,513 Members | 4,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Testing menu has problems to work out

www.geocities.com/r_bullis/test1.html

At least this menu works in netscape.
Disregarding the colors of the divisions.
Those will be removed later.

What I'm looking at doing is to have the "text" beside the images more
centered with the image and perhaps a bit more to the right.
I'm not sure if it's within the javascript, but I keep finding roadblocks to
do it the way I want to.

The original was in strict.dtd but found out that doesn't like "float" so
well.

Anyone have any insight on how I can position the text where I want it?

Jul 21 '05 #1
11 1585
On Wed, 15 Dec 2004 10:23:37 -0600, "Richard" <An*******@127.001>
wrote:
www.geocities.com/r_bullis/test1.html

At least this menu works in netscape.
Disregarding the colors of the divisions.
Those will be removed later.
Will the links actually lead anywhere when it's finished?
What I'm looking at doing is to have the "text" beside the images more
centered with the image and perhaps a bit more to the right.
vertical-align and padding or margin will be your friends.
I'm not sure if it's within the javascript, but I keep finding roadblocks to
do it the way I want to.

The original was in strict.dtd but found out that doesn't like "float" so
well.


Rubbish. There's nothing in strict that prohibits any CSS properties.
You're probably coding to an old buggy model and when you used a
strict doctype it triggered standards mode in modern browsers.

But seeing as you can't even make it valid HTML Transitional it's
clear that you still have a lot of work and a lot of learning ahead of
you.

http://validator.w3.org/check?uri=ht...lis/test1.html

http://jigsaw.w3.org/css-validator/v...1&profile=css2

Any why have you gone back to using mm for lengths? I thought we beat
this into you last year?

Steve

Jul 21 '05 #2
On Wed, 15 Dec 2004 10:23:37 -0600, Richard wrote:
www.geocities.com/r_bullis/test1.html


For goshamunugget's sake, people! Please put "http://" on the front of
links when posting. Sheesh.

--
Jeffrey D. Silverman | je**********@jhu.edu
Website | http://www.newtnotes.com

Drop "PANTS" to reply by email

Jul 21 '05 #3

"Steve Pugh" <st***@pugh.net> wrote in message
news:51********************************@4ax.com...
On Wed, 15 Dec 2004 10:23:37 -0600, "Richard" <An*******@127.001>
wrote:
www.geocities.com/r_bullis/test1.html

At least this menu works in netscape.
Disregarding the colors of the divisions.
Those will be removed later.
Will the links actually lead anywhere when it's finished?


Perhaps when it's done.

What I'm looking at doing is to have the "text" beside the images more
centered with the image and perhaps a bit more to the right.


vertical-align and padding or margin will be your friends.
I'm not sure if it's within the javascript, but I keep finding roadblocks todo it the way I want to.

The original was in strict.dtd but found out that doesn't like "float" so
well.


Rubbish. There's nothing in strict that prohibits any CSS properties.
You're probably coding to an old buggy model and when you used a
strict doctype it triggered standards mode in modern browsers.

But seeing as you can't even make it valid HTML Transitional it's
clear that you still have a lot of work and a lot of learning ahead of
you.

http://validator.w3.org/check?uri=ht...ullis/test1.ht
ml
http://jigsaw.w3.org/css-validator/v...ocities.com/r_
bullis/test1.html&warning=1&profile=css2
At this point I don't care if it validates or not.
Without looking, let me guess. NO alt in the images right?
And of course, validator 3 plays hell with the embedded crap from yahoo.

Any why have you gone back to using mm for lengths? I thought we beat
this into you last year?


In this issue I feel that using mm instead of px or em's keeps the display
looking the same regardless of window size or resolution.

Now a little nit picking.
Item #1 says the division is not open, when it is part of a variable within
the javascript. This is not an error.

Item #2 through #8.
The division is clearly defined and properly opened and closed.
Apparently, the validator does not like divisions in a variable.

item #10.
var msg4 = 'Visit <a href="http://www.dyn-web.com">Dynamic Web Coding</a>
for many more great scripts.';

Error reports closing tag found but not open.
Again, this validator apparently does not like this method.

Jigsaw reported two minor syntax errors easily corrected.

I'm surprised that this time there were no errors for not having "alt" in
the images.

I believe this validator needs some tweaking to parse the javascript
routines better.
Oh I already know your response to this one.
Jul 21 '05 #4
Richard <An*******@127.001> wrote:
I believe this validator needs some tweaking to parse the javascript
routines better.
See http://www.htmlhelp.com/tools/valida...ms.html#script
Oh I already know your response to this one.


Were you right?
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

Why is "abbreviated" such a long word?
Jul 21 '05 #5
On Wed, 15 Dec 2004, Darin McGrew brings to light that an entity that
had already burrowed its way into my killfile had posted this...
Richard <An*******@127.001> wrote:
I believe this validator needs some tweaking to parse the javascript
routines better.


This troublemaker wants the validator broken so that it's no longer a
validator any more.

Raising the screen temporarily, I see that they also remarked:

|| At this point I don't care if it validates or not.

So one wonders why they're so keen on breaking the validator.

Jul 21 '05 #6

"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote in message
news:Pi******************************@ppepc56.ph.g la.ac.uk...
On Wed, 15 Dec 2004, Darin McGrew brings to light that an entity that
had already burrowed its way into my killfile had posted this...
Richard <An*******@127.001> wrote:
I believe this validator needs some tweaking to parse the javascript
routines better.


This troublemaker wants the validator broken so that it's no longer a
validator any more.

Raising the screen temporarily, I see that they also remarked:

|| At this point I don't care if it validates or not.

So one wonders why they're so keen on breaking the validator.

Dumbass, understand the point of the file ---->> testing!

I did not write the script!

<quote>
end tags are recognized within SCRIPT elements, but other kinds of
markup--such as start tags and comments--are not.
</quote>

Therfor, the validator is correct in processing the error.
In a way, I can understand why it is that way.
Jul 21 '05 #7

"Darin McGrew" <mc****@stanfordalumni.org> wrote in message
news:cp**********@blue.rahul.net...
Richard <An*******@127.001> wrote:
I believe this validator needs some tweaking to parse the javascript
routines better.


See http://www.htmlhelp.com/tools/valida...ms.html#script
Oh I already know your response to this one.


Were you right?


With what you posted here, I can understand better the reasons for the
errors.
If it accepts things like end tags, why can it not accept the start tag?
After all, it keeps on saying, "which is not open".
Well duhhhh, if the originator (of sgml that is) would correct his own
mistake, then the validator would not create the error.

if it was an error, why does it work?
Jul 21 '05 #8

"Darin McGrew" <mc****@stanfordalumni.org> wrote in message
news:cp**********@blue.rahul.net...
Richard <An*******@127.001> wrote:
I believe this validator needs some tweaking to parse the javascript
routines better.


See http://www.htmlhelp.com/tools/valida...ms.html#script
Oh I already know your response to this one.


Were you right?


BTW thanks for the tip. with the addition of a simple \ all the errors on
the end tags have gone away.

Jul 21 '05 #9
On Wed, 15 Dec 2004 15:06:15 -0600, "Richard" <An*******@127.001> wrote:
"Darin McGrew" <mc****@stanfordalumni.org> wrote in message
news:cp**********@blue.rahul.net...
Richard <An*******@127.001> wrote:
> I believe this validator needs some tweaking to parse the javascript
> routines better.
See http://www.htmlhelp.com/tools/valida...ms.html#script > Oh I already know your response to this one.
Were you right?

With what you posted here, I can understand better the reasons for the
errors. If it accepts things like end tags, why can it not accept the
start tag?
Because you have to grow a better understanding of what CDATA stands
for. All internal parts of a 'SCRIPT' element is declared to be CDATA.

In a CDATA context the parser is told to pass just all and everything it
finds over to a following application (the javascript interpreter in
your case)

But here comes the "snag"; it is very easy to start an element that is
defined to contain only CDATA, but what shall the parser look for to
find out where the CDATA context ends? if it's only duty within CDATA is
to pass everything straight through?

So it has once been decided that the character sequence of </ (i.e. the
ETAGO = EndTAGOpen) shall be the 'mark' that the parser shall look for
as a signal that "my CDATA context area ends here".

Following that; if you use e.g. document.write('</P>') somewhere inside
your script; at the very first point where the parser finds that </ it
will revert to PCDATA parsing of that particular </ sequence and all the
rest that follows.

So in the example of </P> the parser will find a closing P tag for a P
element that has never been opened and an error report is obvious.

Write all your </whatever> tags as escaped <\/whatever> tags in your
scripts and the validator will give you a pat on your back :-)
After all, it keeps on saying, "which is not open".
Well duhhhh, if the originator (of sgml that is) would correct his own
mistake...
You are "Don Qioute" right? :-)

SGML is an international ISO level standard that has been recognized by
representatives from some well over 100+ countries in the world.

Sorry to be the one that brings you the message, but probably millions
of man/woman hours has been spent in thinking and discussions on how to
make SGML a real standard. I find it hard to believe that just your
input would make a difference.
...then the validator would not create the error.


You need to learn how it is designed to work sonny; Escape your ETAGO's
inside script content and you are all set to go. That method was
provided for you in the standard that you keep cursing out of ignorance.

--
Rex
Jul 21 '05 #10
On Wed, 15 Dec 2004, Jan Roland Eriksson wrote:
Write all your </whatever> tags as escaped <\/whatever> tags in your
scripts and the validator will give you a pat on your back :-)


Which, of course, anyone interested in HTML will have already found
here: http://www.w3.org/TR/html401/appendi...html#h-B.3.2.1

Don't get me started on XHTML's answer to this, though.
Jul 21 '05 #11
Jan Roland Eriksson <jr****@newsguy.com> wrote:
Write all your </whatever> tags as escaped <\/whatever> tags in your
scripts and the validator will give you a pat on your back :-)


Better yet, move the script to an external file, and you no longer have to
worry about it.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"There are three kinds of people: those who can count and those who can't."
Jul 21 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
11059
by: Marek Mand | last post by:
How to create a functional *flexible* UL-menu list <div> <ul> <li><a href=""></li> <li><a href=""></li> <li><a href=""></li> </ul> </div> (working in IE, Mozilla1.6, Opera7 (or maybe even in Opera6))
5
2414
by: Claudio Jolowicz | last post by:
How do you position a navigation menu to the left of the main section? My site has three div elements: --------------------HTML--------------------- <body> <div id="navigate"> <a href="./">Home</a> <a href="bla/">Bla</a> <a href="links.html">Links</a> </div>
0
1722
by: Jonathan Allen | last post by:
We have found that our method of testing does not match traditional text-book methodologies. I decided to write a short white paper on it so that I could get your opinions. Does anyone else use this method? If so, what the heck is it called? Do you think it would work in other projects, or did we just luck out? Jonathan Allen ...
2
5838
by: PC User | last post by:
I'm creating a shortcut menu to popup over my richtext box. Its a form with a listbox of menu items with associated richtext activex (rtf) editing commands. I found a way to transfer a value from the popup menu to the form, but now I have one more step to take. The value being transferred is a public function from a module. I need to find a...
4
14162
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with "Select All" and "Clear Selection" to a checked list box? Thanks, Aaron Queenan.
1
2146
by: Anthony | last post by:
Below is a script I found at http://javascript.internet.com/ for a cascading menu. The script works great but there is one thing that I would like modified. BecauseI am just learning javascript, I did not want to try to modify the code without a little help. When you place the mouse over the menu bar, this script calls the function to show...
19
3647
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the code for this from a tutorial but that menu was flush-left justified. Not what I want. Subsequent searches on google on how to center yielded a
3
2193
by: =?ISO-8859-1?Q?Jo=E3o_Maia?= | last post by:
Hi there, I am having a weird problem in trying to use a ASP.NET menu inside a custom web part. I am developing a custom web part that has a menu inside (just the menu, nothing else). The menu is a System.Web.UI.WebControls.Menu (ASP.NET 2.0) object. If I add the menu to a simple ASPX web form, it works nice. However, I am adding it to my...
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5102
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4757
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.