Register-JavaScriptBlock

Dec 13, 2011 at 6:08 AM

Can anyone help me with a Javascript block in PowerWebPart 2010?

for starters, I'm just trying to get a popup to tell me it ran!

 

$script="alert('I made it');"
Register-JavaScriptBlock -script $script -name "debug"

But it doesn't render to the browser, and it doesn't "make it"

Hints anyone?