tgreer 189 Made Her Cry Team Colleague

I'm still confused... If you want JavaScript help, this is the place. If you want Java help, then ask in the JSP forum (there is no such thing as "JAVA script"). If you want help with ASP.NET server controls, ask in the ASP.NET forum.

If you want a set of HTML CheckBoxes that are mutually exclusive (the user can click only one), then you create checkboxes with the same NAME. However, in that case, the convention is to use Radio Buttons. Users will expect to be able to click multiple checkboxes.

I suggest you clearly state the

1) DESIRED END RESULT: A set of checkboxes? Mutually-exclusive?
2) The language you want to use to achieve this result: ASP.NET? Java? JavaScript?

tgreer 189 Made Her Cry Team Colleague

You can style scrollbars with CSS. Note, this is IE-only. Search the web for "scrollbar-base-color" and you should see plenty of examples.

tgreer 189 Made Her Cry Team Colleague

You'll have to be more specific and detailed in your question. You can include checkboxes in an HTML Form by coding a checkbox element:

<input type="checkbox" id="myCheckbox">Check this box.</input>

But then you say you want to "embed" this control with Javascript. What exactly do you mean? Do you want to dynamically create a checkbox element at runtime, client-side? At what point? How many? Will they be mutually exclusive?

tgreer 189 Made Her Cry Team Colleague

I personally don't use Dreamweaver, so I would like to help but wouldn't be able to guide you on its use. I'm using Firefox, and it appears that all images are loading.

As far as extra whitespace, it's tough to do much fine control when you're using both tables and divs together... too many overlapping/conflicting elements. Maybe that's just Dreamweaver, though?

tgreer 189 Made Her Cry Team Colleague

I run an industry-specific, highly-targeted forum. I'm using a standard ad-rotator, where I can track/charge for clicks, impressions, or duration.

I think I could charge a bit more that average because the site is so specific to an industry, nearly every member would be a qualified prospect.

That said, what are the standard charges/agreements?

tgreer 189 Made Her Cry Team Colleague

You've been no bother at all, you've used the forum for exactly the reason it's here: to ask questions and get enough info to tackle problems. I was just, perhaps tactlessly, encouraging you to learn via experimentation. In my experience, that's the best way to learn!

tgreer 189 Made Her Cry Team Colleague

Neither, though HTML and XML are both derived from SGML. XML is a data file, formatted with tags and attributes defined via a schema. HTML is the same thing, though specialized to "web pages". XML is generic, or to say it another way, may be specialized to your specific needs.

Perhaps you're thinking of XHTML, which is a stricter version of HTML inspired by XML.

tgreer 189 Made Her Cry Team Colleague

Any collection of JavaScript variables, functions, and objects can be called a "script". Yes, you can put them all into the same file.

At this point I think you have enough information to experiment. I think you'll be able to answer most of your own questions by trying it out. If not, let us know!

tgreer 189 Made Her Cry Team Colleague
tgreer 189 Made Her Cry Team Colleague

Why is that interesting? What do you find interesting about it? Why do you feel information regarding AJAX would be of interest? Is it a "trend", or a core technology? Do YOU use AJAX, if so, why?

Do you have any questions about AJAX?

Why are you quoting hyperlinks from another site? What benefit does that bring to Daniweb or forum members?

tgreer 189 Made Her Cry Team Colleague

They are created in a Tree, by the Keebler elves.

Sorry: client-side.

tgreer 189 Made Her Cry Team Colleague

Not this guy: http://gamesbyemail.com/DiceGenerator

Had to share, I think it's equal parts hilarious and genius.

tgreer 189 Made Her Cry Team Colleague

Sounds like an ASP.NET application? If so, and if you're working with dynamically-created controls, then you're very likely running afoul of the ASP.NET Page LifeCycle.

This article deals very specifically with that issue:

ASP.NET Page Life Cycle and Dynamic Controls

tgreer 189 Made Her Cry Team Colleague

You mean, income taxes? You pay income taxes on INCOME, regardless of where you store it. Money sitting in Paypal is not tax-exempt.

If you're not referring to income taxes, please clarify so I can provide you more inexpert advice, for which I will not be held liable!

tgreer 189 Made Her Cry Team Colleague

Whether or not you need "type=" depends on which doctype/HTML version you're using. Firefox parses external JavaScript just fine, and always has. What do you mean by "format" when you say you don't know how to format the JavaScript file? It's a file that contains JavaScript, pure and simple.

tgreer 189 Made Her Cry Team Colleague

There is no difference; they are two terms for the same thing.

