473,320 Members | 1,722 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,320 software developers and data experts.

How to explicitly run page javascript every time the page load?


Hello,

I have some javascript on my page but i can see that these scripts are not
beeing run on post back.
The only run the first the page loads. Is there a way to tell the "Page
object" tu run all javascript every time i enter the "page_load" routine?
Many thanks in advance

JB
Nov 19 '05 #1
2 1749
In your .aspx file:

<body onload="myscript()">

Eliyahu

"Jensen bredal" <ig******@bredhal.com> wrote in message
news:O1*************@TK2MSFTNGP10.phx.gbl...

Hello,

I have some javascript on my page but i can see that these scripts are not
beeing run on post back.
The only run the first the page loads. Is there a way to tell the "Page
object" tu run all javascript every time i enter the "page_load" routine?
Many thanks in advance

JB

Nov 19 '05 #2
My first guess would be that you inject those scripts only in a "not
posback" branch ?
Have you tried to use "View source" to see if the problem is that the script
is not sent client side or if the script is there but not triggered for some
reason ?

If it still fails you'll have to post details about how you are doing this
as running each time would be for me the normal behavior...

--
Patrice

"Jensen bredal" <ig******@bredhal.com> a écrit dans le message de
news:O1*************@TK2MSFTNGP10.phx.gbl...

Hello,

I have some javascript on my page but i can see that these scripts are not
beeing run on post back.
The only run the first the page loads. Is there a way to tell the "Page
object" tu run all javascript every time i enter the "page_load" routine?
Many thanks in advance

JB

Nov 19 '05 #3

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

Similar topics

2
by: Dave | last post by:
Can I determine if an array of image links is already in memory without using cookies or a hidden frameset? Scenario: visitor starts with Home page, images (links) for navigation pre-load no...
15
by: H00ner | last post by:
Hello All Hope you can help Been pulling my hair out about a popup problem in ASP.NET. One of the forms i wrote requires the user to select a product from a list in a popup web form. the...
13
by: Jim Carlock | last post by:
I have over a hundred pictures I would like to present. Is it practical to create and parse an array of pictures, picture paths, et al using server-side scripting to accomplish this? I...
18
by: Mark | last post by:
Hello. I am looking for a way to download and cache a web page that the user has not yet requested, and write the web page to the browser cache without displaying it. My intention is to improve...
42
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
2
by: Jman | last post by:
I have a selection window, here are some dropdownlist if i click on an item in a dropdownlist the page reloads itself an puts the selected item in a textbox. Then i can search on the value in the...
22
by: Christopher Nelson | last post by:
I have a little menu system which essentially takes HTML like: <div id='foo'></div> and retrieves foo.shtml from the server and inserts it inside the <div>. But sometimes I'd like foo.shtml...
10
by: nicolai | last post by:
There are plenty of scripts that load html into a page based on the day of the week, month, or randomly, but I would like to load a different page every day of the year. I would like to give a...
11
by: tdmailbox | last post by:
I have a website that I subscribe to that allows me to track tasks. I have an extra computer with a big monitor that i want to always display the task list. the problem is after so many hours I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.