Click here to Skip to main content
15,896,063 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCompatibility Issue on Firefox for freetextbox to display on Cursor Location[modified] Pin
wajans7-Nov-08 1:08
wajans7-Nov-08 1:08 
Questionreciprocal link system Pin
amit sahu207-Nov-08 0:45
amit sahu207-Nov-08 0:45 
AnswerRe: reciprocal link system Pin
whatUrunning.com7-Nov-08 1:36
whatUrunning.com7-Nov-08 1:36 
GeneralRe: reciprocal link system Pin
amit sahu207-Nov-08 1:41
amit sahu207-Nov-08 1:41 
GeneralRe: reciprocal link system Pin
whatUrunning.com7-Nov-08 8:58
whatUrunning.com7-Nov-08 8:58 
QuestionRegisterClientScriptInclude Question Pin
davebarkshire7-Nov-08 0:40
davebarkshire7-Nov-08 0:40 
AnswerRe: RegisterClientScriptInclude Question Pin
Zakir Hoosen8-Nov-08 2:09
Zakir Hoosen8-Nov-08 2:09 
Questionopaque the background when the page loading Pin
chapidi7-Nov-08 0:38
chapidi7-Nov-08 0:38 
Hi,
I have try to implement the opaque the background when the page loading.
(No links or functionality on the main page should be accessible until this page loading is completed).

Here am using this code.
..........................................................................

.....................................

Default.aspx
.....................................

]]>





<title>Untitled Page


//----------
function addEvent(obj ,evt, fnc)
{
if (obj.addEventListener)
obj.addEventListener(evt,fnc,false);
else if (obj.attachEvent)
obj.attachEvent('on'+evt,fnc);
else
return false;
return true;
}

function removeEvent(obj ,evt, fnc)
{
if (obj.removeEventListener)
obj.removeEventListener(evt,fnc,false);
else if (obj.detachEvent)
obj.detachEvent('on'+evt,fnc);
else
return false;
return true;
}

//----------

function appendElement(node,tag,id,htm)
{
var ne = document.createElement(tag);
if(id) ne.id = id;
if(htm) ne.innerHTML = htm;
node.appendChild(ne);
}

//----------

function Disablebackground()
{
// alert('Disable');
greyout(true);

}

function Enablebackground()
{
// alert('Enable');
greyout(false);

}

//----------

function greyout(d)
{
var obj = document.getElementById('greyout');
if(!obj)
{
appendElement(document.body,'div','greyout');
obj = document.getElementById('greyout');
obj.style.position = 'absolute';
obj.style.top = '0px';
obj.style.left = '0px';
obj.style.background = '#111';
obj.style.opacity = '.5';
obj.style.filter = 'alpha(opacity=50)';
}
//alert(d);
if(d)
{
obj.style.height = document.body.clientHeight+'px';
obj.style.width = document.body.clientWidth+'px';
obj.style.height = Math.max(document.body.scrollHeight,document.body.clientHeight)+'px';
obj.style.width = Math.max(document.body.scrollWidth,document.body.clientWidth)+'px';
obj.style.display = 'block';
addEvent(window,'resize',greyoutResize);
}
else
{
obj.style.display = 'none';
removeEvent(window,'resize',greyoutResize);
}
}

function greyoutResize()
{
var obj = document.getElementById('greyout');
obj.style.height = document.body.clientHeight+'px';
obj.style.width = document.body.clientWidth+'px';
obj.style.height = Math.max(document.body.scrollHeight,document.body.clientHeight)+'px';
obj.style.width = Math.max(document.body.scrollWidth,document.body.clientWidth)+'px';
}

//----------


















.........................................
Default.aspx.vb
.........................................

Partial Class Nov05_Default7
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
ClientScript.RegisterClientScriptBlock(GetType(Page), "js", "javascript:Disablebackground()", True)
End Sub

End Class


.........................................................................


It is successfully working in Mozilla But in Internet Explorer showing the below error.

(Internet explorer cannot open the internet site-operation aborted).

Already I wasted one Day for this but i Couldn't find the exact solution .

So please give me solution.



Thanks&Regards
Chapidi
Questionreg asp.net Pin
sanddepnamburi7-Nov-08 0:35
sanddepnamburi7-Nov-08 0:35 
AnswerRe: reg asp.net Pin
Hemant_ec487-Nov-08 0:39
Hemant_ec487-Nov-08 0:39 
AnswerRe: reg asp.net Pin
cyber-drugs7-Nov-08 0:43
cyber-drugs7-Nov-08 0:43 
AnswerRe: reg asp.net Pin
Ashfield7-Nov-08 1:28
Ashfield7-Nov-08 1:28 
JokeRe: reg asp.net Pin
Guffa7-Nov-08 4:13
Guffa7-Nov-08 4:13 
GeneralRe: reg asp.net Pin
Ashfield7-Nov-08 9:03
Ashfield7-Nov-08 9:03 
Questionsqldatasource Pin
y_mmohd6-Nov-08 23:57
y_mmohd6-Nov-08 23:57 
AnswerRe: sqldatasource Pin
Ashfield7-Nov-08 1:30
Ashfield7-Nov-08 1:30 
GeneralRe: sqldatasource Pin
y_mmohd9-Nov-08 21:40
y_mmohd9-Nov-08 21:40 
AnswerRe: sqldatasource Pin
Vimalsoft(Pty) Ltd7-Nov-08 2:25
professionalVimalsoft(Pty) Ltd7-Nov-08 2:25 
Questiongridview problem Pin
Mogaambo6-Nov-08 23:48
Mogaambo6-Nov-08 23:48 
AnswerRe: gridview problem Pin
Hemant_ec487-Nov-08 0:38
Hemant_ec487-Nov-08 0:38 
QuestionError:Name cannot begin with the '&lt;' character, hexadecimal value 0x3C. Pin
Samiullah6-Nov-08 23:04
Samiullah6-Nov-08 23:04 
AnswerRe: Error:Name cannot begin with the '&lt;' character, hexadecimal value 0x3C. Pin
Ashfield7-Nov-08 1:31
Ashfield7-Nov-08 1:31 
Questionhow to get the controls id when a check box in the grid is checked using javascript Pin
lakshmichawala6-Nov-08 22:28
lakshmichawala6-Nov-08 22:28 
AnswerRe: how to get the controls id when a check box in the grid is checked using javascript Pin
Hemant_ec486-Nov-08 23:13
Hemant_ec486-Nov-08 23:13 
AnswerRe: how to get the controls id when a check box in the grid is checked using javascript Pin
amit sahu207-Nov-08 0:41
amit sahu207-Nov-08 0:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.