473,545 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript / browser / OS problem???

I have a user of a web application written in Java/JSP that is unable
to login to the site simply because certain links on the page do not
run when they are clicked. Other popups using Javascript on the same
page work correctly.

It appears to be isolated to 1-2 machines in a particular network. I
cannot verify whether these machines have had virus/spyware scans, but
I do know the user is running Firefox 2.1 and IE 7 with the same
problem in both browsers. I am not involved with their network setup
or PC setup.

A much paired-down version of the page works properly for this user.
But the fully coded page renders incorrectly and does not appear to
run any javascript. The window status bar always displays Done, on
mouse over of the links, whereas it normally would show the javascript
about to be run. I have tried to isolate certain sections of code,
with no success.

An <img...tag in the HTML source is completely missing, and the JSP
code which contains it has no logic surrounding.

JSP
<td><img src="/images/login/photo.gif" width="250"
height="250"></td>
Page Source
<td></td>
I am wondering if this is a code issue, a browser issue, or an OS
issue. Of the many users of our software, this is the only one to
ever encounter such an issue.

Jan 30 '07 #1
16 2304
On Jan 30, 3:51 pm, "Eric" <eric1...@gmail .comwrote:
I have a user of a web application written in Java/JSP that is unable
to login to the site simply because certain links on the page do not
run when they are clicked. Other popups using Javascript on the same
page work correctly.

It appears to be isolated to 1-2 machines in a particular network. I
cannot verify whether these machines have had virus/spyware scans, but
I do know the user is running Firefox 2.1 and IE 7 with the same
problem in both browsers. I am not involved with their network setup
or PC setup.

A much paired-down version of the page works properly for this user.
But the fully coded page renders incorrectly and does not appear to
run any javascript. The window status bar always displays Done, on
mouse over of the links, whereas it normally would show the javascript
about to be run. I have tried to isolate certain sections of code,
with no success.

An <img...tag in the HTML source is completely missing, and the JSP
code which contains it has no logic surrounding.

JSP
<td><img src="/images/login/photo.gif" width="250"
height="250"></td>
Page Source
<td></td>

I am wondering if this is a code issue, a browser issue, or an OS
issue. Of the many users of our software, this is the only one to
ever encounter such an issue.
do you have other users with the same browsers running ok?

Jan 30 '07 #2
Eric wrote:

Hi Eric,
A much paired-down version of the page works properly for this user.
But the fully coded page renders incorrectly and does not appear to
run any javascript. The window status bar always displays Done, on
mouse over of the links, whereas it normally would show the javascript
about to be run. I have tried to isolate certain sections of code,
with no success.
Instead of using IE's console, ask your user to open the Firefox
javascript console, clear it, load the page and report the errors - you
will get some much more detailed information. Also, carefully compare
the source produced by your faulty user with the expected source.
An <img...tag in the HTML source is completely missing, and the JSP
code which contains it has no logic surrounding.
Then you definitely have a problem, either the page isn't delivered
properly (e.g, server error, proxy error), is modified on the client
prior to being displayed (e.g, popup blocker software, user scripts), or
fails due to some particular client setting (e.g, javascript deactivated).

Your approach to determining what goes wrong is absolutely correct, so
don't get too desperate and keep on, you'll eventually find what's the
problem.
Kind regards,
Elegie.
Jan 31 '07 #3
On Jan 31, 9:00 am, Elegie <ele...@invalid .comwrote:
Eric wrote:

Hi Eric,
A much paired-down version of the page works properly for this user.
But the fully coded page renders incorrectly and does not appear to
run any javascript. The window status bar always displays Done, on
mouse over of the links, whereas it normally would show the javascript
about to be run. I have tried to isolate certain sections of code,
with no success.

Instead of using IE's console, ask your user to open the Firefox
javascript console, clear it, load the page and report the errors - you
will get some much more detailed information. Also, carefully compare
the source produced by your faulty user with the expected source.
An <img...tag in the HTML source is completely missing, and the JSP
code which contains it has no logic surrounding.

Then you definitely have a problem, either the page isn't delivered
properly (e.g, server error, proxy error), is modified on the client
prior to being displayed (e.g, popup blocker software, user scripts), or
fails due to some particular client setting (e.g, javascript deactivated).

Your approach to determining what goes wrong is absolutely correct, so
don't get too desperate and keep on, you'll eventually find what's the
problem.

Kind regards,
Elegie.
Thanks for the reply. I suspect this user has Symantec firewall or
internet security running, as I am seeing some javascript functions
(Sym*) in the source that is not mine, and other things are
reformatted and/or missing.

Jan 31 '07 #4
On Jan 31, 11:25 am, "Eric" <eric1...@gmail .comwrote:
On Jan 31, 9:00 am, Elegie <ele...@invalid .comwrote:


