Display Dot Net web application without using IFrame

We would like to display web application forms that have been developed in C# in confluence pages. We can do it using IFrames but we are limited in what functionality we use. Are there any plugins that would allow us to do this?

2 answers

This widget could not be displayed.
Davin Studer Community Champion Jun 30, 2014

You could use AJAX to communicate with a C# .NET web app. Confluence has jQuery included, so it's pretty easy to use JSONP with it. I've done this is a number of places with our install.

This widget could not be displayed.

Hi David,

I am not familiar with JSONP. Do you have an example of this?

Thanks,

Paul

Davin Studer Community Champion Jul 02, 2014

JSONP is used for getting around the same origin policy with xml http requests. It's built into jQuery, whic is included with Confluence. Basically, jquery will generate a callback function on-the-fly and pass the function name in a querystring parameter called callback. Your webservice just needs to take what is passed in callback and wrap your JSON with it. So, if callback in the querystring was foo. Then your JSON returned by the webservice should look like this ...

foo(JSON);

jQuery will then be able to execute the callback function. Inessence JSONP doesn't actually do xml-http reqwuests. What it realy does is create script elements on the fly and then the data in the script element gets executed immediatly.

http://en.wikipedia.org/wiki/JSONP

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

57 views 8 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you