Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 26
Search took 0.05 seconds.
Search: Posts Made By: meridian
Forum: JavaScript programming 07-10-2012, 10:13 AM
Replies: 18
Views: 1,160
Posted By meridian
That's terrific. I don't fully understand all the...

That's terrific. I don't fully understand all the code but having a working script I can study and figure out how it works is really helpful. Thanks also for the comments explaining what is happening...
Forum: JavaScript programming 07-09-2012, 02:07 AM
Replies: 18
Views: 1,160
Posted By meridian
Ok. I'll keep plugging away at it. Thanks :o

Ok. I'll keep plugging away at it. Thanks :o
Forum: JavaScript programming 07-08-2012, 12:20 PM
Replies: 18
Views: 1,160
Posted By meridian
Sorry if I was unclear. The number I was...

Sorry if I was unclear. The number I was referring to was the one outputting to "Individual cards viewed". I was having another look at it and I can see it is just displaying the array number. I was...
Forum: JavaScript programming 07-07-2012, 08:42 AM
Replies: 18
Views: 1,160
Posted By meridian
Perhaps a randomly generated word may be a better...

Perhaps a randomly generated word may be a better way to work with this idea. I tried to incorporate this into the script however, I don't seemed to have pulled it off. The number starts at 3? (and...
Forum: JavaScript programming 07-07-2012, 07:28 AM
Replies: 18
Views: 1,160
Posted By meridian
I'm having trouble keeping up with all the...

I'm having trouble keeping up with all the variations (but I'm happy for all the input). I was playing with Old Pedants approach and sort of got it working. However, the counter starts at 0 rather...
Forum: JavaScript programming 07-07-2012, 12:49 AM
Replies: 18
Views: 1,160
Posted By meridian
Thanks angelinwilliams. This is how I originally...

Thanks angelinwilliams. This is how I originally imagined it could be achieved but my understanding wasn't enough to get it going. For example how would my word pairs sit in this array?
Forum: JavaScript programming 07-06-2012, 01:09 PM
Replies: 18
Views: 1,160
Posted By meridian
Ok. Thanks for the explanation Philip M.

Ok. Thanks for the explanation Philip M.
Forum: JavaScript programming 07-06-2012, 11:23 AM
Replies: 18
Views: 1,160
Posted By meridian
Thanks Philip M. I'll have a play around with...

Thanks Philip M. I'll have a play around with that. May I ask though, is the array "shown[]," a new array completely (eg. var shown = []; ) or should it be nestled within the words array somehow? I...
Forum: JavaScript programming 07-06-2012, 05:47 AM
Replies: 18
Views: 1,160
Posted By meridian
How to create multi-dimensional arrays

I have been adding some stats and scores to my flashcards script and am wondering how I can improve it. Presently I have a total cards viewed stat but it is really just a running total and includes...
Forum: JavaScript programming 07-05-2012, 12:36 AM
Replies: 11
Views: 679
Posted By meridian
No worries. Thanks for pointing that out. I tend...

No worries. Thanks for pointing that out. I tend to use just firefox when testing the code and it seemed to work ok. I will try to get into the habit of using other browsers I think. I'm starting to...
Forum: JavaScript programming 07-03-2012, 03:38 AM
Replies: 11
Views: 679
Posted By meridian
Ok. Seems to be working now. I forgot to close a...

Ok. Seems to be working now. I forgot to close a couple of the span tags properly. Thanks for your patience.:)
Forum: JavaScript programming 07-02-2012, 01:41 PM
Replies: 11
Views: 679
Posted By meridian
Sorry. I must be a slow learner. I tried...

Sorry. I must be a slow learner. I tried experimenting with changing the id names as suggested but had no luck. The code below seems to work ok with the paragraph tags but changing to a style tags...
Forum: JavaScript programming 07-01-2012, 02:27 PM
Replies: 11
Views: 679
Posted By meridian
That's good to know. I seemed to associate span...

