Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/285.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.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
在kaltura中使用ajax.php进行视频演示_Php_Ajax - Fatal编程技术网

在kaltura中使用ajax.php进行视频演示

在kaltura中使用ajax.php进行视频演示,php,ajax,Php,Ajax,我正在为视频演示编写代码。但是在使用ajax.php时遇到了问题。我在里面找到了这些密码 , 但是我不知道如何调用ajax.php,有人能帮我吗 function entries_added(entries) { $("#doc_uploading").html('Processing '+kuploader_selected_filename); entry = entries[0]; set_document_entry_id(entry.entryId); // e

我正在为视频演示编写代码。但是在使用ajax.php时遇到了问题。我在里面找到了这些密码 ,

但是我不知道如何调用ajax.php,有人能帮我吗

function entries_added(entries)
{
   $("#doc_uploading").html('Processing '+kuploader_selected_filename);
   entry = entries[0];
   set_document_entry_id(entry.entryId);
   // entry id = entry.entryId
   // request conversion using ajax
   $.ajax({
      url: 'ajax.php?action=convert&entryId='+entry.entryId,
      type: 'get',
      success: function(download_url){
         set_converted_doc_swf_url(download_url);
         var timeoutId = setTimeout('updateDocConversionStatus()',10000);
         set_docConvertCheckerId(timeoutId);
      }
   });
}

请帮我下载ajax.php。

我怀疑您可能没有加载jQuery;
$.ajax({url:'ajax.php'})
应该已经开始“下载”ajax.php了

在您链接到的视频演示演示页面上,您可以将此代码输入浏览器的控制台;您应该看到一个XMLHTTPRequest对象被打印出来,如果它有效,后面跟着“success”

$.ajax({ url:'ajax.php', success: function(url) { console.log('success'); } });
在您自己的站点上,您是否有一个
ajax.php
处理程序向其发出请求