i have 3 toastr notification, each have more then 3 messages,all mesaages not showing.
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery/1/jquery.min.js"></script>
<link href="../js/toastr.css" rel="stylesheet" />
<script type="text/javascript" src="../js/toastr.js"></script>
<script type="text/javascript">
function showpop1(msg, title) {
// alert("ok");
toastr.options = {
"closeButton": false,
"debug": false,
"newestOnTop": false,
"progressBar": true,
"positionClass": "toast-bottom-left",
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "12000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
// toastr['success'](msg, title);
var d = Date();
toastr.warning(msg, title);
return false;
}
</script>
<%--//for chatprocess of client--%>
<script type="text/javascript">
function showpop5(msg, title) {
debugger;
// alert("ok");
toastr.options = {
"closeButton": false,
"debug": false,
"newestOnTop": false,
"progressBar": true,
"positionClass": "toast-top-left",
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "12000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
// toastr['success'](msg, title);
var d = Date();
toastr.error(msg, title);
return false;
}
</script>
<%--for chat process of consultant--%>
<script type="text/javascript">
function showpop6(msg, title) {
debugger;
// alert("ok");
toastr.options = {
"closeButton": false,
"debug": false,
"newestOnTop": false,
"progressBar": true,
"positionClass": "toast-bottom-left",
"preventDuplicates": true,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "12000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
// toastr['success'](msg, title);
var d = Date();
toastr.error(msg, title);
return false;
}
</script>
DataSet ds10 = sql.getds("select distinct client_id from chatprocess where manager_id='" + Session["idmanager"].ToString() + "' and client_id!='" + "" + "' and sender='" + "Client" + "' and seen='" + "no" + "'");
if (ds10.Tables[0].Rows.Count > 0)
{
for (int m = 0; m < ds10.Tables[0].Rows.Count; m++)
{
string clientname = sql.getsinglevallue("select company from clients where client_id='" + ds10.Tables[0].Rows[m]["client_id"].ToString() + "'");
string text6 = "You have received message from " + clientname + "";
ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert" + m, "<script>showpop5('" + text6 + "')</script>", false);
}
}
//for chatprocess of consulttant
DataSet ds11 = sql.getds("select distinct consultant_id from chatprocess where manager_id='" + Session["idmanager"].ToString() + "' and consultant_id!='" + "" + "' and sender='" + "Consultant" + "' and seen='" + "no" + "'");
if (ds11.Tables[0].Rows.Count > 0)
{
for (int p = 0; p < ds11.Tables[0].Rows.Count; p++)
{
string consultantname = sql.getsinglevallue("select fname +''+ lname as name from consultant where consult_id='" + ds11.Tables[0].Rows[p]["consultant_id"].ToString() + "'");
string text7 = "You have received message from " + consultantname + "";
ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert" + p, "<script>showpop6('" + text7 + "')</script>", false);
}
}
DataSet ds1 = sql.getds("select candidates.name,clients.company,clients.client_id,jobs.role,jobs.location,consultant.fname from candidates join applications on candidates.candidateid=applications.candidateid join clients on applications.clientid=clients.client_id join consultant on applications.consultantid=consultant.consult_id join jobs on applications.jobid=jobs.jobid where applications.status='" + "NA" + "' ");
for (int i = 0; i < ds1.Tables[0].Rows.Count; i++)
{
DataSet ds7 = sql.getds("select clientid from clientallot where managerid='" + Session["idmanager"].ToString() + "'");
for (int j = 0; j < ds7.Tables[0].Rows.Count; j++)
{
if (ds1.Tables[0].Rows[i]["client_id"].ToString() == ds7.Tables[0].Rows[j]["clientid"].ToString())
{
string text2 = "Candidate " + ds1.Tables[0].Rows[i]["name"].ToString() + " resume for job " + ds1.Tables[0].Rows[i]["role"].ToString() + " ( " + ds1.Tables[0].Rows[i]["location"].ToString() + " ) with company " + ds1.Tables[0].Rows[i]["company"].ToString() + " uploaded by consultant " + ds1.Tables[0].Rows[i]["fname"].ToString() + ".Waiting for screening";
ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert" + i, "<script>showpop1('" + text2 + "')</script>", false);
}
}
}