473,626 Members | 3,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying XML as HTML in a popup


Hi, our intranet web site needs to add this feature. I've got the
components but just need the last step to get it going.

Here's the setup.
1) a user clicks on a link which calls a web service (I will use AJAX if
necessary)
2) the web service returns a string datatype which is filled with
well-formed XML
3) I have an XSLT transform which outputs HTML (i tested it with a tool
called XFactor (www.nombas.com). Pretty cool tool, I write XML & XSLT
and it transforms the output for me!
4) (this is where I can't put it all together). I want to take the XML
string from the web serivce, transform it with a XSLT (which is in a
folder on the web server) and open it as a popup. Here is how I open a
different popup from javascript. I like the options and would like to
do the same with this dynamic HTML that's created
window.open("ex ample.aspx?id=2 ","Example","wi dth=550,height= 400,left=80,
top=20,toolbar= 1,location=1,di rectories=0,sta tus=1,menuBar=1 ,scrollBars=
2,resizable=1") ;

Can someone help me "put it all together" (1) the transform piece with
the web service's xml and (2) the popup piece of the transformed HTML?

Thanks so much!
Rusty

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Apr 24 '06 #1
3 1715
Rusty,
I think what you really need to do here is have the popup load an ASPX Page
that does the webservice call, loads the XSL stylesheet, does the transform,
and then emits the resultant HTML into your popup.

Plenty of sample code around on how to do XSLT transforms in ASP.NET without
having to resort to "third party tools".
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rusty" wrote:

Hi, our intranet web site needs to add this feature. I've got the
components but just need the last step to get it going.

Here's the setup.
1) a user clicks on a link which calls a web service (I will use AJAX if
necessary)
2) the web service returns a string datatype which is filled with
well-formed XML
3) I have an XSLT transform which outputs HTML (i tested it with a tool
called XFactor (www.nombas.com). Pretty cool tool, I write XML & XSLT
and it transforms the output for me!
4) (this is where I can't put it all together). I want to take the XML
string from the web serivce, transform it with a XSLT (which is in a
folder on the web server) and open it as a popup. Here is how I open a
different popup from javascript. I like the options and would like to
do the same with this dynamic HTML that's created
window.open("ex ample.aspx?id=2 ","Example","wi dth=550,height= 400,left=80,
top=20,toolbar= 1,location=1,di rectories=0,sta tus=1,menuBar=1 ,scrollBars=
2,resizable=1") ;

Can someone help me "put it all together" (1) the transform piece with
the web service's xml and (2) the popup piece of the transformed HTML?

Thanks so much!
Rusty

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Apr 24 '06 #2
Peter, thanks a bunch. So the linkbutton opens the popup with the
settings I want. The codebehind calls the web service, transforms the
XML with the XSLT, and does a write to the screen of the html. Sounds
good. My XSLT returns all of the html, including the html, head, body,
etc. tags. Sounds like I can leave that out and just write to the
screen. Can you pass me any good code to do the transform of the XML
using the XSLT and the write to the page piece? Thanks!
"Peter Bromberg [C# MVP]" wrote:
Rusty,
I think what you really need to do here is have the popup load an ASPX Pagethat does the webservice call, loads the XSL stylesheet, does the transform,and then emits the resultant HTML into your popup.

Plenty of sample code around on how to do XSLT transforms in ASP.NET withouthaving to resort to "third party tools".
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rusty" wrote:

Hi, our intranet web site needs to add this feature. I've got the
components but just need the last step to get it going.

Here's the setup.
1) a user clicks on a link which calls a web service (I will use AJAX if necessary)
2) the web service returns a string datatype which is filled with
well-formed XML
3) I have an XSLT transform which outputs HTML (i tested it with a tool called XFactor (www.nombas.com). Pretty cool tool, I write XML & XSLT and it transforms the output for me!
4) (this is where I can't put it all together). I want to take the XML string from the web serivce, transform it with a XSLT (which is in a
folder on the web server) and open it as a popup. Here is how I open a different popup from javascript. I like the options and would like to do the same with this dynamic HTML that's created
window.open("ex ample.aspx?id=2 ","Example","wi dth=550,height= 400,left=80, top=20,toolbar= 1,location=1,di rectories=0,sta tus=1,menuBar=1 ,scrollBars= 2,resizable=1") ;

Can someone help me "put it all together" (1) the transform piece with the web service's xml and (2) the popup piece of the transformed HTML?
Thanks so much!
Rusty

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com


--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Apr 24 '06 #3
Have you looked at the quickstarts? Hate to sound like a broken record, but....

http://samples.gotdotnet.com/quickst...l/doc_xml.aspx

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rusty" wrote:
Peter, thanks a bunch. So the linkbutton opens the popup with the
settings I want. The codebehind calls the web service, transforms the
XML with the XSLT, and does a write to the screen of the html. Sounds
good. My XSLT returns all of the html, including the html, head, body,
etc. tags. Sounds like I can leave that out and just write to the
screen. Can you pass me any good code to do the transform of the XML
using the XSLT and the write to the page piece? Thanks!
"Peter Bromberg [C# MVP]" wrote:
Rusty,
I think what you really need to do here is have the popup load an ASPX

Page
that does the webservice call, loads the XSL stylesheet, does the

transform,
and then emits the resultant HTML into your popup.

Plenty of sample code around on how to do XSLT transforms in ASP.NET

without
having to resort to "third party tools".
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Rusty" wrote:

Hi, our intranet web site needs to add this feature. I've got the
components but just need the last step to get it going.

Here's the setup.
1) a user clicks on a link which calls a web service (I will use AJAX if necessary)
2) the web service returns a string datatype which is filled with
well-formed XML
3) I have an XSLT transform which outputs HTML (i tested it with a tool called XFactor (www.nombas.com). Pretty cool tool, I write XML & XSLT and it transforms the output for me!
4) (this is where I can't put it all together). I want to take the XML string from the web serivce, transform it with a XSLT (which is in a
folder on the web server) and open it as a popup. Here is how I open a different popup from javascript. I like the options and would like to do the same with this dynamic HTML that's created
window.open("ex ample.aspx?id=2 ","Example","wi dth=550,height= 400,left=80, top=20,toolbar= 1,location=1,di rectories=0,sta tus=1,menuBar=1 ,scrollBars= 2,resizable=1") ;

Can someone help me "put it all together" (1) the transform piece with the web service's xml and (2) the popup piece of the transformed HTML?
Thanks so much!
Rusty

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com


--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Apr 25 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
12870
by: Jeanne | last post by:
I am working on a cgi script that is suppose to pop-up a javascript box from the following perl variables:$TodayDate, $LinkCity, $LinkState. I recently encountered a problem with the $LinkCity variable when the city Coeur d'Alene was read. It appears that javascript is intrepreting the quote to end after d'. I've tried reversing the quotes (instead of " ' ' ", ' " " ') and using the javascript escape command. Neither worked. Please help!...
14
2604
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file (that part's not here -- spotlighting the problem code): --------BEGIN CODE PAGE------------ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
9360
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where clause after users typed in one or several letters/digits. My problem is as follows Most of the time I need to display form in continuous format, that means the combo box will appear in each record. For example I have a form to let users view...
8
2035
by: Bryan Glennon | last post by:
I have an aspx page. If I set the Response.ContentType = "application/voicexml+xml" then when I load browse to the page it downloads the file and opens .Net Studio to allow me to edit it. It should just display in my browser (as it does if I don't set the ContentType). I have appropriate MIME types set up in IIS (.vxml --> application/voicexml+xml). What am I doing wrong here? And more important, how can I fix it?
3
3885
by: Scotty | last post by:
Hey, I'm trying to do something funky... Check out this example http://www.netflix.com/BrowseSelection If you mouseover a movie, you will see a nice looking popup with info. I would like to do the same thing only with rss feeds on a text link. (not sure if this is possible)
5
9026
by: debbiedchang | last post by:
Hi, I have a custom user login authentication page. There are times when the login authentication succeeds, but before I redirect to the home page, I want to display a popup with a warning message to tell the user that their password is about to expire. I can't get the popup to display AND the page to redirect (only one or the other). I thought maybe setting the document.location would work, but it still doesn't redirect to the...
5
6019
by: kenethlevine | last post by:
Hello I am fairly new to Access and am having a problem for which I am trying everything without success. It is access 2003. I have a main form. When the user presses a button a modal popup comes up with a continuous form based on a database table. I am manually linking the table to the main form table rather than as a subform, but either way I get this problem. When the popup comes up, even though there are 3 records, I only see one. ...
7
2399
by: hsegoy1979 | last post by:
Dear All Iam using file upload control and i want to display image in another pop up page .But image is not displaying in image control iam sending image path thru querystring . here is my code <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
0
8265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2625
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.