Forum: JavaScript / DHTML / AJAX Sep 8th, 2008 |
| Replies: 4 Views: 769 This is probably not what you're after, but I use the Error Console in Firefox and that's the only debugging tool I use for either JavaScript or CSS ...
Just a thought |
Forum: JavaScript / DHTML / AJAX Sep 6th, 2008 |
| Replies: 7 Views: 3,050 I would like to help, but I guess I just don't understand what the real problem is ... my quickie write-up of you above code delivers both 1 and 0
What am I missing here?
<html>
<head>... |
Forum: JavaScript / DHTML / AJAX Aug 25th, 2008 |
| Replies: 2 Views: 925 Something like this ?
<html>
<head>
<style type="text/css">
body {
padding: 60px;
}
.hover { |
Forum: JavaScript / DHTML / AJAX Aug 25th, 2008 |
| Replies: 9 Views: 2,020 You're welcome,
For what it's worth, some people discourage this approach stylistically since it can obscure code, but technically it's sound and I prefer it over the following two examples (when... |
Forum: JavaScript / DHTML / AJAX Aug 25th, 2008 |
| Replies: 9 Views: 2,020 Hi Richard,
This line is shorthand and does two things at the same time
if ( node = document.getElementById(f) ) {
It assigns the value of document.getElementById(f) to the variable node which... |
Forum: JavaScript / DHTML / AJAX Aug 25th, 2008 |
| Replies: 9 Views: 2,020 Are you trying to do this?
<html>
<head>
<style type="text/css">
div {
display: none;
width: 200px;
height: 200px;
border: 1px solid indigo; |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 5 Views: 2,663 Very cool, thank you for sharing ... I stuck that one in my library, wonder where it will come in handy?
Cheers |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 5 Views: 1,339 Wow, it's looking a lot better ...
By the way, instead of using to format whitespace, you can use CSS declarations to specify the with of an element.
<html>
<head>
<style... |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 12 Views: 8,067 Hi again,
I can't spend too much time on this today, but try this ...
child.html
<html>
<head>
</head>
<body> |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 12 Views: 8,067 I think you can effectively target the parent window with the child form-action ...
parent.php (parent file name)
child.html
<head>
<script type="text/javascript">
window.onload =... |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 12 Views: 8,067 I think I see what you're trying to do now.
parent.html
<html>
<head>
<script type="text/javascript">
// open your pop-up window ...
var pup = window.open('pup.html','pup'); |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 12 Views: 8,067 That alert is basically stating that you submitted a form and by reloading the page you are going to resubmit the same data from the form (again).
This might work to not reload the page but reload... |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 6 Views: 737 Yes, they would return the same thing and are effectively the same, but the .item(0) is the correct syntax for DOM node-collections, but the array access syntax is cross-browser supported.
... |
Forum: JavaScript / DHTML / AJAX Aug 19th, 2008 |
| Replies: 6 Views: 737 R0bb0b is correct ... item(0) accesses a node-collection
<script type="text/javascript">
arr = [];
arr[0] = 'one';
arr['two'] = 3;
alert( arr[0] );
alert( arr['two'] ); |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 5 Views: 2,512 Right-O,
It's not as handy as being able to use getElementById() but this sort of thing is working and can be used to get the same results.
var divs = respXML.getElementsByTagName('div');
for... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 5 Views: 2,512 I so lied !
I can't seem to get elements of the XML using javascript DOM methods in other ways than using getElementsByTagName('tag');
but I'm still working on it, will post back here with any... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 5 Views: 2,512 Okay, here's the situation ...
I thought this would be a handy thing to know and am planning on rebuilding my javascript ajax class soon anyway.
What you need to do is two-fold
1. On the... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 5 Views: 1,339 Okay, I downloaded your website zip file and ... to be honest, i don't want to sift through the 44 files to try and track down what is wrong with your page. So instead I will give you some idea how... |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 3 Views: 3,490 Right, using it later in the same function ... easy enough
var active_href = this; // from above code.
Let me know if this is not what you meant or have any questions about this. |
Forum: JavaScript / DHTML / AJAX Aug 14th, 2008 |
| Replies: 3 Views: 3,490 Hi,
If you need to handle all links on the page this way, then use something like this ...
window.onload = function () { // wait until the page is loaded
var links =... |
Forum: JavaScript / DHTML / AJAX Aug 11th, 2008 |
| Replies: 8 Views: 7,352 <span onClick = "jfsw(2,la,10);">
<input type="radio" name="cruts21t" id="19111920" value="19111920" /><label class="radio" id="cruts21tb" for="19111920">1911-1920</label>
</span>
Try that ...... |
Forum: JavaScript / DHTML / AJAX Aug 11th, 2008 |
| Replies: 8 Views: 7,352 This is how I would do it |
Forum: JavaScript / DHTML / AJAX Aug 9th, 2008 |
| Replies: 2 Views: 3,273 You can test the field by className in your javascript and give all required fields the same class name.
Something like this
var form = document.getElementById('myform');
for ( var i = 0; i... |
Forum: JavaScript / DHTML / AJAX Aug 7th, 2008 |
| Replies: 9 Views: 1,257 I admit, it's good to learn how to use the asynchronous http objects ... I did test my approach and it does work and is very easy to implement (compared to what you're doing) so if you change your... |
Forum: JavaScript / DHTML / AJAX Aug 7th, 2008 |
| Replies: 6 Views: 2,314 Hi,
I messed around with this for quite a while -- it seems to be easy in Firefox and Opera (latest versions for Windows) but IE is notoriously uncooperative.
This is what I came up with and... |
Forum: JavaScript / DHTML / AJAX Aug 6th, 2008 |
| Replies: 2 Views: 1,330 That was fun ... try this, it seems to work okay
<html>
</head>
<style type="text/css">
.hide {
display: none;
}
</style> |
Forum: JavaScript / DHTML / AJAX Aug 6th, 2008 |
| Replies: 9 Views: 1,257 Using Ajax to update one number is like killing a gnat with a sledgehammer ... unless you plan on using Ajax to update your page (cart) content as well -- in which case you might lose people who have... |