473,434 Members | 1,820 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,434 software developers and data experts.

Javascript debug ?

Hello to all

I have a problem with some javascript. On my computer I
don't have any problem and the script work well, but
somebody told me that my script crash on his computer.

Why could something like that happen?

Are the a possibility to activate a debug mode to see all
the potential errors?

Some of my script are also in PHP!

Many thanks in advance for your help.

Regards

Otto

Jul 20 '05 #1
13 1472
"Otto Haldi" wrote:
I have a problem with some javascript. On my computer I
don't have any problem and the script work well, but
somebody told me that my script crash on his computer.
Why could something like that happen?

could just be a different browser.
Are the a possibility to activate a debug mode to see all
the potential errors?
Mozilla based browsers (Firebird, Mozilla, Netscape) have a form of debug
mode.
Just type "javascript:" into the url bar, it will list all errors a bit more
comfortably than MSIE does.
Some of my script are also in PHP!
as long as your scripts are being viewed through a PHP capable server and
the are working, the are not the problem, but I don't *think* there is a way
to debug PHP (would be very interested if I was wrong on that one).
Many thanks in advance for your help.

Regards

Otto

Jul 20 '05 #2
In article <bt**********@otis.netspace.net.au>, "neerolyte"
<ne*******@netspace.nOsPaM.net.au> writes:
Some of my script are also in PHP!


as long as your scripts are being viewed through a PHP capable server and
the are working, the are not the problem, but I don't *think* there is a way
to debug PHP (would be very interested if I was wrong on that one).


PHP is as easy to debug as javascript is. If there is an error, PHP will tell
you what line and what character (much as IE does with javascript). You just
have to use an editor that tells you the line numbers.

As for a Venkman type debugger for PHP, have never seen one and would be as
interested as you are.
--
Randy
Jul 20 '05 #3
Otto Haldi wrote:
Hello to all

I have a problem with some javascript. On my computer I
don't have any problem and the script work well, but
somebody told me that my script crash on his computer.

Why could something like that happen?

Are the a possibility to activate a debug mode to see all
the potential errors?

Some of my script are also in PHP!

Many thanks in advance for your help.

Regards

Otto


When testing your site, you need to do it with as many browser
combinations as possible... There are several factors that can change
the way your page/script are managed (In order of significance):

1. The Browser (IE, Mozilla/Netscape, Opera, Safari, Konqurer, etc)
2. The Browser Version (3.0, 4.01, 5.5, 6.0, etc)
3. The Operating System (Windows XP/2000/ME/98/95, Mac 9/X, Linux,
FreeBSD, Solaris, Irix, etc)
4. The Screen size and resolution (More important for appearance of HTML)
5. The process speed of the machine it runs on. (This is really only the
case if you have timing issues (race conditions) in your script)

The best bet, is to install as many browsers as you can on your own
systems, and when it is all done, have everyone involved test it on
their systems.

When a problem happens, make sure to get all of the information about
the user's setup, so you can try to replicate it.

Brian

Jul 20 '05 #4
Many thanks to all for your help.

I did my test with IE, Opera and RealOne an don't have any problem. But
somebody told me he have many error with the same configuration as I use.
Strange isn't it!..
1. The Browser (IE, Mozilla/Netscape, Opera, Safari, Konqurer, etc)
2. The Browser Version (3.0, 4.01, 5.5, 6.0, etc)
3. The Operating System (Windows XP/2000/ME/98/95, Mac 9/X, Linux,
FreeBSD, Solaris, Irix, etc)
4. The Screen size and resolution (More important for appearance of HTML)
5. The process speed of the machine it runs on. (This is really only the
case if you have timing issues (race conditions) in your script)


Best regards

Otto
Jul 20 '05 #5
Thanks four your help,
could just be a different browser.

It's not we are both using XP with IE! Strange...

Regards

Otto

Jul 20 '05 #6
Otto Haldi wrote:
Many thanks to all for your help.

I did my test with IE, Opera and RealOne an don't have any problem. But
somebody told me he have many error with the same configuration as I use.
Strange isn't it!..


Nah... That is not strange, because the two of you do not have the same
configuration. Something _has_ to be different. He may have different
security/cache settings... javascript may be disabled... It could be a
different version of IE, a different service pack on XP, etc.

There is something significantly different between you and your user,
and it is likely that other users will have the same difference.

What is the website in question?

Brian

Jul 20 '05 #7
On Thu, 08 Jan 2004 07:25:28 -0500, in comp.lang.javascript Brian
Genisio <Br**********@yahoo.com> wrote:
| Otto Haldi wrote:
| > Many thanks to all for your help.
| >
| > I did my test with IE, Opera and RealOne an don't have any problem. But
| > somebody told me he have many error with the same configuration as I use.
| > Strange isn't it!..
|
| Nah... That is not strange, because the two of you do not have the same
| configuration. Something _has_ to be different. He may have different
| security/cache settings... javascript may be disabled... It could be a
| different version of IE, a different service pack on XP, etc.
|
| There is something significantly different between you and your user,
| and it is likely that other users will have the same difference.
|
| What is the website in question?


