473,406 Members | 2,312 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,406 software developers and data experts.

Timing problem on (overly) complex page.

Google apparently ate my original post to this (grr) so this'll be a
bit more vague than the initial post, but...*sigh*.

Javascript is not my forte, and I apologize for the acky-ness of the
code.

I'm working on a page for a travel company. There's way too much going
on with it/on it, but I'm kind of stuck at this point - the client
loves it, so I have to solve this problem.

http://www.untours.com/samplerstage2...29&Code=07STSH

It *almost* works, or I should say, almost always works, but if you
click "clear all" (which calls the showall() function) then click a
date very quickly afterward, the date gets stuck - no amount of
clicking on a date (pickdate() function) will make the link work, but
clicking on any OTHER date, will reset stuff so everything works fine.
This also happens (a lot less often) when you click on a property name/
pic (showdesc()) then jump to a date.

The HTML generated by the page (It's 10k of SQL, 4k of VBScript and a
zillion lines of javascript) validates, and the javascript isn't
generating any errors. (The page has only been tested thusfar in
Firefox 2.0 and IE6.)

It's obviously some sort of a timing issue, but I'm not sure how to
handle it. I searched the newsgroup, but nothing seemed to apply. (If
anyone could point out a good thread, that'd be great.)

I tried adding an activity indicator that temporarily overwrote the
date section, by adding code to the end of the showall() function, but
the function just blows right by it, as if it had completed its work.

I thought it might be the pickdate() function instead (though I
couldn't see how), so I added an alert to the beginning of that
function to kinda "slow it down" as a test. When you do the quick
click, though, it never sees the first line of the pickdate()
function.

There is a LOT (as in "way too much") going on in this page, so it's
not exactly speedy, especially the way that I write. The page is huge,
kb-wise. (I try to keep pages to 80k or so absolute max - when
downloaded on a 56k modem, that's about the time it takes for the
telephone to ring 4 times). I'm sure I boogered up something and/or
broke all kinds of javascript rules. I'm at a loss here. Anyone have
an idea of how to resolve a timing issue like this? (Just wish it
weren't so darn intermittent.)

Thanks in advance, and again, apologies for the state of the
javascript.

Julie

Jun 26 '07 #1
2 1507
On Jun 26, 7:15 am, "julie.sie...@gmail.com" <julie.sie...@gmail.com>
wrote:
Google apparently ate my original post to this (grr) so this'll be a
bit more vague than the initial post, but...*sigh*.

Javascript is not my forte, and I apologize for the acky-ness of the
code.

I'm working on a page for a travel company. There's way too much going
on with it/on it, but I'm kind of stuck at this point - the client
loves it, so I have to solve this problem.

http://www.untours.com/samplerstage2...29&Code=07STSH

It *almost* works, or I should say, almost always works, but if you
click "clear all" (which calls the showall() function) then click a
date very quickly afterward, the date gets stuck - no amount of
clicking on a date (pickdate() function) will make the link work, but
clicking on any OTHER date, will reset stuff so everything works fine.
This also happens (a lot less often) when you click on a property name/
pic (showdesc()) then jump to a date.

The HTML generated by the page (It's 10k of SQL, 4k of VBScript and a
zillion lines of javascript) validates, and the javascript isn't
generating any errors. (The page has only been tested thusfar in
Firefox 2.0 and IE6.)

It's obviously some sort of a timing issue, but I'm not sure how to
handle it. I searched the newsgroup, but nothing seemed to apply. (If
anyone could point out a good thread, that'd be great.)

I tried adding an activity indicator that temporarily overwrote the
date section, by adding code to the end of the showall() function, but
the function just blows right by it, as if it had completed its work.

I thought it might be the pickdate() function instead (though I
couldn't see how), so I added an alert to the beginning of that
function to kinda "slow it down" as a test. When you do the quick
click, though, it never sees the first line of the pickdate()
function.

There is a LOT (as in "way too much") going on in this page, so it's
not exactly speedy, especially the way that I write. The page is huge,
kb-wise. (I try to keep pages to 80k or so absolute max - when
downloaded on a 56k modem, that's about the time it takes for the
telephone to ring 4 times). I'm sure I boogered up something and/or
broke all kinds of javascript rules. I'm at a loss here. Anyone have
an idea of how to resolve a timing issue like this? (Just wish it
weren't so darn intermittent.)

Thanks in advance, and again, apologies for the state of the
javascript.

Julie
I tried it, but I have no problems with it... I clicked on the "Clear
sampler", then quickly (as quickly as my hands can, though.
Nevertheless...) on any date, and tried it several times, but no
problem have I found... Maybe my computer is too fast? Or maybe yours
is slow? :)

Jun 26 '07 #2
On Jun 26, 12:49 am, Darko <darko.maksimo...@gmail.comwrote:
On Jun 26, 7:15 am, "julie.sie...@gmail.com" <julie.sie...@gmail.com>
wrote:
Google apparently ate my original post to this (grr) so this'll be a
bit more vague than the initial post, but...*sigh*.
Javascript is not my forte, and I apologize for the acky-ness of the
code.
I'm working on a page for a travel company. There's way too much going
on with it/on it, but I'm kind of stuck at this point - the client
loves it, so I have to solve this problem.
http://www.untours.com/samplerstage2...29&Code=07STSH
It *almost* works, or I should say, almost always works, but if you
click "clear all" (which calls the showall() function) then click a
date very quickly afterward, the date gets stuck - no amount of
clicking on a date (pickdate() function) will make the link work, but
clicking on any OTHER date, will reset stuff so everything works fine.
This also happens (a lot less often) when you click on a property name/
pic (showdesc()) then jump to a date.
The HTML generated by the page (It's 10k of SQL, 4k of VBScript and a
zillion lines of javascript) validates, and the javascript isn't
generating any errors. (The page has only been tested thusfar in
Firefox 2.0 and IE6.)
It's obviously some sort of a timing issue, but I'm not sure how to
handle it. I searched the newsgroup, but nothing seemed to apply. (If
anyone could point out a good thread, that'd be great.)
I tried adding an activity indicator that temporarily overwrote the
date section, by adding code to the end of the showall() function, but
the function just blows right by it, as if it had completed its work.
I thought it might be the pickdate() function instead (though I
couldn't see how), so I added an alert to the beginning of that
function to kinda "slow it down" as a test. When you do the quick
click, though, it never sees the first line of the pickdate()
function.
There is a LOT (as in "way too much") going on in this page, so it's
not exactly speedy, especially the way that I write. The page is huge,
kb-wise. (I try to keep pages to 80k or so absolute max - when
downloaded on a 56k modem, that's about the time it takes for the
telephone to ring 4 times). I'm sure I boogered up something and/or
broke all kinds of javascript rules. I'm at a loss here. Anyone have
an idea of how to resolve a timing issue like this? (Just wish it
weren't so darn intermittent.)
Thanks in advance, and again, apologies for the state of the
javascript.
Julie

I tried it, but I have no problems with it... I clicked on the "Clear
sampler", then quickly (as quickly as my hands can, though.
Nevertheless...) on any date, and tried it several times, but no
problem have I found... Maybe my computer is too fast? Or maybe yours
is slow? :)- Hide quoted text -

- Show quoted text -
Eh - hard to say! I'm pretty quick on the clicking (as I have been
working on this mess for quite a while now - lol), and I don't *think*
a client would click that fast, but it's kind of disconcerting when it
does happen. It's driving me nuts. I tried it both in IE and Firefox
and it does the same thing, so doesn't appear to be browser specific.
My computer is *reasonably* fast, though not a speed demon, but a lot
of this client's clients have slooowww boxes.

Anybody out there with a slow computer want to give it a shot? :P

It *has* to be timing. I just don't know what to *do* about it.

Thanks for checking, anyway.

Julie

Jun 26 '07 #3

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

Similar topics

6
by: S. David Rose | last post by:
Hello All! I am new to Python, and wanted to know if I might ask you a question regarding timing. I want a main loop which takes photos from 8 different web-cams, each can be addressed by...
0
by: m_j_mather | last post by:
Hi everyone, I'm neck deep in ASP.NET and sinking fast ;) Any help much appreciated. I have two user controls on a page that I want to communicate with each other. One control is called...
2
by: Timo | last post by:
When content is transferred from a hidden IFRAME (which has fetched data from a database) to a DIV in the main document, how can a script determine that the DIV has been completely populated before...
1
by: AVance | last post by:
Hi, I've come across this scenario in ASP.NET 1.1 with forms authentication where the forms auth doesn't seem to timeout correctly, nor redirect to the login page. I have done some testing, and...
1
by: Novice | last post by:
Hi all, I'm at my wit's end on trying to insert some timing code into the server side code that parses the hashed data contained in the hidden field being submitted to the server I've tried...
2
by: Oeyvind Brandtsegg | last post by:
hello I'm writing a Python application for live music performance/improivsation, using csound as the synthesis engine, and Python for compositional algorithms, GUI and control. I creating...
0
by: CCG | last post by:
A have a web app in vb.net & asp.net. The page has 3 frames. a left frame shows options and never changes. The top right frame has paramter screen or a report. The bottom horizontal frame has ...
2
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I usually clean the session when the result page is presented to the user. At this time, say an email confirmation was sent to the user and a pdf file they can becdownloaded from the...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
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...
0
tracyyun
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...
0
agi2029
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,...

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.