GIFS not working properly in JavaScript PopUps

C

Charleees

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
 
D

David Squire

Charleees said:
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..

[much javascript snipped]
how could i solve this problem... any alternate way..

its urgent..please help...

You could start by asking your question in the right place, such as
comp.lang.javascript.


DS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top