Hi,
I have a web form with smart navigation turned on. the html has an
onload event which calls a javascript function and the contents of this
function are dynamically generated on the server like this:
function onload() {
<% if (some_condition ) { %>
do_some_javascr ipt();
<% } %>
}
the "some condition" is initially false but may be set to true after a
postback.
For one particular user, after doing a postback, the javascript does
not get executed, so it's as if either the onload isn't firing at all
or the javascript function that's being run is the old one that was
generated before the postback.
the strange thing is that for most users everything works fine. the
user that has the problem is using the latest IE on XP SP2 - the same
combination as many other users. I am pretty sure it's not some popup
blocker or other security filter because if I disable smart navigation
it works. I can't afford to disable smart navigation on this form for
the sake of one user though.
anyone have any ideas what might be causing this?
Andy 3 1520
Andy,
I've seen a lot of quirks with smart navigation turned on. In fact this
forum has had many posts about them.
I've found that turning smart navigation on and off during certain post
backs has allowed me to use it fairly successfully. If during the postback
in question you can turn smart navigation off and then back on again if
needed that may fix your problem.
If your problem isn't fixed by turning smart navigation off from within your
code-behind you may want to look at an alternative to smart navigation
altogether. I made a javascript component that I give away for free (with
source code and help file). It has a ScrollToElement method in it that using
javascript automatically scrolls a page so that the given control is at the
top of the page. You might want to replace using smart navigation with a
similar script. You may see a demo of how this works and download the source
code from: http://www.aboutfortunate.com?page=javascriptdemo.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
<aj****@blueyon der.co.uk> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . Hi,
I have a web form with smart navigation turned on. the html has an onload event which calls a javascript function and the contents of this function are dynamically generated on the server like this:
function onload() { <% if (some_condition ) { %> do_some_javascr ipt(); <% } %> }
the "some condition" is initially false but may be set to true after a postback.
For one particular user, after doing a postback, the javascript does not get executed, so it's as if either the onload isn't firing at all or the javascript function that's being run is the old one that was generated before the postback.
the strange thing is that for most users everything works fine. the user that has the problem is using the latest IE on XP SP2 - the same combination as many other users. I am pretty sure it's not some popup blocker or other security filter because if I disable smart navigation it works. I can't afford to disable smart navigation on this form for the sake of one user though.
anyone have any ideas what might be causing this?
Andy
Thanks for the advice, I'll try out these ideas.
I just wish I could work out why only 1 user out of several hundred has a
problem with this form though. SmartNavigation is mostly working perfectly.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> wrote in
message news:OS******** ********@TK2MSF TNGP14.phx.gbl. .. Andy,
I've seen a lot of quirks with smart navigation turned on. In fact this forum has had many posts about them.
I've found that turning smart navigation on and off during certain post backs has allowed me to use it fairly successfully. If during the postback in question you can turn smart navigation off and then back on again if needed that may fix your problem.
If your problem isn't fixed by turning smart navigation off from within your code-behind you may want to look at an alternative to smart navigation altogether. I made a javascript component that I give away for free (with source code and help file). It has a ScrollToElement method in it that using javascript automatically scrolls a page so that the given control is at the top of the page. You might want to replace using smart navigation with a similar script. You may see a demo of how this works and download the source code from: http://www.aboutfortunate.com?page=javascriptdemo.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche <aj****@blueyon der.co.uk> wrote in message news:11******** **************@ f14g2000cwb.goo glegroups.com.. . Hi,
I have a web form with smart navigation turned on. the html has an onload event which calls a javascript function and the contents of this function are dynamically generated on the server like this:
function onload() { <% if (some_condition ) { %> do_some_javascr ipt(); <% } %> }
the "some condition" is initially false but may be set to true after a postback.
For one particular user, after doing a postback, the javascript does not get executed, so it's as if either the onload isn't firing at all or the javascript function that's being run is the old one that was generated before the postback.
the strange thing is that for most users everything works fine. the user that has the problem is using the latest IE on XP SP2 - the same combination as many other users. I am pretty sure it's not some popup blocker or other security filter because if I disable smart navigation it works. I can't afford to disable smart navigation on this form for the sake of one user though.
anyone have any ideas what might be causing this?
Andy
Andy,
I have seen website pages act differently for users who have the same
systems and software but who don't have the same service packs installed.
Have the user who is experiencing the problems run autoupdate to make
certain that actually have all the latest updates. That may be the problem.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Andy Fish" <aj****@blueyon der.co.uk> wrote in message
news:ui******** ******@TK2MSFTN GP12.phx.gbl... Thanks for the advice, I'll try out these ideas.
I just wish I could work out why only 1 user out of several hundred has a problem with this form though. SmartNavigation is mostly working perfectly.
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate. com> wrote in message news:OS******** ********@TK2MSF TNGP14.phx.gbl. .. Andy,
I've seen a lot of quirks with smart navigation turned on. In fact this forum has had many posts about them.
I've found that turning smart navigation on and off during certain post backs has allowed me to use it fairly successfully. If during the postback in question you can turn smart navigation off and then back on again if needed that may fix your problem.
If your problem isn't fixed by turning smart navigation off from within your code-behind you may want to look at an alternative to smart navigation altogether. I made a javascript component that I give away for free (with source code and help file). It has a ScrollToElement method in it that using javascript automatically scrolls a page so that the given control is at the top of the page. You might want to replace using smart navigation with a similar script. You may see a demo of how this works and download the source code from: http://www.aboutfortunate.com?page=javascriptdemo.
-- Sincerely,
S. Justin Gengo, MCP Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order." Nietzsche <aj****@blueyon der.co.uk> wrote in message news:11******** **************@ f14g2000cwb.goo glegroups.com.. . Hi,
I have a web form with smart navigation turned on. the html has an onload event which calls a javascript function and the contents of this function are dynamically generated on the server like this:
function onload() { <% if (some_condition ) { %> do_some_javascr ipt(); <% } %> }
the "some condition" is initially false but may be set to true after a postback.
For one particular user, after doing a postback, the javascript does not get executed, so it's as if either the onload isn't firing at all or the javascript function that's being run is the old one that was generated before the postback.
the strange thing is that for most users everything works fine. the user that has the problem is using the latest IE on XP SP2 - the same combination as many other users. I am pretty sure it's not some popup blocker or other security filter because if I disable smart navigation it works. I can't afford to disable smart navigation on this form for the sake of one user though.
anyone have any ideas what might be causing this?
Andy
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bender |
last post by:
Hi,
I am wanting to capture an onmousedown event without firing the body tags
onload event.
Also, if anyone could explain why this happens that would be excellent. I
can't see how an onmousedown event could bubble up to an onload event.
NOTE: If you put an alert() statement in the onmousedown event handler the
body onload event doesn't get fired.
|
by: George Hester |
last post by:
I have a page that loads an applet. It's a cube that is used as a navigation menu. This issue actually happens in both Microsoft Internet Explorer and Netscape. All versions that I know of. And also happens with the Microsoft JVM and Sun's JVM.
Here's the issue:
When the page loads and messages in the status bar about what the applet is doing (like applet initializing that sort of thing) finish, the result when all is said and done is...
|
by: Joe Kehnast |
last post by:
I'm running a system on W2K web server with a Professional XP client.
I'm opening a window from an asp page using showModalDialog. In the
window I open I'm calling the onLoad event from the body tag. The
very first thing I put in the beginProcessing() function is an alert
saying I "got here." For some reason the event doesn't always fire
and my function doesn't run. Any ideas why?
I had to abandon this and came up with another...
|
by: Brian |
last post by:
Hi everyone,
I'm writing a function (in javascript) that needs to do one thing if
the page has not loaded, and another (different) thing if the page has
already loaded.
I'm looking for a way to tell if the window.onload event has already
fired. I cannot edit the onload event handler itself, and my function
can only exist in an external js file, sourced from the document's
head section. Any ideas?
|
by: bjarthur |
last post by:
i have (see below) what i think is a fairly simple algorithm, but yet
it doesn't work. given a directory with consecutively numbered jpeg
files (1.jpg, 2.jpg, 3.jpg...), it is designed to count how many files
there are using a binary search. it uses the onload and onerror event
handlers of the image object to see if the files successfully loaded or
not. testing on a macintosh (os x 10.3.8) with a directory of 39
files, IE 5.2 and...
| |
by: laredotornado |
last post by:
Hello, I am looking for a cross-browser way (Firefox 1+, IE 5.5+) to
have my Javascript function execute from the BODY's "onload" method,
but if there is already an onload method defined, I would like mine to
run immediately after it. So in the code below, what JS would i need
to add to my "myfile.inc" page so that I could guarantee this behavior?
<!-- main page -->
<html>
<head>
<script type="text/javascript">
|
by: Oleg Ogurok |
last post by:
Hi all,
I have a small image ("Loading..." icon) that I hide using Javascript once
the page finishes loading.
To do so, I attach to the client side onload event.
However, as soon as I turn on Smart Navigation, the onload event no longer
fires on postbacks.
Any idea?
<script language=javascript>
|
by: Andy Fish |
last post by:
Hi,
I have an asp.net web application which uses a pop-up form that works a bit
like a dialog box. when the user clicks "OK" it does a postback (basically a
form post if you don't know .net) to save the contents of the form, and then
I put an onload event to do a window.close.
this works fine for hundreds of people on different browsers. However, for
one user the window does not close.
|
by: Andy Fish |
last post by:
Hi,
I managed to figure this one out for myself but thought I would post it here
for the general good.
I have an asp.net 1.1 application which was using smart navigation and also
had a <body onload=...> javascript event handler. One user complained that
the form wasn't working properly and it became obvious that the onload event
handler wasn't being called after a postback.
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |