hyperlink use wrong?

Questionshyperlink use wrong?
Adrian Sirbu asked 6 years ago

Hi,

I have a problem with col type “link”. I use like this:

$col[“title”] = “Map Google”;
$col[“name”] = “MapGoogle”;
$col[“link”] = “{MapGoogle}”;
$col[“linkoptions”] = “target=’_blank'”;

and in gridview I see what is in field “MapGoogle”, meaning

https://maps.google.com/maps?q=44.4358746656,26.1038838888“,

but, when I click on link, open new tab with

http://localhost/cnpp_nomenclatoare/https%3A%2F%2Fmaps.google.com%2Fmaps%3Fq%3D44.4358746656%2C26.1038838888”

Please help,

Tks

1 Answers
Adrian Sirbu answered 6 years ago

OK. I see in demo another alternate method:

I used $col[“default”] = “<a target=’_blank’ href='{MapGoogle}’>{MapGoogle}</a>”;  … and it worked perfectly

I used also  $col[“link”] = ‘javascript:window.open(“{MapGoogle}”,”newwind”,”height=500,width=800″); void(0);’; … and it worked also

but first metod not..

Thank’s

Your Answer

0 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?