Forum: HTML and CSS 6 Hours Ago |
| Replies: 1 Views: 117 Can't see the effect so can't really debug it, however here's a handful of observations:
Header table has attribute align="left" which is equivalent to a float, therefore maincontent div need... |
Forum: JavaScript / DHTML / AJAX 17 Hours Ago |
| Replies: 1 Views: 115 Neogy,
First thing to try is to combine the two code blocks above into a single $(document).ready(function(){.....}); structure.
Airshow |
Forum: JavaScript / DHTML / AJAX 1 Day Ago |
| Replies: 1 Views: 121 Carl,
There's a number of things here ....
First - how to get the selected option's value from a select menu:
//within function calculatePrice
var menu = document.getElementById("state");... |
Forum: JavaScript / DHTML / AJAX 1 Day Ago |
| Replies: 7 Views: 166 Used to more of a problem than it is now Bob. The major players have converged on the W3C standard (http://www.w3.org/TR/CSS21/visufx.html#visibility) visibility : visible | hidden.
I just tested... |
Forum: JavaScript / DHTML / AJAX 1 Day Ago |
| Replies: 7 Views: 166 Aha ASP! No further explanation is required.
Airshow |
Forum: JavaScript / DHTML / AJAX 1 Day Ago |
| Replies: 1 Views: 109 FireHaz,
Hint: Don't use document.write(). Use DHTML/DOM methods to read the user's input and to write the result to an HTML element, identified by an id. Try researching... |
Forum: JavaScript / DHTML / AJAX 1 Day Ago |
| Replies: 7 Views: 166 Thanks A-B, my mistake.
Airshow |
Forum: HTML and CSS 1 Day Ago |
| Replies: 8 Views: 203 Landroverthing,
Here's a version with a character count. It also includes whitespace to non-breaking space conversion such that the styled version matches the original text even when the user has... |
Forum: JavaScript / DHTML / AJAX 2 Days Ago |
| Replies: 3 Views: 176 BreachJar,
I think you want something like the code below. It certainly grows exponentially, trouble being that it grabs my processor (less than 1GHz) so effectively that the onscreen counter... |
Forum: JavaScript / DHTML / AJAX 2 Days Ago |
| Replies: 7 Views: 166 I have to say, that's absolutely nothing like javascript Nuttdude.
Try this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
... |
Forum: HTML and CSS 2 Days Ago |
| Replies: 8 Views: 203 Landroverthing,
Agreed it would better like that, and it's very easy to program.
In TEXTBOX.init, you need to add yet another event handler to call go(). Insert the following immediately above... |
Forum: JavaScript / DHTML / AJAX 2 Days Ago |
| Replies: 1 Views: 148 OnIIcE,
There are several ways to aproach this.
My preferred methods are:-
Disable the html element (input field or button) which stimulates the ajax action. This method is good (when... |
Forum: HTML and CSS 2 Days Ago |
| Replies: 8 Views: 203 Landroverthing,
(I'd like a tidy Series I swb 88 myself but that's another story)
My fault. I wrote that in a hurry and had only tested in IE and not FF, which I expect you are using (or Opera).... |
Forum: HTML and CSS 2 Days Ago |
| Replies: 8 Views: 203 Something like this maybe ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Airshow ::... |
Forum: JavaScript / DHTML / AJAX 3 Days Ago |
| Replies: 6 Views: 297 I only know about UK postcodes in any detail. Full validation is not simple and can only be undertaken by lookup, for which the Post Office will SELL you something called the Postcode Address File... |
Forum: JavaScript / DHTML / AJAX 3 Days Ago |
| Replies: 1 Views: 193 Dmmajorstudent,
I'm afraid this addresses only part of your problem (help fields) but the javascript should make a good basis for doing form validation too.
<!DOCTYPE html PUBLIC "-//W3C//DTD... |
Forum: PHP 3 Days Ago |
| Replies: 4 Views: 118 Lifeworks,
Wow!! So the blind CAN lead the blind!!
Well done indeed.
Airshow |
Forum: PHP 3 Days Ago |
| Replies: 4 Views: 118 lifeworks,
I'm not certain but think you have to compose your mod_rewrite (http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html) rule such that it passes on the originally request url as a... |
Forum: JavaScript / DHTML / AJAX 4 Days Ago |
| Replies: 7 Views: 509 Helban,
If you want, post a whole page here and I will try to understand what's going wrong for you. It's probably something simple.
Airshow |
Forum: HTML and CSS 4 Days Ago |
| Replies: 4 Views: 202 Nomad,
I would do it with <h1> and <h2> tags, thus making the two lines independent of each other. I think you will find that the :first-line approach will superimpose its 3.5em on the 1.8em... |
Forum: JavaScript / DHTML / AJAX 5 Days Ago |
| Replies: 6 Views: 328 Kadjii,
For an introduction to Javascript you can do worse than read this:
http://javascript.crockford.com/survey.html
and other articles (http://javascript.crockford.com/) from the same... |
Forum: JavaScript / DHTML / AJAX 6 Days Ago |
| Replies: 8 Views: 398 OK, here it is in "longhand".
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Moultrie... |
Forum: JavaScript / DHTML / AJAX 6 Days Ago |
| Replies: 8 Views: 398 It was made with winrar and I changed the extension from .rar to .zip, which is normally OK. Try changing your local copy back to .rar and see if it that's any better. If not then I'll post the... |
Forum: JavaScript / DHTML / AJAX 6 Days Ago |
| Replies: 8 Views: 398 Rblalock,
OK, a fully worked up version of your page is attached, complete with my calc() function and several events to stimulate it.
You will find exactly the same approach used here... |
Forum: JavaScript / DHTML / AJAX 7 Days Ago |
| Replies: 3 Views: 281 Kadjii,
In a nutshell, you serve the page with <img> tags in all relevant table cells. Then, in response to whatever events, javascript changes the images by dynamically setting the <img>'s src.
... |
Forum: JavaScript / DHTML / AJAX 7 Days Ago |
| Replies: 7 Views: 343 Mekmiotek,
I'm not too sure what's wrong there, however here's the whole page, significantly simplified to make it more understandable and maintainable.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML... |
Forum: JavaScript / DHTML / AJAX 7 Days Ago |
| Replies: 7 Views: 343 Mekmiotek,
You're right about it being ridiculously long!! It's also ridiculously complex. I guess it was written some years ago. It's certainly not the way we write our javascript today.
The... |
Forum: JavaScript / DHTML / AJAX 8 Days Ago |
| Replies: 7 Views: 343 Mekmiotek,
At line 71 try replacing
fwLoad[image]=new image; with
fwLoad[image]=new Image();.
Airshow |
Forum: JavaScript / DHTML / AJAX 8 Days Ago |
| Replies: 8 Views: 398 Rblalock,
In my experience, the best approach for form calculations of this type is to have a single (or supervisor) function which performs all calcs throughout the whole form... |
Forum: JavaScript / DHTML / AJAX 8 Days Ago |
| Replies: 4 Views: 306 Mosel,
Nothing should prevent array.push() from working within an if clause, as long as array is in scope and whatever you are trying to push is valid.
Scope is different in javascript from... |
Forum: JavaScript / DHTML / AJAX 8 Days Ago |
| Replies: 1 Views: 225 |
Forum: JavaScript / DHTML / AJAX 8 Days Ago |
| Replies: 3 Views: 307 Realchamp,
Another way to do this is to use the "sprite" method.
A sprite is a specially composed background image (in eg a div), which is dynamically offset (horizontally or vertically) by... |
Forum: JavaScript / DHTML / AJAX 11 Days Ago |
| Replies: 3 Views: 356 Steven,
Rather than go into a lot of detail here, why not type "AJAX tutorial" into Alta Vista or Google. Or search Daniweb.
Plenty of advice already exists without the need to add to it here.... |
Forum: JavaScript / DHTML / AJAX 11 Days Ago |
| Replies: 4 Views: 434 Nope, I'm not kidding you. |
Forum: JavaScript / DHTML / AJAX 12 Days Ago |
| Replies: 4 Views: 434 CSS overflow property.
Airshow |
Forum: HTML and CSS 14 Days Ago |
| Replies: 3 Views: 240 Yes, standard CSS box model (http://www.w3.org/TR/CSS2/box.html#border-style-properties) applies.
Top, bottom, left and right can be individually set but please note that with groove, ridge,... |
Forum: HTML and CSS 15 Days Ago |
| Replies: 3 Views: 240 Here's a demo of the border effects theoretically available from CSS.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
... |
Forum: JavaScript / DHTML / AJAX 16 Days Ago |
| Replies: 2 Views: 330 Mcrawford3911,
HTML supports hidden fields, which are invisible to the user but are addressable by javascript and get submitted with the rest of the form.
<input type="hidden" name="input_e"... |
Forum: JavaScript / DHTML / AJAX 16 Days Ago |
| Replies: 3 Views: 295 Tatyana,
Javascript allows arrays to have properties and methods in addition to their normal elements [0], [1], [2] etc.
Hence we can define all the functions associated with the breakdance... |