tgreer 189 Made Her Cry Team Colleague

Sorry, but this doesn't make sense to me. Can you post a better pseudo-code example? If you have something that needs to execute before something else happens, code the first "thing" as a method that returns a value. Test the value, then move forward or not.

There should never be a need to do what you're asking to do.

tgreer 189 Made Her Cry Team Colleague

Probably not in the ASP.NET forum! Try one of the "software development" sub-fora, rather than "Web Development".

tgreer 189 Made Her Cry Team Colleague

"Session" is data stored per user session. "Viewstate" is an ASP.NET thing. It's a way for the application to maintain state about a particular form and its child controls. Your ASP.NET application might consist of several pages/forms. There might be a piece of data that you want to access across all pages. You could place that in a Session variable. However, you rarely need to worry about ViewState, ASP.NET manages that itself.

I've written some articles that discuss Viewstate: http://www.tgreer.com/aspnet_html_02.html

This article shows how you might use Session: http://www.tgreer.com/aspnet_html_04.html

tgreer 189 Made Her Cry Team Colleague

I tried to follow the link, and get a "page not found error". Can you post the most stripped-down version of your HTML and CSS which still exhibits the problem?

tgreer 189 Made Her Cry Team Colleague

Save your script in a file with a ".js" extension, for example, "myExternal.js" Do NOT put <script> tags in the file. In your HTML, you reference the file:

<SCRIPT language="JavaScript" SRC="myExternal.js"></SCRIPT>
tgreer 189 Made Her Cry Team Colleague

I think the point is, though, that no bot would access those "pages", because they aren't linked to... there is no link to "follow" to non-existent forums and/or threads.

I suppose, in theory, your example of a moved thread, might occur, and in any case, the advice to create a 404 page is valid.

tgreer 189 Made Her Cry Team Colleague

I can't stand it anymore, so: <flame on>


What six-week test? Norwegian TV? What exactly are you going on about? You seem to have taken this forum over. All of your posts are a direct copy & paste from someone else's pages, many of which make no sense since they are out of context. Since you offer no personal insight or commentary about what you're quoting, this amounts to plagiarism. You'll notice that the vast majority of your posts generate no discussion whatsoever. So, what exactly is your purpose with these posts? What you're doing, in my opinion, is essentially spamming the site.

If you simply wish to post "interesting" news items, you should do it in your own blog. Daniweb allows users to create their own blogs. I encourage you to do so, if you haven't already.

Please stop polluting the forum with meaningless posts. I would also ask that when you do post, actually SAY SOMETHING, and refrain from coloring the entire post - the color and formatting options are there basically to make code listings and technical terms stand out, not to make graffiti out of each post.


<flame off>


P.S. I would have preferred to do this privately, but you have turned off all contact options.

tgreer 189 Made Her Cry Team Colleague

<img src="myImage.png" onclick="document.getElementById('myForm').reset();" />

tgreer 189 Made Her Cry Team Colleague

Why would boys want girls overalls?

tgreer 189 Made Her Cry Team Colleague

I got one that said:

"Thanks, I searched long for this but for some reason, I did not find it. :)"

I like it because it seems impossible... he's saying that he did NOT find what he was searching for, but thanks for it nonetheless?

tgreer 189 Made Her Cry Team Colleague

You need to set the "margin" and "padding" attributes in each of your block-level elements. You also need to set a proper "doctype" for your page.

tgreer 189 Made Her Cry Team Colleague

...but it did work for me, IE and FireFox.

tgreer 189 Made Her Cry Team Colleague

Yes, very likely AJAX.

tgreer 189 Made Her Cry Team Colleague

If a user closes their browser window or navigates to a different page, then that's what the user wants to do. Anything that interferes with that process is going to cause irritation. The user should only be presented with a survey if they click a link to a survey.

tgreer 189 Made Her Cry Team Colleague

The only way is with the "onUnload" attribute of the "body" command. You can cause alerts to appear, but trying to open a popup window will undoubtedly fail or cause problems with the vast majority of users. That is because popups are annoying and frequently blocked. I would strongly suggest you find another approach.

tgreer 189 Made Her Cry Team Colleague

That'll work, thanks.

tgreer 189 Made Her Cry Team Colleague

Doesn't C# support EBCDIC encoding?

I'm working on a project that involves parsing Xerox Metacode print streams, encoded as variable-byte EBCDIC records. The print stream data itself is in ASCII, but the record headers and control records are in EBCDIC.

I read the records in as byte arrays. I know I can convert a byte array into an ASCII string:

