PDA

View Full Version : Resolved HTML5 Notepad - "Close Window" doesn't work



CyBeRaY
03-20-2011, 11:51 AM
1) Script Title: HTML5 Notepad

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/html5notepad.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:


javascript:notepad.loadpad('mynotepad2',%20['center','center'])

jscheuer1
03-20-2011, 02:58 PM
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), 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:


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

should be:


<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:


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

to:


unloadpad:function(id){
jQuery('div#'+id).remove()
}

ddadmin
03-21-2011, 12:47 AM
That said - Here, at the end of not_defteri.js change $ to jQuery, change:


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

to:


unloadpad:function(id){
jQuery('div#'+id).remove()
}

Ah I missed that myself. Script updated with note below. Thanks!

CyBeRaY
03-22-2011, 03:59 PM
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), 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.

CyBeRaY
03-23-2011, 01:46 PM
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.)