?
Solved

<object> problem with ListView

Posted on 2000-03-28
3
Medium Priority
?
444 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 400 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Find out what you should include to make the best professional email signature for your organization.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

840 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