MidiMagic 579 Nearly a Senior Poster

Pass the name as text?

MidiMagic 579 Nearly a Senior Poster

JavaScript can't do anything to send the value back. It runs on the client's computer.

So JavaScript must put the value in a field that your server-side script also uses.

MidiMagic 579 Nearly a Senior Poster

> The extension of a web page MUST be .htm or .html - nothing else will open your browser to display it

Perhaps it could be asp, php, aspx etc etc too.

I was trying to keep it simple.

MidiMagic 579 Nearly a Senior Poster

Try this, aswel as the code recommended by MidiMagic to ensure that the relevant cells have no inner padding.

img{ 
display:block;
margin:0;
}

Actually, the margins, borders, and padding are all OUTSIDE an image on both browsers.

But block objects are different on the two browsers:

- FF puts the margins, borders, and padding OUTSIDE the set size of a div or other block object.

- IE puts the margins, borders, and padding INSIDE the set size of a div or other block object.

MidiMagic 579 Nearly a Senior Poster

Divs are kind of unpredictable:

- Make sure the div is hidden with the visibility attribute:

.divoff {visibility: hidden;}
.divon {visibility: visible;}

Do not use the collapse property.

- Note that if the div is initially hidden, its contents are not rendered until the div is made visible. If the contents won't fit in the div's size (as rendered when it is hidden), the div will change size when it is made visible.

If you initially render it visible, you will see where it ends up, and hiding it will not change it. The reverse is not true.

- Note that the external div of a nested hidden structure must NOT have margins, borders, or padding. This is because IE and FF render these differently, and won't render them until the div is made visible:

--- FF puts all of these OUTSIDE the div's declared dimensions. This causes the div to shoulder aside other stuff to fit.

--- IE puts all of these INSIDE the div's declared dimensions. This can cause the div to expand if its contents are too big to fit.

Again, these effects do not happen until the div becomes visible. Then, when the contents, margins, borders, and paddings are rendered, the div changes size and changes the total rendering.

MidiMagic 579 Nearly a Senior Poster

I don't think you can do that, because it is not your page.

And I haven't found a way to find longitude and latitude on Google Maps. They don't display it.

Terraserver displays longitude and latitude:

http://terraserver.microsoft.com

Google Earth displays longitude and latitude, but it is not a website, in the sense that it has it's own dedicated browser.

MidiMagic 579 Nearly a Senior Poster

First, realize that some people find moving content on a web page very annoying, unless it is demonstrating a concept (such as a moving how-it-works diagram). It interrupts their reading processes, so they can't easily read the stationary parts of the page.

