Search Results

Showing results 1 to 40 of 65
Search took 0.04 seconds.
Search: Posts Made By: Airshow
Forum: JavaScript / DHTML / AJAX 17 Days Ago
Replies: 10
Views: 869
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 20 Days Ago
Replies: 8
Views: 562
Posted By Airshow
You will have to do a couple of fixes : fileName for XMLFile in initPhotoShow
Forum: JavaScript / DHTML / AJAX 21 Days Ago
Replies: 5
Views: 418
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 21 Days Ago
Replies: 5
Views: 418
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 26 Days Ago
Replies: 8
Views: 728
Posted By Airshow
Maybe I'm being dumb but I don't get it.

That's a very ordinary piece of HTML that could have been written manually or generated by a script.

Why does this qualify as a Code Snippet? How does...
Forum: PHP 26 Days Ago
Replies: 2
Views: 362
Posted By Airshow
Shishtawitch,

The code looks like it should work, however. two things .....

1. At the line $id_2 = $g["id"];, surely $id_2 must be equal to $id because it comes from a row resulting from a...
Forum: JavaScript / DHTML / AJAX 28 Days Ago
Replies: 3
Views: 700
Posted By Airshow
Rouse,

Please, STOP CODING AND DO SOME READING - for about a day.

You need to look at the jquery documentation and some examples. In particular you need to learn how to frame your code in a...
Forum: PHP 30 Days Ago
Replies: 8
Views: 402
Posted By Airshow
Whitestream6,

Do you mean that you want to build an HTML table, storing chunks in a php array as you go?

If so, then consider this pseudo code:

var htmlTable = array();//initialise array...
Forum: JavaScript / DHTML / AJAX 31 Days Ago
Replies: 7
Views: 500
Posted By Airshow
XMLHttpRequest can behave either synchronously or asynchronously, as determined by the third parameter in the line of the form xmlhttp.open("GET", url, true);.

With synchronous behaviour,...
Forum: JavaScript / DHTML / AJAX 33 Days Ago
Replies: 3
Views: 615
Posted By Airshow
Neogy,

First thing to try is to combine the two code blocks above into a single $(document).ready(function(){.....}); structure.

Airshow
Forum: HTML and CSS Nov 19th, 2009
Replies: 8
Views: 607
Posted By Airshow
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: HTML and CSS Nov 19th, 2009
Replies: 8
Views: 607
Posted By Airshow
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 Nov 19th, 2009
Replies: 8
Views: 607
Posted By Airshow
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 Nov 18th, 2009
Replies: 1
Views: 467
Posted By Airshow
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 Nov 18th, 2009
Replies: 4
Views: 347
Posted By Airshow
Lifeworks,

Wow!! So the blind CAN lead the blind!!

Well done indeed.

