Hey guys, I have a question here that we have been dealing with for awhile. We have sevaral pages that utilize the AJAX modal progress with like a 'Loading...' message and image bar. Anyway, when you click the Menu link to those pages you will just wait
until the page loads, even if it takes a long time, without seeing the Modal Progress. Once you hit the page, if you do like a drop down or checkbox to change the data you see on the page you get the Loading... message just fine. But it's like, how do you
hit the page and launch the modal progress when you first link to the page? So when you click a menu link it hit the page which launched the modal progress so you see the Loading... message as you are waiting for the page and the data to load for the first
time.
Any help with this is greatly apprecited. We have several pages here were we would like to do this.
Normally, the Modalpopup can popup when everything gets loaded in the page. One option that you can try is to add some script at the very top part of <body>. The script may be displaying some text, showing that page is at loading stage. And at the very bottom
of the <body> tag, add some script to remove the text.
The info from the codeproject page seems perfect! I am trying method 2, becuase method one could cause many extra pages for a Web site. Anyway, it seems that it should work, but it doesnt. In the example he is just using text and an image, I am trying to
do the same thing but using an AJAX Updateprogress control. Do you have any other ideas why it isn't working for me?
Thanks again for anyone who replied, and anyone else who can help. I really appreciate it!
I had a similar problem a few months ago, i think it is something to do with the menu items working similar to hyperlinks.
I think i also tried the examples on codeproject but they didnt quite do the job. I got round it by finding out what was causing the page load to take so long..... which in my case was loading an object from the database.
All i did was moved the loading of the object into the button click event before redirecting, this way the loading update progress showed on the inital page. Then once the object or task has been performed i passed it into the session, redirected, then got
the object back out of the session to use and populate controls.
If your issue is similar, where the long part of the page load can be moved then try this.
I hope this makes sense, if you need more details let me know.
Thanks, Nic
Marked as answer by BU XI - MSFT on May 11, 2012 04:27 AM
mazansm
Member
5 Points
28 Posts
AJAX Modal Pop-Up On Hyperlink To Page - Help Please!
May 04, 2012 01:18 PM|LINK
Hey guys, I have a question here that we have been dealing with for awhile. We have sevaral pages that utilize the AJAX modal progress with like a 'Loading...' message and image bar. Anyway, when you click the Menu link to those pages you will just wait until the page loads, even if it takes a long time, without seeing the Modal Progress. Once you hit the page, if you do like a drop down or checkbox to change the data you see on the page you get the Loading... message just fine. But it's like, how do you hit the page and launch the modal progress when you first link to the page? So when you click a menu link it hit the page which launched the modal progress so you see the Loading... message as you are waiting for the page and the data to load for the first time.
Any help with this is greatly apprecited. We have several pages here were we would like to do this.
Thanks so much for any replys!!
Later Friends,
chetan.sarod...
All-Star
65719 Points
11133 Posts
Re: AJAX Modal Pop-Up On Hyperlink To Page - Help Please!
May 07, 2012 03:15 AM|LINK
You can look into JQuery UI Blocker here:
http://malsup.com/jquery/block/#demos
Please refer this
http://www.codeproject.com/KB/aspnet/LoadingMsgWhilePageLoads.aspx
http://forums.asp.net/t/1126943.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: AJAX Modal Pop-Up On Hyperlink To Page - Help Please!
May 07, 2012 05:50 AM|LINK
Hello
Normally, the Modalpopup can popup when everything gets loaded in the page. One option that you can try is to add some script at the very top part of <body>. The script may be displaying some text, showing that page is at loading stage. And at the very bottom of the <body> tag, add some script to remove the text.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
mazansm
Member
5 Points
28 Posts
Re: AJAX Modal Pop-Up On Hyperlink To Page - Help Please!
May 07, 2012 04:41 PM|LINK
Hey thanks a lot for the reply!
The info from the codeproject page seems perfect! I am trying method 2, becuase method one could cause many extra pages for a Web site. Anyway, it seems that it should work, but it doesnt. In the example he is just using text and an image, I am trying to do the same thing but using an AJAX Updateprogress control. Do you have any other ideas why it isn't working for me?
Thanks again for anyone who replied, and anyone else who can help. I really appreciate it!
niceastham
Member
645 Points
175 Posts
Re: AJAX Modal Pop-Up On Hyperlink To Page - Help Please!
May 07, 2012 07:34 PM|LINK
Hi
I had a similar problem a few months ago, i think it is something to do with the menu items working similar to hyperlinks.
I think i also tried the examples on codeproject but they didnt quite do the job. I got round it by finding out what was causing the page load to take so long..... which in my case was loading an object from the database.
All i did was moved the loading of the object into the button click event before redirecting, this way the loading update progress showed on the inital page. Then once the object or task has been performed i passed it into the session, redirected, then got the object back out of the session to use and populate controls.
If your issue is similar, where the long part of the page load can be moved then try this.
I hope this makes sense, if you need more details let me know.
Thanks, Nic