Results 1 to 2 of 2

Thread: Enhanced Studio problem with onclick

  1. #1
    xojins is offline Member
    Join Date
    Apr 2008
    Posts
    7

    Default Enhanced Studio problem with onclick

    Hi:

    I am creating a new code field using Enhanced Studio that creates a button. What is happening is that when I click Save and go back into edit the field, the onclick gets removed.

    Here is the original code:
    Code:
    $ndate = date('Y-m-d');
    echo "
    <button onclick=\"document.getElementById('description').value += 'test '\">$ndate</button>
    "
    ;
    Here is the code after I click Save:
    Code:
    $ndate = date('Y-m-d');
    echo "
    <button =\"document.getElementById('description').value += 'test '\">$ndate</button>
    "
    ;
    Anyone know why this is happening?

    Thanks

    Dave

  2. #2
    xojins is offline Member
    Join Date
    Apr 2008
    Posts
    7

    Default Re: Enhanced Studio problem with onclick

    After a little more digging around the site I did find an old post that mentioned there was s Sugar security filter that was removing javascript event names.

    I uninstalled the 2.2 version I had and installed 2.2.1. After I did this, my problem went away.

    Dave

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Enhanced Studio Support
    By kenshiro in forum Developer Help
    Replies: 85
    Last Post: 2011-09-13, 05:33 PM
  2. enhanced studio and external databases
    By mapi33 in forum Developer Help
    Replies: 5
    Last Post: 2009-06-27, 12:59 PM
  3. Enhanced Studio 2.1 available
    By kenshiro in forum Downloads
    Replies: 2
    Last Post: 2009-05-05, 12:45 PM
  4. Enhanced Studio 2.2 Displaying Cases
    By khenderson in forum Developer Help
    Replies: 4
    Last Post: 2008-12-22, 07:11 AM
  5. Replies: 17
    Last Post: 2008-05-13, 10:25 AM

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
  •