Hi....
I have a little javascript popup box that people click on to open up an
information panel.
I made some little blinking star anims on the page that stop blinking after
the popup has been activated - and stay "off" even after the popup is
closed.
any fix for this?
Here's the popup code:
function openit() {
newWindow = window.open('popups/newsflash.htm', 'newWindow',
'resizable,width=550,height=550,scrollbars=yes,res izable=yes,left=100,top=10
0');
Here's the anchor code:
<a href="javascript:openit();"><font color="#FFFF99"><strong>NEWS
FLASH!!</strong></font></a></div>
thanks for any suggestions..
Eugene 21 1751
On Wed, 28 Jan 2004 00:32:43 GMT, Eugene <lo**@life.com> wrote: Hi....
I have a little javascript popup box that people click on to open up an information panel.
I made some little blinking star anims on the page that stop blinking after the popup has been activated - and stay "off" even after the popup is closed.
any fix for this?
Probably because you are using the JavaScript pseudo-protocol. When you
click a link, the browser expects the page to change, so it stops things
like GIF animation. There is only one real reason to use the JavaScript
pseudo-protocol[1], and you aren't using it in that way.
I would recommend changing the HTML to:
<a href="newsflash.html"
onclick="openit();return false;">News Flash</a>
where newsflash.html provides an alternate, non-JavaScript[2] method of
reading the "news flash".
I would also recommend updating your page to use style sheets instead of
deprecated presentational elements like FONT, but this has no bearing on
your problem.
Mike
[1] For using bookmarklets.
[2] By that, I mean no JavaScript whatsoever. Only people with JavaScript
disabled will be reading that page, so there's no point in including
JavaScript.
--
Michael Winter M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Eugene wrote: Hi.... Here's the anchor code:
<a href="javascript:openit();"><font color="#FFFF99"><strong>NEWS FLASH!!</strong></font></a></div> http://www.jibbering.com/faq/#FAQ4_24
One of the side effects of javascript : URL's is that they kill animated
gifs.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
"Eugene" <lo**@life.com> wrote in message
news:LqDRb.19317$P51.2910@clgrps12...
<snip> <a href="javascript:openit(); ...
<snip>
javascript pseudo protocol HREFs are treated as navigation by some
browsers/browser versions and once the browser gets the idea that it is
being navigated it stops bothering with resource hungry tasks on the
current page - pending its replacement. Stopping animating GIF images is
the most self evident symptom of the shutting down of resource hungry
tasks on the current page.
The solution to this (and other browser/version depended consequences of
their use) is to never use javascript pseudo protocol HREFs.
<URL: http://jibbering.com/faq/#FAQ4_26 >
Richard.
Michael Winter wrote: On Wed, 28 Jan 2004 00:32:43 GMT, Eugene <lo**@life.com> wrote:
<--snip-->
There is only one real reason to use the JavaScript pseudo-protocol[1], and you aren't using it in that way.
<--snip-->
[1] For using bookmarklets.
Before you say[1] the "only one reason"[2] you should open K-Meleon[3]
and find the Javascript Debugger[4].
[1] As much as you can "say" anything in usenet, its typed.
[2] I obviously disagree with that part.
[3] Its a Mozilla Based Browser, but lacks the Tools>Web
Development>Javascript Console path to open the Console.
[4] Its actually the Javascript Console, but I footnoted it in an effort
to make a point about the over-use of footnotes in Usenet[5]
[5] Even Usenet when its accessed by a web-based forum that portrays
itself as a private forum.
As for the javascript : pseudo-protocol, I just mentioned one very valid
use for it, can you name others (besides an href) and explain why they
are "bad" since you claim there is "only one reason" to use it?
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
On Tue, 27 Jan 2004 20:47:01 +0000, Randy Webb <hi************@aol.com>
wrote: Michael Winter wrote:
[snip] There is only one real reason to use the JavaScript pseudo-protocol[1], and you aren't using it in that way.
<--snip-->
[1] For using bookmarklets.
Before you say[1] the "only one reason"[2] you should open K-Meleon[3] and find the Javascript Debugger[4].
That's a bad example. What use would such a link be on a public webpage?
The method used might only work on that browser, rendering it useless for
the general population.
[1] As much as you can "say" anything in usenet, its typed.
[2] I obviously disagree with that part.
Rather than playing the fool, you simply could have said something like:
"While in principal I agree that use of the JavaScript pseudo-
protocol can be a bad idea, especially when a better alternative
exists, there are more good uses for it than you care to suggest."
....then list some good uses for it.
[3] Its a Mozilla Based Browser, but lacks the Tools>Web Development>Javascript Console path to open the Console.
[4] Its actually the Javascript Console, but I footnoted it in an effort to make a point about the over-use of footnotes in Usenet[5]
I used two, and only one, upon reflection, was unwarranted. Does is really
matter? I think not.
[5] Even Usenet when its accessed by a web-based forum that portrays itself as a private forum.
As for the javascript: pseudo-protocol, I just mentioned one very valid use for it, can you name others (besides an href) and explain why they are "bad" since you claim there is "only one reason" to use it?
I can't, because I have *never* found a good use for it. That doesn't mean
to say there isn't, but I've never found one, and I seriously doubt the OP
will, either. The point is that the OP shouldn't be using it in this case.
It's also the point that you should be making: my general argument is
right, here, but isn't in every situation.
When used inappropriately, the pseudo-protocol is bad. It causes unwanted
side-effects (this thread is an example of that) and is inconsiderate of
users with JavaScript-disabled browsers.
In future, don't deride my comments. Simply correct me, politely.
Mike
--
Michael Winter M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
You have to reload the page.
--
George Hester
__________________________________
"Eugene" <lo**@life.com> wrote in message news:LqDRb.19317$P51.2910@clgrps12... Hi.... I have a little javascript popup box that people click on to open up an information panel. I made some little blinking star anims on the page that stop blinking after the popup has been activated - and stay "off" even after the popup is closed. any fix for this? Here's the popup code: function openit() { newWindow = window.open('popups/newsflash.htm', 'newWindow', 'resizable,width=550,height=550,scrollbars=yes,res izable=yes,left=100,top=10 0'); Here's the anchor code: <a href="javascript:openit();"><font color="#FFFF99"><strong>NEWS FLASH!!</strong></font></a></div> thanks for any suggestions.. Eugene
Are you saying that if the JavaScript protocol is removed everywhere in the op's page then the animating gifs will continue to animate after there has been some JavaScript interaction with the page? Thanks.
--
George Hester
__________________________________
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:bv*******************@news.demon.co.uk... "Eugene" <lo**@life.com> wrote in message news:LqDRb.19317$P51.2910@clgrps12... <snip> <a href="javascript:openit(); ... <snip> javascript pseudo protocol HREFs are treated as navigation by some browsers/browser versions and once the browser gets the idea that it is being navigated it stops bothering with resource hungry tasks on the current page - pending its replacement. Stopping animating GIF images is the most self evident symptom of the shutting down of resource hungry tasks on the current page. The solution to this (and other browser/version depended consequences of their use) is to never use javascript pseudo protocol HREFs. <URL: http://jibbering.com/faq/#FAQ4_26 > Richard.
"George Hester" <he********@hotmail.com> wrote in message
news:ja********************@twister.nyroc.rr.com.. .
You have to reload the page.
<snip>
Reloading the page is a ludicrously indirect way of addressing a problem
with a known and clearly identified cause and a simple solution. But
typical of *your* coding style.
Richard.
"George Hester" <he********@hotmail.com> wrote in message
news:_g********************@twister.nyroc.rr.com.. . Are you saying that if the JavaScript protocol is removed everywhere in the op's page then the animating gifs will continue to animate after there has been some JavaScript interaction with the page? Thanks.
I told you the answer to that question 11 months ago. You weren't
interested then and I have no intention of wasting any more of my time
on you.
Richard.
god almighty what a nasty group this place has sometimes.
--
George Hester
__________________________________
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:bv*******************@news.demon.co.uk... "George Hester" <he********@hotmail.com> wrote in message news:_g********************@twister.nyroc.rr.com.. .Are you saying that if the JavaScript protocol is removed everywhere in the op's page then the animating gifs will continue to animate after there has been some JavaScript interaction with the page? Thanks. I told you the answer to that question 11 months ago. You weren't interested then and I have no intention of wasting any more of my time on you. Richard.
fu
--
George Hester
__________________________________
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:bv*******************@news.demon.co.uk... "George Hester" <he********@hotmail.com> wrote in message news:ja********************@twister.nyroc.rr.com.. . You have to reload the page. <snip> Reloading the page is a ludicrously indirect way of addressing a problem with a known and clearly identified cause and a simple solution. But typical of *your* coding style. Richard.
"George Hester" <he********@hotmail.com> wrote in message
news:0V********************@twister.nyroc.rr.com.. .
god almighty what a nasty group this place has sometimes.
As you sow, so you reap. Go back and look at when you asked this
question in February 2003:-
<URL: http://groups.google.com/groups?thre...4.41234%40twis
ter.nyroc.rr.com >
-and particularly your responses to the advice you were given. And then
tell me what possible reason you could have for expecting anything
resembling help form me.
Richard.
Wise words from an imbecile.
--
George Hester
__________________________________
"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:bv*******************@news.demon.co.uk... "George Hester" <he********@hotmail.com> wrote in message news:0V********************@twister.nyroc.rr.com.. . god almighty what a nasty group this place has sometimes. As you sow, so you reap. Go back and look at when you asked this question in February 2003:- <URL: http://groups.google.com/groups?thre...4.41234%40twis ter.nyroc.rr.com > -and particularly your responses to the advice you were given. And then tell me what possible reason you could have for expecting anything resembling help form me. Richard.
In article <bv*******************@news.demon.co.uk>, Ri*****@litotes.demon.co.uk enlightened us with... "George Hester" <he********@hotmail.com> wrote in message news:0V********************@twister.nyroc.rr.com.. . god almighty what a nasty group this place has sometimes.
As you sow, so you reap. Go back and look at when you asked this question in February 2003:-
<URL: http://groups.google.com/groups?thre...4.41234%40twis ter.nyroc.rr.com >
-and particularly your responses to the advice you were given. And then tell me what possible reason you could have for expecting anything resembling help form me.
Or from the rest of us who have him killfiled from that time so we don't
have to read the arguing.
Would you stop arguing with him now? ;)
--
--
~kaeli~
Is it true that cannibals don't eat clowns because they
taste funny? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com... In article <bv*******************@news.demon.co.uk>, Ri*****@litotes.demon.co.uk enlightened us with... "George Hester" <he********@hotmail.com> wrote in message news:0V********************@twister.nyroc.rr.com.. . god almighty what a nasty group this place has sometimes.
As you sow, so you reap. Go back and look at when you asked this question in February 2003:-
<URL: http://groups.google.com/groups?thre...4.41234%40twis ter.nyroc.rr.com >
-and particularly your responses to the advice you were given. And then tell me what possible reason you could have for expecting anything resembling help form me.
Or from the rest of us who have him killfiled from that time so we don't have to read the arguing.
Would you stop arguing with him now? ;)
-- -- ~kaeli~ Is it true that cannibals don't eat clowns because they taste funny? http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
You know he always post with the same account to make sure your killfile
works.
ER.
"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
<snip> Would you stop arguing with him now? ;)
As its you asking, OK. :)
Richard.
On Wed, 28 Jan 2004 17:01:04 GMT, George Hester <he********@hotmail.com>
wrote:
[Fixed top-post] "Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:bv*******************@news.demon.co.uk...
"George Hester" <he********@hotmail.com> wrote in message news:ja********************@twister.nyroc.rr.com.. .
You have to reload the page. <snip>
The problem is the use of the JavaScript pseudo-protocol (<a
href="javascript:..."). When the user clicks on a link, the browser stops
most activities in preparation to load the new page. The expectation is
that the new page will completely replace the existing content so it
doesn't really have to bother with rendering the current page. One effect
of this is stopping the animation of images. However, calling a JavaScript
function that does something mundane, like just displaying an alert box,
doesn't replace the content. The page is left in this "reduced state", and
stays that way. Whilst refreshing the page will restart the animation, the
more intelligent solution is to move JavaScript code from the href
attribute to the onclick intrinsic event.
Reloading the page is a ludicrously indirect way of addressing a problem with a known and clearly identified cause and a simple solution. But typical of *your* coding style.
fu
Please, learn from those that are far more knowledgeable than you instead
of insulting them. If you cannot grasp the solution to such a simple
problem, especially when the said solution was presented to you numerous
times, I don't believe you should ever offer assistance to anyone in the
future. You are clearly not able to educate yourself, let alone others.
Mike
--
Michael Winter M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
On Wed, 28 Jan 2004 19:31:28 GMT, George Hester <he********@hotmail.com>
wrote:
[Fixed top-posting and set follow-ups to alt.flame] "Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:bv*******************@news.demon.co.uk...
"George Hester" <he********@hotmail.com> wrote in message news:0V********************@twister.nyroc.rr.com.. .
god almighty what a nasty group this place has sometimes.
Considering that you show no regard to the established etiquette of this
group, and many others, it is not surprising that some members show an
element of hostility towards you.
As you sow, so you reap. Go back and look at when you asked this question in February 2003:-
<URL: http://groups.google.com/groups?thre...59.45317%24iK4. 41234%40twister.nyroc.rr.com >
-and particularly your responses to the advice you were given. And then tell me what possible reason you could have for expecting anything resembling help form me.
After reading the thread that Mr Cornford pointed to, I felt the
overwhelming need to ask you: "Are you really that dense?" You were given
the answer at least seven times, yet you ignored it then, and you still
ignore it now.
Wise words from an imbecile.
If I frequented this group during the time of that thread, I would have
either kill-filed you immediately, or continued to read the thread simply
to discover just how stupid you are.
By the way, I did actually post a helpful response. This is just to vent
my frustration after reading that thread.
Mike
--
Michael Winter M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Michael Winter wrote: If I frequented this group during the time of that thread, I would have either kill-filed you immediately, or continued to read the thread simply to discover just how stupid you are.
By the way, I did actually post a helpful response. This is just to vent my frustration after reading that thread.
He's something else, isn't he? I had to go to google to see what he was
babbling, because I have had him killfiled for a while now and can't
remember how I did it in NS7 to undo it. I find him hilarious at times.
And my apologies for my last post to you.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
fu
--
George Hester
__________________________________
"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message news:op**************@news-text.blueyonder.co.uk... On Wed, 28 Jan 2004 17:01:04 GMT, George Hester <he********@hotmail.com> wrote: [Fixed top-post] "Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message news:bv*******************@news.demon.co.uk...
"George Hester" <he********@hotmail.com> wrote in message news:ja********************@twister.nyroc.rr.com.. .
You have to reload the page. <snip> The problem is the use of the JavaScript pseudo-protocol (<a href="javascript:..."). When the user clicks on a link, the browser stops most activities in preparation to load the new page. The expectation is that the new page will completely replace the existing content so it doesn't really have to bother with rendering the current page. One effect of this is stopping the animation of images. However, calling a JavaScript function that does something mundane, like just displaying an alert box, doesn't replace the content. The page is left in this "reduced state", and stays that way. Whilst refreshing the page will restart the animation, the more intelligent solution is to move JavaScript code from the href attribute to the onclick intrinsic event. Reloading the page is a ludicrously indirect way of addressing a problem with a known and clearly identified cause and a simple solution. But typical of *your* coding style.
fu Please, learn from those that are far more knowledgeable than you instead of insulting them. If you cannot grasp the solution to such a simple problem, especially when the said solution was presented to you numerous times, I don't believe you should ever offer assistance to anyone in the future. You are clearly not able to educate yourself, let alone others. Mike -- Michael Winter M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Raju V.K |
last post by:
can I use javascript and PHP in the following manner to create a
pop-up window:
<--- in <head> </head>
<script language=javascript>
function popup(folder1, file1)
{...
|
by: Josh |
last post by:
I am having a problem with sound in my program, it takes information from a
TargetDataLine, put's it in a temporary file, then takes it back out of the
temporary file and plays it using a...
|
by: Maik |
last post by:
I Need a popup-killer script
|
by: QA |
last post by:
Go to
http://dictionary.reference.com/search?r=67&q=apple
you see this
<!-- FASTCLICK.COM POP-UNDER CODE v2.0 for dictionary.com (12 hour) -->
<script language="javascript"><!--
var...
|
by: Daniel Santana |
last post by:
Hi, about Java WebServices, accessed by C#, I have two questions:
1) what I have to do, in order to use java webservices?
2) I search and I guess I must type the wsdl path in "add web reference"....
|
by: Stephen H. |
last post by:
Hi,
I have an existing web application with java beans that I wanne migrate to
ASP.NET using C#.
The existing web application has some jsp files that use java beans as
follows:
....
<%@...
|
by: Mark D. Smith |
last post by:
Hi
i have to popup (argh) a small page when an animated gif is clicked on. the
animation stops as soon as the popup opens. is there a way to restart the
gif or prevent it from stopping in the...
|
by: TycoonUK |
last post by:
Hi,
I am wanting to open a popup window (preferably using CSS) where there
will be just a border, image and a few words which I can click to
links from the images and text.
The popup would come...
|
by: Ha Nguyen |
last post by:
Hi all,
I showed the popup when login fail but after that it was displayed again if i refresh that login page.
Pls help me to not show popup when refreshing.
Incidentally, is there any idea about...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
| |