Click here to get back home

trouble with onchange event

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
trouble with onchange event Dudely 10-09-2008
Get Chitika Premium
Posted by Dudely on October 9, 2008, 4:44 pm
Please log in for more thread options


I'm not sure where to go with this question so I thought I'd try this
group.

I'm having some trouble with the following VBA code. The varTags
variable is sometimes empty, and sometimes it has what it's supposed
to have. I always use the same set of pages to test.

I thought maybe the page needed time to load, so I added in
Do While obIe.Busy & Do While obIe.readyState <>4
DoEvents loops after the onchange call, but they had no effect.

The onchange call does in fact load the expected page, it's the line
of code afterwards that doesn't always work. Any ideas?

Thank you

Public Function submitDropDownData(IeDoc As Object, obIe As Object,
elementToSelect As Long, elementValue As String, ID As String)
Dim el As Object
Dim varTags as Variant
Dim tagType as String

tagType="td"

Set el = IeDoc.getElementsByName(ID)
el(0).children(elementToSelect).Selected = True
el(0).children(elementToSelect).Value = elementValue
el(0).onchange

Set varTags = IeDoc.getElementsByTagName(tagType)


Posted by Adrienne Boswell on October 9, 2008, 5:58 pm
Please log in for more thread options



> I'm not sure where to go with this question so I thought I'd try this
> group.
>
> I'm having some trouble with the following VBA code. The varTags
> variable is sometimes empty, and sometimes it has what it's supposed
> to have. I always use the same set of pages to test.
>

This group is for discussion of authoring client side HTML, so your post is
off topic here. You would be better off looking for one of the
microsoft.public... groups.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Similar ThreadsPosted
cant read the event log! DOH!!! Please help... November 1, 2004, 7:01 am
Problem with onmouseup event in IE August 12, 2004, 1:16 am
Why does event for SELECT not fire in Mozilla? September 24, 2004, 11:02 am
dhtml question: onfocusout event November 8, 2005, 10:53 pm
Pass onmouseover event to the element underneath November 8, 2008, 4:09 pm
Table with Fixed Header not working after adding an onmouseover event February 2, 2006, 4:27 pm
still m ore trouble with frames July 15, 2005, 2:13 pm
Trouble with Actions May 18, 2006, 10:43 am
favicon trouble January 30, 2007, 1:05 pm
IE and z-index trouble February 27, 2008, 5:54 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap