Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
J J #1
Accessing web.sitemap XML file - completely stuck!
Web.sitemap is the default name of the XML sitemap file used in asp .net web
sites. I am having trouble opening it in an embedded .swf on any of my web
pages.
When I use the Flash command:
myXml.load("Web.sitemap");
I get an error. However when I change the file name and command to 'Web.xml'
it works. (it also works if I don't change the name, but run the swf in
flash player and not via the browser/web server)I suspect this is a result
of the browser not knowing what a '.sitemap' file is???
I can't change the name of this file for various reasons.
So, how do I open an xml file called 'Web.sitemap' in a web page with an
embedded .swf????
JJ
J J Guest
-
Completely lost job. Temp file didntrestore after ID Crash....
I read different opinions expressed in the forum regarding font management and the necessity of font management tools. While I do not have thousands... -
Removing styles completely on an imported file
Hi, I'm designing a site that shows a Weather Channel graphic and weather listing. In my html I place the code: <script... -
Sitemap
is there an ASP script that will generate a site map of a website or would i have to code it myself adam -
NFS file problem: maybe a stale/stuck handle?
This has me stumped. My apologies if the subject line misses the mark. I've recently migrated some directories from one NFS file server (SunOS... -
File Browser Stuck
The file browser is stuck on the Photoshop 7.01 desktop. I cannot move it or move the scroll bars in order to get to the file menus. I have tried... -
Raymond Basque #2
Re: Accessing web.sitemap XML file - completely stuck!
From .net documentation:
Implementing a custom site-map provider that stores site-map data in a file
with a file name extension other than .sitemap is a potential security risk.
By default, ASP.NET is configured to protect files with known file name
extensions - such as .sitemap - from being downloaded by a client. To help
protect your data, place any custom site-map data files that have a file
name extension other than .sitemap in the App_Data folder. For more
information, see Securing ASP.NET Site Navigation.
Assuming you're using .net 2.0, what you could do is create a handler file
(e.g. WebSiteMap.ashx) that returns the content of the xml file. Something
like:
<%@ WebHandler Language="C#" Class="WebSiteMap" %>
using System;
using System.Web;
public class WebSiteMap: IHttpHandler {
public void ProcessRequest (HttpContext context) {
HttpRequest Request = context.Request;
HttpResponse Response = context.Response;
string filePath = Request.MapPath("web.sitemap");
if (System.IO.File.Exists(filePath))
{
Response.ClearHeaders();
Response.ClearContent();
Response.Expires = 0;
Response.Cache.SetCacheability(HttpCacheability.No Cache);
Response.ContentType = "text/xml";
Response.WriteFile(filePath);
}
else
{
Response.Write("<html>");
Response.Write("<body>");
Response.Write("<p>File not found.</p>");
Response.Write("</body>");
Response.Write("</html>");
}
}
public bool IsReusable {get {return false;}}
}
"J J" <nospam@nospam.com> wrote in message
news:e8oiun$83c$1@forums.macromedia.com...> Web.sitemap is the default name of the XML sitemap file used in asp .net
> web sites. I am having trouble opening it in an embedded .swf on any of my
> web pages.
>
> When I use the Flash command:
>
> myXml.load("Web.sitemap");
>
> I get an error. However when I change the file name and command to
> 'Web.xml' it works. (it also works if I don't change the name, but run the
> swf in flash player and not via the browser/web server)I suspect this is a
> result of the browser not knowing what a '.sitemap' file is???
>
> I can't change the name of this file for various reasons.
>
> So, how do I open an xml file called 'Web.sitemap' in a web page with an
> embedded .swf????
> JJ
>
Raymond Basque Guest
-
J J #3
Re: Accessing web.sitemap XML file - completely stuck!
Raymond,
I tried your solution using the vb version of your code listed below. The
flash would still not load the xml...?
Also, would this pose any security issues? I cannot see how the sitemap is a
security issue if many sites have their .xml sitemaps openly accessible..?
The Actionscript I used:
----------------------------------
menu_xml.onLoad = function(ok){
// create main menu after successful loading of XML
if (ok){
message_txt.text = "Worked";
}else{
message_txt.text = "error: XML not successfully loaded";
}
};
// load first XML menu
urlBase = _url.substr(0,_url.lastIndexOf("/")+1);
trace (urlBase)
var StatusBox:TextField;
StatusBox.text = "base url of flash file is: " + urlBase
menu_xml.load(urlBase + "WebSiteMap.ashx");
[ and also tried just : menu_xml.load("WebSiteMap.ashx"); ]
The vb code for the handler:
--------------------------------------
<%@ WebHandler Language="VB" Class="WebSiteMap" %>
'handles access to the Web.sitemap file which is normally not allowed for
security reasons
Imports System
Imports System.Web
Public Class WebSiteMap : Implements IHttpHandler
Public Sub ProcessRequest(ByVal context As HttpContext) Implements
IHttpHandler.ProcessRequest
'context.Response.ContentType = "text/plain"
'context.Response.Write("Hello World")
Dim Request As HttpRequest = context.Request
Dim Response As HttpResponse = context.Response
Dim filePath As String = Request.MapPath("Web.sitemap")
If System.IO.File.Exists(filePath) Then
Response.ClearHeaders()
Response.ClearContent()
Response.Expires = 0
Response.Cache.SetCacheability(HttpCacheability.No Cache)
Response.ContentType = "text/xml"
Response.WriteFile(filePath)
Else
Response.Write("<html>")
Response.Write("<body>")
Response.Write("<p>File not found.</p>")
Response.Write("</body>")
Response.Write("</html>")
End If
End Sub
Public ReadOnly Property IsReusable() As Boolean Implements
IHttpHandler.IsReusable
Get
Return False
End Get
End Property
End Class
"Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
news:e8oo3t$doi$1@forums.macromedia.com...> From .net documentation:
> Implementing a custom site-map provider that stores site-map data in a
> file with a file name extension other than .sitemap is a potential
> security risk. By default, ASP.NET is configured to protect files with
> known file name extensions - such as .sitemap - from being downloaded by a
> client. To help protect your data, place any custom site-map data files
> that have a file name extension other than .sitemap in the App_Data
> folder. For more information, see Securing ASP.NET Site Navigation.
> Assuming you're using .net 2.0, what you could do is create a handler file
> (e.g. WebSiteMap.ashx) that returns the content of the xml file. Something
> like:
>
> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>
> using System;
> using System.Web;
>
> public class WebSiteMap: IHttpHandler {
>
> public void ProcessRequest (HttpContext context) {
>
> HttpRequest Request = context.Request;
> HttpResponse Response = context.Response;
> string filePath = Request.MapPath("web.sitemap");
>
> if (System.IO.File.Exists(filePath))
> {
> Response.ClearHeaders();
> Response.ClearContent();
> Response.Expires = 0;
> Response.Cache.SetCacheability(HttpCacheability.No Cache);
> Response.ContentType = "text/xml";
> Response.WriteFile(filePath);
> }
> else
> {
> Response.Write("<html>");
> Response.Write("<body>");
> Response.Write("<p>File not found.</p>");
> Response.Write("</body>");
> Response.Write("</html>");
> }
> }
>
> public bool IsReusable {get {return false;}}
>
> }
>
>
>
>
>
>
> "J J" <nospam@nospam.com> wrote in message
> news:e8oiun$83c$1@forums.macromedia.com...>>> Web.sitemap is the default name of the XML sitemap file used in asp .net
>> web sites. I am having trouble opening it in an embedded .swf on any of
>> my web pages.
>>
>> When I use the Flash command:
>>
>> myXml.load("Web.sitemap");
>>
>> I get an error. However when I change the file name and command to
>> 'Web.xml' it works. (it also works if I don't change the name, but run
>> the swf in flash player and not via the browser/web server)I suspect this
>> is a result of the browser not knowing what a '.sitemap' file is???
>>
>> I can't change the name of this file for various reasons.
>>
>> So, how do I open an xml file called 'Web.sitemap' in a web page with an
>> embedded .swf????
>> JJ
>>
>
J J Guest
-
J J #4
Re: Accessing web.sitemap XML file - completely stuck!
Though the handler does work if I access it directly in the browser. This is
looking more like a flash issue... could it be some sort of security
limitation....?
I am running the test site on my local IIS server. As far as flash should be
concerned it should be accessing the handler/sitemap on the local domain...
I'm completely puzzled...
"Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
news:e8oo3t$doi$1@forums.macromedia.com...> From .net documentation:
> Implementing a custom site-map provider that stores site-map data in a
> file with a file name extension other than .sitemap is a potential
> security risk. By default, ASP.NET is configured to protect files with
> known file name extensions - such as .sitemap - from being downloaded by a
> client. To help protect your data, place any custom site-map data files
> that have a file name extension other than .sitemap in the App_Data
> folder. For more information, see Securing ASP.NET Site Navigation.
> Assuming you're using .net 2.0, what you could do is create a handler file
> (e.g. WebSiteMap.ashx) that returns the content of the xml file. Something
> like:
>
> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>
> using System;
> using System.Web;
>
> public class WebSiteMap: IHttpHandler {
>
> public void ProcessRequest (HttpContext context) {
>
> HttpRequest Request = context.Request;
> HttpResponse Response = context.Response;
> string filePath = Request.MapPath("web.sitemap");
>
> if (System.IO.File.Exists(filePath))
> {
> Response.ClearHeaders();
> Response.ClearContent();
> Response.Expires = 0;
> Response.Cache.SetCacheability(HttpCacheability.No Cache);
> Response.ContentType = "text/xml";
> Response.WriteFile(filePath);
> }
> else
> {
> Response.Write("<html>");
> Response.Write("<body>");
> Response.Write("<p>File not found.</p>");
> Response.Write("</body>");
> Response.Write("</html>");
> }
> }
>
> public bool IsReusable {get {return false;}}
>
> }
>
>
>
>
>
>
> "J J" <nospam@nospam.com> wrote in message
> news:e8oiun$83c$1@forums.macromedia.com...>>> Web.sitemap is the default name of the XML sitemap file used in asp .net
>> web sites. I am having trouble opening it in an embedded .swf on any of
>> my web pages.
>>
>> When I use the Flash command:
>>
>> myXml.load("Web.sitemap");
>>
>> I get an error. However when I change the file name and command to
>> 'Web.xml' it works. (it also works if I don't change the name, but run
>> the swf in flash player and not via the browser/web server)I suspect this
>> is a result of the browser not knowing what a '.sitemap' file is???
>>
>> I can't change the name of this file for various reasons.
>>
>> So, how do I open an xml file called 'Web.sitemap' in a web page with an
>> embedded .swf????
>> JJ
>>
>
J J Guest
-
J J #5
Re: Accessing web.sitemap XML file - completely stuck!
It works - I think there was some cacheing going on somewhere even though I
was emptying my temp files on my browser each time.
Could the flash player be caching its results..?
The same question applies regarding security though. Does allowing access to
the sitemap in this way open up the security problems that microsoft seem to
think exist?
Is there any way of limiting access to the handler/sitemap file to local
access only (i.e. access from files on the actual site) besides naming the
handler something strange and hoping that no one guesses the name....
My reason for accessing the sitemap is to make menus based on its contents
( surely many would want to do this).
JJ
"J J" <nospam@nospam.com> wrote in message
news:e8oqr5$gj3$1@forums.macromedia.com...> Though the handler does work if I access it directly in the browser. This
> is looking more like a flash issue... could it be some sort of security
> limitation....?
>
> I am running the test site on my local IIS server. As far as flash should
> be concerned it should be accessing the handler/sitemap on the local
> domain...
>
> I'm completely puzzled...
>
>
> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
> news:e8oo3t$doi$1@forums.macromedia.com...>>> From .net documentation:
>> Implementing a custom site-map provider that stores site-map data in a
>> file with a file name extension other than .sitemap is a potential
>> security risk. By default, ASP.NET is configured to protect files with
>> known file name extensions - such as .sitemap - from being downloaded by
>> a client. To help protect your data, place any custom site-map data files
>> that have a file name extension other than .sitemap in the App_Data
>> folder. For more information, see Securing ASP.NET Site Navigation.
>> Assuming you're using .net 2.0, what you could do is create a handler
>> file (e.g. WebSiteMap.ashx) that returns the content of the xml file.
>> Something like:
>>
>> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>>
>> using System;
>> using System.Web;
>>
>> public class WebSiteMap: IHttpHandler {
>>
>> public void ProcessRequest (HttpContext context) {
>>
>> HttpRequest Request = context.Request;
>> HttpResponse Response = context.Response;
>> string filePath = Request.MapPath("web.sitemap");
>>
>> if (System.IO.File.Exists(filePath))
>> {
>> Response.ClearHeaders();
>> Response.ClearContent();
>> Response.Expires = 0;
>> Response.Cache.SetCacheability(HttpCacheability.No Cache);
>> Response.ContentType = "text/xml";
>> Response.WriteFile(filePath);
>> }
>> else
>> {
>> Response.Write("<html>");
>> Response.Write("<body>");
>> Response.Write("<p>File not found.</p>");
>> Response.Write("</body>");
>> Response.Write("</html>");
>> }
>> }
>>
>> public bool IsReusable {get {return false;}}
>>
>> }
>>
>>
>>
>>
>>
>>
>> "J J" <nospam@nospam.com> wrote in message
>> news:e8oiun$83c$1@forums.macromedia.com...>>>>> Web.sitemap is the default name of the XML sitemap file used in asp .net
>>> web sites. I am having trouble opening it in an embedded .swf on any of
>>> my web pages.
>>>
>>> When I use the Flash command:
>>>
>>> myXml.load("Web.sitemap");
>>>
>>> I get an error. However when I change the file name and command to
>>> 'Web.xml' it works. (it also works if I don't change the name, but run
>>> the swf in flash player and not via the browser/web server)I suspect
>>> this is a result of the browser not knowing what a '.sitemap' file is???
>>>
>>> I can't change the name of this file for various reasons.
>>>
>>> So, how do I open an xml file called 'Web.sitemap' in a web page with an
>>> embedded .swf????
>>> JJ
>>>
>>
>
J J Guest
-
Raymond Basque #6
Re: Accessing web.sitemap XML file - completely stuck!
Puzzling! I got it to work on my local IIS.
Here's the actionscript I used -- pretty much the same as yours -- and I
get the xml data in my text field:
var xml:XML = new XML();
xml.onLoad = function(ok){
if (ok){
fldText.text = this.toString();
}else{
fldText.text = "error: XML not successfully loaded";
}
};
xml.load("WebSiteMap.ashx");
I don't see the security issue either. But I suppose someone could come up
with a scenario where security would be an issue. You might want to query
the microsoft groups.
"J J" <nospam@nospam.com> wrote in message
news:e8oqr5$gj3$1@forums.macromedia.com...> Though the handler does work if I access it directly in the browser. This
> is looking more like a flash issue... could it be some sort of security
> limitation....?
>
> I am running the test site on my local IIS server. As far as flash should
> be concerned it should be accessing the handler/sitemap on the local
> domain...
>
> I'm completely puzzled...
>
>
> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
> news:e8oo3t$doi$1@forums.macromedia.com...>>> From .net documentation:
>> Implementing a custom site-map provider that stores site-map data in a
>> file with a file name extension other than .sitemap is a potential
>> security risk. By default, ASP.NET is configured to protect files with
>> known file name extensions - such as .sitemap - from being downloaded by
>> a client. To help protect your data, place any custom site-map data files
>> that have a file name extension other than .sitemap in the App_Data
>> folder. For more information, see Securing ASP.NET Site Navigation.
>> Assuming you're using .net 2.0, what you could do is create a handler
>> file (e.g. WebSiteMap.ashx) that returns the content of the xml file.
>> Something like:
>>
>> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>>
>> using System;
>> using System.Web;
>>
>> public class WebSiteMap: IHttpHandler {
>>
>> public void ProcessRequest (HttpContext context) {
>>
>> HttpRequest Request = context.Request;
>> HttpResponse Response = context.Response;
>> string filePath = Request.MapPath("web.sitemap");
>>
>> if (System.IO.File.Exists(filePath))
>> {
>> Response.ClearHeaders();
>> Response.ClearContent();
>> Response.Expires = 0;
>> Response.Cache.SetCacheability(HttpCacheability.No Cache);
>> Response.ContentType = "text/xml";
>> Response.WriteFile(filePath);
>> }
>> else
>> {
>> Response.Write("<html>");
>> Response.Write("<body>");
>> Response.Write("<p>File not found.</p>");
>> Response.Write("</body>");
>> Response.Write("</html>");
>> }
>> }
>>
>> public bool IsReusable {get {return false;}}
>>
>> }
>>
>>
>>
>>
>>
>>
>> "J J" <nospam@nospam.com> wrote in message
>> news:e8oiun$83c$1@forums.macromedia.com...>>>>> Web.sitemap is the default name of the XML sitemap file used in asp .net
>>> web sites. I am having trouble opening it in an embedded .swf on any of
>>> my web pages.
>>>
>>> When I use the Flash command:
>>>
>>> myXml.load("Web.sitemap");
>>>
>>> I get an error. However when I change the file name and command to
>>> 'Web.xml' it works. (it also works if I don't change the name, but run
>>> the swf in flash player and not via the browser/web server)I suspect
>>> this is a result of the browser not knowing what a '.sitemap' file is???
>>>
>>> I can't change the name of this file for various reasons.
>>>
>>> So, how do I open an xml file called 'Web.sitemap' in a web page with an
>>> embedded .swf????
>>> JJ
>>>
>>
>
Raymond Basque Guest
-
Raymond Basque #7
Re: Accessing web.sitemap XML file - completely stuck!
Yup-- caching is definitely an issue with Flash. While IE will generally
respect the cache headers, Moxilla-based browsers seem to not.
Simple solution is to append a unique query string. For example:
var d:Date = new Date();
menu_xml.load("WebSiteMap.ashx?qwerty=" + d.getMilliseconds());
"J J" <nospam@nospam.com> wrote in message
news:e8orj4$hfq$1@forums.macromedia.com...> It works - I think there was some cacheing going on somewhere even though
> I was emptying my temp files on my browser each time.
> Could the flash player be caching its results..?
>
> The same question applies regarding security though. Does allowing access
> to the sitemap in this way open up the security problems that microsoft
> seem to think exist?
> Is there any way of limiting access to the handler/sitemap file to local
> access only (i.e. access from files on the actual site) besides naming the
> handler something strange and hoping that no one guesses the name....
>
> My reason for accessing the sitemap is to make menus based on its contents
> ( surely many would want to do this).
>
> JJ
>
>
> "J J" <nospam@nospam.com> wrote in message
> news:e8oqr5$gj3$1@forums.macromedia.com...>>> Though the handler does work if I access it directly in the browser. This
>> is looking more like a flash issue... could it be some sort of security
>> limitation....?
>>
>> I am running the test site on my local IIS server. As far as flash should
>> be concerned it should be accessing the handler/sitemap on the local
>> domain...
>>
>> I'm completely puzzled...
>>
>>
>> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
>> news:e8oo3t$doi$1@forums.macromedia.com...>>>>> From .net documentation:
>>> Implementing a custom site-map provider that stores site-map data in a
>>> file with a file name extension other than .sitemap is a potential
>>> security risk. By default, ASP.NET is configured to protect files with
>>> known file name extensions - such as .sitemap - from being downloaded by
>>> a client. To help protect your data, place any custom site-map data
>>> files that have a file name extension other than .sitemap in the
>>> App_Data folder. For more information, see Securing ASP.NET Site
>>> Navigation.
>>> Assuming you're using .net 2.0, what you could do is create a handler
>>> file (e.g. WebSiteMap.ashx) that returns the content of the xml file.
>>> Something like:
>>>
>>> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>>>
>>> using System;
>>> using System.Web;
>>>
>>> public class WebSiteMap: IHttpHandler {
>>>
>>> public void ProcessRequest (HttpContext context) {
>>>
>>> HttpRequest Request = context.Request;
>>> HttpResponse Response = context.Response;
>>> string filePath = Request.MapPath("web.sitemap");
>>>
>>> if (System.IO.File.Exists(filePath))
>>> {
>>> Response.ClearHeaders();
>>> Response.ClearContent();
>>> Response.Expires = 0;
>>> Response.Cache.SetCacheability(HttpCacheability.No Cache);
>>> Response.ContentType = "text/xml";
>>> Response.WriteFile(filePath);
>>> }
>>> else
>>> {
>>> Response.Write("<html>");
>>> Response.Write("<body>");
>>> Response.Write("<p>File not found.</p>");
>>> Response.Write("</body>");
>>> Response.Write("</html>");
>>> }
>>> }
>>>
>>> public bool IsReusable {get {return false;}}
>>>
>>> }
>>>
>>>
>>>
>>>
>>>
>>>
>>> "J J" <nospam@nospam.com> wrote in message
>>> news:e8oiun$83c$1@forums.macromedia.com...
>>>> Web.sitemap is the default name of the XML sitemap file used in asp
>>>> .net web sites. I am having trouble opening it in an embedded .swf on
>>>> any of my web pages.
>>>>
>>>> When I use the Flash command:
>>>>
>>>> myXml.load("Web.sitemap");
>>>>
>>>> I get an error. However when I change the file name and command to
>>>> 'Web.xml' it works. (it also works if I don't change the name, but run
>>>> the swf in flash player and not via the browser/web server)I suspect
>>>> this is a result of the browser not knowing what a '.sitemap' file
>>>> is???
>>>>
>>>> I can't change the name of this file for various reasons.
>>>>
>>>> So, how do I open an xml file called 'Web.sitemap' in a web page with
>>>> an embedded .swf????
>>>> JJ
>>>>
>>>
>>>
>>
>
Raymond Basque Guest
-
Raymond Basque #8
Re: Accessing web.sitemap XML file - completely stuck!
There are a number of ways to make it more difficult to retrieve the sitemap
data.
You could create a ticket number (quid) and assign it to the swf file in a
query string -- e.g. my.swf?ticket={GUID}. You would store the GUID
somewhere on the server (or in the session object) and check to see if it
exists when the sitemap data is requested:
var d:Date = new Date();
menu_xml.load("WebSiteMap.ashx?ticket={GUID}&qwert y=" +
d.getMilliseconds());
OR
You could write a handler the old fashioned way -- declare it as only
accepting the POST method in web.config -- and try using Flash's LoadVars
class the retrieve the data.
"J J" <nospam@nospam.com> wrote in message
news:e8orj4$hfq$1@forums.macromedia.com...> It works - I think there was some cacheing going on somewhere even though
> I was emptying my temp files on my browser each time.
> Could the flash player be caching its results..?
>
> The same question applies regarding security though. Does allowing access
> to the sitemap in this way open up the security problems that microsoft
> seem to think exist?
> Is there any way of limiting access to the handler/sitemap file to local
> access only (i.e. access from files on the actual site) besides naming the
> handler something strange and hoping that no one guesses the name....
>
> My reason for accessing the sitemap is to make menus based on its contents
> ( surely many would want to do this).
>
> JJ
>
>
> "J J" <nospam@nospam.com> wrote in message
> news:e8oqr5$gj3$1@forums.macromedia.com...>>> Though the handler does work if I access it directly in the browser. This
>> is looking more like a flash issue... could it be some sort of security
>> limitation....?
>>
>> I am running the test site on my local IIS server. As far as flash should
>> be concerned it should be accessing the handler/sitemap on the local
>> domain...
>>
>> I'm completely puzzled...
>>
>>
>> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
>> news:e8oo3t$doi$1@forums.macromedia.com...>>>>> From .net documentation:
>>> Implementing a custom site-map provider that stores site-map data in a
>>> file with a file name extension other than .sitemap is a potential
>>> security risk. By default, ASP.NET is configured to protect files with
>>> known file name extensions - such as .sitemap - from being downloaded by
>>> a client. To help protect your data, place any custom site-map data
>>> files that have a file name extension other than .sitemap in the
>>> App_Data folder. For more information, see Securing ASP.NET Site
>>> Navigation.
>>> Assuming you're using .net 2.0, what you could do is create a handler
>>> file (e.g. WebSiteMap.ashx) that returns the content of the xml file.
>>> Something like:
>>>
>>> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>>>
>>> using System;
>>> using System.Web;
>>>
>>> public class WebSiteMap: IHttpHandler {
>>>
>>> public void ProcessRequest (HttpContext context) {
>>>
>>> HttpRequest Request = context.Request;
>>> HttpResponse Response = context.Response;
>>> string filePath = Request.MapPath("web.sitemap");
>>>
>>> if (System.IO.File.Exists(filePath))
>>> {
>>> Response.ClearHeaders();
>>> Response.ClearContent();
>>> Response.Expires = 0;
>>> Response.Cache.SetCacheability(HttpCacheability.No Cache);
>>> Response.ContentType = "text/xml";
>>> Response.WriteFile(filePath);
>>> }
>>> else
>>> {
>>> Response.Write("<html>");
>>> Response.Write("<body>");
>>> Response.Write("<p>File not found.</p>");
>>> Response.Write("</body>");
>>> Response.Write("</html>");
>>> }
>>> }
>>>
>>> public bool IsReusable {get {return false;}}
>>>
>>> }
>>>
>>>
>>>
>>>
>>>
>>>
>>> "J J" <nospam@nospam.com> wrote in message
>>> news:e8oiun$83c$1@forums.macromedia.com...
>>>> Web.sitemap is the default name of the XML sitemap file used in asp
>>>> .net web sites. I am having trouble opening it in an embedded .swf on
>>>> any of my web pages.
>>>>
>>>> When I use the Flash command:
>>>>
>>>> myXml.load("Web.sitemap");
>>>>
>>>> I get an error. However when I change the file name and command to
>>>> 'Web.xml' it works. (it also works if I don't change the name, but run
>>>> the swf in flash player and not via the browser/web server)I suspect
>>>> this is a result of the browser not knowing what a '.sitemap' file
>>>> is???
>>>>
>>>> I can't change the name of this file for various reasons.
>>>>
>>>> So, how do I open an xml file called 'Web.sitemap' in a web page with
>>>> an embedded .swf????
>>>> JJ
>>>>
>>>
>>>
>>
>
Raymond Basque Guest
-
J J #9
Re: Accessing web.sitemap XML file - completely stuck!
OK so I got the handler working and my menus display fine.
However, I realise now that if I want to use roles in my web.sitemap file to
secure access to areas of my site, then I have just opened up a big security
problem by allowing read access to the web.sitemap file.
I see this as the only approach to get
Flash to diplay menu's based on the web.sitemap contents.:
i) Make the web.sitemap handler secure so that only the swf file can access
it (how..???)
ii) Program flash to read the handler output, and read a parameter that
indicates the current user role;
iii) Get flash to only display menu items that the current role is allowed
to see.
Item (i) is the real tricky one here....I'll take a look at your suggestion
of using a GUID - but this is a little above me so may need some more
accurate pointers...
Is there any other way (perhaps through a vb file on the web site) to only
allow that swf file access to the handler/web.sitemap contents?
"Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
news:e8os8f$i5f$1@forums.macromedia.com...> Puzzling! I got it to work on my local IIS.
>
> Here's the actionscript I used -- pretty much the same as yours -- and I
> get the xml data in my text field:
>
> var xml:XML = new XML();
>
> xml.onLoad = function(ok){
> if (ok){
> fldText.text = this.toString();
> }else{
> fldText.text = "error: XML not successfully loaded";
> }
> };
> xml.load("WebSiteMap.ashx");
>
>
> I don't see the security issue either. But I suppose someone could come up
> with a scenario where security would be an issue. You might want to query
> the microsoft groups.
>
>
> "J J" <nospam@nospam.com> wrote in message
> news:e8oqr5$gj3$1@forums.macromedia.com...>>> Though the handler does work if I access it directly in the browser. This
>> is looking more like a flash issue... could it be some sort of security
>> limitation....?
>>
>> I am running the test site on my local IIS server. As far as flash should
>> be concerned it should be accessing the handler/sitemap on the local
>> domain...
>>
>> I'm completely puzzled...
>>
>>
>> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
>> news:e8oo3t$doi$1@forums.macromedia.com...>>>>> From .net documentation:
>>> Implementing a custom site-map provider that stores site-map data in a
>>> file with a file name extension other than .sitemap is a potential
>>> security risk. By default, ASP.NET is configured to protect files with
>>> known file name extensions - such as .sitemap - from being downloaded by
>>> a client. To help protect your data, place any custom site-map data
>>> files that have a file name extension other than .sitemap in the
>>> App_Data folder. For more information, see Securing ASP.NET Site
>>> Navigation.
>>> Assuming you're using .net 2.0, what you could do is create a handler
>>> file (e.g. WebSiteMap.ashx) that returns the content of the xml file.
>>> Something like:
>>>
>>> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>>>
>>> using System;
>>> using System.Web;
>>>
>>> public class WebSiteMap: IHttpHandler {
>>>
>>> public void ProcessRequest (HttpContext context) {
>>>
>>> HttpRequest Request = context.Request;
>>> HttpResponse Response = context.Response;
>>> string filePath = Request.MapPath("web.sitemap");
>>>
>>> if (System.IO.File.Exists(filePath))
>>> {
>>> Response.ClearHeaders();
>>> Response.ClearContent();
>>> Response.Expires = 0;
>>> Response.Cache.SetCacheability(HttpCacheability.No Cache);
>>> Response.ContentType = "text/xml";
>>> Response.WriteFile(filePath);
>>> }
>>> else
>>> {
>>> Response.Write("<html>");
>>> Response.Write("<body>");
>>> Response.Write("<p>File not found.</p>");
>>> Response.Write("</body>");
>>> Response.Write("</html>");
>>> }
>>> }
>>>
>>> public bool IsReusable {get {return false;}}
>>>
>>> }
>>>
>>>
>>>
>>>
>>>
>>>
>>> "J J" <nospam@nospam.com> wrote in message
>>> news:e8oiun$83c$1@forums.macromedia.com...
>>>> Web.sitemap is the default name of the XML sitemap file used in asp
>>>> .net web sites. I am having trouble opening it in an embedded .swf on
>>>> any of my web pages.
>>>>
>>>> When I use the Flash command:
>>>>
>>>> myXml.load("Web.sitemap");
>>>>
>>>> I get an error. However when I change the file name and command to
>>>> 'Web.xml' it works. (it also works if I don't change the name, but run
>>>> the swf in flash player and not via the browser/web server)I suspect
>>>> this is a result of the browser not knowing what a '.sitemap' file
>>>> is???
>>>>
>>>> I can't change the name of this file for various reasons.
>>>>
>>>> So, how do I open an xml file called 'Web.sitemap' in a web page with
>>>> an embedded .swf????
>>>> JJ
>>>>
>>>
>>>
>>
>
J J Guest
-
J J #10
Re: Accessing web.sitemap XML file - completely stuck!
When you say "You could create a ticket number (quid) and assign it to the
swf file in a
query string -- e.g. my.swf?ticket={GUID}." I am not sure how I do this -
could I create the GUID and then send it to the flash movie as a FlashVars,
together with the user role indicator?
At the same time I'd have to set that GUID as a session object or store it
somewhere...as you mention....to check it later.
I think the session object sounds a more obvious approach as its specific to
a user session if roles are used. As long as that session object is secure
enough...
"J J" <nospam@nospam.com> wrote in message
news:e8qlvt$ipn$1@forums.macromedia.com...> OK so I got the handler working and my menus display fine.
>
> However, I realise now that if I want to use roles in my web.sitemap file
> to secure access to areas of my site, then I have just opened up a big
> security problem by allowing read access to the web.sitemap file.
>
> I see this as the only approach to get
> Flash to diplay menu's based on the web.sitemap contents.:
>
> i) Make the web.sitemap handler secure so that only the swf file can
> access
> it (how..???)
> ii) Program flash to read the handler output, and read a parameter that
> indicates the current user role;
> iii) Get flash to only display menu items that the current role is allowed
> to see.
>
> Item (i) is the real tricky one here....I'll take a look at your
> suggestion of using a GUID - but this is a little above me so may need
> some more accurate pointers...
>
> Is there any other way (perhaps through a vb file on the web site) to only
> allow that swf file access to the handler/web.sitemap contents?
>
>
>
> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
> news:e8os8f$i5f$1@forums.macromedia.com...>>> Puzzling! I got it to work on my local IIS.
>>
>> Here's the actionscript I used -- pretty much the same as yours -- and I
>> get the xml data in my text field:
>>
>> var xml:XML = new XML();
>>
>> xml.onLoad = function(ok){
>> if (ok){
>> fldText.text = this.toString();
>> }else{
>> fldText.text = "error: XML not successfully loaded";
>> }
>> };
>> xml.load("WebSiteMap.ashx");
>>
>>
>> I don't see the security issue either. But I suppose someone could come
>> up with a scenario where security would be an issue. You might want to
>> query the microsoft groups.
>>
>>
>> "J J" <nospam@nospam.com> wrote in message
>> news:e8oqr5$gj3$1@forums.macromedia.com...>>>>> Though the handler does work if I access it directly in the browser.
>>> This is looking more like a flash issue... could it be some sort of
>>> security limitation....?
>>>
>>> I am running the test site on my local IIS server. As far as flash
>>> should be concerned it should be accessing the handler/sitemap on the
>>> local domain...
>>>
>>> I'm completely puzzled...
>>>
>>>
>>> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
>>> news:e8oo3t$doi$1@forums.macromedia.com...
>>>> From .net documentation:
>>>> Implementing a custom site-map provider that stores site-map data in a
>>>> file with a file name extension other than .sitemap is a potential
>>>> security risk. By default, ASP.NET is configured to protect files with
>>>> known file name extensions - such as .sitemap - from being downloaded
>>>> by a client. To help protect your data, place any custom site-map data
>>>> files that have a file name extension other than .sitemap in the
>>>> App_Data folder. For more information, see Securing ASP.NET Site
>>>> Navigation.
>>>> Assuming you're using .net 2.0, what you could do is create a handler
>>>> file (e.g. WebSiteMap.ashx) that returns the content of the xml file.
>>>> Something like:
>>>>
>>>> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>>>>
>>>> using System;
>>>> using System.Web;
>>>>
>>>> public class WebSiteMap: IHttpHandler {
>>>>
>>>> public void ProcessRequest (HttpContext context) {
>>>>
>>>> HttpRequest Request = context.Request;
>>>> HttpResponse Response = context.Response;
>>>> string filePath = Request.MapPath("web.sitemap");
>>>>
>>>> if (System.IO.File.Exists(filePath))
>>>> {
>>>> Response.ClearHeaders();
>>>> Response.ClearContent();
>>>> Response.Expires = 0;
>>>> Response.Cache.SetCacheability(HttpCacheability.No Cache);
>>>> Response.ContentType = "text/xml";
>>>> Response.WriteFile(filePath);
>>>> }
>>>> else
>>>> {
>>>> Response.Write("<html>");
>>>> Response.Write("<body>");
>>>> Response.Write("<p>File not found.</p>");
>>>> Response.Write("</body>");
>>>> Response.Write("</html>");
>>>> }
>>>> }
>>>>
>>>> public bool IsReusable {get {return false;}}
>>>>
>>>> }
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> "J J" <nospam@nospam.com> wrote in message
>>>> news:e8oiun$83c$1@forums.macromedia.com...
>>>>> Web.sitemap is the default name of the XML sitemap file used in asp
>>>>> .net web sites. I am having trouble opening it in an embedded .swf on
>>>>> any of my web pages.
>>>>>
>>>>> When I use the Flash command:
>>>>>
>>>>> myXml.load("Web.sitemap");
>>>>>
>>>>> I get an error. However when I change the file name and command to
>>>>> 'Web.xml' it works. (it also works if I don't change the name, but run
>>>>> the swf in flash player and not via the browser/web server)I suspect
>>>>> this is a result of the browser not knowing what a '.sitemap' file
>>>>> is???
>>>>>
>>>>> I can't change the name of this file for various reasons.
>>>>>
>>>>> So, how do I open an xml file called 'Web.sitemap' in a web page with
>>>>> an embedded .swf????
>>>>> JJ
>>>>>
>>>>
>>>>
>>>
>>>
>>
>
J J Guest
-
J J #11
Re: Accessing web.sitemap XML file - completely stuck!
Actually, I just had a thought. I could get the handler to limit the access
based on the current users role, so that I wouldn't have to change my flash
file at all.
That way, flash would only be fed the imformation it is allowed to see...
How does that sound ??(in theory - probably difficult in practise!!). At
least then no 'secure' information is being passed beyond the handler..
"J J" <nospam@nospam.com> wrote in message
news:e8qms1$jnh$1@forums.macromedia.com...> When you say "You could create a ticket number (quid) and assign it to the
> swf file in a
> query string -- e.g. my.swf?ticket={GUID}." I am not sure how I do this -
> could I create the GUID and then send it to the flash movie as a
> FlashVars, together with the user role indicator?
>
> At the same time I'd have to set that GUID as a session object or store it
> somewhere...as you mention....to check it later.
> I think the session object sounds a more obvious approach as its specific
> to a user session if roles are used. As long as that session object is
> secure enough...
>
>
> "J J" <nospam@nospam.com> wrote in message
> news:e8qlvt$ipn$1@forums.macromedia.com...>>> OK so I got the handler working and my menus display fine.
>>
>> However, I realise now that if I want to use roles in my web.sitemap file
>> to secure access to areas of my site, then I have just opened up a big
>> security problem by allowing read access to the web.sitemap file.
>>
>> I see this as the only approach to get
>> Flash to diplay menu's based on the web.sitemap contents.:
>>
>> i) Make the web.sitemap handler secure so that only the swf file can
>> access
>> it (how..???)
>> ii) Program flash to read the handler output, and read a parameter that
>> indicates the current user role;
>> iii) Get flash to only display menu items that the current role is
>> allowed
>> to see.
>>
>> Item (i) is the real tricky one here....I'll take a look at your
>> suggestion of using a GUID - but this is a little above me so may need
>> some more accurate pointers...
>>
>> Is there any other way (perhaps through a vb file on the web site) to
>> only allow that swf file access to the handler/web.sitemap contents?
>>
>>
>>
>> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
>> news:e8os8f$i5f$1@forums.macromedia.com...>>>>> Puzzling! I got it to work on my local IIS.
>>>
>>> Here's the actionscript I used -- pretty much the same as yours -- and
>>> I get the xml data in my text field:
>>>
>>> var xml:XML = new XML();
>>>
>>> xml.onLoad = function(ok){
>>> if (ok){
>>> fldText.text = this.toString();
>>> }else{
>>> fldText.text = "error: XML not successfully loaded";
>>> }
>>> };
>>> xml.load("WebSiteMap.ashx");
>>>
>>>
>>> I don't see the security issue either. But I suppose someone could come
>>> up with a scenario where security would be an issue. You might want to
>>> query the microsoft groups.
>>>
>>>
>>> "J J" <nospam@nospam.com> wrote in message
>>> news:e8oqr5$gj3$1@forums.macromedia.com...
>>>> Though the handler does work if I access it directly in the browser.
>>>> This is looking more like a flash issue... could it be some sort of
>>>> security limitation....?
>>>>
>>>> I am running the test site on my local IIS server. As far as flash
>>>> should be concerned it should be accessing the handler/sitemap on the
>>>> local domain...
>>>>
>>>> I'm completely puzzled...
>>>>
>>>>
>>>> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
>>>> news:e8oo3t$doi$1@forums.macromedia.com...
>>>>> From .net documentation:
>>>>> Implementing a custom site-map provider that stores site-map data in a
>>>>> file with a file name extension other than .sitemap is a potential
>>>>> security risk. By default, ASP.NET is configured to protect files with
>>>>> known file name extensions - such as .sitemap - from being downloaded
>>>>> by a client. To help protect your data, place any custom site-map data
>>>>> files that have a file name extension other than .sitemap in the
>>>>> App_Data folder. For more information, see Securing ASP.NET Site
>>>>> Navigation.
>>>>> Assuming you're using .net 2.0, what you could do is create a handler
>>>>> file (e.g. WebSiteMap.ashx) that returns the content of the xml file.
>>>>> Something like:
>>>>>
>>>>> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>>>>>
>>>>> using System;
>>>>> using System.Web;
>>>>>
>>>>> public class WebSiteMap: IHttpHandler {
>>>>>
>>>>> public void ProcessRequest (HttpContext context) {
>>>>>
>>>>> HttpRequest Request = context.Request;
>>>>> HttpResponse Response = context.Response;
>>>>> string filePath = Request.MapPath("web.sitemap");
>>>>>
>>>>> if (System.IO.File.Exists(filePath))
>>>>> {
>>>>> Response.ClearHeaders();
>>>>> Response.ClearContent();
>>>>> Response.Expires = 0;
>>>>> Response.Cache.SetCacheability(HttpCacheability.No Cache);
>>>>> Response.ContentType = "text/xml";
>>>>> Response.WriteFile(filePath);
>>>>> }
>>>>> else
>>>>> {
>>>>> Response.Write("<html>");
>>>>> Response.Write("<body>");
>>>>> Response.Write("<p>File not found.</p>");
>>>>> Response.Write("</body>");
>>>>> Response.Write("</html>");
>>>>> }
>>>>> }
>>>>>
>>>>> public bool IsReusable {get {return false;}}
>>>>>
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> "J J" <nospam@nospam.com> wrote in message
>>>>> news:e8oiun$83c$1@forums.macromedia.com...
>>>>>> Web.sitemap is the default name of the XML sitemap file used in asp
>>>>>> .net web sites. I am having trouble opening it in an embedded .swf on
>>>>>> any of my web pages.
>>>>>>
>>>>>> When I use the Flash command:
>>>>>>
>>>>>> myXml.load("Web.sitemap");
>>>>>>
>>>>>> I get an error. However when I change the file name and command to
>>>>>> 'Web.xml' it works. (it also works if I don't change the name, but
>>>>>> run the swf in flash player and not via the browser/web server)I
>>>>>> suspect this is a result of the browser not knowing what a '.sitemap'
>>>>>> file is???
>>>>>>
>>>>>> I can't change the name of this file for various reasons.
>>>>>>
>>>>>> So, how do I open an xml file called 'Web.sitemap' in a web page with
>>>>>> an embedded .swf????
>>>>>> JJ
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>
J J Guest
-
J J #12
Re: Accessing web.sitemap XML file - completely stuck!
This is exactly what I did in the end - though it wasn't as easy as it
sounds.
If anyone wants more details please reply to this post.
JJ
"J J" <nospam@nospam.com> wrote in message
news:e8qngu$kbl$1@forums.macromedia.com...> Actually, I just had a thought. I could get the handler to limit the
> access based on the current users role, so that I wouldn't have to change
> my flash file at all.
> That way, flash would only be fed the imformation it is allowed to see...
>
> How does that sound ??(in theory - probably difficult in practise!!). At
> least then no 'secure' information is being passed beyond the handler..
>
>
> "J J" <nospam@nospam.com> wrote in message
> news:e8qms1$jnh$1@forums.macromedia.com...>>> When you say "You could create a ticket number (quid) and assign it to
>> the swf file in a
>> query string -- e.g. my.swf?ticket={GUID}." I am not sure how I do this -
>> could I create the GUID and then send it to the flash movie as a
>> FlashVars, together with the user role indicator?
>>
>> At the same time I'd have to set that GUID as a session object or store
>> it somewhere...as you mention....to check it later.
>> I think the session object sounds a more obvious approach as its specific
>> to a user session if roles are used. As long as that session object is
>> secure enough...
>>
>>
>> "J J" <nospam@nospam.com> wrote in message
>> news:e8qlvt$ipn$1@forums.macromedia.com...>>>>> OK so I got the handler working and my menus display fine.
>>>
>>> However, I realise now that if I want to use roles in my web.sitemap
>>> file to secure access to areas of my site, then I have just opened up a
>>> big security problem by allowing read access to the web.sitemap file.
>>>
>>> I see this as the only approach to get
>>> Flash to diplay menu's based on the web.sitemap contents.:
>>>
>>> i) Make the web.sitemap handler secure so that only the swf file can
>>> access
>>> it (how..???)
>>> ii) Program flash to read the handler output, and read a parameter that
>>> indicates the current user role;
>>> iii) Get flash to only display menu items that the current role is
>>> allowed
>>> to see.
>>>
>>> Item (i) is the real tricky one here....I'll take a look at your
>>> suggestion of using a GUID - but this is a little above me so may need
>>> some more accurate pointers...
>>>
>>> Is there any other way (perhaps through a vb file on the web site) to
>>> only allow that swf file access to the handler/web.sitemap contents?
>>>
>>>
>>>
>>> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
>>> news:e8os8f$i5f$1@forums.macromedia.com...
>>>> Puzzling! I got it to work on my local IIS.
>>>>
>>>> Here's the actionscript I used -- pretty much the same as yours -- and
>>>> I get the xml data in my text field:
>>>>
>>>> var xml:XML = new XML();
>>>>
>>>> xml.onLoad = function(ok){
>>>> if (ok){
>>>> fldText.text = this.toString();
>>>> }else{
>>>> fldText.text = "error: XML not successfully loaded";
>>>> }
>>>> };
>>>> xml.load("WebSiteMap.ashx");
>>>>
>>>>
>>>> I don't see the security issue either. But I suppose someone could come
>>>> up with a scenario where security would be an issue. You might want to
>>>> query the microsoft groups.
>>>>
>>>>
>>>> "J J" <nospam@nospam.com> wrote in message
>>>> news:e8oqr5$gj3$1@forums.macromedia.com...
>>>>> Though the handler does work if I access it directly in the browser.
>>>>> This is looking more like a flash issue... could it be some sort of
>>>>> security limitation....?
>>>>>
>>>>> I am running the test site on my local IIS server. As far as flash
>>>>> should be concerned it should be accessing the handler/sitemap on the
>>>>> local domain...
>>>>>
>>>>> I'm completely puzzled...
>>>>>
>>>>>
>>>>> "Raymond Basque" <NOSPAMrbasque@videotron.caNOSPAM> wrote in message
>>>>> news:e8oo3t$doi$1@forums.macromedia.com...
>>>>>> From .net documentation:
>>>>>> Implementing a custom site-map provider that stores site-map data in
>>>>>> a file with a file name extension other than .sitemap is a potential
>>>>>> security risk. By default, ASP.NET is configured to protect files
>>>>>> with known file name extensions - such as .sitemap - from being
>>>>>> downloaded by a client. To help protect your data, place any custom
>>>>>> site-map data files that have a file name extension other than
>>>>>> .sitemap in the App_Data folder. For more information, see Securing
>>>>>> ASP.NET Site Navigation.
>>>>>> Assuming you're using .net 2.0, what you could do is create a handler
>>>>>> file (e.g. WebSiteMap.ashx) that returns the content of the xml file.
>>>>>> Something like:
>>>>>>
>>>>>> <%@ WebHandler Language="C#" Class="WebSiteMap" %>
>>>>>>
>>>>>> using System;
>>>>>> using System.Web;
>>>>>>
>>>>>> public class WebSiteMap: IHttpHandler {
>>>>>>
>>>>>> public void ProcessRequest (HttpContext context) {
>>>>>>
>>>>>> HttpRequest Request = context.Request;
>>>>>> HttpResponse Response = context.Response;
>>>>>> string filePath = Request.MapPath("web.sitemap");
>>>>>>
>>>>>> if (System.IO.File.Exists(filePath))
>>>>>> {
>>>>>> Response.ClearHeaders();
>>>>>> Response.ClearContent();
>>>>>> Response.Expires = 0;
>>>>>> Response.Cache.SetCacheability(HttpCacheability.No Cache);
>>>>>> Response.ContentType = "text/xml";
>>>>>> Response.WriteFile(filePath);
>>>>>> }
>>>>>> else
>>>>>> {
>>>>>> Response.Write("<html>");
>>>>>> Response.Write("<body>");
>>>>>> Response.Write("<p>File not found.</p>");
>>>>>> Response.Write("</body>");
>>>>>> Response.Write("</html>");
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> public bool IsReusable {get {return false;}}
>>>>>>
>>>>>> }
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> "J J" <nospam@nospam.com> wrote in message
>>>>>> news:e8oiun$83c$1@forums.macromedia.com...
>>>>>>> Web.sitemap is the default name of the XML sitemap file used in asp
>>>>>>> .net web sites. I am having trouble opening it in an embedded .swf
>>>>>>> on any of my web pages.
>>>>>>>
>>>>>>> When I use the Flash command:
>>>>>>>
>>>>>>> myXml.load("Web.sitemap");
>>>>>>>
>>>>>>> I get an error. However when I change the file name and command to
>>>>>>> 'Web.xml' it works. (it also works if I don't change the name, but
>>>>>>> run the swf in flash player and not via the browser/web server)I
>>>>>>> suspect this is a result of the browser not knowing what a
>>>>>>> '.sitemap' file is???
>>>>>>>
>>>>>>> I can't change the name of this file for various reasons.
>>>>>>>
>>>>>>> So, how do I open an xml file called 'Web.sitemap' in a web page
>>>>>>> with an embedded .swf????
>>>>>>> JJ
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>
J J Guest



Reply With Quote

