populate - Populating parent window from a child window -


i working on website. here want import gmail contacts. achieve this, in parent page(php), have added link mentioned below.

<a style="font-size:25px;font-weight:bold;" href="https://accounts.google.com/o/oauth2/auth?client_id=213413545397468.apps.googleusercontent.com&redirect_uri=https://localhost/oauth/oauth.php&scope=https://www.google.com/m8/feeds/&response_type=code" onclick="window.open(this.href,'targetwindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=880,height=550'); return false;">click here import gmail contacts</a> 

below link there textarea, want populate gmail addresses.

when click on link, new popup window opened allows me log in gmail. once log in, displays gmail addresses in address book in popup window itself.

as mentioned earlier, want populate textarea gmail address. so, have added javascript in child php populate parent page.

window.opener.document.getelementbyid('textarea').value ='email addresses'; 

but nothing gets populated in textarea.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -