RSS

Monthly Archives: November 2014

JavaScript How to Interact with Parent window from child window

javascript

parent.html

<html>
<head>
<script >
// assigning new property with function so child window can point it
document.functionToBeCalledFromChildWindow = function (param){
  alert(param);
}
 
</script>
</head>
<body>
 <div id="response"></div>
<button onClick="window.open('child.html', '_blank', 'width=500,height=500')">Open window</button>
</body>
</html>

child.html

<html>
<head>  
</head>
<body>
 <script >
   window.onload = after;
   function after(evt)
   {
       
   }

//Here we call function "functionToBeCalledFromChildWindow" in parent window.
//window.opener.document.functionToBeCalledFromChildWindow('Mom, U there?');

//Here we access DOM in parent.
 window.opener.document.getElementById("response").innerHTML = "Success";
 window.close();
 opener.window.focus()
</script>

Hi I am the only child here.
 
</body>
</html>
 
Leave a comment

Posted by on November 30, 2014 in JavaScript

 

Tags:

Download Australian Postcode Data

 

Buy Now  $30.00


Postcodes       2,952

Suburbs         14,665

States

New South Wales
South Australia
Western Australia
Queensland
Tasmania
Victoria

Self-governing territories

Australian Capital Territory
Northern Territory

Sample Data set

 Sample Data Set

 

Features

  • Available in multiple formats – .csv     .sql      .doc    .json       .xml      .yml       .ods     .odt     .pdf
  • Easy integration for existing or new web sites, mobiles apps…etc.
  • Well-ordered, clean data set
  • GIS related PHP scripts and functions free for developers
  • Satisfaction


Buy Aus Data set now

Contact us for any queries.


* Please note that there may be slight accuracy related problems in the data set as Australian postcodes are changing constantly.

 
Leave a comment

Posted by on November 17, 2014 in Data sets, Products

 

Tags: