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

Home Posts Topics Members FAQ

portability question

Hello,

I would like to ask: how portable is JavaScript these days? Last time I used it
you had to do all kinds of checks to see if the client is running IE or Netscape.
Now we have MS Windows with IE, Linux with Mozilla, and many more browsers like
Opera, Konqueror, etc...

So, how portable is JavaScript these days? Are those stupid browser-specific
extensions gone. If not, I'm probably not interested.

Anyways, I just wanted to have a few buttons pop up context sensitive help
windows with close buttons. Can I do this these days in a portable way?

Thanks,

Neil
Jul 23 '05 #1
3 1411
On 6 Oct 2004 11:29:45 -0700, Neil Zanella wrote:
I would like to ask: how portable is JavaScript these days?
Extremely, & allways has been, if written properly,
which it rarely is.
..Last time I used it
you had to do all kinds of checks to see if the client is running IE or Netscape.
Badly written scripts use browser sniffing.
Well written scripts test for features - feature detection.
.. Are those stupid browser-specific
extensions gone.
Nope, and no sign of it in the near future.
..If not, I'm probably not interested.

Anyways, I just wanted to have a few buttons pop up ..
*
..context sensitive help
windows with close buttons. Can I do this these days in a portable way?


* Pop-ups are not only inherently unreliable, but becoming
more so by the minute. If that's what you intended to use it
for, it is probably best you dump the idea.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #2
Jc
Context sensitive help? Try using the HTML title property, it will
display a tooltip when the user hovers over the item. As far as I know
this should work across most browsers (IE for sure), without being
prone to being blocked by popup blockers (for example, XP SP2 upgrades
IE with one that is turned on by default).

Displaying a window with close buttons that works across browsers? Look
at the source of the many popups you encounter to get an idea of what's
involved. Depending on the intended application for your "help window",
java may be an option.

Jul 23 '05 #3
On 6 Oct 2004 20:27:38 -0700, Jc wrote:
Context sensitive help? Try using the HTML title property,
it will display a tooltip when the user hovers over the item.
*That* is a good idea.
Depending on the intended application for your "help window",
java may be an option.


Only if you keep the entire help content within a Java
component such as a (Java) Dialog or Frame, which will have
a 'Warning Java Applet Window' message unless the code is
signed and accepted by the user.

OTOH, using Java 'showDoucument(URL, "_blank")' to get a new
web-page is probably slightly *less* reliable than a JS solution,
since there are fewer strategies in Java to check for the existence
of the new window. Check this thread for further details..
<http://google.com/groups?selm=1ckv2s0ptm6x6.10olqq0hzfo18%24.dlg%404 0tude.net>

JS would also be able to hook into the buttons and other
elements of HTML forms far better than Java. ..which would
probably need help from Javascript to do so, as I understand it.

Besides, a Java applet is overkill for 'words in a square'
to help the user, it is better not to invoke the JVM for
things as straight-forward as that..

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #4

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

Similar topics

7
by: fabio de francesco | last post by:
Hi, I'm not a professional programmer, but I've been writing C/C++ and Ada programs for a few years on GNU/Linux without ever concerning on standards and portability to other OSs. I've always...
21
by: asm | last post by:
Hi All, Like typdef, does C have further support for portability? Thanks, ASM
93
by: roman ziak | last post by:
I just read couple articles on this group and it keeps amazing me how the portability is used as strong argument for language cleanliness. In my opinion, porting the program (so you just take the...
25
by: Stephen Mayes | last post by:
From lurking on this most excellent newsgroup, I have garnered that an expressed benefit of having a standard is portability of code. I see a lot of open source endeavors that inspire my awe, but I...
93
by: jacob navia | last post by:
In this group there is a bunch of people that call themselves 'regulars' that insist in something called "portability". Portability for them means the least common denominator. Write your code...
239
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my...
46
by: Bill Cunningham | last post by:
I have heard that return -1 is not portable. So what would be the answer to portability in this case? What about exit(0) and exit (-1) or exit (1)? Or would it be best to stick with C's macros,...
2
by: DiAvOl | last post by:
Hello everyone, I read here and there that bit-field usage should be avoided because it's not portable. My question is why it's not portable? For example let's say I have a struct in my code...
80
by: jacob navia | last post by:
Several people in this group argue that standard C is not portable since there are no compilers for it, etc. I propose this program in Standard C, that I have compiled in several OSes to test if...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
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...
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
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
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...

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.