Couldn't agree with you more. I'm in the final stages of testing an
intranet site. All users are suppose to have a particular
browser/software configuration.

A user sent me a message stating that a particular area of the web
site wasn't working. After much analysis of their settings I finally
(out of shear desperation) told them to turn the machine off and log
back in. It fixed the problem. Why? I have no idea. Maybe IT had
changed the proxy settings or something.

---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 20 '05 #8
> Couldn't agree with you more. I'm in the final stages of testing an
intranet site. All users are suppose to have a particular
browser/software configuration.

A user sent me a message stating that a particular area of the web
site wasn't working. After much analysis of their settings I finally
(out of shear desperation) told them to turn the machine off and log
back in. It fixed the problem. Why? I have no idea. Maybe IT had
changed the proxy settings or something.


Well on storeys like this...at the college I was at last year they run two
MS Terminal Servers, one mirrored of the other, one server could not view
hotmail because for some reason it was not responding to the <meta
refresh....> tag that hotmail uses during login (well at least with their
old setup, I don't know if they still do).

both servers had all the same programs and service packs as well as updates
installed, the only difference is *possibly* the order they were installed
in.

just another example of how there is *always* a difference
Jul 20 '05 #9
> PHP is as easy to debug as javascript is. If there is an error, PHP will
tell
you what line and what character (much as IE does with javascript). You just have to use an editor that tells you the line numbers.

As for a Venkman type debugger for PHP, have never seen one and would be as interested as you are.
--
Randy

I don't know what Venkman means, but if it is like the ones in VC++ or MSVB,
then dreamweaver MX supplies a way of doing this for javascript, neat
feature!
Jul 20 '05 #10
In article <bt**********@otis.netspace.net.au>, "neerolyte"
<ne*******@netspace.nOsPaM.net.au> writes:
I don't know what Venkman means, but if it is like the ones in VC++ or MSVB,
then dreamweaver MX supplies a way of doing this for javascript, neat
feature!


Venkman is the javascript debugger included with a lot of Mozilla based
browsers.
--
Randy
Jul 20 '05 #11
Hello Brian,

Here the link. It is in french and not ready, I'm still working on...

http://www.jean-mi.ch/heberge/jacot/minishop/index

You can buy... nothing happend!.. <G>

Best Regards

Otto

Nah... That is not strange, because the two of you do not have the same
configuration. Something _has_ to be different. He may have different
security/cache settings... javascript may be disabled... It could be a
different version of IE, a different service pack on XP, etc.

There is something significantly different between you and your user,
and it is likely that other users will have the same difference.

What is the website in question?

Jul 20 '05 #12

"Otto Haldi" <oh****@freesurf.ch> wrote in message
news:VA******************@freesurf.ch...
Hello Brian,

Here the link. It is in french and not ready, I'm still working on...

http://www.jean-mi.ch/heberge/jacot/minishop/index


click "Recherche">"Texte">"a">"OK"

view the source and look at what your php is pumping out:

<TD><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a
href="group_list.php?maingroup=APPLE" TARGET="main">APPLE</FONT></TD>

a tag opens but does not close, my version of ie seems to have a fit if
enough items are brought up on screen, this may be the reason, i can't see
any other reasons
Jul 20 '05 #13
Hello Neerolyte

Many thanks four your quick answer.

OK, I will have a look to this script once again!

Regards

Otto

View the source and look at what your php is pumping out:

<TD><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a
href="group_list.php?maingroup=APPLE" TARGET="main">APPLE</FONT></TD>

Jul 20 '05 #14

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

Similar topics

4
by: Kent Feiler | last post by:
As an old-time C programmer, I'm used to placing program documentation in the program. No problem there since it all goes away when the executable is created. Using the same technique in...
6
by: Chris | last post by:
Can anyone point me to some code that will display messages, in a seperate window, from javascipt. ie effectively a trace window? TIA Chris
5
by: googlegroups | last post by:
I have a large table in html created dynamically. This table can grow to several hundred rows or more. I have the ability to hide or display individual rows (using row.style.display = "none") and...
2
by: apngss | last post by:
Is there any way to debug javascript in a web application? When I develop JSP pages, and it has the javascript code in it. The problem is the debugger in Java IDE (WSAD in my case) can only debug...
1
by: yma | last post by:
Hi, I have an asp.net app that I uses javascript in the html file. Can you show me how to debug javascript in vb.net. I use vb.net in vs.net. Here is a sample html file. If I cannot use...
2
by: pintu | last post by:
Hello Everybody. I hav some javascript code inside .net for validation and other purpose..How can i step by stepwise debug these javascript codes inside ..net without using alert() .Any body plz...
2
by: Dinh Bao Tuyen | last post by:
Hi everyone, I can't debug javascript in VS 2005. In my VS2005, I can't find Script Explorer in menu. Can u help me???
15
by: teppic.xxviii | last post by:
Ok, so this is a little script that I've been working on and off for the past year or so, and finally I think it might be ready to be put to the ultimate test: other people! ...
3
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, This is an issue that happens to me and everybody else I know and I've never found a way around it. In Visual Studio (currently using 2003 but the same has happened for me in 2005 and...
2
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to...
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
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
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...
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...
0
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
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?

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.