Results 1 to 5 of 5

Thread: HTML5 Notepad - "Close Window" doesn't work

  1. #1
    Join Date
    Oct 2010
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question HTML5 Notepad - "Close Window" doesn't work

    1) Script Title: HTML5 Notepad

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ml5notepad.htm

    3) Describe problem: The script works fine on my Joomla website but only Close button does not work. I guess it conflicts with another script. How can I fix this problem?

    To view the Notepad, go to my website (yesilsms.com) and paste the code below in URL bar:

    Code:
    javascript:notepad.loadpad('mynotepad2',%20['center','center'])
    Last edited by CyBeRaY; 03-24-2011 at 11:27 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Your page is in violation of Dynamic Drive's usage terms, which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.


    This:

    Code:
      <script type="text/javascript" src="http://yesilsms.com/scriptler/not_defteri.js"></script>
    should be:

    Code:
      <script type="text/javascript" src="http://yesilsms.com/scriptler/not_defteri.js">
      /***********************************************
      * HTML5 Notepad- (c) Dynamic Drive (www.dynamicdrive.com)
      * This notice MUST stay intact for legal use
      * Visit http://www.dynamicdrive.com/ for this script and 100s more.
      ***********************************************/
      </script>
    That said - Here, at the end of not_defteri.js change $ to jQuery, change:

    Code:
    	unloadpad:function(id){
    		$('div#'+id).remove()
    	}
    to:

    Code:
    	unloadpad:function(id){
    		jQuery('div#'+id).remove()
    	}
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2004
    Posts
    9,903
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Quote Originally Posted by jscheuer1 View Post
    That said - Here, at the end of not_defteri.js change $ to jQuery, change:

    Code:
    	unloadpad:function(id){
    		$('div#'+id).remove()
    	}
    to:

    Code:
    	unloadpad:function(id){
    		jQuery('div#'+id).remove()
    	}
    Ah I missed that myself. Script updated with note below. Thanks!
    Last edited by jscheuer1; 03-21-2011 at 02:33 AM. Reason: restore intended opening quote delimiter
    DD Admin

  4. #4
    Join Date
    Oct 2010
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1 View Post
    Your page is in violation of Dynamic Drive's usage terms, which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.
    It was because I had a Joomla bot that automatically stripped out all comments from source codes. Sorry about that.
    Last edited by jscheuer1; 03-22-2011 at 07:11 PM. Reason: restore intended closing quote delimiter

  5. #5
    Join Date
    Oct 2010
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Another question about modification...

    Can this script be modified in a way that it can be used as a local phonebook? I replaced the textarea part in the script with a table with multiple text areas but when I click save only the input in the first text are is saved, all others are ignored. Any help on how to fix this? Or can another script be made?

    Live demo: www.yesilsms.com
    Paste url bar: javascript:rehber.loadpad('rehber',%20['right','center'])

    (Btw copyright notice which was automatically stripped out has been restored. Sorry again.)

Bookmarks

Posting Permissions

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