Change Cursor To Busy While Loading Page

Oct 29, 2010

I understand how to use javascript to change the cursor to busy while the page is making and ajax call. However I have a page that does not use ajax, it uses a postback to reload the page. However the load is rather data intensive and it takes a few seconds. During this time the user can still click on the page. I want to turn the cursor to "waiting" so the user does not try to click on the page. For example I have a couple of dropdowns that cause postback. I make a selection and the page loads for 3 seconds. While it loads I would like the cursor to turn to waiting so the user does not try to make a selection on a second dropdown until the page reloads. Is this possible?

Additional Info: (simplified version of my setup)
I have a masterpage:

<form id="form1" runat="server">
<table width = "100%" bgcolor="White">
<tr><td>
<h3><asp:ContentPlaceHolder id="MAIN" runat="server"></asp:ContentPlaceHolder></h3>
</tr></td>
</table>
</form>
<script type="text/javascript">
function cursorwait(e) {
document.body.style.cursor = 'wait';
}
var fm = document.getElementById('<% =form1.ClientID %>');
if (fm.addEventListener) {
fm.addEventListener('submit', cursorwait, false);
}
else {
fm.attachEvent('onsubmit', cursorwait);
}
</script>

and then a page that uses the master page:

<asp:Content ID="Content1" ContentPlaceHolderID="MAIN" Runat="Server">
<table runat=server id="tb_simple_search_table" cellpadding = 0 cellspacing = 0>
<tr><td>
<asp:DropDownList...
<asp:DropDownList...
</td></tr>
</table>
</asp:content>

View 2 Replies


Similar Messages:

How To Show Busy Loading Message With Percentage Download When Form Will Load Using JQuery

Jan 21, 2011

suppose my page content is huge so in my asp.net application i want to show busy icon with percentage downloading the content in client side. i saw many flash and sliver light site that they show busy icon and also they show percentage that means how much content has been loading in client machine. how could i achieve this using JQuery and when page content has been downloaded in client machine the busy icon goes out and actual page content will display.

View 2 Replies

Develop A Page Where Individual Section Will Load With Busy Icon When Page Loads Without Using Web Parts?

Feb 11, 2011

i have seen many site where individual web parts load with busy icon when page loads. without using web parts how can develop a page where individual section will load with busy icon when page loads.

View 1 Replies

Loading The Content Page Goes Okay But Can't Seem To Programmically Change The Imag

Jan 20, 2010

I have 2 Imagebuttons on a nested Masterpage. When I click one button I want load a content page and change the image of the clicked button to show that it was selected. Loading the content page goes okay but I can't seem to programmically change the image of the button. I have been reading the posts on the life cycles of MasterPages and Content pages and I think I have the code in the correct page but it is not working. I am so confused now.

View 2 Replies

Ajax Page To Display Some Busy Indicator

Sep 8, 2010

Is there a way with ASP.net page (with AJAX) to display some some of busy indicator (just a label is fine) while disabling some buttons (to prevent double-click) and then do the work. At the end of the work, the label changes to indicate the new status. When I tried to do it this way :

Public Sub BtnEnvoyer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnEnvoyer.Click
BtnEnvoyer.Enabled = False
LblStatus.Visible = True
LblStatus.ForeColor = Drawing.Color.ForestGreen
LblStatus.Text = "Envoi en cours..."
SendEmail()
End Sub
Private Sub EnvoyerCourriel()
' Do some work
LblStatus.Text = "Done!"
BtnEnvoyer.Enabled = True
End Sub

I just see the dn result, nothing in between. I don't mind using javascript to make it work if needed, or anything else for that matter.

View 4 Replies

AJAX :: How To Put Cursor When Change Tab Control In Tabcontainer

Feb 9, 2010

I am using TabContainer in my aspx page ,i am using 5 tabs and i want to put the cursor in every first textbox when i change tabs .

View 7 Replies

JavaScript Not Able To Convince Mouse To Change Its Cursor

Sep 21, 2010

I have an ASP.NET page with an Infragistics webgrid on it. I handle the mouseover, mouseout events over the rows of the grid in a couple methods in Javascript to change the mouse cursor to the pointer and back to the default as they mouse over rows. I also toggle the color of the mouse-over'd row. When I run the page in debug locally, it works fine. When I publish to the test server, and run it outside of VS in Iexplore (8), the mouse cursor does not change. It stays the arrow. The row toggles the background color correctly, though.

I figured this was a caching issue, but when I add an alert box in the methods to display the document.body.style.cursor, it shows the cursor state in the alert correctly; it just doesn't change the mouse cursor. I've cleared the cache in the browser, deleted and republished, added GUID querystrings to the javascript file links, etc.

If I try the page on the test server in Firefox, it shows the pointer cursor correctly.

function _projGrid_MouseOverHandler(gridName, id, objectType) {
if (objectType == 0) {
document.body.style.cursor = 'pointer';
// alert('mouse pointer should be: ' + document.body.style.cursor);
var cell = igtbl_getCellById(id);
var elem = cell.Element;
setRowBackColor(cell.Row, "F0E68C");
}
}
function _projGrid_MouseOutHandler(gridName, id, objectType) {
if (objectType == 0) {
document.body.style.cursor = 'default';
// alert('mouse pointer should be: ' + document.body.style.cursor);
var cell = igtbl_getCellById(id);
setRowBackColor(cell.Row, "white");
}
}
function setRowBackColor(row, color) {
var cells = row.getCellElements();
for (var i = 0; i < cells.length; i++) {
cells[i].style.backgroundColor = color;
}

View 3 Replies

Custom Server Controls :: Change Cursor Of Dynamic Menu

Jul 20, 2010

I have developed a dynamic menu with asp.net, everything is believed correctly. The problem that I have is that there are items of the menu that have the empty route, that is to say NavigateUrl = "", and however the cursor that he/she takes the mouse when it passes above the links it is hand, and I want that, if he/she doesn't have route to which to go takes cursor=text.

I have proven putting it in the leaf of styles, putting it for code, but anything, when I pass the mouse above the text that puts in the menu it puts me the cursor with hand. I believe that the problem is that he/she is taking the style of the hyperlink, but this style I don't want to change.

View 2 Replies

Windows - .NET Web Page Loading - The First Page Loading Fails With HTTP 404 Error?

Jan 18, 2011

We have installed a web site written by others which is compiled with Visual Studio 2008 and hosted in Windows server 2008 R2.

The IIS connection timeout is set to 120 seconds. But for some pages, the first page loading fails with HTTP 404 error but sequential refresh can bring the page up. The same problem happens for some images which fail to load in web pages. We are not very sure it is network related issue or hosting issue.

View 1 Replies

AJAX :: Display Light Box Loading Image On Page When Update Panel Is Loading

Mar 6, 2013

I have update panel on the page to avoid postback and placed a dropdownlist control within that update panel. DrodownList is filled with Category names and also it's autopostback set to True.

Now whenever dropdownlist index change's on select, untill page loads complete  data it should show mesage as "Loading.... in center and middle of the page and background should become bit transparent". And when page load completely with data then that background and message should get disappear.

View 1 Replies

AJAX :: Move CURSOR Using From One Component To Another But When Cursor At Ajax Combox It Does Not Working For Combo?

Dec 16, 2010

public void ModifyEnter()
{
combo1.Attributes.Add("onkeydown", "if(event.which || event.keyCode)" +

[code]...

View 1 Replies

Want To Display A Loading Animation While Page Is Loading

Jun 23, 2010

I want to display a loading animation while my page is loading, and when loading is complete then obviously hide it.

I am working in ASP.NET using Masterpages, just wondering there is a a simple way of doing this using JQuery?

View 3 Replies

MVVM Vs MVC In ASP.net : Either Better For Busy Websites?

Feb 1, 2011

I'm wondering about the underlying implementations of these design patterns specifically within asp.net. Is there a difference between the two models in terms of scalability of a website (i.e. as traffic increases might I regret following one or both of these design patterns)? I ask as someone once mentioned that MVC produces a 'lighter' website but I can find nothing to back this up.

If MVVM is as good as MVC why did MS release all the MVC tools?

View 1 Replies

Disable Button And Change Text To Loading?

May 24, 2010

How do I disable a button when its clicked and change the text to loading inside the button. After 3 sec it has to redirect to another page.

View 6 Replies

Long Loading Time (hours) When Made The Change

Mar 6, 2010

whenever I replace a master page on my site the pages load after a few hours(1-2) and only after that the site returned to work as normal.. I dont use VS "open web site" from the web method, instead I download the page I want to change (using flashfxp for instance), make my changes and upload it back. I do this process because every now and then the VS stuck/not responding/think long time. he master pages I change are used by few thousand of pages in the site, my thought is that whenever I change a master all the site get rebuild and therefor the long loading time..

View 11 Replies

.NET Busy Indicator - User Take Any Action Before The End Of That Blcok Of Code?

Mar 4, 2011

I want a busy indicator i can use it in my asp.net application ... cause i have a block of code take time to execute and i want to let user take any action before the end of that blcok of code

View 4 Replies

MVC :: Busy Icon While Processing Jquery Ajax Function?

Aug 3, 2010

i use the code for my cascade dropdown list.my JResult function in cotroller doing some complex job.. ( i already fine tune it).based on that function my second dropdown list and some other controls values sets...now i want to show "busy icon" operation while this controller works in background

View 1 Replies

Web Forms :: Show Busy Indicator When Processing During Postback

Jan 28, 2013

Looking for code to show the busy indicator while the operation is doing...

View 1 Replies

Web Forms :: Load Busy Indicator Until Process Is Complete

Feb 1, 2013

I need to show the busy indicator when some action is taken and i should show the time until the process gets completed.

I referred [URL] ..... link and its great.

But i found the code System.Threading.Thread.Sleep(5000);.

I should not add the fake delay as it is my process is long process to run....

View 1 Replies

MVC :: Validation / Getting Firefox Error 'MicrosoftMvcValidation.js :29 Busy Or Stopped Responding'

Jun 16, 2010

I am trying to validate an email address in a textbox, but when I try to type into the textbox, after I have typed more than about 10 characters, I get the Firefox error 'MicrosoftMvcValidation.js :29 Busy or stopped responding'. Here is my code,

Model :

[Code]....

View :

[Code]....

View 1 Replies

Web Forms :: TreeView Control /loading A New Page, Does Not Select The Node Of The Current Page?

May 1, 2010

I am experiencing an issue with the TreeView control when loading new pages. It is databound to web.sitemap, but when loading a new page, it does not select the node of the current page, just resets it to the root. THe new page loads fine, just not preserving the current navigation in the tree view.

View 2 Replies

Page Is Parsing Through Previous Pages PageLoad Event And Loading New Page?

Jun 25, 2010

In my Home page I have a link to my Details page. When I click on the link it goes to the Details page Page Load Function like its suppose to, but when it finishes it goes back to the Home pages Page Load Function. Then loads the Details page. So it parses the old pages Page Load Function for somewhat no apparent reason, because in the end it loads the Details page. This only happens when I click on the link to my Details page. When I click on other links to other pages, it doesn't do this. For some reason only my Details page. I went through the code to see what could be causing this but have no clue. I included below the complete .aspx.vb for my Details page. What could be causing this? Again this ONLY happens when going to my Details page.

[Code]....

View 5 Replies

Web Forms :: Prevent Master Page From Loading Whenever Content Page Loads?

Mar 10, 2010

The problem with my web application is when ever i load the home page - The master page as well as content page loads ---This seems fine but when i navigate thorugh the website which have the same Master page but diffrent content page .... the master page loads again. What i want to do is ..I want to keep the master page intact and only the content page loads. How can I accomplish it..

View 3 Replies

JQuery Not Loading On Master Page When The Content Page Is In A Child Folder?

Apr 8, 2010

I have a site where I am trying to implement a jQuery UI based MessageBox in my master page. Content pages are arranged accoring to business area folders, i.e. '~/Branding/Contracts.aspx'. I find that when I load such a content page, jQuery, which is referenced in the master page as below, does not load. I assume that this is because the browser is requesting 'Branding/Scripts/jQuery What can I do about this? I don't have the 'root' operator in a plain 'script' tag.

<script src="/Scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>

View 2 Replies

Web Forms :: Loading HTML Page Inside .aspx Page?

May 21, 2010

i have an html page and i want to open it in an .aspx.

I need to made some changes in html before i show that in browser , and i need to make them in memory, so i open and load and make changes to my html Page and , now i need to pass that html string to iframe, but i am not able to do dat from code behind, iframe.innerHtml do not work.

I tried to set innerhtml for a div instead of iframe, that works , but here when browser renders html page, it applies my Html page style sheat on my aspx ( where CSS are defined for body ). Means the CSS for body that is in head of my htmlPage , sets on my aspx page.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved