|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
100% asp newbie (only started today)
Hi folks hope you can help ~
I'm a php peep (a novice at that) so I have no idea about asp. I've recently found out that a certain task I've been trying to accomplish in php is so much easier to do in asp. The general idea of this code is to get a url from another website and strip the variables, ie:- partner= &partnerId= ¶m= &searchId= and apply these to a new url (ie. index.asp?partner=123&partnerId=123¶m=123&searchId=123) and then display results from a xsl file I'm using this code to get a URLs from another website:- Code:
Dim xmlrequest
Set xmlrequest = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlrequest.open "GET", strQuery, False
xmlrequest.setRequestHeader "Content-type", "text/xml"
xmlrequest.send
As far as I can work out it returns a urls to be displayed using:- merchantURL Quote:
<!-- Think I need to put something here --> and then display result like this:- Code:
xml.loadxml(xmlrequest.responseText)
xsl.load(Server.MapPath(".") & "\results.xsl")
response.write xml.transformNode(xsl)
how would I go about taking the orginal <xsl:value-of select="merchantURL" /> and transform it to my altered url (ie. index.asp?partner=123&partnerId=123¶m=123&searchId=123) Does that make any sense at all? Any help would be great S.C> |
|
#2
|
|||
|
|||
|
opppps just realised that I've posted in 'Other > Programming Help'
Can a mod move to the right forum thanks S.C> |
|
#3
|
|||
|
|||
|
I think this will help you: http://forums.aspfree.com/showthread.php?p=209416#post209416
|
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > 100% asp newbie (only started today) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|