Smart mark to do an HTTP GET request in JavaScript

MadMich

Member
Does anyone know how i can achieve something like this using AE12.2?

//say the data i am trying to get is on a website: http://mywebsite/files/test.txt


var a = "http:"
var c = "mywebsite.com"
var d = "files/test.txt"

var newURL = a + "//" + c + "/" + d;


//Is it possible to get the result of test.txt via a smart mark?
 
I haven't tried that before... does it not work in 12.1? Is that why you're asking about 12.2?

Curious about what you're trying to do. Are you passing in the .txt file name as a variable? Sort of a low-tech database query?

For what it's worth, I've set up ODBC to query Excel sheets to bring in as a SmartMark. Although it looks like you can pull direct from a CSV file now.
 

PressWise

A 30-day Fix for Managed Chaos

As any print professional knows, printing can be managed chaos. Software that solves multiple problems and provides measurable and monetizable value has a direct impact on the bottom-line.

“We reduced order entry costs by about 40%.” Significant savings in a shop that turns about 500 jobs a month.


Learn how…….

   
Back
Top