How can I use AJAX?

For tips, questions and general information about writing Add-ins, how to package them, and how to submit them to EViews for publication.

Moderators: EViews Gareth, EViews Moderator

hakperest
Posts: 8
Joined: Thu Jul 02, 2015 6:39 am

How can I use AJAX?

Postby hakperest » Thu Aug 06, 2015 5:48 am

I need some vars be included from server. How can I get external contents into entire programming area?

For example I want import updated var name form server, can I import it with AJAX like command?

EViews Steve
EViews Developer
Posts: 788
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: How can I use AJAX?

Postby EViews Steve » Thu Aug 06, 2015 8:35 am

We currently don't have any way for you to programmatically access a web service from EViews code. However, if the data from your server is available as a simple HTML table format or as a file, you can use HTTP URLs in both WFOPEN and IMPORT commands to get the data into EViews.

Code: Select all

import http://real-chart.finance.yahoo.com/table.csv?s=AAPL&a=11&b=12&c=1980&d=05&e=16&f=2015&g=d&ignore=.csv


Steve


Return to “Add-in Writing area”

Who is online

Users browsing this forum: No registered users and 5 guests