Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax 1

Status
Not open for further replies.

crmpicco

Programmer
Nov 29, 2004
66
GB
whats wrong with this syntax?

Picco
<html>

<% smouse = "Departing " node.item(1).childnodes.item(i).childnodes.item(0).text "At " node.item(1).childnodes.item(i).childnodes.item(1).text %>

</html>
 
<% smouse = "Departing " node.item(1).childnodes.item(i).childnodes.item(0).text + "At " + node.item(1).childnodes.item(i).childnodes.item(1).text %>


[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
Just a quick guess, but it looks like you are missing concatenation operators. I assume that this is vbscript, so:

<% smouse = "Departing " & node.item(1).childnodes.item(i).childnodes.item(0).text & "At " & node.item(1).childnodes.item(i).childnodes.item(1).text %>


[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
That doesnt work.....

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/netdemobb/asp/netfare_pnr.asp, line 1081, column 23
smouse = "Departing " node.item(1).childnodes.item(i).childnodes.item(0).text + "At " + node.item(1).childnodes.item(i).childnodes.item(1).text
----------------------^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top