The Mudcat Café TM
Thread #22970   Message #252194
Posted By: Jon Freeman
05-Jul-00 - 11:54 AM
Thread Name: Mudcat Hearme Page
Subject: RE: Mudcat Hearme Page
No I give up, as it is getting confusing now. I think I have the answer as to how to post it though.

Each function must be surrounded by its own pair of script tags and there must be no blank lines between the start and finish of that code section to ensure that a paragraph tag is not inserted,

That would still leave a problem with the "Other()" function which results in a line of 650+ characters so I suspecet a revision of the coding would also be required to make several shorter funtions if the same logic were to be used. This could be achieved by using a coding scheme along these lines:

  function generalchat(){      set channel to #General;      call launch function();  }    

function adults(){ if it is the adult button checked set channel to #Adults; call launch function(); else generalchat(); }

function other(){ if it is the make a room button checked set channel to the name in the edit box call launch function; else adults(); }

Jon