Solved

<object> problem with ListView

Posted on 2000-03-28
3
404 Views
Last Modified: 2008-02-01
I want to put a ListView (from mscomctl.ocx) in a page. The problem is: the first time I load the page, it works fine, but after that, pressing de refresh button or going to another page with the same control, doesn 't show the items (the items ARE there, yo can scroll trough them, but there 's no text).

This is an extract from the HTML code:

<object
CLASSID="clsid:BDD1F04B-858B-11D1-B16A-00C0F0283628"
ID=lv
WIDTH=600
HEIGHT=200
>

<PARAM NAME=LabelWrap value=-1>
<PARAM NAME=HideSelection value=-1>
<param name=ForeColor value=-2147483640>
<param name=BackColor value=-2147483643>
<param name=BorderStyle     value=1>
<param name=Appearance  value=0>
<param name=AllowReorder value=-1>
<param name=NumItems  value=0>
<param name=FullRowSelect value=-1>
<param name=LabelEdit value=1>
<param name=sorted value=-1>

</object>



<script language=VbScript>
  Dim item


  lv.columnheaders.clear
  lv.listitems.clear

  lv.ColumnHeaders.Add , , "column 1", 100, 0
  lv.ColumnHeaders.Add , , "column 2", 100, 0
  lv.ColumnHeaders.Add , , "column 3", 100, 0


  set item = lv.ListItems.Add (1,"k1" , "1-1")
  item.ListSubItems.Add , , "1-2"
  item.ListSubItems.Add , , "1-3"


  set item = lv.ListItems.Add (2, "k2", "2-1" )
  item.ListSubItems.Add , , "2-2"
  item.ListSubItems.Add , , "2-3"

  lv.View = 3
</script>

0
Comment
Question by:marpon
  • 2
3 Comments
 

Author Comment

by:marpon
ID: 2665388
More info:
-MS Windows Controls 6.0
-Internet Explorer 5.0
0
 

Author Comment

by:marpon
ID: 2673218
I tested in two different machines with the same result: it works fine the first time but I can not reload the page. Assuming it worked for you, do you have any ideas of what can be the differences in our configurations ?
0
 

Accepted Solution

by:
sofox earned 200 total points
ID: 2875830
maybe you used a wrong clsid, try this
58DA8D8A-9D6A-101B-AFC0-4210102A8DA7
I have tested under ie4/ie5, all works

it is strange for different clsid for similar control?

remeber this control may not recognize FullRowSelect

good luck.

sofox
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now