Check out our blog!
Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.

You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.

You need to be logged in to post and to see the uncensored versions of these forums.

Log in or Learn about Forumwarz

Role Playing
Switch to Civil Discussion Role-Playing

Viewing a Post

FalconFour

Avatar: 69421 Wed Aug 12 05:13:59 -0400 2009
6

Level 35 Troll

Minty Fresh

Alright fabulous persons, I’ve got to do my damndest to **** you off so I can actually stay in this ****ty clbum, while asking you the most hackeresque question this young-as-Combobreaker-likes-’em forum has seen yet. So in that respect: **** you.

So, now the question. Take this sample of code.

<imagine this is javascript>
function updateVars(fieldnum) {
		if (!dogreat timesent.getElementById(fieldname)) dogreat timesent.getElementById("extravars").innerHTML += "<p id=\"var"+fieldnum+"\"></p>";
		dogreat timesent.getElementById("var"+fieldnum).innerHTML = "recognized var: "+("var"+fieldnum).value+" with value "+("val"+fieldnum).value+"<br>";
}
</imagine>
<form><text name="var1" onClick="updatevars(1)"> = <text name="val1" onClick="updatevars(1)">
<submit><p id="extravars"></p></form>

Ignoring the obvious lazy syntax and phony tags, how the **** would I make that work, particularly the second line in updateVars()...?! This is driving me bat**** insane, since there’s no single JavaScript resource like there is with PHP. Everything has to be done by describing a concept to Google, and that doesn’t exactly work here.

I can’t use “this”, because I need the function to reference both the variable and the value fields (and “this” would only return the one that’s selected). Ugh…


Log in to see images!

Log in to see images!

http://falconfour.com/bumhurt-cinematic
learn to ****ing spel

Internet Delay Chat
Have fun playing!
To chat with other players, you must Join Forumwarz or Log In now!