Click here to Skip to main content
15,905,875 members
Home / Discussions / Web Development
   

Web Development

 
GeneralJavaScript XPath help Pin
Gump61912-Mar-08 9:31
Gump61912-Mar-08 9:31 
GeneralRe: JavaScript XPath help Pin
led mike13-Mar-08 4:34
led mike13-Mar-08 4:34 
GeneralRe: JavaScript XPath help Pin
Shog916-Mar-08 7:03
sitebuilderShog916-Mar-08 7:03 
GeneralRe: JavaScript XPath help Pin
Gump61917-Mar-08 4:36
Gump61917-Mar-08 4:36 
GeneralRe: JavaScript XPath help Pin
Shog917-Mar-08 4:44
sitebuilderShog917-Mar-08 4:44 
GeneralRe: JavaScript XPath help Pin
Gump61917-Mar-08 4:50
Gump61917-Mar-08 4:50 
GeneralRe: JavaScript XPath help Pin
Shog917-Mar-08 5:01
sitebuilderShog917-Mar-08 5:01 
GeneralRe: JavaScript XPath help Pin
Gump61917-Mar-08 8:34
Gump61917-Mar-08 8:34 
Thanks to a pretty helpful XPath analyzer that uses IE, and a lot of trial and error, I finally found an expression that returns exactly what I want. Just FYI here is what it looks like:

var ProductType = xmlDoc.selectSingleNode("//cardSKU[./card[@region='" + RegName + "']]/@cardtype");

I had tried using recursive notation in other expressions but I didn't think that would work since I was using something like //card[@region="something"]/./cardSKU[@cardtype] which of course doesn't work since the . has to be on the left of the /.

Anyway thanks to all for the help, roadblock cleared!
GeneralSQL Server 2005 Reporting and ASP.NET 3.5 Pin
camby7512-Mar-08 9:28
camby7512-Mar-08 9:28 
GeneralRe: SQL Server 2005 Reporting and ASP.NET 3.5 Pin
Mark J. Miller14-Mar-08 6:58
Mark J. Miller14-Mar-08 6:58 
Generalweb server problem with asp.net app Pin
eyeseetee11-Mar-08 22:51
eyeseetee11-Mar-08 22:51 
GeneralThe current configuration system does not support user-scoped settings. error Pin
Vipul Mehta11-Mar-08 19:48
Vipul Mehta11-Mar-08 19:48 
GeneralImage in DIV Tag Pin
rajanandal11-Mar-08 19:38
rajanandal11-Mar-08 19:38 
NewsSilverlight, Expression betas available Pin
brucedkyle11-Mar-08 6:56
brucedkyle11-Mar-08 6:56 
GeneralJavascript to call WebService in ASP.NET2.0 Pin
salon11-Mar-08 4:02
salon11-Mar-08 4:02 
GeneralFireFox Web Developer Tutorials Pin
Brady Kelly11-Mar-08 3:06
Brady Kelly11-Mar-08 3:06 
GeneralRe: FireFox Web Developer Tutorials Pin
Shog913-Mar-08 12:45
sitebuilderShog913-Mar-08 12:45 
QuestionBest Free CMS? Pin
SerraDee10-Mar-08 10:56
SerraDee10-Mar-08 10:56 
QuestionRe: Best Free CMS? Pin
Vasudevan Deepak Kumar10-Mar-08 22:27
Vasudevan Deepak Kumar10-Mar-08 22:27 
GeneralRe: Best Free CMS? Pin
lbothell11-Mar-08 7:40
lbothell11-Mar-08 7:40 
GeneralRe: Best Free CMS? Pin
Vasudevan Deepak Kumar12-Mar-08 4:42
Vasudevan Deepak Kumar12-Mar-08 4:42 
QuestionWhere did the style of textarea go in Firefox? Pin
Xiangyang Liu 刘向阳10-Mar-08 7:08
Xiangyang Liu 刘向阳10-Mar-08 7:08 
AnswerRe: Where did the style of textarea go in Firefox? Pin
Guffa11-Mar-08 9:55
Guffa11-Mar-08 9:55 
GeneralRe: Where did the style of textarea go in Firefox? Pin
Xiangyang Liu 刘向阳11-Mar-08 11:37
Xiangyang Liu 刘向阳11-Mar-08 11:37 
GeneralRe: Where did the style of textarea go in Firefox? Pin
Guffa11-Mar-08 11:44
Guffa11-Mar-08 11:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.