Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. javascript problem with Mozilla and IE

javascript problem with Mozilla and IE

Scheduled Pinned Locked Moved ASP.NET
databasehelpjavascriptsysadmindata-structures
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kevindotnet
    wrote on last edited by
    #1

    It works fine in IE, but seems nothing happens in Mozilla. COuld anyone help me out? There is a tree view of displaying Catagory and sub-catagories. they are both read from database. Anyhow it has no effect in firefox mozilla. help.. The codes are here: function opencat(cat,img) { if(cat.style.display=="none"){ cat.style.display=""; document.images[img].src="images/class2.gif"; } else { cat.style.display="none"; document.images[img].src="images/class1.gif"; } } <% dim rss,rs2,ii,i set rss = server.CreateObject ("adodb.recordset") set rs2 = server.CreateObject ("adodb.recordset") sql="select * from gb_category" rss.open sql,conn,1,1 if rss.eof and rss.bof then response.write "No Main Category" else i=1 do while not rss.eof %> <% rss.movenext i=i+1 loop end if rss.close set rs2=nothing set rss=nothing %>

    [000 src="images/class1.gif" align=absMiddle><%=rss("cat_name")%>](javascript:void(0);)

    000 style="DISPLAY: none"> <% rs2.open "select * from gb_sub_category where cat_id=" & rss("cat_id"),conn,1,1 if rs2.eof and rs2.bof then response.write "No Sub Category" else ii=1 do while not rs2.eof %>"> <%=rs2("sub_cat_name")%>
    <% rs2.movenext ii=ii+1 loop end if rs2.close %>

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups