Results 1 to 3 of 3

Thread: Transforming a script: from popup to inline

  1. #1
    Join Date
    Mar 2015
    Location
    [Italy]
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Transforming a script: from popup to inline

    1) Script Title: HTML5 Notepad

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

    3) Problem:
    I'd like to use this script but I want to have it like an online form, without any popup. Check this page:
    http://www.klayz.com/tools/note-online/
    Thoerically I'd like to use the script not as a popup but like a form, where you input the text, you click on save (green button - "SALVA NOTA") and then you have the script working as normal like in the demo page. Do you think is this a possible thing? Can you please help me? I tried opening the source files but I have to be true. I really did not understand a thing about all these codes, and I really don't know how to do what I described above.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, try the below modified .js file. Then, to make the notepad appear inline on the page, call the initialization function with the extra parameter in red below:
    Code:
    jQuery(function($){ //on document.ready
    	notepad.loadpad('mynotepad1', '#test') //load "mynotepad1" when document loads
    })
    where "#test" is the ID of the element inside your page that you wish the notepad to be inserted into, for example:

    Code:
    <div id="test"></div>
    Attached Files Attached Files
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Norman (03-30-2015)

  4. #3
    Join Date
    Mar 2015
    Location
    [Italy]
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hey there, thank you so much for your help! I really appreciaed it. It is working and it is working great! Thank you thank you thank you!

Similar Threads

  1. inline java popup within another java code...
    By bm13084 in forum JavaScript
    Replies: 0
    Last Post: 02-17-2009, 05:05 AM
  2. Drop down/ Overlapping Content script and Inline Frames.
    By xxgattacaxx in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-23-2008, 03:20 PM
  3. Accordion Content script - Set Default Expand Inline?
    By mmc215 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 08-12-2008, 09:08 PM
  4. error in xml transforming
    By s_sameer in forum JavaScript
    Replies: 1
    Last Post: 09-20-2005, 03:42 PM
  5. Replies: 2
    Last Post: 03-13-2005, 03:53 PM

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
  •