Hi There! Starter question... I have a web form (main.aspx, loaded with several controls) and in it a IFRAME that contains my child.aspx.
Now, when I click on my button on "child.aspx" I need to raise an click event on one of the controls in the main page.
To do that I used a little JavaScript.
Button click event in child....
Page.RegisterStartupScript("getParent", "<script language='javascript'>getParent( )</script>")
Then, JavaScript on child.....
Function getParent(){
window.parent.clickMyButton(); // this line could go in the page.registerS....... to skip this step
}
And, the JavaScript on the parent.....
Function clickMyButton(){
document.getElementById( 'myButtonControlName' ).click();
}
No I'm I'm having a error on the parent page: document.getElementById () is null or not an objetc.
I'm passing the control name: MapControl1.
The web page I'm tring to modify is:
http://www.eauclairedevelopment.com/...ty_search.html
The part with map legend are my Main.aspx, the property search is my child.
When I click on Search, I want to display the results + refresh the draw on top -> Calling the event Image_Click on the parent page.
I'm a begginer with java, so I'm wondering if I can use a java function to call directly my Sub Image_Click (in my MapControl1 control).
Any ideas?