473,405 Members | 2,279 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,405 software developers and data experts.

Enabling Javascript with Master Pages and Treeview

3
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.Redirect on the TreeView1_SelectedNodeChanged 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 1624
kenobewan
4,871 Expert 4TB
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
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 Expert 4TB
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
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...
0
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...
2
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...
17
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...
0
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...
8
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
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...
3
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...
1
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.