调用包含Js页面的两个页面时出现问题 [英] problem while calling two pages which includes Js pages
问题描述
嗨
我在组合框中使用Ajax Get_Pages.php和Get_Content.php调用两个页面。两个页面都是根据组合框中的选择显示的。
主要问题是它没有显示在Get_Content.php上调用的编辑器。在主页。
我已将js文件包含在head部分中。
所有文件都在同一目录下。
但是当我运行Get_Content.php时它会显示编辑器,那么什么是问题
请帮帮我。
我已经给出了页面的代码。
主页调用JS页面。
现在问题是代码工作正常但它没有显示当我通过wysiwyg.js包含的编辑器我是从主页面调用的。
但是当我运行Get_Content.php时它会显示编辑器。
所以有什么东西我不能称之为系列的Js页面。如果是,那我该怎么办呢。
您需要包含JavaScript文件。创建一个脚本对象并将其添加到主页面的头部。
您需要包含JavaScript文件。创建一个脚本对象并将其添加到主页面的头部。
但我已将Get_Page.js添加到主页的头部。以及如何创建脚本对象?
但我已将Get_Page.js添加到主页的头部。以及如何创建脚本对象?
创建一个脚本元素并将src属性设置为js文件,然后附加到头部,例如
展开 | 选择 | Wrap | 行号< /跨度>
Hi
I am calling two pages using Ajax Get_Pages.php and Get_Content.php from combo box. Both pages are displayed based on selection from combo box.
Main problem is that it is not showing the editor which is called on the Get_Content.php. in Main Page.
I have included the js files in the head section.
all the files are on the same directory.
But when I am running the Get_Content.php it is showing the Editors so what is the problem
Please help me out.
I have given the codes for the pages.
Main Page which is calling the JS Page.
Expand|Select|Wrap|Line Numbers解决方案Now Problem is that code works fine but it is not showing the editor which is included through wysiwyg.js when I am calling it from main page.
But when I am running the Get_Content.php it shows the editor.
so is there any thing that I can not call Series of Js pages. If it is then how can I do it.You''ll need to include the JavaScript file. Create a script object and add it to the head of the main page.
You''ll need to include the JavaScript file. Create a script object and add it to the head of the main page.But I have added the Get_Page.js to the head of main page. And how a script object will be created?
But I have added the Get_Page.js to the head of main page. And how a script object will be created?Create a script element and set the src property to the js file and then append to the head, e.g.
Expand|Select|Wrap|Line Numbers
这篇关于调用包含Js页面的两个页面时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