Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Help with Hyperlink
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Help with Hyperlink
#35947
Help with Hyperlink 11 Years, 10 Months ago Karma: 0
Hello -

I am using the following code to display name and website from mySql table and hoping to hyperlink website to customers website:

{arijdatatable}
{arisqltable}
{arisqltablecolumns}
{arisqltablecolumn id="name" alias="Company Name" width="30%"}
{/arisqltablecolumn}
{arisqltablecolumn id="website" alias="Website URL" width="70%" format=<a href="($value}">{$columns:website}</a>}
{/arisqltablecolumn}
{/arisqltablecolumns}
{arisqltablequery}
SELECT name,website
FROM dealerships
where website >' '
{/arisqltablequery}
{/arisqltable}
{/arijdatatable}

The data is retrieved however the hyperlink doesn't work.

Thanking all in advance for any assistance with this issue.
The administrator has disabled public write access.
 
#35961
Re:Help with Hyperlink 11 Years, 10 Months ago Karma: 760
Hello,

Hello,

The plugin code is incorrect. {arisqltablecolumn} tag doesn't support "format" attribute. Use the following code:

Code:


{arijdatatable}
  {arisqltable}
    {arisqltablecolumns}
      {arisqltablecolumn id="name" alias="Company Name" width="30%"}{/arisqltablecolumn}
      {arisqltablecolumn id="website" alias="Website URL" width="70%"}
         {coltemplate}<a href="{$website}">{$website}</a>{/coltemplate} 
      {/arisqltablecolumn}
    {/arisqltablecolumns}
    {arisqltablequery}
      SELECT name,website
      FROM dealerships
      WHERE website >' '
    {/arisqltablequery}
  {/arisqltable}
{/arijdatatable}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#35999
Re:Help with Hyperlink 11 Years, 10 Months ago Karma: 0
Hi and thank you for your reply.

Is it possible to have the hyperlink open in a new page less address bar and scrollbars.

This is an example of what I am trying to accomplish from another application:

SELECT
`<output name="WEB" type="link" linktype="open" open="location=0,scrollbars=1" target="_blank" text="View Details"/>`
FROM sheet4
WHERE `Industry` LIKE '%Restaurant%'
AND `WEB` > ' '

Thanking you in advance for your assistance.
Last Edit: 2013/01/23 23:26 By tmediacom.
The administrator has disabled public write access.
 
#36011
Re:Help with Hyperlink 11 Years, 10 Months ago Karma: 760
Use the following code:

Code:


{coltemplate}<a href="javascript:void(0);" onclick="window.open('{$website}', '_blank', 'width=800,height=600,scrollbars=no,location=no')">{$website}</a>{/coltemplate}



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1