<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">The problem is that all paths included
in the page loaded via ajax are wrongly redirected.<br>
<br>
For instance,<br>
<br>
I want to load a page in the path /test via ajax call in
owncloud/apps/custom. That page contains an image in the path
/test/image.png.<br>
<br>
When I call that page, the image is looked at
owncloud/apps/custom/image.png which doesn't exist. How can I
avoid that behavior and have the ajax called page internal paths
not redirected ?<br>
<br>
Thanks.<br>
<br>
Le 05/07/13 09:29, Michée Lengronne a écrit :<br>
</div>
<blockquote cite="mid:51D675EE.8040400@coppint.com" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">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.<br>
<br>
I don't want to use iframes. That's evil in terms of security
and integration.<br>
<br>
Le 04/07/13 21:40, Philip Taffner a écrit :<br>
</div>
<blockquote cite="mid:51D5CFA8.8030202@altmuehlnet.de" type="cite">
<pre wrap="">That's not true anymore.
You can always use JSONP, but modern browsers support cross-domain http
requests.
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS">https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://github.com/pazguille/jquery.cors">https://github.com/pazguille/jquery.cors</a>
Search for "CORS".
Am 04.07.2013 20:15, schrieb Roman Geber:
</pre>
<blockquote type="cite">
<pre wrap="">On 07/04/2013 06:52 PM, michee.lengronne wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I try to call an external page in owncloud via a jquery ajax call.
</pre>
</blockquote>
<pre wrap="">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:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/4613310/how-to-call-external-url-in-jquery">http://stackoverflow.com/questions/4613310/how-to-call-external-url-in-jquery</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://stackoverflow.com/questions/382662/what-are-the-differences-between-using-an-iframe-and-ajax-to-include-the-content">http://stackoverflow.com/questions/382662/what-are-the-differences-between-using-an-iframe-and-ajax-to-include-the-content</a>
Hope that helps.
cu
Roman
_______________________________________________
Owncloud mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Owncloud@kde.org">Owncloud@kde.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/owncloud">https://mail.kde.org/mailman/listinfo/owncloud</a>
</pre>
</blockquote>
<pre wrap="">_______________________________________________
Owncloud mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Owncloud@kde.org">Owncloud@kde.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/owncloud">https://mail.kde.org/mailman/listinfo/owncloud</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=UTF-8">
<title>Signature Michée Lengronne Coppint</title>
<meta name="CREATED" content="0;0">
<meta name="CHANGEDBY" content="Michée Lengronne">
<meta name="CHANGED" content="20101009;17461700">
<style type="text/css">
</style>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><font face="Verdana"><font
style="font-size: 9pt;" size="2"><br>
Michée Lengronne</font></font></p>
<hr size="3">
<p><font face="Verdana"><font size="1">Ce message et ses
éventuelles pièces jointes sont personnels, confidentiels
et à l'usage exclusif de leur destinataire.<br>
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.<br>
<br>
This e-mail and any attachments hereto are strictly
personal, confidential and intended solely for the
addressee.<br>
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.</font></font></p>
<hr size="3">
<p><img style="border: 0px solid ; width: 214px; height: 42px;"
alt="Logo CopPInt"
src="cid:part9.06020509.02040004@coppint.com" name="images1"></p>
<p><font face="Verdana"><font style="font-size: 9pt;" size="2">30440
Saint Laurent le Minier<br>
France<br>
<br>
</font></font><font face="Verdana"><font style="font-size:
9pt;" size="2"><b>Compagnie pour des Prestations Internet</b></font></font><font
face="Verdana"><font style="font-size: 9pt;" size="2"><br>
<br>
Téléphone personnel : +41 (0)791 94 71 98<br>
Téléphone professionnel : +33 (0) 4 84 25 23 67 poste 102<br>
Téléphone professionnel : 0805 696 8 9 0 poste 102 France
uniquement<br>
<br>
Courriel : <a moz-do-not-send="true"
href="mailto:michee.lengronne@coppint.com">michee.lengronne@Coppint.com</a></font></font></p>
<hr size="3">
<p><br>
<br>
</p>
</div>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8">
<title>Signature Michée Lengronne Coppint</title>
<meta name="CREATED" content="0;0">
<meta name="CHANGEDBY" content="Michée Lengronne">
<meta name="CHANGED" content="20101009;17461700">
<style type="text/css">
</style>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><font face="Verdana"><font
style="font-size: 9pt;" size="2"><br>
Michée Lengronne</font></font></p>
<hr size="3">
<p><font face="Verdana"><font size="1">Ce message et ses
éventuelles pièces jointes sont personnels, confidentiels et
à l'usage exclusif de leur destinataire.<br>
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.<br>
<br>
This e-mail and any attachments hereto are strictly
personal, confidential and intended solely for the
addressee.<br>
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.</font></font></p>
<hr size="3">
<p><img style="border: 0px solid ; width: 214px; height: 42px;"
alt="Logo CopPInt"
src="cid:part11.02030501.01040205@coppint.com" name="images1"></p>
<p><font face="Verdana"><font style="font-size: 9pt;" size="2">30440
Saint Laurent le Minier<br>
France<br>
<br>
</font></font><font face="Verdana"><font style="font-size:
9pt;" size="2"><b>Compagnie pour des Prestations Internet</b></font></font><font
face="Verdana"><font style="font-size: 9pt;" size="2"><br>
<br>
Téléphone personnel : +41 (0)791 94 71 98<br>
Téléphone professionnel : +33 (0) 4 84 25 23 67 poste 102<br>
Téléphone professionnel : 0805 696 8 9 0 poste 102 France
uniquement<br>
<br>
Courriel : <a href="mailto:michee.lengronne@coppint.com">michee.lengronne@Coppint.com</a></font></font></p>
<hr size="3">
<p><br>
<br>
</p>
</div>
</body>
</html>