It looks like there is a bit of confusion between server and client side.
You don't "call" a client side script from server side. Server side you
create an HTML page. You can inject in this page some client side script
that will be called client side once this part is loaded client side or on
whatever event is available client side.
IMO Martin made a good suggestion ie. using the onload event on the body
tag. If reporting JS errors is disabled note also the event may work but get
unoticed because of an error in your javascript code. You could start by
just displaying an alert box when the document is loaded to see if it fires
correclty before plugin here more complex scripts. Make sure also your
browser is configured to report js errors...
Under its simplest form, you could just have :
<body onload="alert('Loaded !')"> in your ASPX page.
Patrice
--
"adolf garlic" <ad*********@discussions.microsoft.com> a écrit dans le
message de news:6A**********************************@microsof t.com...
Surely this will just trigger the same behaviour (as shown in other
replies) as if i were just calling page load?
If not then what do you mean by wiring a handler?
Alternatively, is there a way of calling client script functions from the
server side (this would be the best solution)
"Teemu Keiski" wrote:
You could wire handler onto body's onload which is raised when document
is completely loaded at client.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsider
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"adolf garlic" <ad*********@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com...A postback I'm doing takes ages to get the data which it then uses to
populate a table.
What I want to know is:
How can I get the client side to fire a 'resize' event when the
postback thing has finished?