Encoding ascii = Encoding.ASCII;
char[] asciiChars;
string asciiString;

record = new Byte[record_size];
count = infile.Read(record,0,record_size);
asciiChars = new char[ascii.GetCharCount(record, 0, record.Length)];
ascii.GetChars(record, 0, record.Length, asciiChars, 0);
asciiString = new string(asciiChars);

Obviously not all the code is there, but that's enough to show the technique. I need to do the same thing with records I know are in EBCDIC, yet System.Text.Encoding doesn't have EBCDIC!?

Any idea how to turn a byte array into a string, using EBCDIC encoding?

tgreer 189 Made Her Cry Team Colleague

Image slicing?

tgreer 189 Made Her Cry Team Colleague

Check with your web hosting company. They will undoubtedly have a stats package installed that you can access. In any case, you can't do this with client-side code.

tgreer 189 Made Her Cry Team Colleague
print "Content-Type: text/plain; charset=utf-8\n\n";

Put this before any page content.

tgreer 189 Made Her Cry Team Colleague

What server-side language are you using to create the file? Here's a PHP example:

<?
header("Content-type: text/plain");
?>

You can provide a meta-tag, however, it may not work in all browsers. The proper way is to set the MIME-type in the HTTP headers (which is what PHP is doing, above), rather than in the HTML document itself. The meta-tag:

<META HTTP-EQUIV="Content-Type" CONTENT="text/plain">

That would go in the "head" section of your HTML.

tgreer 189 Made Her Cry Team Colleague

That looks correct. Make sure that your .css file doesn't contain any HTML tags at all, only style declarations.

Note: when I look at your actual CSS, you're missing a semi-colon:

http://ysfdata.freefronthost.com/main.css shows: span {color: red}

Also, you have a system path to the CSS in your link, rather than an HREF. You need to provide a path that the Web Browser would understand, not the path the web server uses.

tgreer 189 Made Her Cry Team Colleague

The MIME-type should be text/plain. However, you should also give your file the .txt file extension, because IE ignores MIME-types, using instead the OS' file associations.

tgreer 189 Made Her Cry Team Colleague

Please don't resurrect 1.5 year old threads!

tgreer 189 Made Her Cry Team Colleague

It's going, going, gone... the commitment now is to .NET.

tgreer 189 Made Her Cry Team Colleague

The rules of "Sudoku": Each row must have the digits 1-9, no repetitions. Each column must have the digits 1-9, no repetitions. The grid is further divided into 9 3x3 cells. Each cell must have the digits 1-9, no repetitions.

With the "easy" puzzles, each cell can easily be determined by exclusion: it can't be any digit already in the cell, row, or column. There are various levels of difficulty, however. On the most difficult puzzles, you have to form networks of true/false pairs, and steadily exclude any candidates that don't fit in the "network".

tgreer 189 Made Her Cry Team Colleague

This type of question is hard to answer without knowing your skill level. Have you made any attempts so far? If you search the web for "DHTML Menus" and/or "image rotators", do you find anything you can use?

tgreer 189 Made Her Cry Team Colleague

As I mentioned... this is a well-known and very popular puzzle form, called "sudoku". There are several generalized solving techniques. A simple web-search on the term will generate all the information you're likely to need on the topic.

tgreer 189 Made Her Cry Team Colleague

This is called "sudoku", and is already a popular form of puzzle.

tgreer 189 Made Her Cry Team Colleague

You cannot create a secure registration system in client-side code. You'll need to pick a server-side development language, and develop your system in it.

tgreer 189 Made Her Cry Team Colleague

I think I tried that, but can't remember. I'll re-investigate. I think one of the issues is that each element of the ArrayList contains a 2-element array...

tgreer 189 Made Her Cry Team Colleague

Hmm... you could ensure centering with "margin: 0 auto;" in your container div. You know that, it seems. Then, your pageblock div would be absolutely positioned, with "top" set to whatever you like to move it down the page. Then I think you could use top, left, and width properties for content and sidebar, using position: relative, for them, so that they would be relative to pageblock.

I hope that makes sense, I'm going from memory of your page structure.

tgreer 189 Made Her Cry Team Colleague

If you strip everything down to just the content and sidebar, and remove all other CSS except just the "float: left", you'll see the gap still remains. IE doesn't do well with "float", period. Yeah, it stinks, I know.

tgreer 189 Made Her Cry Team Colleague

IE has weird issues with "float". I hate to suggest this, but see if you can rework your CSS to use absolutely positioned divs. Sometimes adding "display: inline;" to your div styles will fix some of IE's float/margin issues.