Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Posts
    183
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javascript error

    when i am using attached tx tfile which is mixture of php and javascript i dotn no why im getting unknown javascript error anybody rectify this will be appreciable

    thanks

    speciallly in below JS

    function show2(){
    if (!document.layers && !document.all) return;
    if (document.layers) {
    document.layers.pendule.document.write("<form name=\"tstest\"><select name=\"bis\" size=\"1\"><option value=\"- - - -\" selected>"+ document.tstest.bis.value +"</option><option value=\"09:00\">09:00</option><option value=\"10:00\">10:00</option><option value=\"11:00\">11:00</option></select></form>");
    document.layers.pendule.document.close();
    }
    else if (document.all)
    {
    pendule.innerHTML = "<form name=\"tstest2\"><select name=\"bis\" size=\"1\"><option value=\"- - - -\" selected>"+ document.tstest.bis.value +"</option><option value=\"09:00\">09:00</option><option value=\"10:00\">10:00</option><option value=\"11:00\">11:00</option></select></form>"
    }
    setTimeout("show2()",36000)
    }

    function show(){
    var Digital=new Date()
    var hours=Digital.getHours()
    var minutes=Digital.getMinutes()
    if (hours<=9)
    hours="0"+ hours
    if (minutes<=9)
    minutes="0"+minutes
    document.tstest.bis.value = ""+ hours +":"+ minutes +""
    setTimeout("show()",1000)
    }
    Attached Files Attached Files


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •