Is there a way to find if any intervals (set by window.setInterval) are still open? I just want to have a way to double check my code ( in debugging) and be sure I'm not leaving any unclosed.
I'm trying to determine if a named child window has been opened before opening a new one, however my challenge is that the child window may have been opened from a parent that no longer exists, therefore there is no access to the child window handle. Any ideas?
I have a small problem which I haven't succeeded to find any answer to. How do I get this to open in an external window? $("#id").click(function() { window.location=$(this).find("a").attr("href"); return false;});
I want to make an animated gif that runs through one loop and then stops. But I want to invoke it at random time intervals...so, for instance, a tight head shot of a person's face winks at the viewer once or twice per minute, at unpredictable intervals.
I think I could figure out how to use rand() and setTimeout(...) to create the random time intervals, but I'm not sure about how to start the one-loop animated gif. Would I have to reload the whole page? Or is there someway to restart the gif animation *without* reloading the whole page?....probably not, the more I think about it.
I'm trying to build a tee-time reservation page, and want to display all the available tee times on one page for a particular date. I simply want to list the times out in 10-minute intervals, like:
8:30am 8:40am 8:50am
Additionally, I want to be able to parse out the times that already have entries in my SQL database, but for now I'll settle for just getting the times listed.
i am having a problem understanding exactly how setInterval and setTimeout work and really need some I want to create an array and then print out each element one at a time at one second intervals.
I've only been able to come up with something like this, but it just prints the last value of the array after a second.
<script type = "text/javascript"> <!-- var myArray = new Array(); for (var i = 0; i < 11; i++){ myArray[i]=i+50;
I am having trouble with multiple slideshows. I have two seperate and I am trying to fun them on the same intervals. The second slideshow stops.
<script type="text/javascript"> <!-- var image1=new Image() image1.src="ciscoflash/01.jpg" var image2=new Image() image2.src="ciscoflash/02.jpg" var image3=new Image() image3.src="ciscoflash/03.jpg" var image4=new Image() image4.src="ciscoflash/04.jpg" var image5=new Image() image5.src="ciscoflash/05.jpg" var image6=new Image() .....
However, I just want to add a small bit of functionality to a new site to make the waiting site owner happy.As you can see here, I got a big image of glasses on the top right of the home page.I do this with CSS only:Html:
I work primarily with php, and haven't had much experience with JavaScript. I was wondering if JavaScript is suitable for automatically updating a database with the contents of a text area, at intervals of 3 minutes... without refreshing the page? It doesn't have to change the content of the text area, just take a snapshot of it. I am trying to develop an 'autosave' feature.
I've found many examples of creating slideshows using javascript all over the internet and these forums. However, I haven't found any that show how to create a slideshow and give each slide a different time interval between switching to the next one.
I'm changing my website over from a Flash based one to something that can be read on all devices. In doing so I've looked for ways to add a little motion to the site. I'm working with a friend who has been doing most of the site but here and there I like to get my hands dirty and try some things on my own. Unfortunately he doesn't know Javascript.
I wanted to have an animation window in the bottom corner of the page. Look at [url] to see what I came up with. I took a slider plugin for Wordpress and basically created a bunch of slides and entered them in to switch every .5s so that I could change how quickly they changed images by making some of them repeat the same slide 4 times for 2s, 2 times for 1s, etc. Though it's not pretty, it works. On Firefox everything looks great although it'd be nice to have fade in and out on each slide. On an iPad or IE it actually shows the flash between slides even when they're the same image. Quite frankly, it's ugly. Does anybody have any ideas?
I'm trying to get this to work in a Wordpress site on a window with dimensions of 450X230.
I have been able to piece together some code for a stopwatch. I have everything the way I want it in regards to the function and look of the stopwatch, but I want to be able to set timers so that the ss() function in the code below will go and stop automatically at intervals I can set.
I have an assigment of statistics formulas in java i have calculated the classes class intervals and boundry but i am unable to find out the frequency.........
I need three tabs out of which only one is open at a time n when u open another tab, one out of the earlier closed one should open(preferably with mootools). And also the tab which is opened should come at the top of the page as well.
Through window.open or window.showmodaldialog, I want to open a word or excel document in Print Preview mode. Bcos I don't want the user to make any changes or save it but the user can ONLY VIEW OR take a print out.
I'm using an <A> tag with an onclick event to open a window with JS (window.open)... In FIREFOX, if I click very quickly, multiple windows open. Not a problem in IE.
I have multiple parent sections on the page. Each section has 3 child sections. Each parent toggles open and closed. and within each section there are buttons to toggle the children open and closed.
In the case of both the parents and their children, when a parent is toggled open I want the other parents to toggle closed . The same applies to the children of each parent. I want to close all the other open children when a child is toggled open. Rather like some accordions - which I can not use for this function. This way there is only one parent and one child open at any time
Because of the number of parents and children on the page I can not use Ids. All are designated by classes
in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"
Clicking on the menu buttons, a box with some info opens, ad under that, a div that makes the body of the site black. the problem is when i click a different button, to open a different box, the "div#black" should stay open and not toggle. i tried this
var black = $("div#black").toggle() ; if (black == false { $("div#black).fadeIn("slow"); };
and this was the javascript for the button (with the toggle function, when i didn't use the if/else):
[Code]....
I don't know which is the correct way to write the if statement, i used easier ones but this one is to complex for me :D i think the main problem is the "var"
With ref. to MS IE, when I use window.open with the usual sizing and 'toolbar=yes', 'menubar=yes' the target URL opens in a new window - but without an address bar.
'addressbar=yes' does not seem valid. Can someone please tell me how to proceed?
When creating a new window and specifying ANY features (on or off) at all like such:
<A HREF="javascript:void(0)" onclick="window.open('NONE.php','welcome','toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1, scollbars=1')"> Open a new window</A> the new window does not have scrollbars even though scrollbars are necessary for my document (vertically, at least).
This problem occurs in Firefox and Internet Explorer 6. The problem does NOT occur if there are no features are specified.
I need a script that can open an external page, or some type of content, in a box. This is kind of hard to explain, but here's what I mean, go to facepunch . com (I'm not a spambot dammit) and click on that litte face at the top.