Forum: JavaScript / DHTML / AJAX Oct 8th, 2009 |
| Replies: 4 Views: 528 > is it impossible to do it without that active x?
AFAIK, yes, it's not possible. |
Forum: JavaScript / DHTML / AJAX Jan 2nd, 2009 |
| Replies: 10 Views: 2,125 The check for email == undefined is superfluous since a value of text form field, if it exists will never be `undefined' or `null' but always a empty string if nothing was entered. You should rather... |
Forum: JavaScript / DHTML / AJAX Dec 29th, 2008 |
| Replies: 8 Views: 1,847 > Whenever possible, you should always use the W3C
> 'document.getElements...' methods rather than collections such as
> document.links, .forms or .images
links ... |
Forum: JavaScript / DHTML / AJAX Nov 14th, 2008 |
| Replies: 6 Views: 761 The thing they are doing is nothing special. To summarize it:
- User makes a selection from the primary SELECT box, MAKE in your case.
- An asynchronous request is made using the XHR [XML HTTP... |
Forum: JavaScript / DHTML / AJAX Nov 3rd, 2008 |
| Replies: 8 Views: 2,584 The script in case of a SCRIPT element may be defined inside the contents of the SCRIPT element or in an external file. The only difference here is that an additional request is made in the case of... |
Forum: JavaScript / DHTML / AJAX Oct 22nd, 2008 |
| Replies: 11 Views: 1,552 The `location' property of `window' object is itself an object but you are assigning a string to it. Though it *works*, it's incorrect. You need to set the href property of the location object.... |
Forum: JavaScript / DHTML / AJAX Aug 22nd, 2008 |
| Replies: 1 Views: 5,655 Maybe this might get you working in the right direction:
<!--
Calculate the difference between the two dates.
Copyright (C) 2008 sos aka Sanjay
This program is free software: you... |
Forum: JavaScript / DHTML / AJAX Jul 18th, 2008 |
| Replies: 6 Views: 1,132 > concentrate on eval() function in javascript by googling
As in concentrate on swatting a fly with a hammer? eval sort of fires off a mini-compiler which dynamically evaluates the string passed... |
Forum: JavaScript / DHTML / AJAX Jul 12th, 2008 |
| Replies: 17 Views: 7,512 The getElementsByName seems to be flawed when working with dynamically added elements in IE. I guess adding elements by using innerHTML is the only way of making IE aware of the existence of new... |
Forum: JavaScript / DHTML / AJAX Jul 12th, 2008 |
| Replies: 25 Views: 7,360 > var numeric = /^[0-9]*$/
This isn't a valid RegExp since it also validates a blank string. Numeric RegExp validation would go something along the lines of /^[0-9]+$/ or simply /^\d+$/.
[0-9] ... |
Forum: JavaScript / DHTML / AJAX Jul 11th, 2008 |
| Replies: 3 Views: 1,298 I doubt the above code would even work in FF2 considering that you explicitly need to pass the event when registering the handler.
<a href="#" onclick="doSomething(event);"> |
Forum: JavaScript / DHTML / AJAX Jul 3rd, 2008 |
| Replies: 1 Views: 1,606 Look into window.open and window.onload for achieving your objective. |
Forum: JavaScript / DHTML / AJAX Jul 2nd, 2008 |
| Replies: 2 Views: 1,976 Custom Context menus for IE and FF. (http://www.dynamicdrive.com/dynamicindex1/contextmenu.htm) |
Forum: JavaScript / DHTML / AJAX May 29th, 2008 |
| Replies: 1 Views: 897 Yes we would, take a look at the documentation of the String object (http://www.w3schools.com/js/js_obj_string.asp) of Javascript; you would find all that you require to complete your task. |
Forum: JavaScript / DHTML / AJAX May 19th, 2008 |
| Replies: 11 Views: 1,791 > I have javascript and ALL of it works in IE but in FF NONE of it works at all.
You are in luck; just take a sneak peak at the Error Console of Firefox (Tools -> Error Console) for any... |
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008 |
| Replies: 2 Views: 5,831 An oversimplified example would be:
Parent.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta... |
Forum: JavaScript / DHTML / AJAX Apr 8th, 2008 |
| Replies: 9 Views: 1,801 > This is a little function I wrote to verify form fields, all you need is an div with the id "error" to
> take the output.
A required addition to that script would be checking whether the... |
Forum: JavaScript / DHTML / AJAX Mar 9th, 2008 |
| Replies: 3 Views: 731 Where have you declared 'slopetop', 'slopebottom' and 'slopefinal'? And document.write() is evaluated as the page is being rendered. Plus Javascript is a client side technology; as soon as a page is... |
Forum: JavaScript / DHTML / AJAX Feb 4th, 2008 |
| Replies: 11 Views: 2,467 Looks good except for the thing that you don't explicitly set the length of the string since it's a read only property and would have no effect. Instead set the value of the form element to an empty... |
Forum: JavaScript / DHTML / AJAX Jan 25th, 2008 |
| Replies: 10 Views: 5,361 > looks like that I'm complicating my life with this xml and javascript exercise but now this
> problem get hold of me and I want to sort it
Frankly I don't know what exactly are you trying to... |
Forum: JavaScript / DHTML / AJAX Jan 7th, 2008 |
| Replies: 9 Views: 1,509 > returnValue= true;
This sets the value of the global variable returnValue to true and has got nothing to do with your issue.
> e.returnValue = true;
This sets the return value of the event to... |
Forum: JavaScript / DHTML / AJAX Dec 24th, 2007 |
| Replies: 1 Views: 8,608 This is because Javascript searches for 'flow()' in the global scope but it so happens that your declaration of flow being present in the function imageFlow is not visible / is not a property of the... |
Forum: JavaScript / DHTML / AJAX Nov 2nd, 2007 |
| Replies: 5 Views: 2,255 > at url http://lowellbonnell.ca/index.php?view=Markets my ajax will only work if you insert the
> www in firefox. IE is fine either way.
This is because the browser thinks you are trying to do XSS... |
Forum: JavaScript / DHTML / AJAX Oct 29th, 2007 |
| Replies: 6 Views: 4,513 The prompt function returns a string. The switch construct and so also your calculations requires product be a numeric value. Convert the user input returned to a number before using it.
do
{
... |
Forum: JavaScript / DHTML / AJAX Sep 4th, 2007 |
| Replies: 6 Views: 3,880 > window.location = imageArray[ i - 1 ].href;
window.location is an Object, its href property a String. Though the above one works, the correct way of writing it would be: window.location.href =... |
Forum: JavaScript / DHTML / AJAX Jun 21st, 2007 |
| Replies: 2 Views: 2,818 Maybe this (http://www.w3schools.com/media/media_quicktime.asp) holds the key to your question. |