dousaoxiancy199896 2013-05-16 03:43
浏览 49

Jquery通过外部JS文件动态加载Growler

I'm trying to push growler notifications dynamically generated in a php file..

Heres my main file.

                    jQuery(document).ready(function() {
                        jQuery("#test").click(
 function () {


 jQuery.getScript("php/live_updates.php");

 });
                        });

and heres the live_updates.php

<script type="text/javascript">
 jQuery(document).ready(function() {
jQuery.jGrowl("One");
jQuery.jGrowl("Two");
jQuery.jGrowl("Three");
 }); </script>

Looking in my web console its getting the file but not running the growlers..

Anyone got any ideas

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信红包不拆包 知道红包金额
    • ¥15 0基础学机器人运动控制要多久?
    • ¥15 .net core 怎么进行中英文转换
    • ¥15 数学的三元一次方程求解
    • ¥20 iqoo11 如何下载安装工程模式
    • ¥15 本题的答案是不是有问题
    • ¥15 关于#r语言#的问题:(svydesign)为什么在一个大的数据集中抽取了一个小数据集
    • ¥15 C++使用Gunplot
    • ¥15 这个电路是如何实现路灯控制器的,原理是什么,怎么求解灯亮起后熄灭的时间如图?
    • ¥15 matlab数字图像处理频率域滤波