Jump to content

Beta

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by Beta

  1. its like this:var cur = {$1: "test",$2: "test2"}andvar cur.$1 = "test"; var cur.$2 = "test2";and you use them by eithercur.$1 or cur['$1']you can also use functions=P
  2. IE6 Renders that perfectly fine when i do it=Pbut if you have problems then just create the link=/ <span id="mailto"></span><script type="text/javascript"><!--var mailto = document.createElement("A");mailto.href = "mailto:error@aquatic-management.org?subject=Broken URL: " + location.href;mailto.innerHTML = "Email Us";document.getElementById("mailto").appendChild(mailto);// --></script> and append it=P
  3. While we're on the Script/Text topic...is it possible to edit a .txt file through JS?
  4. Yes it's me 0uTk4sT. And about the length, alot of people code for forums and things with limited wrapper space, so shortness is better. ( in coding =P )
  5. Can't you use Ternary Operators to shorten it?like:var request = (window.ActiveXObject)? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();or:request.onreadystatechange = function() {var auth = (request.readyState==4 && request.status==200)? request.responseText : false;?
×
×
  • Create New...