[TW5] TiddlyWiki plugin: Call WebService.

178 views
Skip to first unread message

Stéphane Delaye

unread,
Feb 23, 2017, 2:37:15 AM2/23/17
to TiddlyWiki
Hello,
I wonder to call a web service from tiddlywiki.
I found this post but with tiddywiki classic.

TiddlyWiki plugin: Call WebService.

they use script or a plugin "webRenderPlugin"
What is the way to do this with TW 5 ?
Thanks

Jed Carty

unread,
Feb 23, 2017, 7:24:51 AM2/23/17
to TiddlyWiki
I have looked into making things like this work, but browser security makes it difficult. I made a widget somewhere that lets you make xmlhttp requests but for many uses there are CORS problems that prevent it from working.

Dragon Cotterill

unread,
Feb 23, 2017, 7:33:00 AM2/23/17
to TiddlyWiki
On Thursday, 23 February 2017 12:24:51 UTC, Jed Carty wrote:
I have looked into making things like this work, but browser security makes it difficult. I made a widget somewhere that lets you make xmlhttp requests but for many uses there are CORS problems that prevent it from working.

Just as a suggestion, but you might want to have a look at https://github.com/55sketch/simple-rss to see how they handle CORS issues there. 

Jed Carty

unread,
Feb 23, 2017, 7:41:22 AM2/23/17
to TiddlyWiki
They use a third party service called rss2json (https://rss2json.com/#rss_url=https%3A%2F%2Fnews.ycombinator.com%2Frss) to get around the problems, but it wouldn't work as a general solution and I don't like relying on things like that.

Stéphane Delaye

unread,
Feb 23, 2017, 5:40:42 PM2/23/17
to TiddlyWiki
Hello. The web services are hosted on the same domain as the tiddlywiki HTML file. I should not have cordialement cors issues.

Stéphane Delaye

unread,
Feb 26, 2017, 3:54:29 AM2/26/17
to TiddlyWiki
Hello Jed,
My webservices are on the same domain.Is that possible for me to try if your widgets works ?
Thanks
Stephane

Jed Carty

unread,
Feb 26, 2017, 4:00:52 AM2/26/17
to TiddlyWiki
I need to find where I put everything. I think that I have a basic widget for generic xmlhttp requests around somewhere. Today I am working on getting everything I have together to be released under OokTech, I will start looking for the widgets I made and I will put them up when I find them. Hopefully soon. 

I don't know if any of what I made got as far as rendering the content that was returned, so it may take some work to make something useful from what I have.
Reply all
Reply to author
Forward
0 new messages