javascript on an ASP.NET page

B

Bernie V

Hi group,

I use some javascript on my page to scroll some text.
This is my situatiion:

1 aspx file : home.aspx with the main layout
in the layout i use custom controls (ascx files) to show the whole page with
the main layout of home.aspx.

In the <head></head> tag of the home.aspx file I placed:
<script language="javascript" src="./jscript/scrollmessage.js"></script>

in the <body> tag i placed onload="scrollit();populate()"
with that the 2 scrollmessages begin to scroll when I open the page in
browser.

When I push on a submit button on the page reloads with al the images but
the javascript scroll functions don't work anymore.
When I reload the home.aspx page the java stuff works again.

Do I something wrong ?

Thx in advance
 
B

Bernie V

Bernie V said:
Hi group,

I use some javascript on my page to scroll some text.
This is my situatiion:

1 aspx file : home.aspx with the main layout
in the layout i use custom controls (ascx files) to show the whole page with
the main layout of home.aspx.

In the <head></head> tag of the home.aspx file I placed:
<script language="javascript" src="./jscript/scrollmessage.js"></script>

in the <body> tag i placed onload="scrollit();populate()"
with that the 2 scrollmessages begin to scroll when I open the page in
browser.

When I push on a submit button on the page reloads with al the images but
the javascript scroll functions don't work anymore.
When I reload the home.aspx page the java stuff works again.

Do I something wrong ?

Thx in advance

I have just tested with
<body onload="scrollit();populate();alert("test"); ......

</body>
after I pushed the submit button I don't see the alert box on the screen
what code do I have to use to execute the javascript functions after I
pushed on the submit button ?
This is the code for my submit button:
<input class="Button" id="Submit1" type="submit" value="Verzenden"
name="Submit1" runat="server"
OnServerClick="Send_Email"><input class="Button" id="Reset1"
type="reset" value="Wissen" name="Reset1" runat="server">

thx in advance !

grz

Bernie V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top