Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Server interaction with client

New Here ,
Aug 14, 2019 Aug 14, 2019

Suppose I have an E-comm site where there are pics of potatoes and tomatoes,with their prices listed beneath them. These prices are live prices, i.e. they need to be pulled off a server - how would I pull this off?

Also, is there any Animate equivalent to what Generator was for Flash back in the old days? What's a good book that contains info about it, and programming it and so on?

Thanks.

406
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2019 Aug 14, 2019

Hi.

You can use an XML HttpRequest.

Say for example you want to get some quiz/trivia questions from a database like Open Trivia DB. You could write:

var xhttp = new XMLHttpRequest();

xhttp.onreadystatechange = function ()

{

    if (this.readyState == 4 && this.status == 200)

        console.log(xhttp.responseText);

};

xhttp.open("GET", "https://opentdb.com/api.php?amount=10", true);

xhttp.send();

You can host your own files as well, of course.

I hope this helps.

Regards,

JC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2019 Aug 14, 2019

About learning Animate CC, you can:

- Access Adobe offical help;

- Visit Animate's official channel on YouTube.

- Search for online video tutorials and courses on YouTube, bloopanimation.com, Lynda.com / LinkedIn Learning, Pluralsight, snorkl.tv, flash-powertools.com, Skillshare, Udemy, among others;

- Buy books from stores like Amazon;

- Facebook groups, Twitter accounts, and so on.

Regards,

JC

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2019 Aug 14, 2019

I forgot about yours, n. tilcheff​.

I've just edited my comment.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 18, 2019 Aug 18, 2019

Thanks for all that info

Which of those is the GOOD one, though?

Also, in this particular case, I was talking specifically about where to get info on Generator - you didn't answer my question as to whether something like it still exists or not...?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2019 Aug 18, 2019
LATEST

You're gonna have to find out depending on your needs and style.

And what do you call Generator? Could you give some example?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines