Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 51
Search took 0.10 seconds.
Search: Posts Made By: Calvert Tripesi
Forum: JavaScript programming 11-06-2012, 06:55 PM
Replies: 2
Views: 403
Posted By Calvert Tripesi
The described functionality could be provided by...

The described functionality could be provided by a linked-dropdown script, the second dropdown acting as the jump menu.
Forum: JavaScript programming 11-06-2012, 06:30 PM
Replies: 2
Resolved displaying image
Views: 260
Posted By Calvert Tripesi
If you create an img element, then you need to...

If you create an img element, then you need to append it to a parent element


var img = document.createElement('img');
img.src = "/images/loader.gif";
img.width = 32;
...
Forum: JavaScript programming 11-06-2012, 06:18 PM
Replies: 12
Views: 541
Posted By Calvert Tripesi
If you find array-building too imponderable, you...

If you find array-building too imponderable, you could evaluate this script: http://scripterlative.com/files/selectcascade.htm, which in the event that you cannot use a server-side database, lets you...
Forum: JavaScript programming 09-15-2012, 04:44 PM
Replies: 2
Views: 230
Posted By Calvert Tripesi
javascript doesn't compare timestamps; you're...

javascript doesn't compare timestamps; you're simply appending a unique parameter to ensure that the file is always downloaded rather than reloaded from cache.

Testing for document.images is...
Forum: JavaScript programming 09-13-2012, 03:05 PM
Replies: 16
Views: 1,160
Posted By Calvert Tripesi
You can differentiate as much as you want, but if...

You can differentiate as much as you want, but if the user clicks on the wrong pixel, they won't have any clear way of seeing it unless and until their selection chain is presented to them.
I know...
Forum: JavaScript programming 09-13-2012, 02:12 PM
Replies: 16
Views: 1,160
Posted By Calvert Tripesi
In this particular case it shouldn't happen,...

In this particular case it shouldn't happen, although accidental use of the resetting functionality could cause the user to click carelessly in frustration. Easily an adjacent option could be...
Forum: JavaScript programming 09-13-2012, 01:06 PM
Replies: 5
Views: 675
Posted By Calvert Tripesi
If you're using jQuery, why don't you use its...

If you're using jQuery, why don't you use its built-in cookie handling?

Here's as good an explanation as any: http://www.electrictoolbox.com/jquery-cookies/
Forum: JavaScript programming 09-13-2012, 12:46 PM
Replies: 16
Views: 1,160
Posted By Calvert Tripesi
I thought someone might, but without being able...

I thought someone might, but without being able to see the previous choices (which the script must store for submission), there will always be the risk of selecting a duplicate final option: Was that...
Forum: JavaScript programming 09-13-2012, 02:40 AM
Replies: 16
Views: 1,160
Posted By Calvert Tripesi
An interesting concept, but it's a maintenance...

An interesting concept, but it's a maintenance nightmare, could be un-nerving to some users, doesn't display the selection hierarchy and is not keyboard-operable.
Forum: JavaScript programming 09-13-2012, 01:18 AM
Replies: 9
Views: 712
Posted By Calvert Tripesi
Change the event to click as used by the OP, add...

Change the event to click as used by the OP, add a child element and then of course it's not reliable:
<!DOCTYPE html>
<body>
<script type="text/javascript">
d=document
for(i=0;i<25;i++){
...
Forum: JavaScript programming 09-13-2012, 12:00 AM
Replies: 9
Views: 712
Posted By Calvert Tripesi
You need to be certain that srcElement isn't a...

You need to be certain that srcElement isn't a child of the clicked tile, for instance a text node or whatever content it may have.
Forum: JavaScript programming 09-12-2012, 06:22 PM
Replies: 3
Views: 369
Posted By Calvert Tripesi
That doesn't seem to make sense. If the parameter...

That doesn't seem to make sense. If the parameter were 'en' it would reload the page, then detect the parameter as 'de' and reload the page again, changing it to 'sv', then another reload to change...
Forum: JavaScript programming 09-12-2012, 06:06 PM
Replies: 2
Views: 340
Posted By Calvert Tripesi
window.location isn't a string so you can't call...

window.location isn't a string so you can't call .replace on it. Use window.location.href
String.replace requires two parameters and it does not change the existing string.

What is the default...
Forum: JavaScript programming 09-12-2012, 04:19 PM
Replies: 16
Views: 1,160
Posted By Calvert Tripesi
Even if you get this working, the snag is that...

Even if you get this working, the snag is that users can't easily amend their selection. I would suggest using a good dependent listbox controller script. That way you populate and display further...
Forum: JavaScript programming 08-21-2012, 03:51 AM
Replies: 3
Views: 478
Posted By Calvert Tripesi
Something like this may be what you're after:...

Something like this may be what you're after: http://scripterlative.com/files/fieldclone.htm
Forum: JavaScript programming 07-29-2012, 02:25 PM
Replies: 4
Views: 391
Posted By Calvert Tripesi
<!DOCTYPE html> <html> <head> ...

<!DOCTYPE html>
<html>

<head>
<title>TEST</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>

<body>
Forum: JavaScript programming 07-26-2012, 12:08 PM
Replies: 1
Views: 219
Posted By Calvert Tripesi
So what do its authors (Javascriptkit) have to...

So what do its authors (Javascriptkit) have to say about it?
Forum: JavaScript programming 07-26-2012, 10:01 AM
Replies: 4
Views: 461
Posted By Calvert Tripesi
If it were illegal, the error console would tell...

If it were illegal, the error console would tell you. Of course if you were in the habit of using the console, you wouldn't have the problem that you're trying to avoid.
Forum: JavaScript programming 07-26-2012, 12:29 AM
Replies: 12
Views: 486
Posted By Calvert Tripesi
location.pathname

location.pathname
Forum: JavaScript programming 07-25-2012, 11:36 PM
Replies: 8
Views: 400
Posted By Calvert Tripesi
That means val will get 3.5, and 3.5.toFixed(0)...

That means val will get 3.5, and 3.5.toFixed(0) == 4.
Forum: JavaScript programming 07-25-2012, 09:24 PM
Replies: 8
Views: 400
Posted By Calvert Tripesi
function calcMe(frm) { var box1 =...

function calcMe(frm)
{
var box1 = Number(frm.box1.value);
var box2 = Number(frm.box2.value);
var div = box1 / box2;

alert( div );

var mod = box1 % box2;
var val;
Forum: JavaScript programming 07-25-2012, 08:13 PM
Replies: 8
Views: 400
Posted By Calvert Tripesi
Try alerting the value of div as soon as it has...

Try alerting the value of div as soon as it has been assigned.
Forum: JavaScript programming 07-25-2012, 03:06 PM
Replies: 3
Views: 437
Posted By Calvert Tripesi
The code I gave will catch anything that includes...

The code I gave will catch anything that includes ".blogspot.com". Do you not want that?
Forum: JavaScript programming 07-25-2012, 03:02 PM
Replies: 13
Views: 1,062
Posted By Calvert Tripesi
It is further ambiguous in that the answer varies...

It is further ambiguous in that the answer varies according to how the handler was installed. If addEventListener is used, return false has no effect.
Forum: JavaScript programming 07-25-2012, 02:05 PM
Replies: 13
Views: 1,062
Posted By Calvert Tripesi
Tell your teacher that typeof is an operator, not...

Tell your teacher that typeof is an operator, not a function. Ditto instanceof.
Showing results 1 to 25 of 51

 
Forum Jump

All times are GMT +1. The time now is 04:12 PM.