Image Maps - target = problem

7 posts, 0 answers
  1. Phuong Pham
    Phuong Pham avatar
    1 posts
    Member since:
    Aug 2009

    Posted 12 Aug 2009 Link to this post

    Hi!
    We currently use telerik RadEditor.
    We having problem with target =" " problem in image maps.
    When we use image maps and use target = blank it works fine and the html is set.
    Problem is when we hit published the html code removes.

    Before published:
    <map id="rade_img_map_1250067357261" NAME="rade_img_map_1250067357261">
    <area shape="rect" coords="101,70,164,114" href="http://www.test.no" shape="RECT" target="_blank" coords="101,70,164,114" /></map>
    After published:
    <map id="rade_img_map_1250067357261" name="rade_img_map_1250067357261">
    <area shape="rect" coords="101,70,164,114" href="http://www.test.no" shape="RECT" coords="101,70,164,114" /></map>

    as you see the html code: target="_blank" is missing.
    The target works fine when we only use telerik RadEditor to create links etc.
    The problem is only when we use image map.

  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 13 Aug 2009 Link to this post

    Hi Phuong,

    I tried to reproduce the reported problem with the Save In External File live example of RadEditor but without success. Could you please, see the attached video demonstrating my test and let me know if I am missing something? Please test the live example as well as the Save in Database example and try to reproduce the reported problem. If you succeed please send us video and steps for how to reproduce the issue on our side.

    Best regards,
    Rumen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Patrick Maeschli
    Patrick Maeschli avatar
    11 posts
    Member since:
    Jan 2008

    Posted 11 Nov 2009 Link to this post

    Hi Phuong
    have you solved your Issue?
    I have the same problems

    regards
    patrick
  5. Bernard Laruelle
    Bernard Laruelle avatar
    2 posts
    Member since:
    Sep 2004

    Posted 19 Mar 2010 Link to this post

    Hi,

    I use the telerik Rad Editor within MOSS Publishing sites...

    I have defined some area in an image map and I have the same problem, the tags "target" disappear from my page !!!

    Is there a solution ???

    Best regards

    Bernard
  6. Patrick Maeschli
    Patrick Maeschli avatar
    11 posts
    Member since:
    Jan 2008

    Posted 19 Mar 2010 Link to this post

    Hi Bernard

    This is a Sharepoint Issue which trims out this attribute.
    There are IMHO two ways to solve this issue

    - replace the target before save it into SharePoint, with something which will not be trimmed, and, if you display it, replace it again
    - Use soemthing to set the target on rendering. This can be a httpmodule which inserts the target.

    Is used jquery to set the target on every imagemap link to _new .

    regards
    patrick
  7. Bernard Laruelle
    Bernard Laruelle avatar
    2 posts
    Member since:
    Sep 2004

    Posted 19 Mar 2010 Link to this post

    Hello Patrick,

    Thanks for your quick answer,
    Indeed I see the tag before saving the page, but it disappears when I save the page :-(
    <area href="http://sapl.ams.solvay.com/cs/" shape="CIRCLE" alt="sapl" target="_blank" coords="79,187,42" />

    I'm not sure that I understand your first solution ???

    For the second solution, have you a sample code ?
    If possible, I prefer to avoid to include jquery in my pages.

    Regards,

    Bernard
  8. Patrick Maeschli
    Patrick Maeschli avatar
    11 posts
    Member since:
    Jan 2008

    Posted 19 Mar 2010 Link to this post

    Hi Bernard

    The first solution woudl be, that you create a control, which wraps the editor, so you can replace the value of "target" whith f.ex "title" because title should not be replaced. So you can save the HTML in the Database. When you come Back, you need to rereplace again. All Area Tags Title attribute must be replaced with target

    anyway.. to include JQUery
    - include JQuery
    - Add the following lines of Code at the Bottom of your Page/Masterpage

    <script type="text/javascript">  
    $("area").attr('target','_new');   
    </script> 
     

    regards
    patrick
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017