473,378 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

menu js in webresource

vs2005 .net 2.0
I have a simple site with a sitemap file and a masterpage that contains a
menu which uses the sitemap as its datasource.

when I browse the site within studio everything works fine.
when i deploy to a site on the same server using a web deployment project
and browse the deployed site I get a lot of javascript errors.

the menu script is of course included in the page as a webresource
if I download just the menu script by using the resource url , it turns out
that the script served up by the deployed site is different ( and full or
errors ) than that served up by studio's internal web server.
if I open the deployed web site in studio and browse the script using the
internal web server returned is again ok.
If I "Copy Website" the deployed site to a site on another physical server
the script served up from the remote site is good.

Does anyone know how exactly this script is generated - is there a template
somewhere or is it generated on the fly ?
And why am I consistently getting this messed up version from the deployed
web site via IIS but not through studios internal server ?

The first bit of each script file is included below.

Gerry
The good file from within studio :

var __rootMenuItem;
var __menuInterval;
var __scrollPanel;
var __disappearAfter = 500;
function Menu_ClearInterval() {
if (__menuInterval) {
window.clearInterval(__menuInterval);
}
}
function Menu_Collapse(item) {
Menu_SetRoot(item);
if (__rootMenuItem) {
Menu_ClearInterval();
if (__disappearAfter >= 0) {
__menuInterval = window.setInterval("Menu_HideItems()",
__disappearAfter);
}
}
}
And here is what should be the same script as served up by the deployed site
with the script errors pointed out :

var __rootMenuItem;
var __menuInterval;
var __scrollPanel; var __disappearAfter = 500;
function Menu_ClearInterval() {
0 if (__menuInterval) {
window.clearInterval(__menuInTerval);
}
}
function Mene_Collapse(item) {
Menu_SetRoot(item);
if (__rootMenuItem) {
Menu_ClearInterv`l();
if (__disappearAfter >= 0) {
__menuINterval = window.setInterval("Menu_HideItems()",
__disappearAfteR);
}
}
}
Feb 19 '07 #1
0 1007

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

Similar topics

8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
2
by: Håkan | last post by:
I have a problem with WebResource.axd Most of the requests to this site work just fine but every now and then I recive described below: Date: 2007-02-13 15:20 ...
1
by: =?Utf-8?B?TWF5?= | last post by:
We are getting WebForm_DoPostBackWithOptions is not defined and other Java script errors related to WebResource.axd file. I narrowed down the problem and found out the cause but can't come up with...
0
by: dotnetabhi | last post by:
I am using ASP.Net 2.0 Menu control, it works fine when application is placed outside folder \xyz and inside \abc\xyz it doesnt shows proper menu ( it works fine in IE 7 and Mozilla...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.