This topic is locked
[SOLVED]

 Custom link gets chopped off

1/11/2019 7:54:21 AM
PHPRunner General questions
S
swanside author

Guys, |Can somebody please advise, I am using this line below as a Custom on my project, The idea is it will open the website and return the map to display the area by the Grid Reference.

The value in the Grid Ref is SJ 54456 85962
$value="<iframe src=http://gridreferencefinder.com/?gr=".$data["GridRef";] . " height='1000' width='1200'></iframe>";
But when the website runs only the link underlined below makes it to the SJ and the important bits at the end 54456 85962 get chopped off

Any ideas please how I can make the whole link complete please?

Thanks
<iframe src=http://gridreferencefinder.com/?gr=SJ 54456 85962 height='1000' width='1200'></iframe>

HJB 1/11/2019

https://asprunner.com/forums/topic/25698-how-can-i-limit-a-displayed-link-to-20-characters/
... just an idea ..., if counted correctly, the underlined URL part consists out of 37 characters,

while whole you need to get underlined is 49 characters, say, 12 characters are currently NOT underlined

and hence wrongly interpreted. While shortening of URL is one thing, I think, the prolongation of URL

might work too (not tested). In other words, the suggested code as per URL above is talking about URL

shortening to 20 characters while it would be interesting to see whether changing the suggested code to

not shorten, but to prolong according to needs, here 49 characters could help or not here.
P.S. https://stackoverflow.com/questions/28938960/url-replace-spaces-with-signs
Or you need to google for the very best "replace blank by %" code on the web ...

admin 1/11/2019

You need to wrap the value of src with single quotes:

$value="<iframe src='http://gridreferencefinder.com/?gr=".$data["GridRef";] . "' height='1000' width='1200'></iframe>";
S
swanside author 1/11/2019



You need to wrap the value of src with single quotes:

$value="<iframe src='http://gridreferencefinder.com/?gr=".$data["GridRef";] . "' height='1000' width='1200'></iframe>";



Thansk Sergey

Worked like a charm <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=86765&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />