Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An Ajax module for Framer.

License

NotificationsYou must be signed in to change notification settings

karlerikjonatan/framer-module-ajax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

framer.module.ajax is an Ajax module for Framer.

Installation

Addajax.coffee to the /modules folder of your project.

Usage

To include the module within your project, add the following:

ajax=require"ajax"

framer.module.ajax consists of the methodget and requires the parametersurl,callback.

get

ajax.get(url, (response)->callback(response))

Theurl andcallback parameters defines the URL to request and the function to run (together with response object) on success.

framer.module.ajax parses all responses asJSON.

Example

# Moduleajax=require"ajax"# GETajax.get("https://randomuser.me/api/", (response)->createAvatar(response))# AvatarcreateAvatar= (data)->avatar=newLayer(height:200width:200image:data.results[0].user.picture.large)

About

An Ajax module for Framer.

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp