473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

javascript on an ASP.NET page

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
--
http://www.djberniev.be
Nov 18 '05 #1
1 1105
"Bernie V" <bernd.vantyghem@pandoradotbe> schreef in bericht
news:Og**************@TK2MSFTNGP09.phx.gbl...
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
--
http://www.djberniev.be


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
--
http://www.djberniev.be
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.