Forum: JavaScript / DHTML / AJAX 20 Hours Ago |
| Replies: 5 Views: 178 CommDave
Aha, I undertstand now!!. The problem was that your question was posted as a "Code Snippet", which is not the normal way to ask a question on Daniweb. Maybe a moderator can change it.
... |
Forum: JavaScript / DHTML / AJAX 1 Day Ago |
| Replies: 5 Views: 178 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: JavaScript / DHTML / AJAX 2 Days Ago |
| Replies: 2 Views: 189 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: JavaScript / DHTML / AJAX 6 Days Ago |
| Replies: 7 Views: 303 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 7 Days Ago |
| Replies: 3 Views: 327 LizzyJo,
Consider this:
<!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 8 Days Ago |
| Replies: 3 Views: 341 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 8 Days Ago |
| Replies: 2 Views: 432 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: PHP 11 Days Ago |
| Replies: 4 Views: 195 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: HTML and CSS 12 Days Ago |
| Replies: 4 Views: 352 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 13 Days Ago |
| Replies: 8 Views: 500 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 14 Days Ago |
| Replies: 8 Views: 500 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 14 Days Ago |
| Replies: 8 Views: 500 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 15 Days Ago |
| Replies: 3 Views: 378 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 15 Days Ago |
| Replies: 7 Views: 439 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 15 Days Ago |
| Replies: 7 Views: 439 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 16 Days Ago |
| Replies: 7 Views: 439 Mekmiotek,
At line 71 try replacing
fwLoad[image]=new image; with
fwLoad[image]=new Image();.
Airshow |
Forum: JavaScript / DHTML / AJAX 16 Days Ago |
| Replies: 8 Views: 500 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 32 Days Ago |
| Replies: 7 Views: 486 Pleased to be of help Dangari. It seems that sometimes the blind can lead the blind. I will follow up "Jeremy Keith" myself.
Airshow |
Forum: JavaScript / DHTML / AJAX 33 Days Ago |
| Replies: 7 Views: 486 You might want to research "HIJAX" which is an approach (like "AJAX" neither a product nor a language).
HIJAX gets a mention (but no more than that) in one of my reference books - "Beginning... |
Forum: PHP 33 Days Ago |
| Replies: 4 Views: 240 Either you have or I have jomanlk. :ooh:
Given that Javascript is well equipped with setTimeout and setInterval I can't see that a cookie would be necessary.
My solution does assume that on... |
Forum: JavaScript / DHTML / AJAX 33 Days Ago |
| Replies: 7 Views: 486 Dangari,
I've not heard the term "degradable AJAX" and can only guess at what it might mean.
As Will G says, AJAX simply won't work at all if Javascript is turned off.
However, you may... |
Forum: PHP 33 Days Ago |
| Replies: 4 Views: 240 DemonGal,
There's a couple of ways to go.
1) AJAX: A script, which is scheduled to grab a new image url from a corresponding server-side script every 5 minutes, then DHTML it into the DOM. This... |
Forum: JavaScript / DHTML / AJAX Oct 25th, 2009 |
| Replies: 2 Views: 566 Ali,
The problem may be that toggleBox doesn't actually have a toggle action. It shows/hides a dom element depending on what is passed to it as iState.
In other words, the reponsibility for... |
Forum: HTML and CSS Oct 24th, 2009 |
| Replies: 6 Views: 359 Sid,
But of course, I'm being stupid.
Just use a regular <input type="button" ...> instead, and script it to give a submit action.
<input type="button" name="login" value="Login"... |
Forum: HTML and CSS Oct 24th, 2009 |
| Replies: 6 Views: 359 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: HTML and CSS Oct 24th, 2009 |
| Replies: 6 Views: 359 Sid,
The effect you describe is designed to indicate which button's action will be triggered if the user hits enter when a form element has focus.
Personally I think this is a good idea as it... |
Forum: JavaScript / DHTML / AJAX Oct 23rd, 2009 |
| Replies: 12 Views: 1,029 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 23rd, 2009 |
| Replies: 12 Views: 1,029 darkRoom,
Firstly, in both files there is a problem at the <body> tag. You should change:
<div id="apDiv8"><body onload='showHot=true;self.focus();' bgcolor=#000000'>
......
</div>
to |
Forum: JavaScript / DHTML / AJAX Oct 23rd, 2009 |
| Replies: 12 Views: 1,029 darkRoom,
I will see if I can find time to make a two-page demo showing how to use the code.
Airshow |
Forum: JavaScript / DHTML / AJAX Oct 22nd, 2009 |
| Replies: 2 Views: 916 Scotty,
I have to ask why you might want to send image captions back to the server?
The reasons I ask are that :
Captions are not necessarily unique. In a typical gallery for example, you... |
Forum: JavaScript / DHTML / AJAX Oct 21st, 2009 |
| Replies: 12 Views: 1,029 darkRoom,
Please don't worry about asking questions. Javascript is superficialy simple but hides a multidude of complexity.
The script I posted above is designed to go in your 2nd page(s) in... |
Forum: JavaScript / DHTML / AJAX Oct 20th, 2009 |
| Replies: 12 Views: 1,029 darkRoom,
Put this in document head (replacing current script):
<script type="javascript/text">
function QueryParser(str) {
/******************** Query Parser *********************
... |
Forum: JavaScript / DHTML / AJAX Oct 20th, 2009 |
| Replies: 9 Views: 604 Graphix,
I can see it now. The problem is caused by the line var startPos = myArea.value.indexOf(selection); which will always find the first occurrence of selection regardles of which occurrence... |
Forum: JavaScript / DHTML / AJAX Oct 20th, 2009 |
| Replies: 9 Views: 604 Graphix,
On first look, I would guess that the code you posted above is OK in that it is correctly identifying the content of the highlighted string.
The problem would appear to be in some... |
Forum: JavaScript / DHTML / AJAX Oct 19th, 2009 |
| Replies: 12 Views: 1,029 DarkRoom,
There's not a lot to go on there.
For a diagnosis, you will have to post some actual code.
Airshow |
Forum: JavaScript / DHTML / AJAX Oct 17th, 2009 |
| Replies: 3 Views: 655 Serendipity,
The easiest way, in my experience, is not to use a submit button.
Instead, use a regular <input type="button" value="Submit" onclick"this.form.submit();">. The script gives the... |
Forum: HTML and CSS Oct 10th, 2009 |
| Replies: 11 Views: 626 I'm sure you're right URO. I tested quickly in IE6 which is not the most representative of browsers (to put it politely).
Airshow |
Forum: HTML and CSS Oct 10th, 2009 |
| Replies: 11 Views: 626 There's a problem with using "rules" to control a table's appearance - namely that the HTML specification doesn't specify what the appearance should be and each browser renders differently.
... |
Forum: HTML and CSS Oct 7th, 2009 |
| Replies: 11 Views: 626 Ytregnn,
"take away"?
Best way is to serve the table without the row you don't want.
Airshow |
Forum: JavaScript / DHTML / AJAX Oct 6th, 2009 |
| Replies: 3 Views: 475 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... |