PDA

View Full Version : TS Join Block for Nuke? Problem???!!!


scoutwmd
07-05-2006, 16:43
Hello, I am guess that this is not a problem, but some of guy i am working with in making a block not using webpost would like to login to teamspeak from the website via block.

We are using Login Name, Nickname, and password. here is the code

<html>
<body>

<table width="112" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="140" height="10"><div align="center">Team Speak</div></td>
</tr>
<tr>
<td width="140" class="leftnavtable" align="center" valign="middle"><form name="testform">

<p>
<input name="NICKNAME" type="text" value="Nickname" size="14">
<input name="LOGINNAME" type="text" value="Login name" size="14">
<input name="PASSWORD" type="password" value="Password" size="14">
</p>
<input name="Join" type="submit" class="navlinks" id="Join" onClick="teamspeak://tspk1.voice-tgm.com:8677/?nickname='' + testform.NICKNAME.value + ''?loginname='' + testform.LOGINNAME.value + ''?password='' + testform.PASSWORD.value;" " value="Join"><input name="Clear" type="reset" class="navlinks" id="Join" value="Clear" />
</p>
</form>
</tr>
</table></body>
</html>


What is wrong with this? Please help....:mad: :mad: :mad: :mad:

Cyrus
07-05-2006, 16:53
Tell the browser (JavaScript Interpreter) that he should change the URL
teamspeak:// alone is no JavaScript function.

scoutwmd
07-05-2006, 17:14
o.k. sorry I am an idiot. Can you rephrase that. I am a dork about this.

Cyrus
07-05-2006, 17:25
your onclick="" attribute contains just the new URL (teamspeak://...)

But the browser expects a JavaScript (a scripting language) command to be there so nothing will happen (maybe except of an error message that "teamspeak://..." is no valid JavaScript function)

So search for the Java-Script-Function to change the browsers URL (by googling or something like this) and place it there and it will work.

scoutwmd
08-05-2006, 05:10
Well thanks for the help. I realize now. I am a complete idiot and going to install webpost. I think. unless someone can make a block with the code that is available in the beginning of the post.

scoutwmd
08-05-2006, 17:01
*bump*


I think so