Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Regular Coder
    Join Date
    Aug 2012
    Posts
    127
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Do not have closer

    Anyone can check what is wrong in my below code: the pop-up window have not a closer.

    Code:
    <html>
    <head>
    	<title>PNotify Testing</title>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
        <link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/ui-lightness/jquery-ui.css" />
    
        <script type="text/javascript" src="jquery.pnotify.js"></script>
        <link type="text/css" rel="stylesheet" href="includes/bootstrap/css/bootstrap.normal.css" /> 
        <link type="text/css" rel="stylesheet" href="jquery.pnotify.default.css" />  
       
    </head>                                                                                                                                                                        
    <body>                                                                                                                                                                         
    <script type="text/javascript">
    function myAlert(txt){
    $.pnotify({
    				text:txt,
    				hide: false,
    				title: 'Regular Notice',
    		});
    }
    </script>
    <button onclick="myAlert('This is a test')" >Click me</button>                                                                                                                                                                                                                                                                                                                  
    </body>        
    </html>

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Check the documentation. In there should be the attribute that you need to include in order to have a way to close the notification.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #3
    Regular Coder
    Join Date
    Aug 2012
    Posts
    127
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by WolfShade View Post
    Check the documentation. In there should be the attribute that you need to include in order to have a way to close the notification.
    The option closer=true by default, then we have not to state.

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,775
    Thanks
    6
    Thanked 1,021 Times in 994 Posts
    Do you have a live example for us? Could it be that just a close button image is missing or referenced wrongly?

  • #5
    Regular Coder
    Join Date
    Aug 2012
    Posts
    127
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    Do you have a live example for us? Could it be that just a close button image is missing or referenced wrongly?
    I have posted all the html.

  • #6
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    looked up the plugin. http://pinesframework.org/pnotify/
    if your not getting qa clsoe button its most likely missing image issue. the versions that dont close on a timer all have close buttons added by default.

  • #7
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,775
    Thanks
    6
    Thanked 1,021 Times in 994 Posts
    Quote Originally Posted by docco View Post
    I have posted all the html.
    That’s not helping because we still don’t have any images and/or your server setup etc. I asked for a live example for a reason.

  • #8
    Regular Coder
    Join Date
    Aug 2012
    Posts
    127
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DanInMa View Post
    looked up the plugin. http://pinesframework.org/pnotify/
    if your not getting qa clsoe button its most likely missing image issue. the versions that dont close on a timer all have close buttons added by default.
    The closer is sign || X appeared when you mouse over the pop-up. I check and see no image for the closer.

  • #9
    Regular Coder
    Join Date
    Aug 2012
    Posts
    127
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    That’s not helping because we still don’t have any images and/or your server setup etc. I asked for a live example for a reason.
    This is not server-side task. It only a simple task on your PC: alert a message. Just download .css and .js from http://pinesframework.org/pnotify and enjoy.
    Have you copied my code and run it?

  • #10
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,775
    Thanks
    6
    Thanked 1,021 Times in 994 Posts
    I didn’t say it is a server-side task but your server is serving the files, and your code alone – especially if I just copy it and run it in my browser – is still not telling us anything about whether images are involved or whatever else, and therefore it is more useful to see your live set-up. This is why I want a live example. The code you posted may be correct by itself but it doesn’t give any hints whether or not the file paths/locations are correct etc.

  • #11
    Regular Coder
    Join Date
    Aug 2012
    Posts
    127
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    I didn’t say it is a server-side task but your server is serving the files, and your code alone – especially if I just copy it and run it in my browser – is still not telling us anything about whether images are involved or whatever else, and therefore it is more useful to see your live set-up. This is why I want a live example. The code you posted may be correct by itself but it doesn’t give any hints whether or not the file paths/locations are correct etc.
    Thank, I know you want to now detail to easy advise me. But that html file is all I do. Pnotify is built-in javascript and css, I already declare in head.

  • #12
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,983
    Thanks
    56
    Thanked 557 Times in 554 Posts
    the closer image is ../img/glyphicons-halflings.png

    do you have that?

    or, as the instructions note,
    And if you choose to use jQuery UI for all your styling, include this line somewhere before your first notice:
    $.pnotify.defaults.styling = "jqueryui";
    Last edited by xelawho; 09-22-2012 at 03:41 AM.

  • #13
    Regular Coder
    Join Date
    Aug 2012
    Posts
    127
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by xelawho View Post
    the closer image is ../img/glyphicons-halflings.png

    do you have that?

    or, as the instructions note,
    No. it does not work

  • #14
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,983
    Thanks
    56
    Thanked 557 Times in 554 Posts
    Interesting. Because it works on the demo site and it works on my machine.

    Maybe there's something else going on in your super secret code?

  • #15
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    ok try this. in your browser put in http://yoursiteurlhere.com/img/glyphicons-halflings.png

    put your site address in that url and see if your image loads. if not you dont have it saved in the correct location and it will not show.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •