473,473 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error in Smart Navigation + Javascript

I have enabled smart navigation for my ASP.Net web application.
It works fine except for some of my pages where I'm using some Javascript
code to open a page in a new window on a button click.
Here is a sample Javascript code which I'm using

Response.Write("<script language='javascript'>")
Response.Write("window.open('POREP01.aspx')")
Response.Write("</script")
Response.Write(">")

The error message which I'm getting is
'htmlfile:Invalid pointer'

A page http://localhost/aspnet_client/syste...52/SmartNav.js is
opened in debug mode in Visual Studio.Net,

and it breaks at the line

hdm.appendChild(k);

Is this a bug?

Regards,
Priya
Nov 18 '05 #1
1 1453
How about using RegisterStartupScript instead?

RegisterStartupScript("Startup", "<script
language='javascript'>window.open('POREP01.aspx')</script>")

"Priya" <ma**************@hotmail.com> wrote in message
news:eb**************@tk2msftngp13.phx.gbl...
I have enabled smart navigation for my ASP.Net web application.
It works fine except for some of my pages where I'm using some Javascript
code to open a page in a new window on a button click.
Here is a sample Javascript code which I'm using

Response.Write("<script language='javascript'>")
Response.Write("window.open('POREP01.aspx')")
Response.Write("</script")
Response.Write(">")

The error message which I'm getting is
'htmlfile:Invalid pointer'

A page http://localhost/aspnet_client/syste...52/SmartNav.js is opened in debug mode in Visual Studio.Net,

and it breaks at the line

hdm.appendChild(k);

Is this a bug?

Regards,
Priya

Nov 18 '05 #2

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

Similar topics

6
by: anon | last post by:
How *EXACTLY* does Smart Navigation work? (I would really really really like for this Smart Navigation to work in Mozilla.) The inner workings and the code is what I am looking for. Does it...
0
by: Jason Rodman | last post by:
I have been working on a web app that uses IFrames for our edit screens. A main window contains static information, while an IFrame contains the editable page. I use javascript from the outer page...
2
by: Jay | last post by:
I have used Smart Navigation on several projects and it works wonderfully. For my last project I used some javascript menus. SmartNavigation caused them to not function. So I used SmartScoller...
1
by: Andy Pickering | last post by:
I'm having a major problem with smart navigation. My page uses the javascript 'setTimeout' function to automatically refresh the page after n seconds (it calls __doPostBack). When I turn on smart...
10
by: RodBillett | last post by:
Using SmartNavigation. Windows2003 Server Framework 1.0 (3705) IIS6 and I have IIS configured to utilize the 1.0 framework. Any Ideas why I would be getting the following jscript error within...
3
by: Devin | last post by:
I am having a problem of SmartNavigation, wher eit works fine on the test server, but not on the server that I load it up to. I tried placing "page.smartnavigation=false" right before I redirect, but...
1
by: thomson | last post by:
Hi all, i have enabled Smart Navigation in the Page attribute, My Webform has several Webform controls, all applied with style sheets from an external file. Problem --------- When a postback...
3
by: roger31 | last post by:
My problem is to provide Customized smart navigation for any page in my website. I plan to divide my pages into sections and when I navigate from one page to another I would like any section within...
3
by: ajfish | last post by:
Hi, I have a web form with smart navigation turned on. the html has an onload event which calls a javascript function and the contents of this function are dynamically generated on the server...
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...
1
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
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.