Pass Value From Child Page To Parent Page?

Sep 26, 2011

I have parent page http://localhost/pc/rep/pc.php after the user enter the customer data, the user will press button to print it

then, call child page via window.open jar:http://localhost/pc/rep/my-ca/script.jar!/test.html

as you can see, they are belong to the same domain.

The user will select the lables that the program will printed, and the numbers of each one.

I don't know, how can I pass the data from child to parents.

parent.opener.document.forms.item(4).txtClaimTicket.value = 1;
[permission denied for <http://localhost> to get property window.document from <http://localhost>

View 5 Replies


ADVERTISEMENT

Refreshing A Parent Page From A Child Popup

Feb 10, 2006

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?

View 3 Replies View Related

Ajax : Add / Update In Child Page , Parent?

Mar 18, 2009

I have a page [parent], on it is a link to a popup [child] that opens up a form. On the [parent] page is a list of entries from the table in the DB.

So basically once a form is submitted on the [child] page, I want the list of entries on the [parent] page to be refreshed

View 2 Replies View Related

Child Windows Not Closing After Refreshing Parent Page?

Nov 30, 2010

I have home page with session close button and 10 child window link and i am opening all child window.All child windows should close after clicking on session close button. Code bellow

<html>
<script type="text/javascript">
openWins = [];
curWin = 0;

[Code]....

View 2 Replies View Related

Pass A Value From Parent JS To Child Window?

Jan 10, 2010

I need to pass a value from parent JSP to child window / pop up window.

in pop up window, i have a textbox which has id as rs and name as remSeconds

from parent i need to pass the value calculated from a timer which is remainingTime. code...

View 13 Replies View Related

Passing Data From Multi-page Child Form To Parent Form

May 23, 2010

I would like to have a main form (written in PHP) that has a "lookup" button next to a text field. When the user clicks "lookup", it should open a new window that lets them search (child.page1). When they enter a name or DOB into the search form, it submits the form through PHP (via POST), to a results page (child.page2). This displays all persons in the database which have a name or DOB == to the search term(s), with a checkbox next to each match. They click the checkbox (or alternenatively, a link), and return the checkbox value to the main window.

I have everything working right now, except that (child.page2) doesn't recognize the main window. If the data is entered on (child.page1), it works fine. I'm not very familiar with javascript.. is this even possible? I've considered using frames, to keep the parent-child relationship evident to the computer, but figured I'd check to see if there's an easier way.

View 4 Replies View Related

Pass Array From Child Window To Parent Window?

Jun 22, 2009

My scenario is like this.

1. Click on button and pop up child window.

2. Select multiple checkbox and submit array which send back to parent window and value store in a hidden variable.

i manage to do pop up child window, pass textfield value to parent window. But it cant send php array to parent window. Please help. I'm not good in js. code...

View 3 Replies View Related

Calling Function Residing On Ancestor Page From Child Page

Dec 13, 2005

I am working on a web application and have run into a problem. From a
main window (Window1) I open a child window (Window2), and from that
child window I open a grandchild window (Window3). I need to call a
funcion that resides on Window1 from Window3. I do this successfully
by calling a function with window.opener on Window3, which calls a
function with window.opener on Window2, which calls a function on
Window1.

My problem comes in with the case of a user closing Window2, and trying
to carry out the function on Window3 that calls the function on Window
1. I have already tried window.top, but it doesnt seem to work.
window.opener of course returns the error "window.opener has no
properties".

View 2 Replies View Related

JQuery :: Triggering Click Event On Parent Page From A Page Being Loaded Via .html()

Jun 9, 2010

I am working on a page that will load in other pages using AJAX and the .html method. Something like this :

<span id = "edit">Edit</span>
<div id = "cont">
</div>
//the click edit script

[Code]....

Unfortunately this does not seem to work, entirely. It does trigger the click event but it messes up the post for some reason. I have played around with it for the last 45 minutes or so and it seems like the click event trigger is what is messing things up, if I comment it out it works fine. Could anyone tell me why they think this is? note this is an over simplified version of my actual code, but the structure is the same.

View 2 Replies View Related

Make Whole Page Send The User After Some Seconds To Another Page And Not Only The Iframe And Parent Location?

Jan 10, 2011

I have an webbpage, and in the middle of it there is an iframe to a php site. So i have used this code, so after some seconds the iframe will send the guest to another page. <meta http-equiv="refresh" traget="_top" content="5 url=http://mypage.com"/> But the thing is that i want the WHOLE page to reload, and go to that page after 5 seconds (we can say). With that code, only the iframe are going to another page. Is it possible to make the whole page send the user after some seconds, to another page and not only the iframe?

View 1 Replies View Related

Accessvariables In An Iframe Src Page From Parent Page - Or Vice Versa

Aug 29, 2011

Is it possible to access javascript variables in an iframe src page from the parent page, or vice versa. How do you do this? What about the DOM?

View 1 Replies View Related

Cookie Reading - Create A Simple Checkout System That Utilizes Cookies To Pass Information From Page To Page

Nov 9, 2010

I'm trying to create a simple checkout system that utilizes cookies to pass information from page to page. Currently, my entire script works fine except for the read cookie portion. I cannot figure out what is wrong with it. It has been validated and the syntax is fine; it just doesn't work. I use the function with the onload call on my html file such as:

[Code]...

View 3 Replies View Related

JQuery :: Test If Html Page Has Parent Page?

Apr 20, 2010

How to test if a html page has a parent page?Let me explain: I use the (great) Colorbox plugin and I like to apply jquery functions only if a page is in an Colorbox iframe.So, basically, I'd like to know how to determine with jQuery if a page has a parent page (= is in a Colorbox iframe).

View 2 Replies View Related

Parent Child Checkbox - Only Same Name Of Child And Parents Should Be Unchecked

Oct 28, 2010

I have created parent child checkboxes. When one child is selected, then parent of that child, other child of same name and parent of that same name's child will be selected... Now I want if I unchecked any child, then only same name of child and parents should be unchecked or if I unchecked Parent Child, then same name of parent and child will be unchecked.

[Code]...

View 1 Replies View Related

Pass Info From Page To Page

Jun 8, 2005

How can I pass information that user types in from one xml page to another?

View 2 Replies View Related

Form Fields In IFrame Page - Parent Page Get The Form Data Entered?

Oct 14, 2011

I have form input fields but it is being called through iFrame by the page. But how do I get or pass the data entered into the parent page.

[Code]...

View 1 Replies View Related

Communicate To Child Iframe From Main Page

Apr 22, 2009

I'm trying to access a child iframe from my parent page. Is it possible? I've googled this extensively ut have found only scripts that allow me to communicate from the child iframe to the parent iframe. I want to do it the other way round. I need to be able to get in to the child frame and access it's DOM.

View 8 Replies View Related

Pass Value From One Page Textbox To Another?

Jul 2, 2010

I've two pages(forms), page2 pops up when we click on page1 form button A or B. On page 2, user can only fills out the TextBox 1 or TextBox 2.

After submitting the Page2 Form, I want to pass the value of Page2 Textbox 1 or 2 to populate on Page1 Textbox A or B(if user click on Button A, value should go to Page1, TextBox A). code...

View 2 Replies View Related

Pass Script Value From Page To Other?

Nov 11, 2009

The idea is to make "offline" bill of lading

i used to do php thing and well this time i only need to kinda make bill of lading generator

so i want to pass value from page 1 to page 2 and to page . all offline without web server interaction

i was never fluent in javascript and i wanted to get a quick start from you guys how do i pass the form ( javascript variable from 1 page to another page )

i am googling this as well right now and hoping answer from codingforums

View 13 Replies View Related

Pass A <select> Value To Php Page?

Nov 20, 2009

i have auto complete that i want to be able to select a column of the database before searching on it i just want to pass the oneone variable over to the php page. so i have this javascript

<script type="text/javascript">
$().ready(function() {
function log(event, data, formatted) {

[code]....

View 1 Replies View Related

Can't Pass Variable From One Page To Another / Fix This?

Dec 6, 2009

Right now I'm working on a website, and it has a hierarchical menu in the right and im also doing some content loading in a div, all that with javascript. My problem is that when they click on a link, I need to pass a variable "id" through the link. I dont want to pass it in the url, but I want to pass it in another way, for every link the id is going to be different. How can I pass a variable to another page and how can I retrieve it in that page so I can use it for the content loading?

View 1 Replies View Related

Pass Data From One Page To Another?

Dec 6, 2010

im making a web page that asks the user to fill in a order form ranging from drop down and text boxes i want the information that is entered on the first page to be displayed on the second page as a order summary how do i do this?

View 3 Replies View Related

How To Pass Variables To Another Page

Jun 2, 2010

I'm creating a small e-commerce store where things live coupon activation will be done on the client side(That's without loading the page). My problem is that I don't know how to pass the coupon deduction to another page using javascript. Is there a way out using javascript or is it possible to pass javascript variables to a server side language like PHP.

View 7 Replies View Related

Refresh The Parent Page?

Jun 1, 2011

I have the following script that refreshes the page that opened the pop up window, after the pop up window is closed.

if(window.opener && !window.opener.closed)
{
window.opener.location.reload(true);
}
window.close();

It is working fine in IE but it's not refreshing the parent page in FireFox.

View 2 Replies View Related

Refresh Parent Page

Jun 13, 2006

I'm unsure if this is a php or javascript problem as I am new to javacript...

I am using a javascript:popup('page.php') command to open a popup box and allow the user to make a few changes to a mysql database. However the values that are changed are displayed on the parent page (the one that the user clicks the popup link on).

Is there a way to refresh the parent page from the popup, so when they submit the form in the popup the parent automatically refreshes with the new values (rather than the user having to manually refresh the page)?

View 2 Replies View Related

Getting Value From Child To Parent IFrame?

Feb 4, 2009

I have one page which have two ifrmaes, parent iframe contains no of child iframe. Now oncliking child iframe check box, I have to get that value into parent iframe, I managed to create array of parent iframe but can't get child ifrmae's control. I used like this:
document.getelementbyid("iframeparent1).document.getelementsbyname("Check1")
but it doesn't work.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved