Search found 139 matches

Actual Results

Post Posted: November 23rd, 2005, 2:34 pm

Another 95% solution is to design your site so that it explicitly refuses to work with Opera and Safari. Joni1 I gather you've already come to this conclusion, but it's worth repeating. Never listen to people who recommend you design a web site so that it's completely unusable by 5% of your potentia...

Post Posted: November 20th, 2005, 5:11 pm

The way I approach these things is to use whatever works. Each is what it is, is all. Here's one somewhat pedantic example of the difference between the data and nodeValue attributes:[code]<html><head> <script> function showClick(node) { var attr = node.getAttribut...

Post Posted: November 15th, 2005, 9:35 am

This isn't something that I would spend any time worrying about, but OK... The best way to determine load times is to set up a little test suite yourself, using your server and the browser you're most interested in, and time a few thousand page loads. But in general terms it's probably fair to say t...

Post Posted: November 14th, 2005, 8:48 am

conn2prince wrote:
".....There are two ways to write error-free programs. Only the third one works....."
I think you should go straight to #1. In Firefox, open Tools Menu -> JavaScript Console. What's the error, and which line of code does it happen to?

Post Posted: November 14th, 2005, 8:44 am

In my experience this sort of problem is always caused by the person installing Adblock, and then forgetting what it is that Adblock does. Oh and sometimes, firewalls.

Post Posted: November 13th, 2005, 12:04 pm

setAmount is a JS custom user defined function... I had hoped by now to have built a reputation that would preclude my being schooled on any point as basic as that. Whether or not the complete source would reveal additional errors, it seems worthwhile to begin with the obvious one, being that a str...

Post Posted: November 12th, 2005, 10:47 am

Code: [ Download ] [ Select ]
document.getElementById("amount_2").onclick = function() {
 setAmount(this, '2')
}
  1. document.getElementById("amount_2").onclick = function() {
  2.  setAmount(this, '2')
  3. }

Post Posted: November 12th, 2005, 10:39 am

Change
Code: [ Download ] [ Select ]
div#navigation {position:absolute;margin-top:75px;margin-left:-65px;width:150px;} div#main {border:1px solid Silver;width:750px;margin-top:55px;margin-left:85px;color:#777; background-color:#FFF;}
to[code]div#navigation &#...

Post Posted: November 8th, 2005, 8:03 pm

Code: [ Download ] [ Select ]
 document.getElementById('term').value = "";
vs
Code: [ Download ] [ Select ]
 <input type="text" name="term" size="75" maxlength="256">

getElementById keys off the id attribute, not name.

Post Posted: November 8th, 2005, 5:51 pm

You didn't mention that |bar| is the name of a form element at http://www.azoundria.com. IE 5 isn't nearly so old that it can't find document elements in a page of HTML. I'm surprised to hear that IE5 can't locate a form element by name. But if this is so, you'll have to jigger an alternative, IE 5-...

Post Posted: November 8th, 2005, 5:49 pm

Ain't no secret. Use location.replace.

PS Cache-control wouldn't affect browser session history.

Post Posted: November 6th, 2005, 11:55 am

strcpy doesn't do any kind of insertion or intelligent replacement. It only copies. It could reasonably be used as a piece of an implementation of a substring replacement algorithm, but only one minor piece. The only reasonable solution is to write your own string class that takes care of this for y...

Post Posted: November 5th, 2005, 6:46 pm

std is useful and elegant, and you want to learn to like it. But to answer your question, I believe you meant to write something like this:
Code: [ Download ] [ Select ]
strcpy(&main_Char[i], rpl_Char);
That will fix the problem with parameter 1. Parameter 2 similarly requires an address, not a cha...

Post Posted: November 2nd, 2005, 10:53 am

(With apologies to Carnix. I started writing this before I noticed his post. Some information in this post is redundant with his.) Some simple, obvious changes would help readability. Most of the interesting JavaScript functions in tips_message.js are not indented. Many functions are compressed into...

Post Posted: November 1st, 2005, 9:29 am

All this agreement is heart-warming, but let's not lose sight of the fact that mousedown and click are different events, suitable for different user gestures, not to be confused with one another. Regardless I would have been surprised had swapping click for mousedown helped with the site mentioned. ...
  • Sort by
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.