In my javacript function, I call it ajax. It works fine, but only when accessing a web page from a firebird server. I have the same code on my testing server. Ajax asks to download some files, but only the Firebird server has its ip-registers with our clients in order to be able to scp there. I need to do the same if I access php files from a test server. All servers are on the intranet.
- can i use dataType
text for this? - Do I need to make any changes on the server side?
ajax call:
url = "https://firebird"+path+"/tools.php?"; jQuery.ajax({ type: 'get', dataType: 'text', url: url, data: {database: database_name, what: 'download', files: files, t: Math.random() }, success: function(data, textStatus){ document.getElementById("downloading").innerHTML+=data; } });
Update 1
My small web application restores databases, so I can test them. Now I want to improve it so that I can connect to our customers and download a specific backup. Our client allowed only the firebird server firebird connect to its networks. But I have my own server dedicated to testing . Therefore, every time I want to load a database, I need to connect firebird . The source of my web application and the folder with all the backups are mounted in the same place on both firebird and testing servers. Right now my solution (for download) is working, but only from firebird. I work mainly with testing server only.
Update 2
I make two ajax calls. One of them is a pure jQuery call (I assume I can apply any solution to this), and the other is an ajax call from jsTree. I created a new question for this. It seems to me that I have to be suitable for the @zzzz option b).
source share