Zum Hauptinhalt gehen

HTML in feature long description - wrong coding in image URL in case of running in IE11

Kommentare

4 Kommentare

  • Zack Robison
    This looks like a back-end issue... can we see what the location attribute for that reocrd is?  I bet that you'll need to url-encode those locations in the data ie "%C5%A1koln%C3%AD%20rat%C3%AD%C5%A1kovice" instead of "školní ratíškovice"
    0
  • Permanently deleted user
    Hi Zack,

     

    You are totaly right, but how to encode this URL in the img tag of the feature long description?

     

    The location attribute adr_adresa.adr is this:

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000fyJK&feoid=Body&refid=0EMf2000000kAKD"_/_img_
    0
  • Zack Robison
    If I'm not mistaken (and I may very well be) you won't be able to do it within Geocortex.  It would require runing a script within the maptips which would require customization of the viewer, for security and probably also stability purposes we as site admins have been prevented from doing such things in the out-of-the-box Geocortex HTML5 viewers. 

     

    SO you'll probably find that the easiest way to tackle this problem is in the data itself, if that's an option for you.  You'll want to create a new field to use for the urls and populate it with encoded locations, then use that field for these urls instead.  How you do this will be determined by your backend, for example MS Sql Server has a builtin function "urlencode" in TSQL to handle url encoding but Postgres would probably need to use a custom function or a really complicated regex.  You might find it easier to do with python or javascript instead.
    0
  • Permanently deleted user
    Hi Zack,

     

    Thanks for your advice. We created a custom function in Postgres and it works.

     

    Jana
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.