Search Results

Showing results 1 to 40 of 621
Search took 0.03 seconds.
Search: Posts Made By: Airshow ; Forum: JavaScript / DHTML / AJAX and child forums
Forum: JavaScript / DHTML / AJAX 6 Hours Ago
Replies: 5
Views: 123
Posted By Airshow
MC,

Here's a version to show how to disable buttons, which is made a lot easier by creating the buttons and word/letter elements in javascript rather than in HTML.

<!DOCTYPE html PUBLIC...
Forum: JavaScript / DHTML / AJAX 10 Hours Ago
Replies: 5
Views: 123
Posted By Airshow
M.C.,

OK those new links work.

I have an idea. Instead of keeping a separate tally of letters used, why not disable the appropriate ABC... buttons as they are clicked (and change their...
Forum: JavaScript / DHTML / AJAX 10 Hours Ago
Replies: 10
Views: 328
Posted By Airshow
The test if ( !validate_Phone_number(field1) && !validate_Phone_number(field2) ) means that both phone numbers must fail in order for the the overall test to fail. Therefore, if one number passes and...
Forum: JavaScript / DHTML / AJAX 15 Hours Ago
Replies: 5
Views: 123
Posted By Airshow
[link] .... What game of hangman? All I get is advertising with more advertising in a popup!!!! No game.

Airshow
Forum: JavaScript / DHTML / AJAX 23 Hours Ago
Replies: 10
Views: 328
Posted By Airshow
Weasel,

Everything works fine with javascript pasted back into the page but only after addressing NULL. Remember to inspect your javascript error console for error messages.

NULL does not...
Forum: JavaScript / DHTML / AJAX 1 Day Ago
Replies: 5
Views: 219
Posted By Airshow
I'm glad you're asking questions and will try to explain but you may also need to do some background reading. The internet is your best resource.

e = e || event; is present for cross-browser...
Forum: JavaScript / DHTML / AJAX 1 Day Ago
Replies: 5
Views: 219
Posted By Airshow
Roeboc,

OK, I understand much better now but maybe you could post the entire HTML - that's what's missing more than the js.

Meanwhile, I have cobbled together a demo to show you how to swap two...
Forum: JavaScript / DHTML / AJAX 2 Days Ago
Replies: 2
Views: 136
Posted By Airshow
Steven,

That's 339 lines of javascript. How is anyone supposed to know why, where or how to add ajax-loader.gif to it with such a rudimentary introduction?

Airshow
Forum: JavaScript / DHTML / AJAX 2 Days Ago
Replies: 5
Views: 219
Posted By Airshow
There's so much code there, I can't really work out what you are trying to do. Can you provide more explanation please and/or a complete page (as far as you have developed it).

Airshow
Forum: JavaScript / DHTML / AJAX 2 Days Ago
Replies: 6
Views: 199
Posted By Airshow
To inspect the data, you could do something like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>...
Forum: JavaScript / DHTML / AJAX 2 Days Ago
Replies: 10
Views: 328
Posted By Airshow
onsubmit="return validate(this);" is totally correct (other than the fact that it's generally better to attach event handlers in javascript rather than HTML).

The way to read onsubmit="return...
Forum: JavaScript / DHTML / AJAX 3 Days Ago
Replies: 8
Views: 281
Posted By Airshow
Doug,

GIS/XML: I lurk on various AIS sites, keeping an eye on several favourite ships but thus far haven't needed to get into the data itself. XML is cool for general purpose data packaging but...
Forum: JavaScript / DHTML / AJAX 3 Days Ago
Replies: 10
Views: 328
Posted By Airshow
Absolutely no good I'm afraid - reason being form.radChoice[0].value is guaranteed to be "S" and form.radChoice[1].value is guaranteed to be "N".

There's no point testing the values - they don't...
Forum: JavaScript / DHTML / AJAX 3 Days Ago
Replies: 9
Views: 250
Posted By Airshow
Cookie.
Forum: JavaScript / DHTML / AJAX 3 Days Ago
Replies: 10
Views: 328
Posted By Airshow
Unfortunately, you have to loop to pick up the checked value from a radio group. AFAIK, there's no convenient method as for select menus.

Try this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
Forum: JavaScript / DHTML / AJAX 4 Days Ago
Replies: 1
Views: 233
Posted By Airshow
Mapper,

Your onerror handler does nothing more than return (into a big void) the url of your default image. A return from a function attached as an event handler is completely meaningless because...
Forum: JavaScript / DHTML / AJAX 4 Days Ago
Replies: 9
Views: 250
Posted By Airshow
Pop up marketing is about as unfriendly as it gets, which is why most users have a pop-up blocker installed.

This is not the way to go either for you or your visitors. I think you should find a...
Forum: JavaScript / DHTML / AJAX 4 Days Ago
Replies: 8
Views: 281
Posted By Airshow
Doug,

I have the answer!!

Moz browsers don't play ball with an AJAX request unless it's truly asynchronous, whereas IE and Chrome (so you inform me) do.

Change the line...
Forum: JavaScript / DHTML / AJAX 4 Days Ago
Replies: 8
Views: 281
Posted By Airshow
You will have to do a couple of fixes : fileName for XMLFile in initPhotoShow
Forum: JavaScript / DHTML / AJAX 4 Days Ago
Replies: 8
Views: 281
Posted By Airshow
By "the served version" I mean what you see when you "view source" in your browser to see what's actually been served. You should typically do this a lot when page-building with a server-side...
Forum: JavaScript / DHTML / AJAX 4 Days Ago
Replies: 8
Views: 281
Posted By Airshow
<body onload="initPhotoShow("<?php $inStr=$_GET['showName']; echo $showName; ?>")"> looks very suspicious.

What does the served version of this line look like?

Airshow
Forum: JavaScript / DHTML / AJAX 4 Days Ago
Replies: 6
Views: 336
Posted By Airshow
Well spotted Michael. Line 39 is a heap of ****. It should read totalCell.innerHTML = 'Error';. I included it to cater for an error condition that never got tested.

But there's something else too....
Forum: JavaScript / DHTML / AJAX 5 Days Ago
Replies: 6
Views: 336
Posted By Airshow
Good luck - it's bed-time here so I'm off for some shuteye.

Airshow
Forum: JavaScript / DHTML / AJAX 5 Days Ago
Replies: 6
Views: 336
Posted By Airshow
MMC,

You can certainly use AJAX to get prices but another approach is to serve all price information within the page in a form that allows javascript to access it with ease. Hence you have a fast,...
Forum: JavaScript / DHTML / AJAX 5 Days Ago
Replies: 5
Views: 1,219
Posted By Airshow
Nice effect Chandru but the code contains angled single and double quotes which need to be changed to stright single and double quotes. Some (most?) browsers baulk at angled quotes.

Also the code...
Forum: JavaScript / DHTML / AJAX 5 Days Ago
Replies: 5
Views: 335
Posted By Airshow
That's great for minimal change to the OP's code but doesn't address the point I already made; namely, why pass (this.name) when you can pass (this) and simplify the code in the functions?

There...
Forum: JavaScript / DHTML / AJAX 5 Days Ago
Replies: 5
Views: 242
Posted By Airshow
jQuery, Prototype etc. are good but tricky. I encourage novices to learn JS basics before trying to use these libs. People can't run before they can walk.

My rules (only occasionally broken) : if...
Forum: JavaScript / DHTML / AJAX 5 Days Ago
Replies: 5
Views: 242
Posted By Airshow
ZVN,

As Pritaes said plus ......

Unfortunately, .getElementsByClassName is far from safe. Too many browsers don't support it. So you have to be a bit old fashioned and do it longhand with...
Forum: JavaScript / DHTML / AJAX 6 Days Ago
Replies: 5
Views: 335
Posted By Airshow
Rocking,

Problem (inefficiency): onClick="enLargeTbox(this.name)" is not a good idea, reason being this (in that context) refers to the html element in which in the onClick is placed - ie....
Forum: JavaScript / DHTML / AJAX 6 Days Ago
Replies: 9
Views: 329
Posted By Airshow
What Bob says, plus ......

Typically, registration validation emails are in plain text and include a hyperlink which is displayed in a clickable form by most modern email clients (some of which...
Forum: JavaScript / DHTML / AJAX 6 Days Ago
Replies: 2
Views: 192
Posted By Airshow
Dan,

I'm sure it's not the whole answer but you could try:
function start_map(){
var levels = ['boss', 'monkey', 'secret', 'gifty'];
levels.each(function(level){
if...
Forum: JavaScript / DHTML / AJAX 7 Days Ago
Replies: 2
Views: 268
Posted By Airshow
OK, I posted in a hurry earlier before I went to work, knowing the was something funny about Firefox. This is one instance of IE getting it so right and Moz so wrong.

For x.style.backgroundColor,...
Forum: JavaScript / DHTML / AJAX 7 Days Ago
Replies: 2
Views: 268
Posted By Airshow
Proprasee,

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>...
Forum: JavaScript / DHTML / AJAX 8 Days Ago
Replies: 2
Views: 304
Posted By Airshow
Abah,


Simple answer is yes, but only if I understand the question correctly.


The key lies is understanding - what data and how is is changed?

Once that is defined, then it should be...
Forum: JavaScript / DHTML / AJAX 8 Days Ago
Replies: 3
Views: 417
Posted By Airshow
I have just done some research and the web is full of people's problems with Windows Media Player in Firefox 3.

Firefox needs a plugin but it seems it doesn't always install very reliably.

I...
Forum: JavaScript / DHTML / AJAX 8 Days Ago
Replies: 3
Views: 462
Posted By Airshow
LizzyJo,

There's a whole bunch of syntax errors in the javascript - unbalaced parens and curlies, x - -.

Suggest you check the js error console or even better, install JSLINT (it's a !Yahoo...
Forum: JavaScript / DHTML / AJAX 9 Days Ago
Replies: 8
Views: 509
Posted By Airshow
:cool:
Forum: JavaScript / DHTML / AJAX 9 Days Ago
Replies: 2
Views: 399
Posted By Airshow
Petr,

You will have more success by working with ids rather than classes.

With classes, a statement like $(".price")....... will match ALL elements where class="price".

With ids, a...
Forum: JavaScript / DHTML / AJAX 9 Days Ago
Replies: 3
Views: 417
Posted By Airshow
You need a mechanism for putting control.html to player.html back together. There are several approaches:

Server-side script : Recompose the page server-side - eg. PHP or SeverSide Includes...
Forum: JavaScript / DHTML / AJAX 9 Days Ago
Replies: 6
Views: 521
Posted By Airshow
I will try but please forgive me if my explanation is inadequate.

It's all to do with "scope". If you don't know what scope is, then research it. It's kind of fundamental to any programming...
Showing results 1 to 40 of 621

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC