473,503 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.open(... causes an error on the ISP but not on the development system

If the user clicks an anchor and request a popup window displaying an image

<a href="javascript:openWindow(...

The function in the folder javascript:

openWindow(..

uses window.open(... to display the image in a new window.

This works OK on my machine.

But on the ISP's all that happens is IE displays at the bottom left the
message:

Error on page.

I have no idea how to debug something on the ISP's machine that works on
mine.

Got any idea what could possibly be causing this?

Thanks in advance


Nov 7 '08 #1
11 1222
If you could give web address, I would have even debugged it. Javascripts
are easy to debug even on remote machines.

May be you can use firefox once. In the error console, your actual error can
be found. In internet explorer, you need to enable debugging from options.

Most probably, some path problem.

--
Vinay Khaitan
[Windows Forms Layout Control]
http://www.smart-components.com/
----------------------------------------------------------------
"AAaron123" <aa*******@roadrunner.comwrote in message
news:e8**************@TK2MSFTNGP02.phx.gbl...
If the user clicks an anchor and request a popup window displaying an
image

<a href="javascript:openWindow(...

The function in the folder javascript:

openWindow(..

uses window.open(... to display the image in a new window.

This works OK on my machine.

But on the ISP's all that happens is IE displays at the bottom left the
message:

Error on page.

I have no idea how to debug something on the ISP's machine that works on
mine.

Got any idea what could possibly be causing this?

Thanks in advance


Nov 7 '08 #2
Firefox's error console was all I needed to find the bug. Glad I now know
about that!
Thanks

"Vinay Khaitan" <vk******@gmail.comwrote in message
news:ek*************@TK2MSFTNGP04.phx.gbl...
If you could give web address, I would have even debugged it. Javascripts
are easy to debug even on remote machines.

May be you can use firefox once. In the error console, your actual error
can be found. In internet explorer, you need to enable debugging from
options.

Most probably, some path problem.

--
Vinay Khaitan
[Windows Forms Layout Control]
http://www.smart-components.com/
----------------------------------------------------------------
"AAaron123" <aa*******@roadrunner.comwrote in message
news:e8**************@TK2MSFTNGP02.phx.gbl...
>If the user clicks an anchor and request a popup window displaying an
image

<a href="javascript:openWindow(...

The function in the folder javascript:

openWindow(..

uses window.open(... to display the image in a new window.

This works OK on my machine.

But on the ISP's all that happens is IE displays at the bottom left the
message:

Error on page.

I have no idea how to debug something on the ISP's machine that works on
mine.

Got any idea what could possibly be causing this?

Thanks in advance



Nov 7 '08 #3
"AAaron123" <aa*******@roadrunner.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
FireFox's error console was all I needed to find the bug. Glad I now know
about that!
If you also develop against IE, then you definitely need this:
http://www.microsoft.com/downloads/d...displaylang=en
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 7 '08 #4
If you also develop against IE, then you definitely need this:
http://www.microsoft.com/downloads/d...displaylang=en
While we are at it, let us also have the firefox equivalent.
Firebug

https://addons.mozilla.org/en-US/firefox/addon/1843

It is better than IE developer toolbar.
BTW, it looks like AAron didn't have IE debugging on. Otherwise, IE even
opens debugger to debug javascript problem. If aaron didn't know how to open
debugger in IE for remote application, he could ahve asked for it.

--
Vinay Khaitan
[Windows Forms Layout Control]
http://www.smart-components.com/
----------------------------------------------------------------
Nov 8 '08 #5

"Vinay Khaitan" <vk******@gmail.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>If you also develop against IE, then you definitely need this:
http://www.microsoft.com/downloads/d...displaylang=en
While we are at it, let us also have the firefox equivalent.
Firebug

https://addons.mozilla.org/en-US/firefox/addon/1843

It is better than IE developer toolbar.
BTW, it looks like AAron didn't have IE debugging on. Otherwise, IE even
opens debugger to debug javascript problem. If aaron didn't know how to
open debugger in IE for remote application, he could ahve asked for it.

--
Vinay Khaitan
[Windows Forms Layout Control]
http://www.smart-components.com/
----------------------------------------------------------------
I got it, thanks. I do seem to have more trouble with Firefox then with IE.
Mostly I find a way to get it to display correctly, but
I could never get Firefox to color scroll bars like IE does.

I have in the file ColorScrollbar.js
var htmlStyle = document.getElementsByTagName('html')[0].style;

var bodyStyle = document.body.style;

bodyStyle.scrollbarShadowColor = htmlStyle.scrollbarShadowColor = 'orange';

....more like the last line...
I insert it with this
<script type="text/javascript"
src="..\JavaScripts\ColorScrollbar.js"></script>

But the color of scrollbars do not take on the color specified

I tried looking for something with the new tool but did not find anything.

Thanks again




Nov 9 '08 #6

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"AAaron123" <aa*******@roadrunner.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>FireFox's error console was all I needed to find the bug. Glad I now know
about that!

If you also develop against IE, then you definitely need this:
http://www.microsoft.com/downloads/d...displaylang=en
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Thank you, I did download it.

From it I also found the page
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx
which list for down load an MS script debugger and an MS script editor.

Unfortunately, all the links it lists as having more info about them are
broken. But the download links are not.

Do you happen to know if these are useful tools in the asp.net development
environment?

Thanks for the pointer to the IE tool.
Nov 9 '08 #7
"AAaron123" <aa*******@roadrunner.comwrote in message
news:uz***************@TK2MSFTNGP05.phx.gbl...
>If you also develop against IE, then you definitely need this:
http://www.microsoft.com/downloads/d...displaylang=en

Thank you, I did download it.

From it I also found the page
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx
which list for down load an MS script debugger and an MS script editor.

Unfortunately, all the links it lists as having more info about them are
broken. But the download links are not.

Do you happen to know if these are useful tools in the ASP.NET development
environment?
Not if you're already using Visual Studio...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 9 '08 #8
"AAaron123" <aa*******@roadrunner.comwrote in message
news:OH*************@TK2MSFTNGP05.phx.gbl...
I could never get Firefox to color scroll bars like IE does.

Changing the scrollbar colour is totally non-standard behaviour, and yet
another example of why IE (at least, before version 7) was probably the
worst piece of software Microsoft ever produced. Unfortunately, it was also
one of the most successful in terms of usage because it comes bundled with
Windows...

See here for further details:
http://www.dreamincode.net/forums/showtopic15885.htm

However, BE VERY CAREFUL about anything which changes the way a user has
configured their browser. It may be that a user has an unusual
colour-blindness disability and needs scrollbars in a particular colour...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 9 '08 #9

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eH*************@TK2MSFTNGP06.phx.gbl...
"AAaron123" <aa*******@roadrunner.comwrote in message
news:OH*************@TK2MSFTNGP05.phx.gbl...
>I could never get Firefox to color scroll bars like IE does.


Changing the scrollbar colour is totally non-standard behaviour, and yet
another example of why IE (at least, before version 7) was probably the
worst piece of software Microsoft ever produced. Unfortunately, it was
also one of the most successful in terms of usage because it comes bundled
with Windows...

See here for further details:
http://www.dreamincode.net/forums/showtopic15885.htm

However, BE VERY CAREFUL about anything which changes the way a user has
configured their browser. It may be that a user has an unusual
colour-blindness disability and needs scrollbars in a particular colour...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Best I can tell from that site is it can't be done. It good to know - I can
stop looking now.
As to your warning: What about background color and font color. I should not
touch their values?

I give the user a few choices for background/font color for the reasons
including the one you gave.

I wanted to also make the scroll bars to match.
Thanks a lot
Nov 9 '08 #10

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OF**************@TK2MSFTNGP04.phx.gbl...
"AAaron123" <aa*******@roadrunner.comwrote in message
news:uz***************@TK2MSFTNGP05.phx.gbl...
>>If you also develop against IE, then you definitely need this:
http://www.microsoft.com/downloads/d...displaylang=en

Thank you, I did download it.

From it I also found the page
http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx
which list for down load an MS script debugger and an MS script editor.

Unfortunately, all the links it lists as having more info about them are
broken. But the download links are not.

Do you happen to know if these are useful tools in the ASP.NET
development environment?

Not if you're already using Visual Studio...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
That's why your inputs are so valuable. The internet is full of suggestions
that are obsolete for VS2008 and asp.net with no indication of that. Books
are better but you can't always find what you want even after looking at a
few of them. The Internet search is better but less precise. Your inputs
(and a few others in this NG) are the best help.

Thanks

Nov 9 '08 #11
"AAaron123" <aa*******@roadrunner.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
As to your warning: What about background color and font color. I should
not touch their values?
As a general rule, so long as you do not *FORCE* your opnions onto your
users, you should be fine.
I give the user a few choices for background/font color for the reasons
including the one you gave.
That's perfectly fine because you're letting the users choose...

You might want to have a look at this:
http://www.w3.org/WAI/WCAG1A-Conformance
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 9 '08 #12

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

Similar topics

5
8475
by: Jeff Stewart | last post by:
It seems that whenever I pass window.open() a relative URL, it fails. The following shows up in the Netscape Javascript Console: Error: " nsresult: "0x80004005 (NS_ERROR_FAILURE)" location:...
5
2224
by: Dave | last post by:
I reinstalled SQL 2000 server after reformatting my drive. Now I cannot open a database in my C## program as before. If I use "Provider=SQLOLEDB;Data Source=localhost; Initial...
1
1609
by: PWalker | last post by:
Hi, I have several webpages that have around 50+ thumbnail images in it in a table structure spanning (3 columns) x (17+ rows). Each thumbnail is wrapped in the following piece of javascript: ...
2
23478
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
4
3943
by: SOlva | last post by:
This is the code that I am running can anyone help me understand why I get the following error An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
1
1546
by: K B | last post by:
I don't know if this is an ASP.NET 2.0 issue or not, but I haven't had this happen to me before... When I open a popup window, the font size on the parent window immediately increases to a...
3
7779
by: Saba | last post by:
Why OSI is called Open System?
6
8634
by: rengaraj | last post by:
Dear Friends, In open system call we have three arguments. First: file descriptor Second: flag Third: Mode for example we use open (fd, O_RDWR | O_CREAT , 0764) Here i used 764 only but it...
6
1336
by: WillByteAccess | last post by:
I a webpage on which most links open in the same window, but one will opens in a new window. If I click the link which opens in a new window ALL other links from the original page will then open...
0
7199
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
7074
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
7273
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
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
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
5572
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,...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
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 ...
1
731
muto222
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.