Microsoft ASP
Microsoft ASP Contents
Summary When we created JITIC we built an "online status" function which returns data about all users in XML. We get the XML-data from our indexing server. However, we also needed to check if the user was logged in, so we needed to execute some ASP-code within the XSL-file while we parsed the XML... Hmmm, how to do that? See our solution below...
The solution we came up with that we had to check if the user was logged in using ASP and we had to do this for every single user. Hence, we had to, from the XL-file, call an ASP-file and send a querystring to this file with the id for the user.So, in the XSL-file we parse the XML to HTML. And when doing this we create a script-tag that will (in the HTML) include a javascript-file using like this:<script language=javascript src=jsfile.js></script>However, instead of including a file with the extension .js we included a file with the .asp extension and hence we could execute whatever asp-code we wanted and return it as ContentType = application/x-javascriptCheck out the XSL and ASP-code below.Thanks for your time!Robert Kvibyrobert@ngcode.comCheck out JITIC at www.jitic.net
<script language=javascript src=jsfile.js></script>
Partners
Dream.In.Code dotNet Slackers dotNet Spider Your HTML Source VisualBuilder.com DevGuru Planet Source Code ZVON.ORG Web Design ASPAlliance XML Pitstop Scripts
The Spot 4 SAP Bitshop Web Hosting