Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Open Method

Author  Topic 

OBINNA_EKE
Posting Yak Master

234 Posts

Posted - 2006-10-02 : 09:51:43
I have the below script which opens a new window with width of 200, but it is opening with width of 400 which i don't like, i have cleared my cache etc but it is still opening with 400 why ?

private void DayPilotCalendar1_EventClick(string pk)
{
string script_id = "popup";
string myScript = buildScript(script_id, "hello.html");
Page.RegisterStartupScript(script_id, myScript);
}

public string buildScript(string id, string output_page)
{
string myScript = "\n";
myScript += "<script language='javascript' id='" + id + "'>\n";
myScript += "window.open('" + output_page + "',width=200,height=200,left=0,top=100,screenX=0,screenY=100);\n";
myScript += "</" + "script>\n";
return myScript;
}


If it is that easy, everybody will be doing it

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-10-02 : 10:32:37
maybe because you're calling the function wrong?

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp



Go with the flow & have fun! Else fight the flow
blog thingie: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -