How can I use a pop-up page to navigate the parent page?
For instance, on my homepage, I have something like "Click here to choose your location". This should open up a page, with a list of option that I can choose to navigate the homepage!
I have just written some jQuery code that had to navigate to a parent sibling then 3rd child. My code was $(this).parent().next('ul').children('li').children('span').children('input').attr('checked', 'checked'); Is there any way to optimize this I thought this would work $(this).parent().next('ul').children('li span input').attr('checked', 'checked');
I use this code in a popup to refresh the parent browser. It works fine as long as the user actually clicks on this link but does not work in cases where the user closes the child popup through the Windows X (close) button. Any way to accomodate this also?
For example, I have a page: http://www.cmela.com/zz.phpWhen i open a popup by clicking "Click Here to open popup page" and then on popup window, i wanted it to transfer parent page from making a click on a pop up window.Example is at:http://www.cmela.com/zz.phpopen pop up window, and then by clicking on a link on a pop up window i wanted my parent page to go to www.msn.com
I want to know, if it is possible, how to reflect popup checkbox changes on correspondant checkbox in parent window. Main windows contains a list of thumbnails, each one with a checkbox. Clicking on a thumb, a popup window is opened containing a bigger photo beside a checkbox. If the user checks/uncheks it I want the thumbnail checkbox in parent window to be changed in the same way (and onclick tasks to be performed). To achieve this I am using cookies and onClick -> parent.reload.
I am using Xmlhttprequest object and checking for the onreadystate event and calling a function(), this is called for every 1 sec using the setTimeout method, this works perfectly but using this does not allow to navigate to the next page by clicking the next button in the page.
I am wondering if Jquery can navigate to a specific page marker from the url? For exampleCan i test the url to see if it has the #... added and then use that number to navigate to an appropriate page marker?
I have a script that will alert a message if the user navigates away from the page. I just need to EXCLUDE the event of submittiing the form. If they submit the form, allow them to - without alerting the message.the code:
Code: <script language="JavaScript"> var needToConfirm = true; window.onbeforeunload = confirmExit;[code]....
I know i have to make it return false, but whats the best way?
I have a dynamic page, it's a calander so called calander.asp
When the page loads it opens a popup window (filters.asp) containing a form that a user can filter different dates with different filters.
function openpopup(){ var popurl="filters.asp" winpops=window.open(popurl,"","width=400,height=600,scrollbars,menubar,") }
openpopup()
What im trying to do is get the when the user fills in the form. it submits to the calander page, (the parent?) <form name="form" method="post" action="calander.asp" target="_parent">
i want the popup to remain intact. when the form is sumbitted it opens a new window behind the filters.asp popup and doesn't filter the correct results.
I have seen threads all over about this but I am very new to JS and can not figure it out still. So what I have is a popup containing a button. Once you click on the button I need the popup to close and the parent page to redirect to a specific link.
Wondering how one would go about creating a popup window that would exactly copy the size & location of the parent window. I am guessing that you would combine two functions, one to assign size & location of parent window to JS variables; the next to open the popup incorporating those variables. I'm sure i can find snippets on the web. would there be a simpler way?
All three values are received at the JavaScript function. Have problems in translating and passing it to the parent. Trying to do the following from popup
All works for IE, but when coming to mozilla ,firefox the refresh is a step delayed, i.e when I open my popup to add an itme to my cart on parent page ,for the first time it does not show anything , but when I try to add another item , the first one shows.
I want to send data from a form on a popup to a form on its parent page. I have checked several approaches, but none of them is working with me. In the end, I've just tried to use an existing example from the web (http://www.plus2net.com/javascript_t...dow-child3.php) but even this is not working locally after copying the code from there, while it's working well when I try it directly on the page.
I have absolutely no clue what I am doing wrong. But after this experience I have my doubts, that it's not about the code. EDIT: I just found out, that this problem is specific for chrome, if I try this page on the web, it's working on chrome and firefox. But if I try it locally, it's just working on firefox. Does anybody have an idea how this could happen?
Here isthe problems that I'm trying to solve when I want the user to close the popup window via a "Close Window" button. fyi the popup window contains a survey.
If parent window is open & minimized > Then I can't bring to focus on the parent again, it stays minimized.
Is there an easy way to maximize the parent again?
All works for IE, but when coming to mozilla ,firefox the refresh is a step delayed, i.e when I open my popup to add an itme to my cart on parent page ,for the first time it does not show anything , but when I try to add another item , the first one shows.
I have the need to create a popup after a delay. The problem I'm getting is that the parent page is refreshing automatically from the action of creating the popup. I don't want the parent page to refresh!
... if it was placed straight into the HTML. Incidentally, it's included into the HTML HEAD area, not the body, as the original source of the script suggested: [URL]
$delay is the delay before the popup opens, in microseconds (so 6000 would be 6 seconds).
What can I do to have the same delayed auto-popup functionality, but without it automatically refreshing the parent page where the above code resides?
As some background to what I'm achieving: The issue with not wanting the parent page to refresh is that each time it does, the login session gets extended. The popup itself (which I already have working ok) provides a 'continue working' function, or close and refresh the parent is nothing has been done after a short period.
I'm trying to force my users to close a popup window before they can return to the Parent window. I more or less want to "lock" the parent window and force the user to fill in the info on the popup and hit submit, which in turn will close the popup and then allow the user to continue working on the parent window.
I have a popup which do some operations, parent window should do some operations too but after the popup finishes there r many ways to avoid that can check with database or session or .. etc but i guess if there is a way with JScript or Javascript to make the parent window disabled or deactivated ( as in alert:javascript u can do nothing with parent till u press OK )
how to redirect the parent window (below the popup) to a new address when a user clicks a link in a pop? And the pop up should close. This javascript refreshes the parent window and closes the pop up but it does not send the user to a new page in the parent window. onClick="window.opener.location.reload(true); window.close();" I don't know much about javascript.
On my parent page I have a form with an input text field containing the value of a Customer name (pulled from a database). I also have an image link that, when clicked, will launch a popup window that performs a database lookup and displays all Customer names.
What I'm looking for is a javascript solution to do the following:
1. Each Customer name in the popup window be a hyperlink that, when clicked, will populate the Customer input text field on the parent page (thereby removing the text field's current contents).
I have one page with <select> list in it, which opens a popup with another <select> list. Those two list are linked... When I select something in the list that is in popup window and confirm the selection (by pressing button), I call a function that fills the "parent" window and forces popup to close. All this is accomplished by directly accessing another list:
for(var i = 0; i <= selLength; i++){ name = parent.window.opener.listValues.options[i].text; value = parent.window.opener.listValues.options[i].value;
self.document.form1.itemList.options[i] = new Option(name, value); }
And this doesn't seem to work with IE. With Firefox is OK.