473,651 Members | 3,012 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="JavaScrip t: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 1242
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*******@road runner.comwrote in message
news:e8******** ******@TK2MSFTN GP02.phx.gbl...
If the user clicks an anchor and request a popup window displaying an
image

<a href="JavaScrip t: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******** *****@TK2MSFTNG P04.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*******@road runner.comwrote in message
news:e8******** ******@TK2MSFTN GP02.phx.gbl...
>If the user clicks an anchor and request a popup window displaying an
image

<a href="JavaScrip t: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*******@road runner.comwrote in message
news:%2******** ********@TK2MSF TNGP03.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******** *******@TK2MSFT NGP06.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.getEle mentsByTagName( 'html')[0].style;

var bodyStyle = document.body.s tyle;

bodyStyle.scrol lbarShadowColor = htmlStyle.scrol lbarShadowColor = 'orange';

....more like the last line...
I insert it with this
<script type="text/javascript"
src="..\JavaScr ipts\ColorScrol lbar.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**@markNOSPA Mrae.netwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
"AAaron123" <aa*******@road runner.comwrote in message
news:%2******** ********@TK2MSF TNGP03.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*******@road runner.comwrote in message
news:uz******** *******@TK2MSFT NGP05.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*******@road runner.comwrote in message
news:OH******** *****@TK2MSFTNG P05.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**@markNOSPA Mrae.netwrote in message
news:eH******** *****@TK2MSFTNG P06.phx.gbl...
"AAaron123" <aa*******@road runner.comwrote in message
news:OH******** *****@TK2MSFTNG P05.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

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

Similar topics

5
8482
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: "JS frame :: http://localhost/dwm/container.html :: preloader_DoFSCommand :: line 48" data: no] Source File: http://localhost/dwm/container.html Line: 48
5
2240
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 Catalog=master;Integrated Security=SSPI"; I get an Invalid login error. If I use "Provider=SQLOLEDB; Data Source=localhost; Initial Catalog=master;User ID=Dave;Password=midn1te"; I get the following error, "User no associated with a trusted SQL server...
1
1617
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: <a href="#" onClick="javascript:window.open('Images/image_name.jpg','window','width=430,height=560,resizable=yes')"> Now since there are so many thumbnails, the page needs to be scrolled to view the thumbnails at the bottom of the list. When i...
2
23497
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 window to open a child window thru javascript window.open 2) I have some functionality in the child window that changes the data
4
3959
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
1553
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 larger size. Any ideas greatly appreciated! TIA, Kit
3
7791
by: Saba | last post by:
Why OSI is called Open System?
6
8644
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 doesn't work fine. If i use 0764 it worked fine.
6
1339
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 in a new window. This only happens once the link that opens in a new window is clicked, if the page loads and the user only clicks on links which open in the same page then it all works fine. Any suggestions? Cheers, Will
0
8278
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8807
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
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
8584
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7299
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
2701
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
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
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.