Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7366 Lượt xem

I need to paste the following code -provided by an external source -  into one of my web page.

Could someone explain to the "non-expert" I am, how to do this only with the V8 developper mode.

In particular, where shall I insert the above code in the HTML code of the page.

This is supposed to pull the content of a news source into my web site!

<script type="text/javascript">
var UWA = {hosts:{"uwa":"http://uwa.netvibes.com","exposition":"http://uwa.netvibes.com"}}, UWA_ASYNC = UWA_ASYNC || [];
    UWA_ASYNC.push({url: "http://uwa.netvibes.com/apps/multifeed.php?provider=feed&url=http%3A%2F%2Fbit.ly%2F1pFRTTo&title=Acualit%C3%A9s+musicales+et+musicologiques",options:{"title":""}});
(function () {
    var a = document.getElementsByTagName("script"), b = a[a.length - 1] || document.body.lastChild,
        c = b.parentNode, d = document.createElement("script"), e = document.createElement("div");
    e.id = "UWA_ASYNC"; d.type = "text/javascript"; d.async = true;
    d.src = ("https:" == document.location.protocol ? "https://" : "http://") + UWA.hosts.uwa.split("://")[1] + "/lib/c/UWA/js/UWA_Embedded.js?v=1.3.RC4";
    c.insertBefore(d, b); c.insertBefore(e, b)
})();
</script>
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I guess, that is  an issue with odoo, generally speaking there are two parts to put javascript first section would be within the head area and second one within the body area, each HTML-Document consists off. Anyhow, Odoo is missing a real HTML-Inline-Editor. Also, if you go to take using provided HTML-Editor, that let you modify several template files (including it pulls actual webpage content into one),  it seems to validate any inserted code agains some xml standard (probably strict xhtml). This is good for avoiding, that someone totally destructs webpage, by pasting any code. Anyhow would be great to have an overview, what kind of snippets are allowed and what not by system. 

Ảnh đại diện
Huỷ bỏ
Tác giả

what do you recommend as a solution? Is there any way to bypass the Odoo context and still have a page within the website where a javascript will be embeded?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 22
12258
0
thg 7 25
328
1
thg 7 25
5137
0
thg 7 25
695
0
thg 6 25
769