C
Charleees
GIFS not working properly in JavaScript PopUps
Hi all,
I have a button and when i click tha button it redirects to another
page.....
I have also added a java script for the button that makes a popup..
the pop up is actually a DIV tag.. with a GIF image in it......
what actually should happen is ...
when i click the button ..the pop up should be visible with the
animated gif ..this should be visible till the processing is done and
the page is redirected....
popup here acts like a Processing bar...
The problem i have is ..
when i add this javascript... i could get the Gifs Animation...but the
button click is not called
SearchBtn.Attributes.Add("onclick","GetPosition('"+this.SearchBtn.ClientID+"');return
false");
if i do the following....
SearchBtn.Attributes.Add("onclick","GetPosition('"+this.SearchBtn.ClientID+"');return
true");
i could show the pop up till the processing is done and redirect but
the only problem is..... i could not have a proper animated gif image..
i have done the following in button click:
private void SearchBtn_Click(object sender, System.EventArgs e)
{
search.DoSearch();
Response.Redirect("searchResult.aspx);
}
how could i solve this problem... any alternate way..
its urgent..please help...
Thanks in Advance..
Sanjay.C
Hi all,
I have a button and when i click tha button it redirects to another
page.....
I have also added a java script for the button that makes a popup..
the pop up is actually a DIV tag.. with a GIF image in it......
what actually should happen is ...
when i click the button ..the pop up should be visible with the
animated gif ..this should be visible till the processing is done and
the page is redirected....
popup here acts like a Processing bar...
The problem i have is ..
when i add this javascript... i could get the Gifs Animation...but the
button click is not called
SearchBtn.Attributes.Add("onclick","GetPosition('"+this.SearchBtn.ClientID+"');return
false");
if i do the following....
SearchBtn.Attributes.Add("onclick","GetPosition('"+this.SearchBtn.ClientID+"');return
true");
i could show the pop up till the processing is done and redirect but
the only problem is..... i could not have a proper animated gif image..
i have done the following in button click:
private void SearchBtn_Click(object sender, System.EventArgs e)
{
search.DoSearch();
Response.Redirect("searchResult.aspx);
}
how could i solve this problem... any alternate way..
its urgent..please help...
Thanks in Advance..
Sanjay.C