window.open( "URL" ..... for localhost is not working
-
Hello Experts, Following is the code not working for me .Could anyone please help me out regarding the issue? Thanks in advance.
try
{
Response.Write("<script>window.open('http://localhost:1390/WebClient/WebPages/CommonPages/HomePage.aspx','\_new','height='+screen.height+',width='+screen.width+',top=0,left=0, status=no,toolbar=no,menubar=yes,location=no,titlebar=no');</script>");
}
catch (Exception ex)
{
Response.Write(ex);
} -
Hello Experts, Following is the code not working for me .Could anyone please help me out regarding the issue? Thanks in advance.
try
{
Response.Write("<script>window.open('http://localhost:1390/WebClient/WebPages/CommonPages/HomePage.aspx','\_new','height='+screen.height+',width='+screen.width+',top=0,left=0, status=no,toolbar=no,menubar=yes,location=no,titlebar=no');</script>");
}
catch (Exception ex)
{
Response.Write(ex);
}What does 'not working' mean ? What happens ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
What does 'not working' mean ? What happens ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
http://..... url it doesn't open in the new page
-
http://..... url it doesn't open in the new page
But it does open ? Have you tried _blank for the target ? Have you tried with more than one browser ? Do you have any sort of popup blocker installed ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
But it does open ? Have you tried _blank for the target ? Have you tried with more than one browser ? Do you have any sort of popup blocker installed ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
But it does open ? no Have you tried _blank for the target ? means??? is login page so if i want to open for the other page in same directory then its working. Have you tried with more than one browser ? Do you have any sort of popup blocker installed ? no i want to just try for IE only (ofcourse 6.0) amit
-
But it does open ? no Have you tried _blank for the target ? means??? is login page so if i want to open for the other page in same directory then its working. Have you tried with more than one browser ? Do you have any sort of popup blocker installed ? no i want to just try for IE only (ofcourse 6.0) amit
amit k mistry wrote:
But it does open ? no
Then perhaps you need to be clearer. Or is this some sort of a puzzle that you want me to solve ? What's the prize ?
amit k mistry wrote:
means??? is login page so if i want to open for the other page in same directory then its working.
OK - but you're providing a full URL, so it's not a relative path issue. Have you viewed the source to see if it's being rendered ? Tried adding an alert to see if it's being run ? Typed the url being passed to the browser ( copied from the browser HTML ) into your browser to see if it opens in that context ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hello Experts, Following is the code not working for me .Could anyone please help me out regarding the issue? Thanks in advance.
try
{
Response.Write("<script>window.open('http://localhost:1390/WebClient/WebPages/CommonPages/HomePage.aspx','\_new','height='+screen.height+',width='+screen.width+',top=0,left=0, status=no,toolbar=no,menubar=yes,location=no,titlebar=no');</script>");
}
catch (Exception ex)
{
Response.Write(ex);
}hi Sometime back i also faced same issue, i solved by following method
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Success", "fnPayment()", True)
fnPayment() javascript
function fnPayment() {
var windowFeatures;
windowFeatures = "type=fullWindow,fullscreen,toorbar=no,status=yes,scrollbars=yes,left=0, top=0;";
window.open('aspxtest.aspx?reg=' + intReg , '_inst', windowFeatures);
}hope this may help you