Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
oh sorry . new in codeproject.
Anyways thanks for your help
Posted
Updated 25-Nov-10 22:20pm
v2
Comments
saini arun 26-Nov-10 2:06am    
What error does it show in IE?

The second option in window.open is invalid. It should be one of the following:

* _blank - URL is loaded into a new window. This is default
* _parent - URL is loaded into the parent frame
* _self - URL replaces the current page
* _top - URL replaces any framesets that may be loaded
* name - The name of the window

As you provided 'Upload Photo' as the target window name, which obviously not present, it is causing error in IE.

Either use this:

newwindow = window.open(url, '', 'top=50,left=200,width=650,height=450,scrollbars=no');

or use:

newwindow = window.open(url, '_blank', 'top=50,left=200,width=650,height=450,scrollbars=no');
 
Share this answer
 
Comments
Dalek Dave 26-Nov-10 4:31am    
Good Call.
Thanks Mate.

It works Fine now

i just left it blank .and it works

Thanks Again
 
Share this answer
 
it shows this

MIDL
line :137
char :9
Error :invalid Argument
Code:0
URL:http://localhost:2233/mng_photo.aspx


however when i go to this line there is simple only

Any Suggestion Please
 
Share this answer
 
Comments
saini arun 26-Nov-10 2:46am    
Please also post the code for function popNewWindow
C#
function popNewWindow(url) {

        newwindow = window.open(url, 'Upload Photo', 'top=50,left=200,width=650,height=450,scrollbars=no');
        newwindow.focus();
    }


this is the code for opening the popwindow
 
Share this answer
 
Comments
Sandeep Mewara 26-Nov-10 4:04am    
Not an answer. You should use 'Improve Question' button to edit/update your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900