That's good to know. I seemed to associate span with formatting. Although the output doesn't seem to be working now. I'll have to check my code again. I'm assuming span will work the same as...
Forum: JavaScript programming 07-01-2012, 11:25 AM
Replies: 11
Views: 679
Posted By meridian
Multiple ids in a paragraph?

Apologies for asking such a basic question. How can I make the following
id outputs display on a single line rather than on top of each other.

eg. 1 2 3 4
rather than
1
2
3
4
Forum: JavaScript programming 07-01-2012, 04:48 AM
Replies: 10
Views: 505
Posted By meridian
Wow. It's amazing the difference between the...

Wow. It's amazing the difference between the different methods used. An effective demonstration. Thanks.
Forum: JavaScript programming 06-30-2012, 10:26 AM
Replies: 10
Views: 505
Posted By meridian
Philip M - that works perfectly. Just what I was...

Philip M - that works perfectly. Just what I was trying to do.

Thanks heaps
Forum: JavaScript programming 06-30-2012, 03:37 AM
Replies: 10
Views: 505
Posted By meridian
007julien - I think that is an interesting...

007julien - I think that is an interesting solution. I will need to study your code though to get my head around it more.

felgall - That would solve my apparent lack of randomness. I guess the...
Forum: JavaScript programming 06-30-2012, 12:27 AM
Replies: 10
Views: 505
Posted By meridian
Thanks vwphillips. That makes sense but...

Thanks vwphillips. That makes sense but interestingly when I tested it it still occasionally returns the same word (the word stays the same). I'm not sure why. Also, it doesn't seem to be...
Forum: JavaScript programming 06-29-2012, 02:02 PM
Replies: 10
Views: 505
Posted By meridian
How to stop randomizing Array repeats

Hi

Just wondering when randomizing values in an array how I can prevent the same value being randomly generated twice in a row (ie value stays the same). In my vocab flashcards script when...
Forum: JavaScript programming 06-29-2012, 08:07 AM
Replies: 13
Views: 806
Posted By meridian
Ok. I see now. I think I was thrown out by the...

Ok. I see now. I think I was thrown out by the fact that the second number was larger than the first (and couldn't be divided into it). That makes sense now. Thanks for spending the time to explain...
Forum: JavaScript programming 06-29-2012, 07:21 AM
Replies: 13
Views: 806
Posted By meridian
Thanks Old Pedant. Forgive my ignorance but I...

Thanks Old Pedant. Forgive my ignorance but I still am trying to understand how the calculation works for the previous button. When the page loads cnt = 0, when previous is clicked ctn=2.
The...
Forum: JavaScript programming 06-29-2012, 02:19 AM
Replies: 13
Views: 806
Posted By meridian
Ahh. I was wondering why it was behaving a bit...

Ahh. I was wondering why it was behaving a bit odd there.
Last night I was studying your counter and trying to understand how it was working. I'm still trying to understand how the first click of...
Forum: JavaScript programming 06-28-2012, 05:04 AM
Replies: 13
Views: 806
Posted By meridian
Thanks Old Pedant for your advice. I can see your...

Thanks Old Pedant for your advice. I can see your point about keeping the pairs together. This is probably a good idea since I could potentially be putting hundreds of words into the script and that...
Forum: JavaScript programming 06-28-2012, 01:09 AM
Replies: 13
Views: 806
Posted By meridian
Actually I tried using the same principle on a...

Actually I tried using the same principle on a previous word button but I seem to get an undefined error. I guess I'm still missing something.


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"...
Forum: JavaScript programming 06-27-2012, 02:49 PM
Replies: 13
Views: 806
Posted By meridian
Thanks heaps vwphillips & Dormilich for such a...

Thanks heaps vwphillips & Dormilich for such a quick response
That really helps. The counter variable was exactly what I was looking for.
The iterators solution was a bit over my head but...
Showing results 1 to 25 of 26

 
Forum Jump

All times are GMT +1. The time now is 02:01 AM.