> Forums > Active Social > Community Support > When editing a image, the caption displays HTML and script??
Last Post 05 Jan 2012 01:30 AM by Patrick. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Patrick
Registered Users
Patrick
Post Count:87

--
12 Dec 2011 03:51 PM
    • Active Social Version: 2.0.0
    • DotNetNuke Version: 5.6.2
    I'm a bit confused as to this error, but here's what is happening:

    1. I create a new album
    2. I add a photo to that album, and for the caption I write, "Test caption".
    3. Later on, I decide to edit that photo, so I click "Edit Image"
    4. Everything is fine, with the exception of the "Caption" area. . . which has the following code in it, and it stretches out the screen and causes serious display issues:

    --------------
    Test caption
    {script type="text/javascript"}var asImages = [
    {"index":"0","FileName":"Screen_Shot_2011-12-08_at_1.38.33_PM.png","Title":"Test caption","FileId":"69","FilePath":"/DesktopModules/ActiveSocial/viewer.aspx?PortalId=0&sid=0&sz=3&fid=69"}
    ];asClient.Gallery.ImageInfo = {"index":"0","FileName":"Screen_Shot_2011-12-08_at_1.38.33_PM.png","Title":"Test caption","FileId":"69","FilePath":"/DesktopModules/ActiveSocial/viewer.aspx?PortalId=0&sid=0&sz=3&fid=69"};
    {/script}{input type="hidden" id="ashidbread" value="<a href="" onclick="asClient.Gallery.LoadView('asalbums',0,''); return false;"}Albums{/a}" /}</div>
    -->
    ---------------

    With that said.. I'm totally confused.

    What did I do wrong?

    Thank you all for your help.

    - Patrick
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    29 Dec 2011 02:42 PM
    I can't reproduce this. Is it still happening? Are you getting any javascript errors on the page? Also, what browser are you using?
    Patrick
    Registered Users
    Patrick
    Post Count:87

    --
    05 Jan 2012 01:30 AM
    Good news and bad news Ben

    Good news: This issue is fixed. Jeff Blanks helped me out to narrow down the issue.
    The issue: The editor within the control panel was stripping out closing tags at the end of my custom view.
    Bad news: I have no idea why. So I used FTP to upload the file to correct the issue.



    I apologize for not updating this threat. Busy.. overwhelmed.. Trying to survive.. You know, the usual stuff that gets in the way.

    THanks Ben!

    - Patrick
    You are not authorized to post a reply.
    > Forums > Active Social > Community Support > When editing a image, the caption displays HTML and script??
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy