What type of script is this?

Discussion in 'HTML & Website Design' started by samkak, Feb 7, 2010.

  1. #1
    I am trying to get my site validated from xhtml.

    But one error remains,it asks me to enter the type of this script.
    here is the code:-
    
    "<script>var first_channel=" . $ch_row[ch_id] . ";</script>"
    Code (markup):
    when i try it with "javascript",the whole site stops functioning.

    Also,my site opens as a blank page for 3-4sec on IE,no problems on firefox though.

    Is it possible that this error is causing the problem?

    my site is:- http://desitvlive.co.tv/


    Please suggest some solution.

    Thanks.
     
    samkak, Feb 7, 2010 IP
  2. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <script type="text/javascript">
     
    krsix, Feb 7, 2010 IP
  3. dCoupons

    dCoupons Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Seems like code of php but < script> is added on both sides.

     
    dCoupons, Feb 7, 2010 IP
  4. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    He is not asking for that - you need to define a type="" to pass XHTML validation.
     
    krsix, Feb 7, 2010 IP