Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Probably a silly idea...

Quote Reply
Probably a silly idea...
Ok, first, this is to do with the Perl version of Links SQL Wink

I just saw some cool javascript code in Ikonboard V3. Basically, what it does is stop you submitting the information twice. This has proben to be a problem with me (i keep making duplicates of listings). The code is;

Code:
document.LOGIN.submit.disabled = true;
return true;

Obviously you have to set it as a function, and then call it from the button itself. I'm not really much of a Javascript person myself, but this just looked quite cool and helpful. Not sure how praticle it would be though Frown

Well, just letting you know (I expect you already knew about it anyway Unimpressed)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Probably a silly idea... In reply to
Cool

Code:
<script language="javascript">
function LockButtons (whichform) {
ua = new String(navigator.userAgent);
if (ua.match(/IE/g)) {
for (i=1; i<whichform.elements.length; i++) {
if (whichform.elements.type == 'submit') {
whichform.elements.disabled = true;
}
}
}
whichform.submit();
}
</script>
Quote Reply
Re: [RedRum] Probably a silly idea... In reply to
Now why has part of that message gone italisised?

- wil
Quote Reply
Re: [Wil] Probably a silly idea... In reply to
Yeah strange, I've noticed that in past code snippets. Seems to happen at "type" above

Last edited by:

RedRum: Nov 8, 2001, 11:51 AM