hyperlink use wrong?

Questionshyperlink use wrong?
Adrian Sirbu asked 1 week 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 1 week 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

11 + 14 =

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 / 5. Vote count:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!