The best way to do it I can think of is to make a .gif animation. That works on anything except lynx (it's text-only). No script is necessary.

Another way to do it is to write a script to repeatedly fill a text box with text. nibbling characters off the left end and adding them on the right end. This could be done with a simple for loop. But don't hog the processor with your script, or the user will lose cursor control.

Of course, this requires that JavaScript be available and enabled, so it won't work on older browsers.

A flash animation will work too, but is unavailable for older browsers.

Amything else is probably browser-specific.

MidiMagic 579 Nearly a Senior Poster

Thank you.

Now if the dropdown menus could be a separate setting from the rest of the scripting, it would be nice.

MidiMagic 579 Nearly a Senior Poster

No. The links must be static for the search engine to find them. In other words, they must be in html.

62000 links might make the search engine think someone is trying to pull a fast one.

MidiMagic 579 Nearly a Senior Poster

The home page name for a given server is set by the server administrator, not by you. It will be the same filename for all websites on that server. For example, geocities.com has set all of the website home pages to be "index.html", with "index.htm" also working. On the other hand, my former ISP company used "home.htm" as the default name.

You must use the server's default name as your home page filename, if you want people to be able to address your site without appending a filename to the end of the url.

Other filenames must be addressed by adding the filename to the url, e.g:

http://mysite.myserver.net/myfilename.htm

The extension of a web page MUST be .htm or .html - nothing else will open your browser to display it. You don't get to pick your own extensions. They tell the computers involved what kind of file the file is, and what application the browser should open it with.

.htm and .html are web pages.
.gif is an image
.jpg is an image
.doc is a Word document
.ItWont is not associated with any application, so it won't display. It will cause an error box to pop up.

You also have to tell the browser and server where to look for the file, if it is not in your site's top-level folder. If your page is stored in the myfolder folder, then the url would have to be:

MidiMagic 579 Nearly a Senior Poster

The problem with the non-table methods is that they fall apart when the browser window size is different than the size planned for. Instead of making page image scroll (as it should), the browser lets the structure created by divs fall apart. It was a good idea theoretically, but the implementation stinks.

I choose to use tables whenever the div method can't be successfully achieved in FF and IE after half an hour's fussing around with styles and settings.

And there are several block elements that can NOT have div columns inside them. No browser works correctly when div layoutss are nested inside these other elements (e.g. list elements) without resorting to kludges to make stuff go where it belongs.

Until they can fix it so you can lock parts together sideways, the div method is a kludge (and a pretty poor one at that). And it will still be a poor method once they do come up with a fix, because older browsers won't support any possible fix they come up with.

If accessibility laws prevent fixing the layout of the page, then it's time we either removed some legislators and threw out those laws (PC is a religion anyway), or redesigned the browsers so they can be set to present tables used for layout in a different way than they present actual tables.

WE NEED COMPATIBILITY MORE THAN WE NEED PERFECT ACCESSIBILITY!

I question whether accessibility is a problem when the table …

GreenDay2001 commented: exactly +4
MidiMagic 579 Nearly a Senior Poster

Since they are using redirecting code to add code to your page, I don't think you have the power to do that.

MidiMagic 579 Nearly a Senior Poster

Why not just provide a link to the other site?

Displaying someone else's video on your site could be a copyright violation.

MidiMagic 579 Nearly a Senior Poster

I mean your idea of automatically logging in to a website from a web page on click of a link is insecure. Google would not notice that as being an insecurity. It will find the page and list it.

You can't have a "hidden" page on your website that only you can access. Google will find and index all pages on your web space. I put one in, just to keep from using my Yahoo download bandwidth when I start browsing (instead of loading my full homepage). Nothing links to it except the homepage setting in my Firefox. Yet, I found it on Google while looking for something else.

MidiMagic 579 Nearly a Senior Poster

Disabling scripting didn't get rid of the BOOKMARKS exploding link, which was the main thing I wanted to be rid of. How can I turn that off?

MidiMagic 579 Nearly a Senior Poster

>
I have a wisdom tooth coming in which seems to have gotten infected. A ridiculous amount of antibiotics have kept me off of the computer for much of the past week and I haven't made any changes at all in the past few weeks.

Unfortunately, however, I'm only at the computer to get some mandatory work done and don't yet feel up to debugging these things. I'm still in a lot of pain and rather nauseous from the antibiotics.

I hope you are feeling better.

I decided to disable scripting. I will miss the dropdown menus very much, but it's better to lose that, rather than having objects exploding in my face when I try to browse.

MidiMagic 579 Nearly a Senior Poster

The sidebars on the DaniWeb pages match the vertical scrollbar in Firefox. When the handle is at the other end, it's hard to tell if you are on the bar or not. Could we have some contrast here?

MidiMagic 579 Nearly a Senior Poster

Different web hosting companies have different defaults.

MidiMagic 579 Nearly a Senior Poster

Many "oldsters" with failing sight use 600 X 800.

MidiMagic 579 Nearly a Senior Poster

Thius has to be done in a server-side script and database, such as PHP and SQL.

MidiMagic 579 Nearly a Senior Poster

Unfortunately, the W3C deprecated center, and didn't give use anything that works reliably to replace it. They were thinking so much in terms of books and newspapers, that they didn't provide methods for centering things other than text.

How to align something depends on what that something is:

Text is aligned with the text-align style.

text-align: left;
text-align: center;
text-align: right;
text-align: justified;

You can float anything left, right, or none with the float style, but centering is not part of float.

float: left;

Most other things will center if you enclose them in a div set up as follows:

<style>
cend {margin-left: auto; margin-right: auto;
         border: none; padding: 0;
         text-align: center;}
ceni {clear: both;}
whf {width: 50%;}  // keep table from being full-width

<div class="cend">
  <table class="ceni whf">
    // table contents
  </table>
</div>

Images won't cent4er like everything else.

<style>
cenb {margin: 0; border: none; padding: 0;
         text-align: center;}
ceni {clear: both;}

<div class="cenb">
  <img src="myimage.jpg" class="ceni whf" />
</div>

They took away something simple and gave us a mess.

MidiMagic 579 Nearly a Senior Poster

NOT SECURE

Google will find iut and put it on its search engione. Than anyone can find it and log in to the services on the page without knowing the user name or password.

MidiMagic 579 Nearly a Senior Poster

Syntax errors:

- You broke the body style with the cursor style without any attributes.

- You broke the body style by not putting the # on the beginning of the color string 000000

- There is no url string in the url function.

MidiMagic 579 Nearly a Senior Poster

Not in the usual sense.

You could have two pages, one with the div hidden, the other with it shown, and link each page to the other one.

MidiMagic 579 Nearly a Senior Poster

I don't see the scrambled picture, but it is usually caused by one of two things:

- Bad download (including a firewall filtering out some parts of a picture)
- Bad internet connection
- Bad video card or settings
- Bad file
- Using a video driver or browser that can't display .png files.
- An ISP that can't correctly handle .png files.

I see the distorted web page, and I know what is wrong.

The text is embedded in the image, rather than being part of the image as pixels.

The Firefox setting "shrink image to fit window" is shrinking the pixels, but not the text. Thus, the various text entries overlap each other.

You need to flatten the text into the pixel image, or change to gif or jpg.

MidiMagic 579 Nearly a Senior Poster

Actually, the troubles took the summer off, because Dani allowed us to disable some of this stuff. But then she took the disable settings away.

I have serious problems reading web pages when stuff is moving all over them. It's a form of dyslexia. I wish the HOVER attribute had never been created - it's not accommodating to dyslexics. This covers the following posts:
Some of my old problems are back
Bumbling highlights square.

Selfish ADS on DaniWeb were using up all my CPU time, so I couldn't do anything:
Cursor is disappearing
Scroll arrows won't repeat
Stuff has stopped working.
Pages are jumping crazily around
Dropdowns close when cursor over link underneath

This one was caused by a denial-of-service attack on DaniWeb, combined with trouble in my ISP. The edit window kept closing in the middle of an edit:
Enough is enough!

I am still unable to post troublesome code from my website before the time limit ends, because the edit screen blanks out if you open a non-DaniWeb page, and because the code block settings used a font I didn't have, requiring the fixing of all indents:
Get rid of the editing time limit!!!!!

The watermarks on the web development pages were so dark on Firefox that I couldn't read either the watermark or the post:
Can't read what I am posting

MidiMagic 579 Nearly a Senior Poster

Float all of them left, and set their widths to 33.3%.

Make sure the divs making the three columns have margins and padding set to 0, borders set to none.

Remember that if the browser window is too small, the format will fall apart.

MidiMagic 579 Nearly a Senior Poster

I see a different display than either, and the reason why:

- You are using deprecated code with xhtml align="center" is deprecated.

- Your filenames may work or not work on different browsers, as some are case-sensitive, and some are not. I suggest that you use all-lowercase filenames.

- You are changing the colors of links. Many browsers let the user override any colors set by the page, for:
-- Normal link color
-- Visited link color
-- Hovered link color
-- Link background color
-- Page background color

MidiMagic 579 Nearly a Senior Poster

It is never a good idea to define custom colors for links to other pages.

The reason is that most browsers allow users to overide the colors you define. The user can set the normal text color, the hover text color, the visited text color, and the background color.

These user-defined colors will conflict with your customized colors, making backgrounds disappear, making links disappear by matching the background, or making text hard to read.

My advice is DON'T!

MidiMagic 579 Nearly a Senior Poster

You have to remove all margin, border, and padding style to get the bulleted list to display properly. This includes containing objects with styles.

Or put the following style in:

li {padding: 0;
    border: none;
    margin: 0;
    list-style-position: inside;}
MidiMagic 579 Nearly a Senior Poster

If you use IE's nonstandard extensions, your code will not work on other browsers.

I use two kinds of pages, depending on who I expect to use it:

- XHTML 1.0 Strict for pages I expect to be read mainly in the US. The problem is that my ISP adds stuff that doesn't validate in any doctype, to display their stupid ads.

- Non-doctype pages which almost validate, but can also be read on some of the older browsers and computers in foreign countries, including those using the browsers of the '80s and '90s.

I also writer my code so that it displays the same on IE and FF.

MidiMagic 579 Nearly a Senior Poster

Maybe the browser doesn't do frames, has frames turned off, or has a script or code in cache that turns off frames..

I don't like frames either.

MidiMagic 579 Nearly a Senior Poster

Considering that the second site doesn't display at all, I can't see the difference.

- Did you remember to make the file public?

- Is the url correct?

MidiMagic 579 Nearly a Senior Poster

It seems to be doing that on Firefox.

The main part does not shrink. Instead, it makes a horizontal scollbar

MidiMagic 579 Nearly a Senior Poster

Tables are not deprecated. They are just discouraged for use to format pages for purposes other than tables.

If the form is like an invoice form (with several blanks on each line), there is no reason why you shouldn't use a table to contain it.

Also, the alternate methods the W3C prefers don't always work, don't work inside some other tags, and fall apart if the browser window is reduced in size. So, if you can't get it to work, don't waste hours on it; just use a table instead.

MidiMagic 579 Nearly a Senior Poster

I don't know.

They never came up with a good replacement for the center tag, or starting an ordered list at a number other than 1. The elitists making the decisions don't consider the fact that some people have uses for html other than books and newspapers.

Some possibilities include the id attribute, and a relative version of the href attribute.

MidiMagic 579 Nearly a Senior Poster

The problem is that different information exists on different computers.

When JS writes something dynamic, the client computer knows this, but the server computer can't see it.

Meanwhile, the server computer can see only the original version of the page, so that is what it uses.

You need ONE server-side program handling all of the operations.

MidiMagic 579 Nearly a Senior Poster

If this code exists, baddies could use it for security violations.

MidiMagic 579 Nearly a Senior Poster

What you are asking for is a serious security breach when done on the internet. It might even be a crime.

If all of this is on an internal office intranet, you need a system like LAN-School, where a master computer can take over control of another computer with that software installed.

MidiMagic 579 Nearly a Senior Poster

Several thoughts:

- The word "null" is a JS keyword. You can't use it for a variable, object, function, or id name.

- You could be trying to use a variable initially set as a pointer after its value has been changed to a non-pointer. This is usually the result of a typogoofical error.

- Did you forget to make variables local to functions? If so, two different functions might be using the same global variable for different purposes.

- Is your ISP adding ads to your page? if so, their code might be interacting with your code.

MidiMagic 579 Nearly a Senior Poster

The problem is that anyone can display your code and find out the passwords.

MidiMagic 579 Nearly a Senior Poster

This may be a browser function, instead of a function of your code. The browser changes the location of a window or image if it can't display it in the specified position.

Also, it may be an ownership problem. Parts of that page contain links and ads. It may be that another script is overriding yours.

MidiMagic 579 Nearly a Senior Poster

Toggling the variable flip:

flip = (flip != true);
MidiMagic 579 Nearly a Senior Poster

Subtracting two date variables gives the difference between them, but in an internal representation.

getTime will then give the number of milliseconds between the two times.

Divide that value by 86400000 to get the difference in days. Real division will give days and portions of days.

MidiMagic 579 Nearly a Senior Poster

Several questions:

1. What format are the variables "etime" and "stime" in?

2. What do you want the value "2" to represent? It's not seconds or days. It is supposed to be milliseconds, but some implementations use jiffies instead (multiples of the Intel 55 ms interrupt period).

3. What units did you expect "total" to be in? You don't have any guarantee of what unit of measure the variable "total" is in. It is an internal time unit that depends on the computer used.

4. Do you really want to measure 2 ms times? Windows computers can't measure such times without special hardware.

Note that the system clock does not update each millisecond. Usually the system clock is updated once every 55ms jiffy. If you are really trying to measure intervals of 2 ms, you are doomed to failure. I/O itself happens only once every 55 ms on Windows computers.

DOS computers could do this. Windows computers can't.

One thing you could do is make a standard for comparison:

std = knownEndTime - knownStartTime;   // set a standard time interval for your comparison.
diffo = end - start;

if (diffo > std) {

// code for diffo is greater than the standard interval

}
else {

// code for diffo is less than or equal to the standard interval

}
MidiMagic 579 Nearly a Senior Poster

JavaScript can't do that.

You need a server-side language if you also want to keep the info for yourself. JavaScript runs on the client's machine, and can't normally affect files on the server.

Also, collecting the IP address might be futile. Many Internet Service Providers (ISPs) now create random IP addresses, to prevent security and spam problems.

MidiMagic 579 Nearly a Senior Poster

There are errors in this:

<link rel="stylesheet" type="text/css" href="c:\Calendar.css"/>

That code is referencing a file on your own computer's hard disk. It won't work for anyone else. The string "c:\Calendar.css" is a DOS or Windows disk path. The Internet doesn't know what those are. The only place this works is if the page is open on the Windows computer the files are actually stored on.

Many servers don't have the foggiest notion of what a "c:" drive is.

You need a space before the /> portion of the tag. Otherwise, IE generates an error condition.

MidiMagic 579 Nearly a Senior Poster

I can see two problems:

- Modifying code on the fly is always a source of hard-to-locate grief and megamanhours of debugging. Change the attributes of an object instead.

- You could be violating copyright by stealing information from someone else's website.

MidiMagic 579 Nearly a Senior Poster

I am again having troubles with some of the same things:

- The tooltips are appearing fast enough to be pesky when I move the mouse to an item. They seem about 3 times as fast as they used to be last week.

- I am again losing the text-insertion point cursor in the Quick Reply box.

- There is an annoying +BOOKMARK box at the bottom of this post which expands instantly when I pass over it, without waiting any period of time. Half of the time, it stays expanded. Why can't this be an item you click on if you want it, and ignore if you don't?

MidiMagic 579 Nearly a Senior Poster

It's probably in a script you can't see.