[Owncloud] external page ajax call

Michée Lengronne michee.lengronne at coppint.com
Fri Jul 5 07:29:50 UTC 2013


Ok, I made a proxy to serve that page internally but I would like to
call it via ajax to have integrated in the owncloud template.

I don't want to use iframes. That's evil in terms of security and
integration.

Le 04/07/13 21:40, Philip Taffner a écrit :
> That's not true anymore.
>
> You can always use JSONP, but modern browsers support cross-domain http
> requests.
>
> https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS
> https://github.com/pazguille/jquery.cors
>
> Search for "CORS".
>
> Am 04.07.2013 20:15, schrieb Roman Geber:
>> On 07/04/2013 06:52 PM, michee.lengronne wrote:
>>> Hello,
>>>
>>> I try to call an external page in owncloud via a jquery ajax call.
>> You can't call an external page through ajax. For security reasons you
>> can only make requests to the same server the original page is coming from.
>>
>> You might be able to do it through an iFrame.
>>
>> Check out this links for more information:
>>
>>
>> http://stackoverflow.com/questions/4613310/how-to-call-external-url-in-jquery
>>
>> http://stackoverflow.com/questions/382662/what-are-the-differences-between-using-an-iframe-and-ajax-to-include-the-content
>>
>> Hope that helps.
>>
>> cu
>> Roman
>>
>>
>>
>> _______________________________________________
>> Owncloud mailing list
>> Owncloud at kde.org
>> https://mail.kde.org/mailman/listinfo/owncloud
>>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud


-- 
Signature Michée Lengronne Coppint



Michée Lengronne

------------------------------------------------------------------------

Ce message et ses éventuelles pièces jointes sont personnels,
confidentiels et à l'usage exclusif de leur destinataire.
Si vous n'étes pas la personne à laquelle ce message est destiné,
veuillez noter que vous avez reçu ce courriel par erreur et qu'il vous
est strictement interdit d'utiliser, de diffuser, de transférer,
d'imprimer ou de copier ce message.

This e-mail and any attachments hereto are strictly personal,
confidential and intended solely for the addressee.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding,
printing, or copying of this message is strictly prohibited.

------------------------------------------------------------------------

Logo CopPInt

30440 Saint Laurent le Minier
France

*Compagnie pour des Prestations Internet*

Téléphone personnel : +41 (0)791 94 71 98
Téléphone professionnel : +33 (0) 4 84 25 23 67 poste 102
Téléphone professionnel : 0805 696 8 9 0 poste 102 France uniquement

Courriel : michee.lengronne at Coppint.com
<mailto:michee.lengronne at coppint.com>

------------------------------------------------------------------------



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130705/f2db8fa2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: images1
Type: image/png
Size: 13832 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130705/f2db8fa2/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: michee_lengronne.vcf
Type: text/x-vcard
Size: 255 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130705/f2db8fa2/attachment.vcf>


More information about the Owncloud mailing list