Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i'm using a jQuery plugin named SexyAlertBox (http://www.coders.me/ejemplos/sexy-alert-box/[^])

This is working:
HTML
<input type="button" id="btnHello" onclick="Sexy.alert('Hello!');" />


But i need to call this function from the code behind file too. Usually i use this:

C#
protected void btnError_Click(object sender, EventArgs e)
{
   ClientScript.RegisterStartupScript(this.GetType(), "miscript", "alert('This is an alert from a                                                                                                                  postback!');", true);
}

But isn't working with the Sexy.alert function.
Any ideas? Thank you.
Posted
Updated 27-Nov-13 9:22am
v2
Comments
Kornfeld Eliyahu Peter 27-Nov-13 15:57pm    
Just not working? Or you have some symptoms? Error?
CHill60 27-Nov-13 16:33pm    
Did you try following the link and using the support tab on that site?
ZurdoDev 27-Nov-13 22:01pm    
We would need to see the error. It likely hasn't finished loading the supporting js file. Use document.ready() function instead. I don't like caling JS from C# unless I have to.
deepgalley 28-Nov-13 0:54am    
Check if you get any console error during running the page.
Check it by pressing F12 button in Google chrome

1 solution

I found the solution: delete this plugin and download something better :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900