?
Solved

<object> problem with ListView

Posted on 2000-03-28
3
Medium Priority
?
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

777 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