Remember All Windows I Opened
Jul 20, 2005how can I remember all windows I opened to close them with one click on a
button? (btw: do arrays exist in Javascript?)
how can I remember all windows I opened to close them with one click on a
button? (btw: do arrays exist in Javascript?)
I have a function that opens a new window when the link is clicked. The pop-up window contains a customer's info. Each time I click the link, my pop-up is opening in the same (popped-up) window, but I'd like it to create a new window each time.
View 1 Replies View RelatedI have opened a window in javascript with:
mywin = window.open(blahblah);
To keep myself from reopening the window everytime i do a click, i changed it to this:
if(typeof(mywin)=='undefined' || (more conditions here))
{
mywin = window.open(blahblah);
}
The problem is: variable "mywin" is lost after i REFRESH the current page. Since i'm doing a LONG, LONG inventory management (where the opened window is about 200K long), I want to know how I can access the opened window. I tried searching the web, but as far as I know there isn't any "list of windows previously opened by this one" method or property.
I've managed to do it with a setTimeout function on the child window that calls another function of the parent window every 1/2 a second. Code:
I am trying to modify with jQuery the content of a child window but for an unknown reason it does not work. I would be gratefull if someone may explain what (how) happend. Here is my code:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Open a new window with a bare html file
var newWindow = window.open
[Code]....
What I expect (you should already have understood) is a new div to be appended to my child window body. The div (and its text) is effectively inserted (in new child's window) but then disappears in the process. Once I look at the generated code, the div is not in child's DOM.
This is my first post to this forum. When a button in parent window is clicked multiple times, more than one popup window is opened. This problem is occurring in linux firefox and mozilla browsers. In windows the code is working fine. Is there any option in window.open() method to open a popup window once. s there any known issue regarding this case?. Need a workaround to fix this issue.
View 1 Replies View Relatedhen a button in parent window is clicked multiple times, more than one child window is opened. This problem is occurring in linux. In windows the code is working fine. Is there any option in window.open() method to open a child window once.
View 8 Replies View Relatedbelow is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows
<SCRIPT LANGUAGE="Javascript">
function PopShow3() {
CookieTest=navigator.cookieEnabled; if(CookieTest)
[code]....
I have a parent window that pushes a new window object onto an Array
with the following code :
OpenChild()
{
//totalNumWindowsCreated is global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
childWnds.push(window.open(link, "child" +
totalNumWindowsCreated,"dependent"));
..
..
..
}
This pops up a new window with every call. In the child window I call
a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){
window.opener.CloseChild(getQueryString("application"));
}}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have
one child window open, but as soon as I create another child window
both of the open child windows don't ever call it. They do both go
into the onbeforeunload appClose() function, but do not call the
window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't
access the window.opener functions?
I have tried taking each new window out of the array and used the
following code in CloseChild() :
CloseChild()
{
//win and totalNumWindowsCreated are both global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
var win = window.open(link, "child" +
totalNumWindowsCreated,"dependent");
..
..
..
}
I am creating a navigation system for my site, all menues are hidden only their headings are appear on the site. When a visitor click on a heading its shows the navigation links. Its working smoothly.
The problem is when user open a navagation menu and click on a link to browse the next page/link, after loading the next page the menu got close and visitor need to reopen the desired menu. I want that the desired menu stay open while browsing the site and only closed when a visitor wants to close it. Code:
I have just got my web site to the point where I am about to upload
it, but I have come across a problem which I do not know what to look
for on the web. I will try to describe the problem the best I can. I
have a page with pictures in a table of 3 X 10 all pictures are
thumbnails 100 X 90 all is just fine, but I have a link to pages from
the thumbnails but when I return to the thumbnails I start back at the
top of the thumbnails page. I have been told that this can be done
with JavaScript but I do not know what to look you on the web, I have
tried to look for something [Remember page position, Page history] but
with no luck I have not done any JavaScript before and do not know
where to start, so any help would be great.
Im trying to figure out a way to remember the value of a variable at a php file usign ajax but until now i cant image how make it work. My first file is a form that contains a list of states or regions and by doing click loads dynamically the list of another regions according to the first state selected. The idea is to send that form to the same page through the action command but like the ajax function only loads at onchange calling it doesnt work for what i want to do.
Here is my code: This is the main file where loads the second catalog
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "(URL address blocked: See forum rules)">
<html xmlns="(URL address blocked: See forum rules)">
<head>
[Code].....
I have created a ChatBot in JavaScript which allows people to type text into a text-box, such as "hello" or "what is the time" and the ChatBot responds back with a response on a seperate WebPage such as: "The time should be indicated on your computer" etc.Is there anyway that I can get the ChatBot to remember specific details about people that they enter into the textbox using JavaScript, such as their name or age, etc?So that then on a random WebPage on the same server, I can get it to display that stored name or age that the user stated to it.If someone has a code that could possibly do this, I'm sure I could find a way to work with it.And also, something else which I would also love as an alternative otherwise; How do I get JavaScript to display the current Microsoft Windows user account name.I would appreciate any help that people have to offer, and respect anyone who gives it and have concluded this to be the best site to get help on so far. Lol.
I would like to implement a cookie feature on my site that when a user logs in a cookie is stored for him and the next time he comes back, he doesn't have to sign in. I have researched hotscripts and javascripts but the ones I have found have to do with the "remember me" and thats not quite what I want. I tried to manipulate it but with no luck.
View 2 Replies View Relatedmy name is ajayraj i want to store value in java script variable from drop down list means if first i selected India from drop down then value of var msg=india after i selected Pakistan then value of msg= India+ Pakistan like that How can I do that?
View 1 Replies View RelatedCan someone point me in the right direction to find; How to remember variables in the address bar so that no matter what page they visit they will still have the same variables that were present when they came into the page. Variables such as, ?
this will be for regular html pages for now and then I will eventually need it for PHP pages.
I have a problem with my code. I implement different Tabs into a Microsoft Office SharePoint Server 2007 site (.aspx). Now everytime I select a tab and refresh the whole page, IE7 cannot remmember the last session and navigate automatically back to tab1.. Properly I need to set Cookies. Im a beginner in using cookies and coding javascript..
[CODE]
<%@ Page Language="C#" MasterPageFile="~masterurl/default.master" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" %>
[Code]....
I have no experience with JS, just general knowledge of html/css. I had someone else write the site for me. They didn't know how to do this and pretty much just stopped talking to me... On my site, I have a video carousel (4 video thumbnails in a row, you press the > arrow, and it shows the next 4 video thumbnails, you click 1 video thumbnail, and it shows you the video above the carousel).
The problem is, when you click on one of the thumbnails, it reloads the page, and the video carousel goes back to the beginning. So if you clicked the > arrow 3 times (ur on the 3rd set of thumbnails), then it brings you back to the 1st set. This is pretty annoying, especially if your planning on watching each video. My question is, is it possible to make some type of cookie or something to remember which set of thumbnails you were on in the carousel?
So that, if your on the 3rd set, and click a video, instead of resetting to the 1st set, it keeps you on the 3rd set. If it is possible... how hard would it be to do? Is it something where I could just copy/paste a string of code, or would this be a huge project?
I want to remember the scroll position (Vertical). So I have 100 articles per page and I pick
one article to view its details.. that is on new page. So when I hit the browser button (back) I would like that browser puts the scroller where it was. I think I should use cookies for that... but how?
In my code I want my image to move right when the right arrow key is pressed (which it already does) then to stop when you release it, also is their an easier way to write/remember the keyboard numbers?
Code:
I am making an iphone app...the how-to section is basically one long page that shifts the view to a different div on a touch event. So, say I scroll down 50 lines on div1 and click a link to take me to the top of div2. How would I maintain the scroll position of div1 so when i click 'back' it shifts the view back to div1 and to the last position they were at?
View 2 Replies View RelatedI have a Login Page whrere all Functionalities such as validations are
Done in Client Side...
I have to Implement Remember My Mail Id and PAss Word Functionality
also in Client side..
When Remember PAssWord Check Box is Checked.....
The User and Mail Id Should be Remembered Duriing The Next Login...
How could i do this in Client Side.
I have 3 tabs that call an external ASP page that has a rather intensive Database query and takes a while to execute and display. On my tab there's a link to another page. once that page is finished the user goes back to the tab. But my problem is it's going back to the database page (that takes a while to execute).Can the original page be cached and remembered so that I dont have to keep calling my database page?
View 1 Replies View Relatedhow do you save the position of a widget or list ?[URL]...
View 3 Replies View RelatedI have built a website with draggable scaleable items on a page. You can see what I've done here... [URL]
It uses java script from... [URL]
What I need the site to do is remember the position and scale of the items so that when visitors return to the site the items are where they left them.
I believe it is possible to store this information in a cookie, however I have no idea how to do that or make it work.
i have a slider ( slideup and slidedown of a div box ) and in the div box i have a menu. If i click on the menu the page will refresh and my div box do not show because standart the div box is up ( slidup ). can i make jquery remeber how position is my slide ? if the page do refresh i will see my div box.
View 2 Replies View RelatedI want to make my site more accessable without duplicating my website.
I have included a link on each page that allows a user to view my site without loading my css stylesheet. The only problem is that a visitor has to click on the link in every page. I want to use a cookie, but I cant get my head round writing the cookie script, that will remember the enable/disable links throughout my site (preferably for just the session). Code: