|
 |
asp_web_howto thread: Please help - my brain will not work :(((
Message #1 by "Peter Byers" <pb@s...> on Thu, 2 May 2002 07:49:28
|
|
Hi
I need help please.
It concerns XML and ASP.
If you have IIS, you may be interested.
Even if you cannot help, you could find it interesting to see where my brain is
going.
there is a ZIP file at:
http://195.99.184.152/xml/helpme.zip
download it, unzip it
and start at:-
starthere.htm
if you don't start there, you will never understand it.
Even if you cannot help, your comments would be welcome
Thank you - in anticipation (I hope)
Pete (Northolt UK)
PS, if you do not have the where-with-all to unzip it, let me know and I will create a
"self
extracting" exe file for you.
PPS, if you do not have IIS but are interested, let me know and I will put it up on
the www so
that you can still have a look and play with it.
PPPS, I have put it on the www - it is at
http://195.99.184.152/byers-test/starthere.htm
Message #2 by Mark Eckeard <meckeard2000@y...> on Thu, 2 May 2002 05:15:10 -0700 (PDT)
|
|
Peter,
What is the problem you are experiencing?
Might be helpful to explain the problem first.
Mark
--- Peter Byers <pb@s...> wrote:
>
>
>
>
> Hi
> I need help please.
>
> It concerns XML and ASP.
>
> If you have IIS, you may be
> interested.
>
> Even if you cannot help,
> you could find it interesting to see where my brain
> is
> going.
>
> there is a ZIP file at:
>
>
> http://195.99.184.152/xml/helpme.zip
>
> download it, unzip it
>
> and start at:-
>
> starthere.htm
>
> if you don't start there,
> you will never understand it.
>
>
>
> Even if you cannot help,
> your comments would be welcome
>
> Thank you - in anticipation (I
> hope)
> Pete (Northolt UK)
>
> PS, if you do not have the
> where-with-all to unzip it, let me know and I will
> create a
> "self
> extracting" exe file for you.
>
> PPS, if you do not have IIS but are
> interested, let me know and I will put it up on
> the www so
> that you can still have a look and
> play with it.
>
> PPPS, I have put it on the www - it
> is at
> http://195.99.184.152/byers-test/starthere.htm
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Message #3 by "Peter Byers" <pb@s...> on Thu, 2 May 2002 14:54:29
|
|
Hi Mark
If you follow the link at the bottom of the original post, it explains it there.
I thought that the story was too long to post in here.
http://195.99.184.152/byers-test/starthere.htm
Pete (Northolt UK)
> Peter,
What is the problem you are experiencing?
Might be helpful to explain the problem first.
Mark
--- Peter Byers <pb@s...> wrote:
>
>
>
>
> Hi
> I need help please.
>
> It concerns XML and ASP.
>
> If you have IIS, you may be
> interested.
>
> Even if you cannot help,
> you could find it interesting to see where my brain
> is
> going.
>
> there is a ZIP file at:
>
>
> http://195.99.184.152/xml/helpme.zip
>
> download it, unzip it
>
> and start at:-
>
> starthere.htm
>
> if you don't start there,
> you will never understand it.
>
>
>
> Even if you cannot help,
> your comments would be welcome
>
> Thank you - in anticipation (I
> hope)
> Pete (Northolt UK)
>
> PS, if you do not have the
> where-with-all to unzip it, let me know and I will
> create a
> "self
> extracting" exe file for you.
>
> PPS, if you do not have IIS but are
> interested, let me know and I will put it up on
> the www so
> that you can still have a look and
> play with it.
>
> PPPS, I have put it on the www - it
> is at
> http://195.99.184.152/byers-test/starthere.htm
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Message #4 by "phil griffiths" <pgtips@m...> on Fri, 3 May 2002 15:13:39
|
|
Hi Pete,
I downloaded your zip but coulbdn't get it to work the same as your
example (I keep getting the message 'You need to click on a line first').
However I can see a couple of things which might be causing probs in the
code snippet you highlighted:
set newNode = oNode.createNode(1, levStr, "")
newNode.setAttribute "type", Request.Form( "type" )
1. you're trying to call createNode, but oNode isn't a document object.
Only the document supports the createNode method, nodes don't!
2. you're using createNode which returns IXMLDOMNode, but then calling
setAttribute. IXMLDOMNode doesn't support get/setAttribute, but
IXMLDOMElement does. Maybe change createNode to createElement?
Like I say I couldn't get to that bit of code, so don't know if this helps.
One more general thing - if something's not working try turning off the On
error Resume Next - then you might get some error messages to pointyou in
the right direction.
HTH
Phil
> Hi Mark
> If you follow the link at the bottom of the original post, it
explains it there.
> I thought that the story was too long to post in here.
> http://195.99.184.152/byers-test/starthere.htm
P> ete (Northolt UK)
>
>
>> Peter,
Message #5 by "Alex Shiell, ITS, EB, SE" <alex.shiell@s...> on Fri, 3 May 2002 15:35:12 +0100
|
|
Just to clarify:
use oDOMDocument.createNode to create a new node in the root of the tree (at
this point the node is not actually part of the tree - it can't be located
with an xPath query)... then select the node wich you would like to be the
parent node of the new node, and use appendNode or insertBefore to insert
the node into that part of the tree. (I don't think it would have really
been much more work for the people at microsoft to write a comprehensive
createNode method for a Node, but what can you do?)
You don't need to use get/setAttribute - simply treat the attribute as
though its a node and select it with an xPath query
oDOMDocument.selectSingleNode("//path/node/@attribute").text = "..."
-----Original Message-----
From: phil griffiths [mailto:pgtips@m...]
Sent: 03 May 2002 16:14
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Please help - my brain will not work :(((
Hi Pete,
I downloaded your zip but coulbdn't get it to work the same as your
example (I keep getting the message 'You need to click on a line first').
However I can see a couple of things which might be causing probs in the
code snippet you highlighted:
set newNode = oNode.createNode(1, levStr, "")
newNode.setAttribute "type", Request.Form( "type" )
1. you're trying to call createNode, but oNode isn't a document object.
Only the document supports the createNode method, nodes don't!
2. you're using createNode which returns IXMLDOMNode, but then calling
setAttribute. IXMLDOMNode doesn't support get/setAttribute, but
IXMLDOMElement does. Maybe change createNode to createElement?
Like I say I couldn't get to that bit of code, so don't know if this helps.
One more general thing - if something's not working try turning off the On
error Resume Next - then you might get some error messages to pointyou in
the right direction.
HTH
Phil
> Hi Mark
> If you follow the link at the bottom of the original post, it
explains it there.
> I thought that the story was too long to post in here.
> http://195.99.184.152/byers-test/starthere.htm
P> ete (Northolt UK)
>
>
>> Peter,
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
Message #6 by "Alex Shiell, ITS, EB, SE" <alex.shiell@s...> on Fri, 3 May 2002 16:06:55 +0100
|
|
sorry - appendChild, not appendNode
-----Original Message-----
From: Alex Shiell, ITS, EB, SE
Sent: 03 May 2002 15:35
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Please help - my brain will not work :( ((
Just to clarify:
use oDOMDocument.createNode to create a new node in the root of the tree (at
this point the node is not actually part of the tree - it can't be located
with an xPath query)... then select the node wich you would like to be the
parent node of the new node, and use appendNode or insertBefore to insert
the node into that part of the tree. (I don't think it would have really
been much more work for the people at microsoft to write a comprehensive
createNode method for a Node, but what can you do?)
You don't need to use get/setAttribute - simply treat the attribute as
though its a node and select it with an xPath query
oDOMDocument.selectSingleNode("//path/node/@attribute").text = "..."
-----Original Message-----
From: phil griffiths [mailto:pgtips@m...]
Sent: 03 May 2002 16:14
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Please help - my brain will not work :(((
Hi Pete,
I downloaded your zip but coulbdn't get it to work the same as your
example (I keep getting the message 'You need to click on a line first').
However I can see a couple of things which might be causing probs in the
code snippet you highlighted:
set newNode = oNode.createNode(1, levStr, "")
newNode.setAttribute "type", Request.Form( "type" )
1. you're trying to call createNode, but oNode isn't a document object.
Only the document supports the createNode method, nodes don't!
2. you're using createNode which returns IXMLDOMNode, but then calling
setAttribute. IXMLDOMNode doesn't support get/setAttribute, but
IXMLDOMElement does. Maybe change createNode to createElement?
Like I say I couldn't get to that bit of code, so don't know if this helps.
One more general thing - if something's not working try turning off the On
error Resume Next - then you might get some error messages to pointyou in
the right direction.
HTH
Phil
> Hi Mark
> If you follow the link at the bottom of the original post, it
explains it there.
> I thought that the story was too long to post in here.
> http://195.99.184.152/byers-test/starthere.htm
P> ete (Northolt UK)
>
>
>> Peter,
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
Message #7 by "Peter Byers" <pb@s...> on Fri, 3 May 2002 16:23:29
|
|
Hi Phil
Thank you so much for having a look at my problem.
However - if you look at "findit.asp" (from the zip file !!!)
Line 123 onwards, you will see that "oNode" has been defined and a Response.Write
proves that.
oNode is the node to which I wish to add the child.
ByTheWay, if you go to
http://195.99.184.152/byers-test/starthere.htm
(use IE 5+),
and step thru the links, the perversity of the problem will very swiftly become apparent.
It makes me a bit mad, because I am sure that it will be something so simple resulting from
my own stupidity when it is found.
Thank you again for taking the time to look at it for me.
Best Regards
Pete (Northolt UK)
> Hi Pete,
> I downloaded your zip but coulbdn't get it to work the same as your
e> xample (I keep getting the message 'You need to click on a line first').
H> owever I can see a couple of things which might be causing probs in the
c> ode snippet you highlighted:
> set newNode = oNode.createNode(1, levStr, "")
n> ewNode.setAttribute "type", Request.Form( "type" )
> 1. you're trying to call createNode, but oNode isn't a document object.
O> nly the document supports the createNode method, nodes don't!
2> . you're using createNode which returns IXMLDOMNode, but then calling
s> etAttribute. IXMLDOMNode doesn't support get/setAttribute, but
I> XMLDOMElement does. Maybe change createNode to createElement?
> Like I say I couldn't get to that bit of code, so don't know if this
helps.
> One more general thing - if something's not working try turning off the
On
e> rror Resume Next - then you might get some error messages to pointyou in
t> he right direction.
> HTH
P> hil
>> Hi Mark
> > If you follow the link at the bottom of the original post, it
e> xplains it there.
> > I thought that the story was too long to post in here.
> > http://195.99.184.152/byers-test/starthere.htm
P> > ete (Northolt UK)
> >
> >
>> > Peter,
Message #8 by "Peter Byers" <pb@s...> on Fri, 3 May 2002 16:31:53
|
|
Hi Alex
Thank you also for taking the time to look and reply.
See my reply to Phil in this thread - oNode contains (and is demonstrated to contain) the
node to which I wish to attach the child (just like similar code did in "adlev1a.htm/asp" !!!)
Thank you
Pete (Northolt UK)
> Just to clarify:
use oDOMDocument.createNode to create a new node in the root of the tree
(at
this point the node is not actually part of the tree - it can't be located
with an xPath query)... then select the node wich you would like to be the
parent node of the new node, and use appendNode or insertBefore to insert
the node into that part of the tree. (I don't think it would have really
been much more work for the people at microsoft to write a comprehensive
createNode method for a Node, but what can you do?)
You don't need to use get/setAttribute - simply treat the attribute as
though its a node and select it with an xPath query
oDOMDocument.selectSingleNode("//path/node/@attribute").text = "..."
-----Original Message-----
From: phil griffiths [mailto:pgtips@m...]
Sent: 03 May 2002 16:14
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Please help - my brain will not work :(((
Hi Pete,
I downloaded your zip but coulbdn't get it to work the same as your
example (I keep getting the message 'You need to click on a line first').
However I can see a couple of things which might be causing probs in the
code snippet you highlighted:
set newNode = oNode.createNode(1, levStr, "")
newNode.setAttribute "type", Request.Form( "type" )
1. you're trying to call createNode, but oNode isn't a document object.
Only the document supports the createNode method, nodes don't!
2. you're using createNode which returns IXMLDOMNode, but then calling
setAttribute. IXMLDOMNode doesn't support get/setAttribute, but
IXMLDOMElement does. Maybe change createNode to createElement?
Like I say I couldn't get to that bit of code, so don't know if this helps.
One more general thing - if something's not working try turning off the On
error Resume Next - then you might get some error messages to pointyou in
the right direction.
HTH
Phil
> Hi Mark
> If you follow the link at the bottom of the original post, it
explains it there.
> I thought that the story was too long to post in here.
> http://195.99.184.152/byers-test/starthere.htm
P> ete (Northolt UK)
>
>
>> Peter,
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
Message #9 by "Alex Shiell, ITS, EB, SE" <alex.shiell@s...> on Fri, 3 May 2002 16:35:56 +0100
|
|
any reason why you've got
oNode.documentElement.appendChild(newNode)
and not
oNode.appendChild(newNode)
?
doubt it would make any difference though...
-----Original Message-----
From: Peter Byers [mailto:pb@s...]
Sent: 03 May 2002 17:32
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Please help - my brain will not work :( ((
Hi Alex
Thank you also for taking the time to look and reply.
See my reply to Phil in this thread - oNode contains (and is
demonstrated to contain) the
node to which I wish to attach the child (just like similar code did in
"adlev1a.htm/asp" !!!)
Thank you
Pete (Northolt UK)
> Just to clarify:
use oDOMDocument.createNode to create a new node in the root of the tree
(at
this point the node is not actually part of the tree - it can't be located
with an xPath query)... then select the node wich you would like to be the
parent node of the new node, and use appendNode or insertBefore to insert
the node into that part of the tree. (I don't think it would have really
been much more work for the people at microsoft to write a comprehensive
createNode method for a Node, but what can you do?)
You don't need to use get/setAttribute - simply treat the attribute as
though its a node and select it with an xPath query
oDOMDocument.selectSingleNode("//path/node/@attribute").text = "..."
-----Original Message-----
From: phil griffiths [mailto:pgtips@m...]
Sent: 03 May 2002 16:14
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Please help - my brain will not work :(((
Hi Pete,
I downloaded your zip but coulbdn't get it to work the same as your
example (I keep getting the message 'You need to click on a line first').
However I can see a couple of things which might be causing probs in the
code snippet you highlighted:
set newNode = oNode.createNode(1, levStr, "")
newNode.setAttribute "type", Request.Form( "type" )
1. you're trying to call createNode, but oNode isn't a document object.
Only the document supports the createNode method, nodes don't!
2. you're using createNode which returns IXMLDOMNode, but then calling
setAttribute. IXMLDOMNode doesn't support get/setAttribute, but
IXMLDOMElement does. Maybe change createNode to createElement?
Like I say I couldn't get to that bit of code, so don't know if this helps.
One more general thing - if something's not working try turning off the On
error Resume Next - then you might get some error messages to pointyou in
the right direction.
HTH
Phil
> Hi Mark
> If you follow the link at the bottom of the original post, it
explains it there.
> I thought that the story was too long to post in here.
> http://195.99.184.152/byers-test/starthere.htm
P> ete (Northolt UK)
>
>
>> Peter,
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
Message #10 by "Peter Byers" <pb@s...> on Fri, 3 May 2002 17:58:47
|
|
Hi Alex
Only because that worked in the "adlev1a.htm/asp" pair - no better reason than that
AND
I thought "why change something that worked" - LOL
Best Regards
Pete (Northolt UK)
PS - Dont be shy about seeing that the addition pair "adlev1a.htm/asp" does in fact work on
line be following the link to it from
http://195.99.184.152/byers-test/starthere.htm
> any reason why you've got
oNode.documentElement.appendChild(newNode)
and not
oNode.appendChild(newNode)
?
doubt it would make any difference though...
-----Original Message-----
From: Peter Byers [mailto:pb@s...]
Sent: 03 May 2002 17:32
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Please help - my brain will not work :( ((
Hi Alex
Thank you also for taking the time to look and reply.
See my reply to Phil in this thread - oNode contains (and is
demonstrated to contain) the
node to which I wish to attach the child (just like similar code did in
"adlev1a.htm/asp" !!!)
Thank you
Pete (Northolt UK)
> Just to clarify:
use oDOMDocument.createNode to create a new node in the root of the tree
(at
this point the node is not actually part of the tree - it can't be located
with an xPath query)... then select the node wich you would like to be the
parent node of the new node, and use appendNode or insertBefore to insert
the node into that part of the tree. (I don't think it would have really
been much more work for the people at microsoft to write a comprehensive
createNode method for a Node, but what can you do?)
You don't need to use get/setAttribute - simply treat the attribute as
though its a node and select it with an xPath query
oDOMDocument.selectSingleNode("//path/node/@attribute").text = "..."
-----Original Message-----
From: phil griffiths [mailto:pgtips@m...]
Sent: 03 May 2002 16:14
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Please help - my brain will not work :(((
Hi Pete,
I downloaded your zip but coulbdn't get it to work the same as your
example (I keep getting the message 'You need to click on a line first').
However I can see a couple of things which might be causing probs in the
code snippet you highlighted:
set newNode = oNode.createNode(1, levStr, "")
newNode.setAttribute "type", Request.Form( "type" )
1. you're trying to call createNode, but oNode isn't a document object.
Only the document supports the createNode method, nodes don't!
2. you're using createNode which returns IXMLDOMNode, but then calling
setAttribute. IXMLDOMNode doesn't support get/setAttribute, but
IXMLDOMElement does. Maybe change createNode to createElement?
Like I say I couldn't get to that bit of code, so don't know if this helps.
One more general thing - if something's not working try turning off the On
error Resume Next - then you might get some error messages to pointyou in
the right direction.
HTH
Phil
> Hi Mark
> If you follow the link at the bottom of the original post, it
explains it there.
> I thought that the story was too long to post in here.
> http://195.99.184.152/byers-test/starthere.htm
P> ete (Northolt UK)
>
>
>> Peter,
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
|
|
 |