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

JavaScript help
Author: Message:
lordy
Senior Member
****


Posts: 853
Reputation: 24
35 / Male / Flag
Joined: Jul 2004
Status: Away
O.P. RE: JavaScript help
hmm. i now have:
code:
function submitForm(id) {
    var formId = getElem(id);
    var confSub = confirm("Test");
    if(confSub == true) {
        formId.submit();
    }
    else {
        formId.reset();
    }
}

btw getElem() is:
code:
function getElem(id) {
    var divid = document.getElementById(id);
    return divid;
}
and I have:
code:
<form id="hostsu" method='POST'>
<<form here>>
<input type="button" onclick="submitForm('hostsu');" value="Submit">
Clicking the button just does nothing...

This post was edited on 05-29-2006 at 01:26 AM by lordy.
05-29-2006 01:20 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
JavaScript help - by lordy on 05-29-2006 at 12:12 AM
RE: JavaScript help - by matty on 05-29-2006 at 12:50 AM
RE: JavaScript help - by lordy on 05-29-2006 at 01:20 AM
RE: JavaScript help - by lordy on 05-29-2006 at 01:31 AM


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