Question: How to use in jQuery data from window.open

```
  w = window.open("http://google.com",
            'test_window',
            'left=20,top=20,width=500,height=500,toolbar=1,resizable=1');
  browser = w.document;  
  // execute commands in browser
  $(browser).ready(function(){
    alert($('input', browser).attr('name'));
  });
  // close browser
  w.close();

```

In this example I want to open new pop-up window, load Google page and get information about loaded page element (name of input filed).

I try to do this, but not found solution. Please, help me.

Answer: 
I found the solution to this issue and posted it here:
<http://forums.asp.net/t/1554406.aspx>
This post had the answer I was looking for: <http://lionsden.co.il/codeden/?p=137&cpage=1#comment-143>

> 
> **What is Page\_BlockSubmit**
> 
> 
> When the user clicks on a button causing a full post back, after running Page\_ClientValidate ASP.NET runs another built in function ValidatorCommonOnSubmit. Within Page\_ClientValidate, Page\_BlockSubmit is set based on the validation. The postback is then blocked in ValidatorCommonOnSubmit if Page\_BlockSubmit is true. No matter what, at the end of the function Page\_BlockSubmit is always reset back to false.
> 
> 
> If a page does a partial postback without running any validation and Page\_BlockSubmit has not been reset to false, the partial postback will be blocked. In essence the above function, RunValidation, acts similar to ValidatorCommonOnSubmit. It runs the validation and then returns false to block the postback if needed. Since the built in postback is never run, we need to reset Page\_BlockSubmit manually before returning the validation result.
> 
> 
> 

After Page\_ClientValidate is called, the variable Page\_BlockSubmit gets set to true, which blocks the autopost back. Page\_BlockSubmit was getting reset to false on the second click, for reasons I still don't fully understand. I'm looking more into this, but I have a solution and I'm under the gun so I'm rolling with it.

In summary, I previously had the following code:

```
for( var i = 0; i < Page_ValidationSummaries.length; i++ )
   Page_ClientValidate( Page_ValidationSummaries[i].validationGroup.toString() );

```

By adding `Page_BlockSubmit = false` below that, I get this:

```
for( var i = 0; i < Page_ValidationSummaries.length; i++ )
   Page_ClientValidate( Page_ValidationSummaries[i].validationGroup.toString() );

Page_BlockSubmit = false;

```

Which allows AutoPostBack=true controls to execute inside of updatepanels. However, the form itself is still never submitted because my client side validation code returns false whenever a single Page Validator has in invalid value.
I was having the same problem, though all I have is a Textbox using a RangeValidator, along with a submit button. When the user entered a number outside the range and clicked Submit, the invalid-number message came up. If they changed the number to a valid one and clicked Submit again, the message went away, but the onclick event did not fire. If they clicked Submit a second time it did fire.

I had to remove the Display="Dynamic" attribute from the RangeValidator to fix it.