javascript和swf对象帮助 - Ajax ?? [英] javascript and swf object help - Ajax??

查看:85
本文介绍了javascript和swf对象帮助 - Ajax ??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了一些东西,但似乎没有任何工作,我开始认为这是不可能的。


我基本上希望让用户点击视频编号,然后在页面上的自己的部分中加载视频。我目前正在使用iframe作为一种解决方法,并且一直试图阅读Ajax作为另一种解决方法。问题是,我认为使用iframe我会丢失通常在页面上正确的重要关键字。我最初创建了ifram,因为每次用户点击视频编号时,都必须重新加载整个页面。如果我没有必要,我宁愿不使用iframe。


有人可以查看下面的代码吗?任何帮助都像往常一样受到赞赏...


原始页面我想实现这是在 www.dontsnooze.com


我正在 www.dontsnooze.com/test


代码目前无法正常工作:

I''ve tried a few things but nothing seems to work, i''m starting to think this isnt possible.

I basically am looking to have the user click on the video number, then have the video load in its own section on the page. I''m currently using iframes as a work around and have been trying to read up on Ajax as another way around it. Problem is, i think using iframes i''m losing important keywords that would usually be right on the page. i initially created the ifram because everytime a user clicked a video number, it had to reload the whole page. plus i rather not use iframes at all if I didn''t have to.

Can someone take a look at the code below? Any help is appreciated as usual...

original page I''d like to implement this is at www.dontsnooze.com

I''m testing this code below at www.dontsnooze.com/test

Code doesn''t work currently:

展开 | 选择 | Wrap | 行号

推荐答案

您不能对不同的节点使用相同的ID ...只需制作它们独特的,让你的功能照顾那些不同的ID - 然后它的工作原理。和ajax相关的代码在哪里? ...这只是对象标签资源的简单JavaScript设置,这里没有使用/需要ajax。


亲切的问候
you cannot use the same id for different nodes ... just make them unique, and let your function take care of those different ids - then it works. and where is the code related to ajax? ... it''s just plain JavaScript-setting of the resource for the object-tag, no ajax is used/needed here.

kind regards


感谢您的回复我真的很感激....


我会改变ID的拍摄并发布结果....


我对ajax不是很熟悉,但那是一些人继续经营的。我应该先来到这里....

@gits
Thank you for the response I really appreciate it....

I''ll give changing the ID''s a shot and post the results....

I''m not very familiar with ajax at all but thats what a few people keep running by me. I should have just came here first....

@gits


首先我尝试单独更改每个ID测试,然后我尝试为每个(下面粘贴)的ID,视频没有改变onclick。我实际上尝试了很多组合。我想我的问题是(如果我想做的话甚至是可能的话)我不知道在哪里放ID。在对象选项卡中?或者在param或embed标签中?不确定........任何帮助/建议赞赏我试过的一些代码:


最初几次尝试之一:
So first I tried changing each ID individually and testing, then i tried putting an ID for each (pasted below), the video is not changing onclick. I actually tried a number of combinations. I guess my problem is (and thats if what I''m trying to do is even possible) i''m not sure where to put the ID. In the object tab? or in the param or embed tags? not sure........Any help/suggestions appreciated..heres some code I tried:

One of the first few attempts:
展开 | 选择 | Wrap | 行号


这篇关于javascript和swf对象帮助 - Ajax ??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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