Eric wrote:
Hi Eric,
A much paired-down version of the page works properly for this user.
But the fully coded page renders incorrectly and does not appear to
run any javascript. The window status bar always displays Done, on
mouse over of the links, whereas it normally would show the javascript
about to be run. I have tried to isolate certain sections of code,
with no success.
Instead of using IE's console, ask your user to open the Firefox
javascript console, clear it, load the page and report the errors - you
will get some much more detailed information. Also, carefully compare
the source produced by your faulty user with the expected source.
An <img...tag in the HTML source is completely missing, and the JSP
code which contains it has no logic surrounding.
Then you definitely have a problem, either the page isn't delivered
properly (e.g, server error, proxy error), is modified on the client
prior to being displayed (e.g, popup blocker software, user scripts), or
fails due to some particular client setting (e.g, javascript deactivated).
Your approach to determining what goes wrong is absolutely correct, so
don't get too desperate and keep on, you'll eventually find what's the
problem.
Kind regards,
Elegie.

Thanks for the reply. I suspect this user has Symantec firewall or
internet security running, as I am seeing some javascript functions
(Sym*) in the source that is not mine, and other things are
reformatted and/or missing.- Hide quoted text -

- Show quoted text -
A desktop support user on the same network/PC setup confirmed the
problem being Symantec Client Security/Firewall. With firewall on,
page doesn't load fully/properly. With firewall off, page works
fine. Now they have to either disable firewall, or enter certain
sites as exceptions so that the software doesn't parse our code
incorrectly.

We are also sending the code and page source to Symantec to have them
explain themselves, should be interesting.

Hopefully this will help somebody in the future.

Jan 31 '07 #5
On Jan 31, 11:25 am, "Eric" <eric1...@gmail .comwrote:
On Jan 31, 9:00 am, Elegie <ele...@invalid .comwrote:


Eric wrote:
Hi Eric,
A much paired-down version of the page works properly for this user.
But the fully coded page renders incorrectly and does not appear to
run any javascript. The window status bar always displays Done, on
mouse over of the links, whereas it normally would show the javascript
about to be run. I have tried to isolate certain sections of code,
with no success.
Instead of using IE's console, ask your user to open the Firefox
javascript console, clear it, load the page and report the errors - you
will get some much more detailed information. Also, carefully compare
the source produced by your faulty user with the expected source.
An <img...tag in the HTML source is completely missing, and the JSP
code which contains it has no logic surrounding.
Then you definitely have a problem, either the page isn't delivered
properly (e.g, server error, proxy error), is modified on the client
prior to being displayed (e.g, popup blocker software, user scripts), or
fails due to some particular client setting (e.g, javascript deactivated).
Your approach to determining what goes wrong is absolutely correct, so
don't get too desperate and keep on, you'll eventually find what's the
problem.
Kind regards,
Elegie.

Thanks for the reply. I suspect this user has Symantec firewall or
internet security running, as I am seeing some javascript functions
(Sym*) in the source that is not mine, and other things are
reformatted and/or missing.- Hide quoted text -

- Show quoted text -
A desktop support user on the same PC setup confirmed the
problem being Symantec Client Security/Firewall. With firewall on,
page doesn't load fully/properly. With firewall off, page works fine.
Now they have to either disable firewall, or enter certain sites as
exceptions so that the software doesn't parse our code incorrectly.

We are also sending my code and the page source to Symantec to find
out
why they are doing this. That should be interesting.

Jan 31 '07 #6
Eric wrote:

Hello,
A desktop support user on the same network/PC setup confirmed the
problem being Symantec Client Security/Firewall. With firewall on,
page doesn't load fully/properly. With firewall off, page works
fine. Now they have to either disable firewall, or enter certain
sites as exceptions so that the software doesn't parse our code
incorrectly.
Glad you found the problem, given its nature this should now be fairly
easy to solve.
We are also sending the code and page source to Symantec to have them
explain themselves, should be interesting.
I don't think you will get any answer though, after all that is just a
basic popup-blocking mechanism :)

There are basically two approaches a popup blocker software can adopt
for its product:

[1] It can inserts some generic script content inside every HTML page,
before the page is rendered by the browser. The inserted script
generally deactivates "window.ope n", among other things.

[2] It can monitors new browser instances and close the window
immediately. This is how built-in popup blockers work in popular user
agents (firefox, opera).

The thing is that popup blockers are well spread in the internet
community. Unless the product is aimed at a known environment (like an
intranet), it is generally advised not to use regular popups, for which
acceptable fallback often cannot be devised, and rather use some
DHTML-based system (with clean degradation).

