473,508 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pop up alert

7 New Member
Hi, does anyone know how to make a alert pop up open for only certain browsers, using javascript...specifically IE 7 or older
Oct 15 '08 #1
14 1514
zaphod42
55 New Member
I usually just do :

Expand|Select|Wrap|Line Numbers
  1. if(document.all){alert('your alert text here')}
but it depends on what browser specifically....if you just need it for ie in general, the above will work
Oct 16 '08 #2
acoder
16,027 Recognized Expert Moderator MVP
IE is not the only browser which supports document.all.

OP: why do you need an alert for a specific browser? Perhaps if you explain your problem, we could suggest an alternative.
Oct 16 '08 #3
strobie
7 New Member
I designed a site and went overboard with transparent div tags, at the time I wasn't aware of IE (pre 7) limitations

here's the link
http://www.friendsofinstapstudycenter.net/INSTAP-NEW/
Oct 16 '08 #4
acoder
16,027 Recognized Expert Moderator MVP
Instead of an alert, add a filter for IE to allow it to display transparent PNG images.
Oct 16 '08 #5
strobie
7 New Member
hmm gave the ie filter a shot. i noticed a slight size change with some images but wouldn't work for me.
Oct 16 '08 #6
acoder
16,027 Recognized Expert Moderator MVP
Try using the IE7 library to bring IE5-6 up to date.
Oct 16 '08 #7
strobie
7 New Member
awesome it worked! one problem though. it works only when I have actual images living in a file,

eg.http://www.friendsofinstapstudycenter.net/INSTAP-NEW/TEST.html

but what do I do if the images are being called from div tags in my css stylsheet?
Oct 16 '08 #8
acoder
16,027 Recognized Expert Moderator MVP
Could you give an example?
Oct 16 '08 #9
zaphod42
55 New Member
acoder....I'm just curious, I've only been developing js for about year, and I've tested my systems on ie 5-7 ff 2&3, and the newest safari....of those only the ie versions support document.all....what other browsers do?


ANSWER:::

after I posted this I went and looked around a bit like I should have done BEFORE I asked;)

Explorer 4+, Opera 6+, iCab, Ice, Omniweb 4.2-

ALL support document.all
Oct 16 '08 #10
strobie
7 New Member
acoder, you have been a great help. I renamed all my images to implement the IE -7 filter. Works great! My only question is, is it common for links to lose functionality if the are in a div that embeds transparent images that have been corrected by the applied java script filter, or did I do something incorrectly?

regards
Oct 17 '08 #11
acoder
16,027 Recognized Expert Moderator MVP
That shouldn't happen. Does this affect all browsers or only IE6?
Oct 20 '08 #12
strobie
7 New Member
just 6.0, and 5.0 also
Oct 24 '08 #13
acoder
16,027 Recognized Expert Moderator MVP
Is the page where you've made the changes the one you linked to earlier?
Oct 25 '08 #14
strobie
7 New Member
didn't want to overwrite the old so i had to change to
http://www.friendsofinstapstudycente...EW2/index.html
on the above url, my 'new book' hovers/links at the bottom are disabled

and here:
http://www.friendsofinstapstudycente...log/index.html
my side navigation is disabled... confusing
Oct 27 '08 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

15
3197
by: optimistx | last post by:
How to write a function f(x) or f('x') so that it produces the same output as a call to alert-function: var x='abc'; alert('x='+x); In testing one needs to write similar alert() calls...
2
16846
by: schieco | last post by:
The following code always prints the debug lines inside the conditional if statement before and after the alert statement when the session has timed out, but the alert and redirect only appear/work...
4
3987
by: hugo2 | last post by:
Most of these characters are not on the standard keyboard. Here's a successful contrivance, with comments & cautions, a little page that works in IE6. <HTML><HEAD><SCRIPT TYPE="text/javascript">...
11
4560
by: Alistair Saldanha | last post by:
I'm looking for the event that is fired by Internet Explorer to an "alert": <SCRIPT> Alert("You already have a session open") </SCRIPT> The event would be webBrowser.Document.???? Much...
0
1671
by: Stephanie | last post by:
I have a problem with an Alert that is supposed to invoke a Job. Here are some details: Windows Server 2000 SQL Server Standard Ed. ver. 8.00.818 (Sp3) Alert: SQL Server performance condition...
3
9617
by: umdsasha | last post by:
So, basically, I need to detect whether an alert window was thrown. I can't find where it's thrown from but I need to disable a button only if there were no alert windows thrown. Any ideas? ...
4
4009
by: joe | last post by:
Hi, I defined: <div id="abc"> </div> in my .html file, after an Ajax query my weberserver sends: <script language="JavaScript"> alert('Hello World!"); </script>
5
6255
by: vjsv2007 | last post by:
Can you help to make one alert with all details? <script type="text/javascript"> <!-- function validate_form ( ) { valid = true;
24
8179
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any technical reason to make this distinction, and...
0
7226
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
7125
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
7388
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
7499
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
5631
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,...
1
5055
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
4709
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
3199
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
3186
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.