Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我如何在elgg网站上用ajax打开wire回复_Javascript_Php_Ajax_Elgg - Fatal编程技术网

Javascript 我如何在elgg网站上用ajax打开wire回复

Javascript 我如何在elgg网站上用ajax打开wire回复,javascript,php,ajax,elgg,Javascript,Php,Ajax,Elgg,在start.php中的wire中,我有以下代码用于向我显示对河流的“回复”: elgg_register_plugin_hook_handler('register', 'menu:river', 'thewire_reply_river_menu_setup'); function thewire_reply_river_menu_setup($hook, $type, $return, $params) { $item = $params['item']; $o

在start.php中的wire中,我有以下代码用于向我显示对河流的“回复”:

    elgg_register_plugin_hook_handler('register', 'menu:river', 'thewire_reply_river_menu_setup');


function thewire_reply_river_menu_setup($hook, $type, $return, $params) {
    $item = $params['item'];
    $object = $item->getObjectEntity();
    if ($item->subtype == 'thewire' && elgg_is_logged_in()) {
        $return[] = ElggMenuItem::factory(array(
            'name' => 'demyx_wire',
            'href' => elgg_normalize_url("thewire/reply/{$object->guid}"),
            'text' => 'Reply',
            'priority' => 90,
        ));
    }

    return $return;
}
如何使链接在弹出窗口中打开?我尝试使用“onclick=“window.open”,我也尝试使用“class”=>“elgg-lightbox”,但没有……如果有人能帮助我们了解如何在带有或不带ajax的弹出窗口中打开“href”(我更喜欢使用ajax)

谢谢