Google Groups Home
Help | Sign in
Problem with AJAX pageLoad event?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
CORK  
View profile
 More options May 13, 11:59 am
From: CORK <alteregob...@gmail.com>
Date: Tue, 13 May 2008 08:59:59 -0700 (PDT)
Local: Tues, May 13 2008 11:59 am
Subject: Problem with AJAX pageLoad event?
I am having an issue, and I am not sure why. I have googled my a** off
and can't find anyone else with a similar problem.

In the AJAX pageLoad event, I do some stuff where I load up controls
and make previous selections. Sporadically, these things will not
happen. Doing everything the exact same way will not duplicate the
issue, so it seems to be some kind of timing thing. If I refresh the
page after this happens, everything is cool. Comparing the source in
both pages, they are identical. I cannot duplicate this EVER while
running the app in VS. I get no javascript errors whatsoever.

Here is my pageLoad. If you want to see or know anything else, feel
free to ask.

function pageLoad(sender, e)
        {
            PopulateCategoryOptions();
            if ((prodcat != null) && (prodcat != ""))
            {
                PopulateProductOptions();
            }
            if ((searchstr != null) && (searchstr != ""))
            {
                $get('Keyword').value = searchstr;
            }
            PopulateSearchTypeOptions();
            PopulateModPeriodOptions();
            if (parseInt(mod) >= 0)
            {
                $get('Mod').value = mod;
            }
            PopulateDocCategoryOptions();
            if (esconly == 1)
                $get('EscalatedCheck').checked =  true;
            else
                $get('EscalatedCheck').checked =  false;
        }

Thanks in advance to all,
-cork


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Badera  
View profile
 More options May 13, 1:18 pm
From: "Andrew Badera" <and...@badera.us>
Date: Tue, 13 May 2008 13:18:14 -0400
Local: Tues, May 13 2008 1:18 pm
Subject: Re: [DotNetDevelopment] Problem with AJAX pageLoad event?

have you ensured that the method is absolutely not being called by placing a
callout in the first line? alert box or whatever? you're certain it's not
failing on an earlier instruction, perhaps silently?

--
--
--Andy Badera
http://higherefficiency.net
http://flipbitsnotburgers.blogspot.com/
http://andrew.badera.us/
http://changeroundup.com/
and...@badera.us
(518) 641-1280
Google me: http://www.google.com/search?q=andrew+badera

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CORK  
View profile
 More options May 13, 2:49 pm
From: CORK <alteregob...@gmail.com>
Date: Tue, 13 May 2008 11:49:35 -0700 (PDT)
Local: Tues, May 13 2008 2:49 pm
Subject: Re: Problem with AJAX pageLoad event?
Andrew:

I am not sure it isn't being called. I placed an alert in my
development code, but I cannot get it to happen when running in the
IDE, only in production. It could be failing silently, I suppose.

I think what I might have to do is set this up in a test environment
so I can put in all the alerts and logging I need to in order to solve
the problem.

-cork

On May 13, 1:18 pm, "Andrew Badera" <and...@badera.us> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Badera  
View profile
 More options May 14, 2:27 pm
From: "Andrew Badera" <and...@badera.us>
Date: Wed, 14 May 2008 14:27:59 -0400
Local: Wed, May 14 2008 2:27 pm
Subject: Re: [DotNetDevelopment] Re: Problem with AJAX pageLoad event?

Absolutely. You should always have an isolated development environment in
which to thrash and play, and both then isolated environments for test/QA
and then for production. Test/QA should always be a mirror of production,
the only difference being the next generational work being tested on it.

Good luck, let us know how it goes.

--
--
--Andy Badera
http://higherefficiency.net
http://flipbitsnotburgers.blogspot.com/
http://andrew.badera.us/
http://changeroundup.com/
and...@badera.us
(518) 641-1280
Google me: http://www.google.com/search?q=andrew+badera

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
CORK  
View profile
 More options May 20, 3:28 pm
From: CORK <alteregob...@gmail.com>
Date: Tue, 20 May 2008 12:28:39 -0700 (PDT)
Local: Tues, May 20 2008 3:28 pm
Subject: Re: Problem with AJAX pageLoad event?
I set this up in a test environment, and still could make no progress.
I ended up moving all the pageLoad stuff into the jquery ready event
handler (I am using jquery for a lot of common cross-browser js
stuff), and it solved my problem. Normally, I like to know *why*
something wasn't working, but in this case I had to have it fixed by
last Thursday ;)

Thanks for the help,
Corky

On May 14, 2:27 pm, "Andrew Badera" <and...@badera.us> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Badera  
View profile
 More options May 21, 6:29 am
From: "Andrew Badera" <and...@badera.us>
Date: Wed, 21 May 2008 06:29:54 -0400
Local: Wed, May 21 2008 6:29 am
Subject: Re: [DotNetDevelopment] Re: Problem with AJAX pageLoad event?

In the future in this kind of scenario, if you don't already, you might want
to consider using a tracing pattern so you can optionally turn on intensive
logging, via config file, in production. Personally I like the Enterprise
Library Logging Application Block.

--
--
--Andy Badera
http://higherefficiency.net
http://flipbitsnotburgers.blogspot.com/
http://andrew.badera.us/
http://changeroundup.com/
and...@badera.us
(518) 641-1280
Google me: http://www.google.com/search?q=andrew+badera

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google