Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 63
Search took 0.22 seconds.
Search: Posts Made By: Richter
Forum: JavaScript programming 09-13-2012, 11:23 AM
Replies: 16
Views: 1,159
Posted By Richter
I rewrite it as factory function, not perfect...

I rewrite it as factory function, not perfect still some problem about initialize parent level :(

Edit : Finally, I can fix it :)

<body>
<select id="selection" />

<script>
var Options =...
Forum: JavaScript programming 09-12-2012, 06:40 PM
Replies: 16
Views: 1,159
Posted By Richter
Improve from xelawho code, I made it more...

Improve from xelawho code, I made it more readable :)

<body>

<select name = "selection" id="selection" onchange="nextchoice(this)">
<option value="0">Choose one</option>
<option value="1"...
Forum: JavaScript programming 09-10-2012, 03:21 PM
Replies: 1
Views: 217
Posted By Richter
var user_response ="yes"; while (user_response...

var user_response ="yes";
while (user_response !="yes"){
user_response = prompt ("Do you want to play again?");
if (user_response == "yes") { HAVING A PROBLEM HERE !=CONTINUE GAME;
{ else if...
Forum: JavaScript programming 09-10-2012, 03:10 PM
Replies: 3
Views: 461
Posted By Richter
Just get your textarea out of form and it will...

Just get your textarea out of form and it will work fine.
Forum: JavaScript programming 08-29-2012, 04:42 PM
Replies: 15
Views: 739
Posted By Richter
To rnd me, Your encryption function seem good...

To rnd me,
Your encryption function seem good but is it fix length of password ?

var enc='zz,11 ,13,13,2,8,69,26,10,114,15,12';
var PW = "Testing encode password";
var Enc = jcipher(enc, PW);...
Forum: JavaScript programming 08-28-2012, 02:30 PM
Replies: 8
Views: 663
Posted By Richter
Hi lorre851, It's seem you haven't problem...

Hi lorre851,
It's seem you haven't problem about call event so I will focus about resize code.

Place this code into you function that you call it on frame loaded.
var Tmp =...
Forum: JavaScript programming 08-02-2012, 01:58 AM
Replies: 3
Views: 308
Posted By Richter
Hi wombatman, You need to create "arrays"...

Hi wombatman,
You need to create "arrays" before you call them if you call it before you create I'm surely you will get undefined, it's unlike global function that you can call them before you...
Forum: JavaScript programming 08-02-2012, 01:35 AM
Replies: 8
Views: 585
Posted By Richter
Thanks Old Pedant :) I agree about check method...

Thanks Old Pedant :)
I agree about check method might be over call by asynchronous method but another thing I concern is Garbage Collection of browser since he create objects every millisecond and I...
Forum: JavaScript programming 08-01-2012, 03:32 PM
Replies: 8
Views: 585
Posted By Richter
Hi 3Nex, Why don't you use asynchronous method,...

Hi 3Nex,
Why don't you use asynchronous method, I think it's better way to do it.
http://www.w3schools.com/ajax/ajax_xmlhttprequest_send.asp
Forum: JavaScript programming 07-29-2012, 05:45 AM
Replies: 4
Views: 374
Posted By Richter
In that case just put the name you want in to...

In that case just put the name you want in to object directly :)

loggedObject2 = {};

loggedObject2['Vegetable'] = { 'items': 'Carrots', 'quantity': 5 };
//or
loggedObject2.Fruit = [{...
Forum: JavaScript programming 07-29-2012, 05:21 AM
Replies: 4
Views: 374
Posted By Richter
Why not array ? since you still index them by...

Why not array ? since you still index them by number.

loggedObject = [];

loggedObject.push( { items:'marble', quantity:5} );
loggedObject.push( { items:'rock', quantity:3 } );
...
Forum: JavaScript programming 07-26-2012, 10:29 PM
Replies: 3
Views: 274
Posted By Richter
Hi newsung, If you want replace only one word...

Hi newsung,
If you want replace only one word you could use "HP" insert /HP/ and " inside "" should has \ for make them not end the string.

st = st.replace("HP","HP=\"blue\"");
Forum: JavaScript programming 07-25-2012, 07:17 AM
Replies: 3
Views: 271
Posted By Richter
Hi Styles2304, Seem you little misunderstand,...

Hi Styles2304,
Seem you little misunderstand, just change "a > 5" to "a < 6" and it will work fine :)
Forum: JavaScript programming 07-22-2012, 11:42 PM
Replies: 11
Views: 568
Posted By Richter
@Old Pedant You forgot Ruby and Python :eek: ...

@Old Pedant
You forgot Ruby and Python :eek:
ps. It seem like I forgot some language ... oh F# lol
Forum: JavaScript programming 07-22-2012, 03:15 AM
Replies: 7
Views: 739
Posted By Richter
Hi bitejones, I change your code from if...

Hi bitejones,
I change your code from if statement to switch statement, it work well.

<script type="text/javascript">
<!--
function ImportStyleSheet(File){var...
Forum: JavaScript programming 07-18-2012, 11:14 AM
Replies: 24
Views: 844
Posted By Richter
@rnd me Opera 12 shift 17 floor 23 ...

@rnd me

Opera 12
shift 17
floor 23
parse 166
crop 133

Crop faster then parse method, Opera !?
Forum: JavaScript programming 07-18-2012, 01:19 AM
Replies: 3
Views: 684
Posted By Richter
Hi Kenneth Heeres, You can't use XMLHttpRequest...

Hi Kenneth Heeres,
You can't use XMLHttpRequest to access data in different domain but you can import javascript insert, most popular method is JSONP (but not me, I just sent entire code back since...
Forum: JavaScript programming 07-17-2012, 03:47 AM
Replies: 9
Views: 1,048
Posted By Richter
@Old Pedant I usually has something to do with...

@Old Pedant
I usually has something to do with the line after split line before join them back so I use split function as common and sometime I got sometime abnormal result from replace function...
Forum: JavaScript programming 07-17-2012, 03:36 AM
Replies: 24
Views: 844
Posted By Richter
Hi Keleth, It's seem more alien syntax then you...

Hi Keleth,
It's seem more alien syntax then you think :)
http://timmywillison.com/pres/operators/
Forum: JavaScript programming 07-16-2012, 07:42 AM
Replies: 9
Views: 1,048
Posted By Richter
I'm familiar to split them first and merge them...

I'm familiar to split them first and merge them later since I usually has to do something with each line.


<textarea id="InputBox"></textarea>
<button id="SMDT">Summit</button>
...
Forum: JavaScript programming 07-11-2012, 06:40 AM
Replies: 6
Views: 333
Posted By Richter
http://www.w3schools.com/ they has everything you...

http://www.w3schools.com/ they has everything you want :)
Forum: JavaScript programming 07-11-2012, 06:31 AM
Replies: 9
Views: 566
Posted By Richter
@Old Pedant, That what I try to tell him but...

@Old Pedant,
That what I try to tell him but seem like no one read my post.
If your object isn't a primitive type like number or characters, you can't prevent them to change object's members...
Forum: JavaScript programming 07-10-2012, 06:37 PM
Replies: 9
Views: 566
Posted By Richter
Hi DeadFred, You can use read only property or...

Hi DeadFred,
You can use read only property or function to do that, I wrote some example here.

function Keeper(Default){
var _Value = Default;
this.GetValue = function() { return _Value }
}...
Forum: JavaScript programming 07-09-2012, 04:36 PM
Replies: 15
Views: 709
Posted By Richter
Thanks oneguy but I think eval is evil...

Thanks oneguy but I think eval is evil (http://javascriptweblog.wordpress.com/2010/04/19/how-evil-is-eval/) , so I will stick myself with function constructor :)
Forum: JavaScript programming 07-09-2012, 09:27 AM
Replies: 15
Views: 709
Posted By Richter
I add test with name of variant but still not...

I add test with name of variant but still not test with IE9 or lower (since I use windows 8 I can't test it :( ), please tell me if it not work on IE9 or lower.
Showing results 1 to 25 of 63

 
Forum Jump

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