<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Toast &#8211; MaXEster Technologies  | Technical Blog</title>
	<atom:link href="https://www.maxester.com/blog/tag/toast/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.maxester.com/blog</link>
	<description>Tutorials, Examples and Implementation code for Developers Help</description>
	<lastBuildDate>Mon, 17 Feb 2025 09:17:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.22</generator>
	<item>
		<title>How To Add toast.js?</title>
		<link>https://www.maxester.com/blog/2019/02/19/how-to-add-toast-js/</link>
		<comments>https://www.maxester.com/blog/2019/02/19/how-to-add-toast-js/#respond</comments>
		<pubDate>Tue, 19 Feb 2019 07:47:22 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[JS]]></category>
		<category><![CDATA[Alert]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JAVSCRIPT]]></category>
		<category><![CDATA[Toast]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=268</guid>
		<description><![CDATA[<p>As Nice, as it looks for notification easier it gets if you are familiar with JavaScript and have some experience in HTML. Firstly, we need to add the &#8216;.js&#8217; and &#8216;.css&#8217; file which are available on github link Second, you&#8230;</p>
<p><a href="https://www.maxester.com/blog/2019/02/19/how-to-add-toast-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2019/02/19/how-to-add-toast-js/">How To Add toast.js?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>As Nice, as it looks for notification easier it gets if you are familiar with <br><strong>JavaScript</strong> and have some experience in<strong> HTML</strong>.</p>



<center>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Fads -->
<ins class="adsbygoogle fads"
     style="display:inline-block;"
     data-ad-client="ca-pub-3804472713147276"
     data-ad-slot="1267368188"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>




<p>Firstly,  we need to add the<strong> &#8216;.js&#8217;</strong> and <strong>&#8216;.css&#8217;</strong> file which are available on github  <a href="https://github.com/CodeSeven/toastr/tree/master/build" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">link </a></p>



<p>Second, you need to define the event to perform toast. You can use this notification on events like onClick, onSubmit etc. or on ajax response.</p>



<p><strong>Syntex</strong> :-<strong> tostr.success(&#8216;<em>Your Message</em>&#8216;);</strong> </p>



<pre class="wp-block-code"><code>toastr.success('Success messages'); //For Success Message
toastr.error('errors messages'); //For Error
toastr.warning('warning messages'); //For Warning
toastr.info('info messages'); //For Info</code></pre>



<figure class="wp-block-image"><img src="https://www.maxester.com/blogs/wp-content/uploads/2019/02/toastr.png" alt="" class="wp-image-307" srcset="https://www.maxester.com/blog/wp-content/uploads/2019/02/toastr.png 511w, https://www.maxester.com/blog/wp-content/uploads/2019/02/toastr-300x255.png 300w" sizes="(max-width: 511px) 100vw, 511px" /></figure>



<p><strong>You Can Also Define Other Attribute of toast.js</strong></p>



<center>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Fads -->
<ins class="adsbygoogle fads"
     style="display:inline-block;"
     data-ad-client="ca-pub-3804472713147276"
     data-ad-slot="1267368188"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>




<pre class="wp-block-code"><code>toastr.options = {"closeButton": false,
   "debug": false,
   "positionClass": "toast-bottom-right",// Position on window
   "onclick": null,// on click function
   "showDuration": "300",
   "hideDuration": "1000",
   "timeOut": "5000",
   "extendedTimeOut": "1000",
   "showEasing": "swing",
   "hideEasing": "linear",
   "showMethod": "fadeIn",
   "hideMethod": "fadeOut"
 };</code></pre>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2019/02/19/how-to-add-toast-js/">How To Add toast.js?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2019/02/19/how-to-add-toast-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
