Hi,
I am trying to use dhtmlxVault in my ASP.net web application 4.0 and i am not winning with it.
Here is my code.
<%@ Page Language=“C#” AutoEventWireup=“true” CodeBehind=“DHTMLxVault.aspx.cs” Inherits=“FileUpload.DHTMLxVault” %>
Attach vault to window
div.sample_title {
font-size: 16px;
font-family: Tahoma;
color: #303030;
font-weight: bold;
margin: 15px 1px;
}
Simple init
and i am getting error like this.
Failed to load resource: the server responded with a status of 405 (Method Not Allowed) localhost:59423/DHTMLxfiles/upload_conf.asp
Please help me out here.
Andrei
#2
Hi
please check this topic viewtopic.php?f=4&t=37302
Hi
Andrei,
Thanks for your reply. I tried that one, but its not working for me.Also i tried with php file.
like below
var myVault;
function doOnLoad() {
//dhx4.ajax.method = “get”;
window.dhx4.ajax.method = “get”;
window.dhx4.ajax.post(“DHTMLxfiles/upload_conf.php”, function ® {
var t = null;
try { eval(“t=” + r.xmlDoc.responseText); } catch (e) { };
if (t != null) {
// extend conf
t.skin = “dhx_skyblue”;
t.autoStart = true; // start upload right after file added
t.autoRemove = false; // remove file from list right after upload done
t.buttonUpload = true; // show/do_not_show upload/stop buttons
t.buttonClear = true; // show/do_not_show clear_all button
t.filesLimit = 0; // correspinding number or skip or zero to ignore
// init
myVault = new dhtmlXVaultObject(t);
}
but i getting nothing. Please help me.
Tx
Andrei
#4
Hello
please replace
window.dhx4.ajax.post(“DHTMLxfiles/upload_conf.php”, function ® {
with
window.dhx4.ajax.get(“DHTMLxfiles/upload_conf.php”, function ® {
also make sure on php side $_GET or $_REQUEST is used