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?

Using Javascript inside of Columns settings ver 2.
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Using Javascript inside of Columns settings ver 2.
#52591
Using Javascript inside of Columns settings ver 2. 9 Years, 11 Months ago Karma: 0
With the previous version of ARI Smart Content, I was able to use JavaScript by enclosing it inside of <script> tags, but when I try to do that with ver 2.x, I get code showing up at the top of the page, and can't continue unless I delete the .csv file and start over. What is the syntax for using JavaScript inside of the Columns Setting Format? I need it to avoid having line breaks when the specified column is null.
The administrator has disabled public write access.
 
#52593
Re:Using Javascript inside of Columns settings ver 2. 9 Years, 11 Months ago Karma: 760
Hello,

Upgrade the extension to v. 2.2.3. It should help.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#52594
Re:Using Javascript inside of Columns settings ver 2. 9 Years, 11 Months ago Karma: 0
Thank you. I've upgraded to v 2.2.3, and I no longer get an error when I include a <script> tag in the column setting, but I'm still not getting javascript to work. In ver 1.x, I can use the following, <script>var role = '{$role}'.substr(3); document.write(role);alert(role);</script>. In ver 2.x this doesn't work. What is the proper syntax to use Javascrip with ver 2.x?
The administrator has disabled public write access.
 
#52595
Re:Using Javascript inside of Columns settings ver 2. 9 Years, 11 Months ago Karma: 760
Use {$value} or {$columns:value} variable instead of {$role}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#52596
Re:Using Javascript inside of Columns settings ver 2. 9 Years, 11 Months ago Karma: 0
Thank you. I've got it working now.
The administrator has disabled public write access.
 
Go to topPage: 1