Comments (4)
Hi @sarankup,
can you send me your whole example on my e-mail? I must test it.
Thanks.
from examples.
Hi @sarankup,
you are using JSONP (dataType:"jsonp") in your AJAX call. That means you are not making POST, but GET request, and in your controller is flag POST - framework.route('/getmyname',getmyname,['post']). Try it with empty flags array framework.route('/getmyname',getmyname,[]).
from examples.
Thanks. This is fixed according to framework.route('/getmyname',getmyname,[]).
Is this the write way to send jsonp
self.content('myfun('+JSON.stringify(docs.land)+');');
from examples.
Hi @sarankup,
new beta version supports JSONP npm install total.js@beta
.
https://github.com/totaljs/framework/blob/v1.8.1/changes.txt#L29
Thanks.
from examples.
Related Issues (20)
- Passport.js HOT 4
- Can't set dynamic from/replyTo HOT 4
- [Nuxt-Middleware] Error "hot-update" when change .vue file. HOT 3
- I can't run ANY of the examples ... ? HOT 3
- Can we work with Swagger in total.js HOT 2
- Roles in authorization HOT 2
- How to Set action Body from outside HOT 2
- How to work with socket.io in total.js? HOT 1
- This script needs improvement. HOT 1
- angular 4 with server side render HOT 1
- next-js HOT 3
- Any examples of how to wrap self.$get(self, self.callback()) in controller? HOT 1
- bad url in documentation HOT 1
- Compile .scss freeze HOT 9
- the export of functions in business logic does not work HOT 5
- ReferenceError: MAIN is not defined HOT 2
- Failed to run examples/postgres: require(...).init is not a function HOT 1
- Session and roles HOT 2
- Totaljs with elasticsearch HOT 1
- TypeError: HTTP(...) is not a function TypeError: HTTP(...) is not a function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.