473,763 Members | 7,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enabling Javascript with Master Pages and Treeview

3 New Member
I am developing a web site in vb.net 2.0 using a master page, with a custom Treeview control populated by a database query. Clicking on a certain Treeview menu item opens a page with a 3rd-party viewer in a content placeholder, using a simple Response.Redire ct on the TreeView1_Selec tedNodeChanged event.
Now, I need to call a javascript function (from the 3rd-party) to retrieve and load a drawing image into the viewer. As soon as I insert "<script type="text/javascript" src='./spicer_fileops. js'/>" in the masterpage (head or body) I get an "Object expected" error when I click the menu item. At this point I haven't even tried to call any functions in the js, just included the above line in the master page source. What's going on?
Aug 22 '07 #1
3 1645
kenobewan
4,871 Recognized Expert Specialist
Maybe your path to the js file is wrong? As you seem reluctant to do any testing this information may not be useful.
Aug 22 '07 #2
RayK50
3 New Member
The problem isn't running the js function (that may come later), since just adding the javascript reference creates the problem, as I stated. The path is correct.
Aug 22 '07 #3
kenobewan
4,871 Recognized Expert Specialist
Then that leaves you with debugging your JS file, which object is missing?
Aug 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3118
by: Juanjo | last post by:
I need to know how to maintain de status (nodes expanded and selected) of a treeview in a master page. I have a master page with a treeview. I have a default page, when the treeview is expanded and a node is selected then redirects to a another page Response.Redirect("Page2.aspx") And run's ok, but the treeview in this page is colapsed. The treeview maintain its aspect, the images for the nodes, etc, but is colapsed and
0
1172
by: Greg | last post by:
Hi, I'm trying to use the TreeView control in .NET 2.0 along with master pages and have encountered a problem. I have a master page for my site... pretty standard... on that page I have my treeview wrapped inside a <FORM> because it is required that reads from a .sitemap file. However - on one of my pages I want to have a contact form... but I can only have 1 form on a page. On my other pages I do not want to have a contact form.
2
1782
by: damiensawyer | last post by:
Hello all, I'm wondering if someone can help me with an issue. I have a master page that has a treeview control on it (inside an ascx file). Also on the master page I have a content placeholder which contains the various pages of my application. I wish to have the treeview control displayed at all times during the application.
17
3160
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content pages? Kinda sorta a critical point no? Am I missing something? Rob. P.S. the day I find a book that actually is useful rather than just a
0
1318
by: BillE | last post by:
PROBLEM SUMMARY -- I use "Response.Cache.SetCacheability(HTTPCacheability.NoCache)" to force a page to reload instead of displaying cached content. However, I don't really want to reload the page since the data may still be inconsistent, if the page was called from a url and based on values in a querystring. I'm using VS 2005, VB.NET. DETAILS --
8
2608
by: Frank | last post by:
Hi, I am working with VS.NET 2005 Ultimately, I wish to call a JavaScript function from a .js file
1
1573
by: Vincenzo Milazzo | last post by:
Hi, I have a master page with a treeview control on the left. The treeview's nodes are populated ondemand (property Value and NavigateUrl). When I click on the node the property NavigateUrl loads a content page on the right. The problem is that the treeview doesn't save the state and I must click the treeview's nodes again to open the tree. How can I save the treeview state ? I don't want to populate the tree's nodes everytime I click...
3
1276
by: Steve B. | last post by:
Hi, I've build a corporate application that have a dozen of pages that use a master page. I'd like to add in each page a list of possible actions in a "task pane". The design of this pane is common for all pages, but the tasks are page specific. What is the best way to reach my goal ?
1
4889
by: =?Utf-8?B?QnJpYW4=?= | last post by:
I have a master page that contains a simple treeview populated using a SiteMapDataSource so the data is static. Here is my problem. When I expand the menu to show the 2nd level treeview items and then click on one to move to the selected page, when the new page is displayed the treeview has reverted back to it's original non-expanded state. What is the best way to maintain the expanded/collapsed state of the master page treeview while...
0
9563
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...
1
9937
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8821
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
7366
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
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
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
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
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.