帮助嵌入JavaScript页面 [英] Help with embedding JavaScript page

查看:77
本文介绍了帮助嵌入JavaScript页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个页面: http://www.bekdavis。 com / jcarousel / examples2 / diane.html


我需要将它嵌入以下页面: http://www.scentsy.com/diane

http://www.scentsy.com/diane - 我只能在此页面中添加一小段代码。我不希望它在一个框架中。


代码会是什么样子?


提前致谢!!!

bek davis

解决方案

你好,bekdavis!


我不知道如何测量小代码片段但是这是你可以做到的一种方式:


- 使用一个函数创建一个JavaScript文件,该函数向你想要包含的页面发出XML HTTP请求(Ajax)。同时在此文件中调用相同的函数。


- 在主页面中包含JavaScript文件和请求响应的占位符。


祝你好运。


也许是iframe?或者这仍然算作一个框架?


但我必须承认,我根本没有看到它与Java连接的位置。如果你能解释一下,这可能是正确的地方。否则我很乐意将此线程移到其他地方(例如 HTML / CSS JavaScript / Ajax 论坛)。


问候,

Nepomuk


这里我们去....


以下页面是一个组合我做的html和java。 http://www.bekdavis.com/jcarousel/examples2/diane。 html


我需要在下页显示上面的页面: http://www.scentsy.com/diane


我不能只复制和粘贴HTML代码b / c我是有限的关于我能够使用的代码量。页面 http://www.scentsy.com/diane 是一个复制网络营销网站和我只允许在页面中放入一些代码来个性化它。


我希望能够显示我创建的页面上的所有内容( http:// www.bekdavis.com/jcarousel/examples2/diane.html )。


我尝试了以下内容并且不起作用:


< object

type ="文本/ X-的scriptlet"

width = 475 height = 1024 data =" http://www.bekdavis.com/jcarousel/examples2/diane.html">

< / object>


也...


<! - #include file = " HTTP://www.bekdavis.com/jcarousel/examples2/diane.html" - >


有没有办法在 http://www.scentsy.com/diane 让我的HTML页面显示?


这有意义吗?

I have this page: http://www.bekdavis.com/jcarousel/examples2/diane.html

and I need to embed it on the following page: http://www.scentsy.com/diane

http://www.scentsy.com/diane - I can only add a small snip of code to this page & I do not want it to be in a frame.

What would the code look like?

Thanks in advance!!!
bek davis

解决方案

Hello, bekdavis!

I don''t know how to measure a "small snip of code" but here is one way you could do it:

- create a JavaScript file with a function that makes an XML HTTP Request (Ajax) to the page you wish to include. Also place a call to that same function in this file.

- in the main page include the JavaScript file and a placeholder for the request response.

Best regards.


Maybe an iframe? Or would that still count as a frame for you?

But I must admit, I don''t see where this is connected to Java at all. If you could explain that, this might be the right place. Otherwise I''d be happy to move this thread somewhere else for you (e.g. the HTML / CSS or the JavaScript / Ajax Forum).

Greetings,
Nepomuk


here we go....

the following page is a combo of html and java that I made. http://www.bekdavis.com/jcarousel/examples2/diane.html

I need to make the above page display on the following page: http://www.scentsy.com/diane

I cannot just copy and paste the HTML code b/c I am limited on the amount of code I am able to use. The page http://www.scentsy.com/diane is a replicating Network Marketing site and I am only allowed to put a tiny bit of code into the page to personalize it.

I want to be able to "display" all of the content that is on the page I created (http://www.bekdavis.com/jcarousel/examples2/diane.html).

I have tried the following and it does not work:

<object
type="text/x-scriptlet"
width=475 height=1024 data="http://www.bekdavis.com/jcarousel/examples2/diane.html">
</object>

also...

<!--#include file="http://www.bekdavis.com/jcarousel/examples2/diane.html" -->


is there a way to place some java code on http://www.scentsy.com/diane to make my HTML created page display?

does this make sense?


这篇关于帮助嵌入JavaScript页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