Forum Moderators: open

Message Too Old, No Replies

Firefox and VBScript on ASP pages

         

vkwebcommander

2:18 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



Hello,

I apologize if this question has already been asked. I cannot search the forums from work (blocked). I am new to Firefox and I really like this browser. However, the following line of code is being written to the screen on some of my pages.

<%@ Language=VBScript%>

Everything displays properly on the first page (root site), but the above line of code is being written to my sub sites. I link to this page (df_nav.asp) from every sub site like this:

<frame src="../df_nav.asp" name="navFrame" scrolling="NO" noresize>

Is this correct?

Thanks for any help,

Tammi

Easy_Coder

5:04 pm on Oct 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're seeing this in the view source:
<%@ Language=VBScript%>

Then check the server to make sure it processes asp pages. The serverside code should not be making it to the client like that.

vkwebcommander

5:53 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



Easy_Coder,

Thank you for the reply. We have had nothing but trouble with our websites since we moved to MS Server 2003 and IIS 6. Can you please tell me the steps I need to take to ensure the server is processing my ASP pages?

Thanks,

Tammi

Easy_Coder

7:17 pm on Oct 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



-->MS Server 2003 and IIS 6

Launch the Internet Information Services console. It's in your Admin Tools folder.

Expand the site that's under the IIS Root, locate Web Service Extensions and click on it. Over on the right click on ASP Pages and then click the 'Allow' button.

vkwebcommander

7:36 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



Easy_Coder,

I have done this already. I thought I read somewhere that the code being written to the page can occur when you link to the page a certain way. Do you know anything about this?

For example, from the root (where it works properly), I call that page like this:

df_nav.asp

However, from the virtual websites, I call that page like this:

../df_nav.asp

Any other ideas?

Thanks,

Tammi

Easy_Coder

7:56 pm on Oct 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmmm, I'm having faint memories of this being a browsecap.ini issue. I have to search for it though. I don't recall the resolution.

vkwebcommander

2:24 pm on Oct 26, 2005 (gmt 0)

10+ Year Member



Please keep me updated.

Thanks,

Tammi

deadbird

12:16 am on Nov 3, 2005 (gmt 0)

10+ Year Member



Make sure you don't have "script access" checked per website's properties.

vkwebcommander

1:39 pm on Nov 4, 2005 (gmt 0)

10+ Year Member



deadbird,

Is this an IIS setting? How/where do I check it?

Thanks,

Tammi

Jimmy Turnip

10:41 am on Nov 7, 2005 (gmt 0)

10+ Year Member



You could put this in your web.config under the system.web tag (or even machine.config if you want to make it apply to all sites) and it will treat firefox as if it was IE:

<browserCaps>
<case match="Gecko/[-\d]+">
browser=Netscape
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="r1.0[^\.](?'letters'\w*)">
version=6.0
majorversion=6
minorversion=0
<case match="^b" with="${letters}">
beta=true
</case>
</case>
<case match="rv:1(\.\d+)(\.\d)?(?'letters'\w*)">
version=7.0
majorversion=7
minorversion=0
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case>
</browserCaps>

I know this isn't a direct solution to your server problem but it should provide a workaround or at least give you the starting blocks for creating your own solution using browserCaps. Google 'browserCaps' for more information.

Jimmy

tetra

12:53 pm on Nov 7, 2005 (gmt 0)

10+ Year Member



I am chinese.my written english is poor.
excuse me /
============================================
I think your issue maybe that

IIS => WEBSITE => Property=>home directory =>configure(button)=>option(button)=>open root path(make it checked )

=========================================
my msn

: syq180@hotmail.com

vkwebcommander

1:54 pm on Nov 8, 2005 (gmt 0)

10+ Year Member



"You could put this in your web.config under the system.web tag (or even machine.config if you want to make it apply to all sites) and it will treat firefox as if it was IE:"

Thanks for the reply Jimmy, but I cannot seem to locate any .config file on my computer. I am running Windows XP, does this make a difference?

Thanks,

Tammi

Jimmy Turnip

12:24 pm on Nov 9, 2005 (gmt 0)

10+ Year Member



If your website doesn't have a Web.config file, create a new text file in the root of your website and rename it Web.config

Open the text file and fill with:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<browserCaps>
<case match="Gecko/[-\d]+">
browser=Netscape
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="rv:1.0[^\.](?'letters'\w*)">
version=6.0
majorversion=6
minorversion=0
<case match="^b" with="${letters}">
beta=true
</case>
</case>
<case match="rv:1(\.\d+)(\.\d)?(?'letters'\w*)">
version=7.0
majorversion=7
minorversion=0
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case>
</browserCaps>
</system.web>
</configuration>

Save and then look at your website again with firefox.