target size

  • Thread starter Thread starter Buz Waitz
  • Start date Start date
B

Buz Waitz

I know how to use javascript to open a hyperlink in a resized window without
toolbars. But would it be better to do so from the code behind pages and if
so, how? which classes? Thanks

Buz
 
other than the code behind setting the url for hyperlink, you got it.

-- bruce (sqlwork.com)
 
I know how to use javascript to open a hyperlink in a resized window without
toolbars. But would it be better to do so from the code behind pages and if
so, how? which classes? Thanks

Buz

I am pretty sure u need to use javascript, but if u want to call the
javascript from the codebehind try this:

this.RegisterClientScriptBlock("","insertscripthere");

-Adam
 
client script blocks will not work with xp service pack 2 for this
application. in code behind you can only set the javascript url of the
hyperlink.

-- bruce (sqlwork.com)
 
client script blocks will not work with xp service pack 2 for this
application. in code behind you can only set the javascript url of the
hyperlink.

-- bruce (sqlwork.com)

interesting.

function popUp(wUrl,wName,wOpts)
{
//x y are set to current cursor location already
var newWindow;
newWindow = window.open('',wName,wOpts);
if(newWindow)
{

newWindow.document.write('<body><center>wait...</center></body>');
newWindow.document.close();
newWindow.moveTo(x,y);
newWindow.focus();
newWindow.location = wUrl;
}
}

and call

this.RegisterClientScriptBlock("","<script
language='javascript'>popUp('someurl','windowname','someoptions');</script>");

this won't work with xp sp 2?

-Adam
 
Back
Top