Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 12 of 12
Search took 0.09 seconds.
Search: Posts Made By: jsWalter
Forum: JavaScript programming 12-05-2003, 02:34 AM
Replies: 13
Views: 955
Posted By jsWalter
Yes, I've read that page, several times tonight! ...

Yes, I've read that page, several times tonight!




yes, that is my understanding, and that is why I thought I could just reasign that Objects properites in that manner.

I've done it that...
Forum: JavaScript programming 12-05-2003, 02:13 AM
Replies: 13
Views: 955
Posted By jsWalter
OK, I'm just dence! thanks for showing the...

OK, I'm just dence!

thanks for showing the obvious

what was staring me in the face!

thanks a lot.

So, why was my first approach invalid?
Forum: JavaScript programming 12-05-2003, 01:43 AM
Replies: 13
Views: 955
Posted By jsWalter
a second look at this...

Hee is a test I made.

The first part is very straight forward.

Define prototypes to BOOLEAN, assing a boolean value and a string to the 'err' property.

It displays fine.

I then tried that...
Forum: JavaScript programming 12-04-2003, 07:54 PM
Replies: 13
Views: 955
Posted By jsWalter
yes, but...

yes, that works fine, but it is not as straight foreward as the IF condition check.

I guess I'm used to top-down procedural development.

Very liner event flow.

Thanks for the sample.

I'll...
Forum: JavaScript programming 12-04-2003, 07:39 PM
Replies: 13
Views: 955
Posted By jsWalter
Thanks!

Thanks
Forum: JavaScript programming 12-04-2003, 06:53 PM
Replies: 13
Views: 955
Posted By jsWalter
Boolean Object...

I am trying to figure out how I can do this...

bolValue = someFunc ( someVar );

if ( bolValue ) // true
// do something here
else
alert ( bolValue.err );
Forum: JavaScript programming 11-25-2003, 10:47 PM
Replies: 44
Views: 32,253
Posted By jsWalter
no, but this does!

function num_abbrev_str(n)
{
i = n % 100;

return n + (( Math.floor(i/10) == 1) ? "th" : ["th", "st", "nd", "rd", "th", "th", "th", "th", "th", "th"][i%10]);
}


jsWalter
Forum: JavaScript programming 11-20-2003, 06:52 PM
Replies: 44
Views: 32,253
Posted By jsWalter
This will not work with 11, 12, and 13... ...

This will not work with 11, 12, and 13...

need to add...
(make this the first check)


if ( (num == '11') || (num == '12') || (num == '13') ) {
abbrev = 'th'
} else if...
Forum: JavaScript programming 11-16-2003, 10:46 PM
Replies: 6
Views: 747
Posted By jsWalter
yep! 4 Duhs!

I knew I knew this.

I just forgot I knew this!

Besides, it's so obvious, and I have that reference as well!

Sometimes I just can't see the forst for the tree bark!

Walter
Forum: JavaScript programming 11-16-2003, 09:58 PM
Replies: 6
Views: 747
Posted By jsWalter
duh! Thanks!

Duh! Duh! Duh!

That *is* exactly waht I'm looking for!

So obvious!

Thank you *very* much!

Walter
Forum: JavaScript programming 11-16-2003, 09:11 PM
Replies: 6
Views: 747
Posted By jsWalter
uh...

thanks, but I don't see how your slight change accomplishes my goal.

I did as you suggested, but...

alert ( myTime );

still gives me '[object Object]'

I'm looking to find a solution...
Forum: JavaScript programming 11-16-2003, 05:33 PM
Replies: 6
Views: 747
Posted By jsWalter
JS OBject creation...

I'm hoping someone here can help solve my little quandry...

var myDate = new Date()
alert ( myDate );

this will display the current date and time.

What I would like to do is create a new...
Showing results 1 to 12 of 12

 
Forum Jump

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