Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: 7 Nov 2005 18:03:25 -0800,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


Access VBscript variable in vbcript variable   
Hi,
I am trying to change pid in HTML Document by writing following in
VBSCRIPT and I am having issue

Dim pid
pid = "print" & orderid
'Above is variable passed in vbdcript function which will be diff all
the time

<pid>.innerHTML = "Printed"

"above should change text in HTML document with pid tag ...but I am
getting error message object required.
date: 7 Nov 2005 18:03:25 -0800   author:   unknown

Re: Access VBscript variable in vbcript variable   
mamin123@yahoo.com wrote:
> Hi,
> I am trying to change pid in HTML Document by writing following in
> VBSCRIPT and I am having issue
>
> Dim pid
> pid = "print" & orderid
> 'Above is variable passed in vbdcript function which will be diff all
> the time
>
> <pid>.innerHTML = "Printed"


Have you tried...

  document.all(pid).innerHTML = "Printed"

....or...

  document.getElementById(pid).innerHTML = "Printed"


>
> "above should change text in HTML document with pid tag ...but I am
> getting error message object required.

-- 
Michael Harris
Microsoft MVP Scripting
date: Mon, 7 Nov 2005 19:09:54 -0800   author:   Michael Harris \(MVP\) mikhar at mvps dot org

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us