Airshow
Forum: HTML and CSS Nov 17th, 2009
Replies: 4
Views: 508
Posted By Airshow
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 Nov 15th, 2009
Replies: 8
Views: 668
Posted By Airshow
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 Nov 13th, 2009
Replies: 4
Views: 669
Posted By Airshow
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 Oct 31st, 2009
Replies: 12
Views: 1,091
Posted By Airshow
You can add the lines of code from my onload function above or below the lines within your existing onload function.
For example:
onload = function(){
//existing lines of code
//existing lines...
Forum: PHP Oct 25th, 2009
Replies: 8
Views: 433
Posted By Airshow
Tatt,

for ($i=1;$i<=$num;$i++){
echo "<form>";
echo "<label for=\"words$i\">Word $i</label><input type=\"text\" name=\"words[$i]\" id=\"words$i\" /><br />";
}
echo "</form>";

<form> is...
Forum: Java Oct 25th, 2009
Replies: 3
Views: 457
Posted By Airshow
Will do, Peter.

Airshow
Forum: HTML and CSS Oct 24th, 2009
Replies: 6
Views: 384
Posted By Airshow
Sid,

In that case I don't think you can avoid it. At least not in IE, which renders the effect as something in addition to the normal box-model.

If you set border-width to something large - eg....
Forum: JavaScript / DHTML / AJAX Oct 23rd, 2009
Replies: 12
Views: 1,092
Posted By Airshow
darkRoom,

Here's a demo showing how to use my QueryParser object for passing parameters from page to page.

Three files attached (zipped together) - save all to same directory then browse...
Forum: JavaScript / DHTML / AJAX Oct 7th, 2009
Replies: 6
Views: 316
Posted By Airshow
Good point and demonstrates that browser security is getting tighter not looser.

I very much doubt this screen shot thing is possible. I've certainly never read about it being done but would be...
Forum: JavaScript / DHTML / AJAX Oct 6th, 2009
Replies: 3
Views: 504
Posted By Airshow
First, you must understand HTML/XHTML and Javascript. Otherwise you will be trying to run before you can walk.

Then, get your mind round the fact the the Document Object Model (DOM) is a tree...
Forum: JavaScript / DHTML / AJAX Oct 2nd, 2009
Replies: 9
Views: 602
Posted By Airshow
Altairzq,

Not using document.getElementById() but you should be able to use document.getElementById('x').document.getElementsByTagName('whatever') instead, where 'x' is the id of a div wrapper of...
Forum: JavaScript / DHTML / AJAX Sep 28th, 2009
Replies: 16
Views: 791
Posted By Airshow
Azegurb,

Neighbour's party was good, thank you.

Here is some code, but you must be sure to go through and see how it works. Learn from it, don't just accept it. I am sure you will.


<body>...
Forum: HTML and CSS Sep 21st, 2009
Replies: 5
Views: 670
Posted By Airshow
Jeffherron,

I'm not sure how to cure your space problem but something you should be aware of is the your page has two forms, one nested inside the other. HTML forms should not be nested as the...
Forum: JavaScript / DHTML / AJAX Sep 16th, 2009
Replies: 4
Views: 1,064
Posted By Airshow
Try,

ajax.onreadystatechange = function(){setTimeout("show_messages()", 500);}
It is also good practise to establish the response handler before sending the request, so put lines 9/10 above 6/7....
Forum: JavaScript / DHTML / AJAX Sep 2nd, 2009
Replies: 4
Views: 605
Posted By Airshow
Stockton,

That's because the value of the selected option is detemined by its value attribute (0|1) not its innerHTML property (Parent|Dependant).

You will find the following code more reliable...
Forum: JavaScript / DHTML / AJAX Aug 27th, 2009
Replies: 15
Views: 1,426
Posted By Airshow
Daved83,

It turns out that IE has a bug (http://domscripting.com/blog/display/99) whereby "if you use innerHTML to add or update form elements, all sorts of screwiness can occur".

The linked...
Forum: HTML and CSS Aug 19th, 2009
Replies: 12
Views: 728
Posted By Airshow
Harry,

I just found time to do some testing.

FF 3.0.13: OK
Opera 9.01 : OK
IE6 : No go - div:hover not supported.

If you want to include IE6, I think you will need to use an <a> tag as...
Forum: HTML and CSS Aug 13th, 2009
Replies: 11
Views: 810
Posted By Airshow
I recall all sorts of issues with inline divs. Can't remember the detail.

The only CSS I know that works cross browser, as already posted on Daniweb several times, is:

.DIV1 {
width:...
Forum: HTML and CSS Aug 12th, 2009
Replies: 9
Views: 430
Posted By Airshow
In an internet HTTP url, the first portion "http", is the protocol, followed by "://".

The next portion, up to the next "/", is the host, comprising a hostname and optional port, separated by a...
Forum: JavaScript / DHTML / AJAX Aug 10th, 2009
Replies: 19
Views: 875
Posted By Airshow
Forum: JavaScript / DHTML / AJAX Aug 9th, 2009
Replies: 8
Views: 1,030
Posted By Airshow
Beanryu,

You said in your original post:

Therefore, you should have the means for javascript to remember the contents of these paragraphs without needing to retreive them from the DOM.
...
Forum: JavaScript / DHTML / AJAX Aug 4th, 2009
Replies: 2
Solved: Opener question
Views: 354
Posted By Airshow
Xessa,

This is very simple, though maybe not obvious.

First create a funtion in your main page

function popUpCallback(x){
var b = document.getElementById('b1');//the button that you want...
Forum: JavaScript / DHTML / AJAX Aug 3rd, 2009
Replies: 9
Views: 520
Posted By Airshow
Kako,

You could make that work, but there's no point. You're just telling the page about something it already knows - namely itself! My previous post refers.

Airshow
Forum: JavaScript / DHTML / AJAX Aug 2nd, 2009
Replies: 6
Views: 1,048
Posted By Airshow
Sonia,

You might like to try something like this:

//This is a general utility function that returns an Initial Caps version of the input string
function initialCaps(str){
var a =...
Forum: JavaScript / DHTML / AJAX Jul 31st, 2009
Replies: 4
Views: 874
Posted By Airshow
Osirion,

Remembering that you have three buttons, "Add", "Delete" and "Update", you might like to do it as follows.

It's a good idea to test the query string towards the top of page and set...
Showing results 1 to 40 of 65

 


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

©2003 - 2009 DaniWeb® LLC