What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » JavaScript problem

JavaScript problem
Author: Message:
DragonX
Full Member
***

Avatar

Posts: 226
Reputation: 10
40 / Male / –
Joined: Aug 2005
O.P. JavaScript problem
Me again ;) this time i'm truely lost, i've searched google and found exactly what i need to do, but when i do it, it doesn't work. It goes as such..

code:
function quote(id) {
  var username = eval("document.quote.q"+id+".value");
  document.inputform.message.value += quote\r\n;
  document.inputform.message.focus();
}

code:
<form method='post' name='inputform' onsubmit='return checkForm(this)'>
    <textarea name='message' rows='10' cols='50'</textarea>
</form>


Now all works fine, i can get the info out of qid and show it in an alert fine, my problem comes with the other two js statements.

1. It won't put the text in the textarea.
2. when doing focus(), IE says "Object doesn't support this property method"

So am at a loss right now :S
[Image: dsd-mi_616175.png]
12-03-2005 09:15 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
JavaScript problem - by DragonX on 12-03-2005 at 09:15 PM
RE: JavaScript problem - by WDZ on 12-04-2005 at 07:24 AM
RE: JavaScript problem - by ShawnZ on 12-04-2005 at 01:30 PM
RE: JavaScript problem - by -dt- on 12-04-2005 at 01:42 PM
RE: JavaScript problem - by DragonX on 12-04-2005 at 02:59 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On