HTML5 Data Bindings State Management Support Product Page

if no cookie is set to call a modal box

Reported 02 Aug 2016 07:58:21
1
has this problem
02 Aug 2016 07:58:21 Steffen Windisch posted:
My database is filtered through a cookie. I want, if no cookie is set to call a modal box. Is that possible. Here is my attempt, but it is not working.

<!--Alert-->
        <script type="text/javascript">
     if( document.cookie.indexOf("category=") < 0) {
dmxBootstrap3ComponentsAction('modal','#modalCatalog','show');

}
</script> 

Reply to this topic