If you want to learn more about popup-blocking, I recommend your
searching comp.lang.javas cript archives, there were some truly
interesting discussions in the past.
Kind regards,
Elegie.
Jan 31 '07 #7
Elegie said the following on 1/31/2007 4:17 PM:

<snip>
[2] It can monitors new browser instances and close the window
immediately. This is how built-in popup blockers work in popular user
agents (firefox, opera).
I find it very difficult - nearly impossible - to believe that is how
"built-in popup blockers work" whereby it simply closes new windows.
That is *not* how they work. I never get a popup using any one of the
three browsers I use unless I explicitly tell it to give me a new window.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 31 '07 #8
Randy Webb wrote:
>[2] It can monitors new browser instances and close the window
immediately. This is how built-in popup blockers work in popular user
agents (firefox, opera).

I find it very difficult - nearly impossible - to believe that is how
"built-in popup blockers work" whereby it simply closes new windows.
Honestly, I absolutely do not know what strategies vendors of browsers
have deployed on their products, I was just using this as an example to
demonstrate the approach (since I usually tend to group into one
category built-in popup blockers with external software that do not
insert content to block the popup).

I realize that I should have been more precise (sorry for the
confusion), but didn't think that was needed as I was simply giving a
"hint".
That is *not* how they work.
Well, do *you* know how it really works? I mean, imagine your core
product with two millions of lines, and the boss that says "add some
popup blocking mechanism"... <kidding>
I never get a popup using any one of the
three browsers I use unless I explicitly tell it to give me a new window.
That's because there's logic inside your browser that kills unwanted
popups, hopefully before any resource is allocated to create them,
determining what popups are unwanted, maybe using the way the popup is
created, maybe inferring a strategy from content in the called URL...
Regards,
Elegie.
Jan 31 '07 #9
On Jan 31, 5:18 pm, Elegie <ele...@invalid .comwrote:
Randy Webb wrote:
[2] It can monitors new browser instances and close the window
immediately. This is how built-in popup blockers work in popular user
agents (firefox, opera).
I find it very difficult - nearly impossible - to believe that is how
"built-in popup blockers work" whereby it simply closes new windows.

Honestly, I absolutely do not know what strategies vendors of browsers
have deployed on their products, I was just using this as an example to
demonstrate the approach (since I usually tend to group into one
category built-in popup blockers with external software that do not
insert content to block the popup).

I realize that I should have been more precise (sorry for the
confusion), but didn't think that was needed as I was simply giving a
"hint".
That is *not* how they work.

Well, do *you* know how it really works? I mean, imagine your core
product with two millions of lines, and the boss that says "add some
popup blocking mechanism"... <kidding>
I never get a popup using any one of the
three browsers I use unless I explicitly tell it to give me a new window.

That's because there's logic inside your browser that kills unwanted
popups, hopefully before any resource is allocated to create them,
determining what popups are unwanted, maybe using the way the popup is
created, maybe inferring a strategy from content in the called URL...

Regards,
Elegie.
The funny thing about all this.. the window.open javascript calls on
the page worked fine with Symantec firewall turned on. Links to
popups worked just fine, so I can't suspect the software is trying to
prevent ads. It was the normal href links and onclick javascripts
that weren't working. And not only was the software inserting
javascript into the page source near the top and bottom, but it was
completely reformatting my HTML. How else could you explain this???
An <imgtag is completely missing!

IE page source
<FORM name=UserLogin action=/ext/LoginEval?link_ id= method=post>
<TABLE cellSpacing=0 cellPadding=0 width=800 align=center border=0>
<TBODY>
<TR>
<TD><IMG src="IE%20Login _files/black_knight_lo go3.jpg"></TD></TR>
<TR>
....
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD></TD>
JSP page source
<FORM name='UserLogin ' action='/ext/LoginEval?link_ id=<%=
request.getAttr ibute("R_link_i d")%>' method='POST'>
<table width="800" border="0" align="center" cellpadding="0"
cellspacing="0" >
<tr><td><img src="<%= hroot%>/<%= mfrid%>/images/<
%=sessionMgr.ge tMfr().getLogo( )%>"></td></tr>
<tr>
....
<table width="100%" border="0" cellspacing="0"
cellpadding="0" >
<tr>
<td><img src="<%= hroot%>/<%= mfrid%>/images/login/
photo.gif" width="250" height="250"></td>

Feb 1 '07 #10

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

Similar topics

13
9412
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to intercept the key so that I can do stuff on the server side to make the new window behave correctly? (We have a JSP-based webapp which stores state in...
53
5660
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is difficult to know what is going on. One of these Order Forms you can see here... http://www.cardman.co.uk/orderform.php3
136
9213
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to...
0
7457
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...
0
7391
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...
0
7651
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. ...
1
7410
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...
0
7746
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...
1
5320
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...
0
3443
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...
1
1869
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
1010
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.