Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 10th, 2005, 07:26 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default XML to be displayed in a pop-up

i have an asp page with XML on it.

But i want info coming from XML to be displayed in a pop-up.

Is this possible?

My XML:

handle=session("sessionid")
''Response.Write("TraceMYTRIP2handle "& handle)
    set xmlsession=server.CreateObject ("Microsoft.XMLDOM")
    Set element = xmlsession.createElement("Login_Request")
    Set node = xmlsession.appendChild(element)
        Set subelement = xmlsession.createElement("Companyid")
        Set node = element.appendChild(subelement)
        subelement.Text = companyid
        Set subelement = xmlsession.createElement("Sessionid")
        Set node = element.appendChild(subelement)
        subelement.Text = handle

    set objapi=server.CreateObject("FA_Agency.Agency")
    set dumxml=server.CreateObject ("Microsoft.FreeThreadedXMLDOM")
    set dumxml=objapi.Agencyretrive (xmlsession,""& companyid &"",""& pnrno &"")
    set objxml=server.CreateObject ("Microsoft.FreeThreadedXMLDOM")
    objxml.loadxml(dumxml.xml)
    set dumxml=nothing
    'Response.Write("TraceMYTRIP2errnum4 "& err.number)
    'objxml.save(writeTraceFile("XFILEmytrip2_reply3.x ml"))
    if asp_trace<>"no" then%><%objxml.save(writeTracefile("XFILEmytrip2_r eply3.xml"))%><%end if
    set objapi=nothing

''''''''''''''''''''''''''''
' PoweredPNR_Retrieve '
''''''''''''''''''''''''''''
handle=session("sessionid")
''Response.Write("TraceMYTRIP2handle "& handle)
    set xmlsession=server.CreateObject ("Microsoft.XMLDOM")
    Set element = xmlsession.createElement("Login_Request")
    Set node = xmlsession.appendChild(element)
        Set subelement = xmlsession.createElement("Companyid")
        Set node = element.appendChild(subelement)
        subelement.Text = companyid
        Set subelement = xmlsession.createElement("Sessionid")
        Set node = element.appendChild(subelement)
        subelement.Text = handle

    set objapi=server.CreateObject("FA_Agency.Agency")
    set dumxml=server.CreateObject ("Microsoft.FreeThreadedXMLDOM")
    set dumxml=objapi.PoweredPNR_Retrieve(xmlsession,""& pnrno &"")
    set xmldoc=server.CreateObject ("Microsoft.FreeThreadedXMLDOM")
    xmldoc.loadxml(dumxml.xml)
    set dumxml=nothing

__________________________________________________ _______

My ASP code:

<%
dim arrStr
dim theStr

theStr = xmldoc.documentelement.selectnodes("dataElementsMa ster").item(0).selectnodes("dataElementsIndiv").it em(2).selectnodes("miscellaneousRemarks").item(0). selectnodes("remarks").item(0).selectnodes("freete xt").item(0).text

Dim expr: Set expr = New RegExp
expr.Pattern = "[^:]*:([^,]*),?"
expr.Global = True
Dim match, matches
Set matches = expr.Execute(theStr)
For Each match In matches
    response.write "item = " & match.SubMatches(0) & "<br />"
formatted = match.SubMatches(0)
response.write "Formatted = " & formatted & "<br>"
Next
Set matches = Nothing
Set expr = Nothing

%>

__________________________________________________
My output:

item = 134
item = 169
item = 69.70
item = 35
item = 0
item = 0
item = 0
item = 0
item = 0
item = 273.70
item = 39/IT5AFKLE

My pop-up window link:

<a href="fare_details.asp" onClick="javascript: window.open(this.href,'name','650','500','yes');re turn false;">Fare Details</a>



www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
Reply With Quote
  #2 (permalink)  
Old February 10th, 2005, 08:19 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Keep the XML output in the Session and access in the popup page...

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xml declaration not displayed zsheema XSLT 10 May 15th, 2008 04:36 AM
xml displayed in textbox GS C# 2005 1 August 31st, 2007 12:45 PM
Page cannot be displayed. Voltron ASP.NET 2.0 Basics 0 October 22nd, 2006 04:20 PM
open a new pop-up from a pop-up crmpicco Javascript How-To 1 January 18th, 2005 09:48 AM
Not getting "time" displayed in the first example dotnetabhi VS.NET 2002/2003 6 March 27th, 2004 10:53 AM



All times are GMT -4. The time now is 12:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.