How To Implement HTTP PUT Method Using Apache, VBScript/JavaScript + AJAX
Nov 3, 2005
Can anyone redirect to any online tutorials, articles, code of how to upload a file using HTTP PUT method and JavaScript or VBScript to a server running Apache 2.0 that uses CGI + PERL.
How to create configuration entries in httpd.conf for supporting HTTP PUT method.
How to code with AJAX to post uploaded file content to the server using PUT method ?
I have managed to succesfully post the data to the php page... (i can see using firebug that it IS being sent) but i get a message Quote: Apache HTTP Server has encountered a problem and needs to close and the response is empty... what am i doing wrong?is possibly something to do with the space in the value of the options?
As the title implies, i need to make use ajax with GET method and with data in the http request body. I can do it with POST method but i don't know how to do it with GET. In php, it's easy...
I've written some ASP using javascript (rather than vbscript) and it runs as expected on my test IIS server. Recently a colleague said that he was unsure if an Apache server, that's setup to serve ASP, can correctly handle non-vbscript ASP.
I have a number of server-side Javascript applications running on an old Netscape Enterprise server. I want to move them to Apache. Is there a way to do this without extensive recoding ? My code contains a lot of Oracle and SQL Server database interaction.
I am sending a url request to the network using jquery.get(). The problem I am facing is that the server is having an http authentication, so when i pass the request url directly on the browser, it will show the authentication window and i can pass the username and password, but what to do when i am passing the same request using get() method.
This is what i am using currently
Anybody knows a work around for this problem, which can be used for every browser. the current error code is 401..
The user clicks on the delete icon, and gets a JavaScript client-side popup to confirm that he wants to delete. I am passing this client-side function a contactID.
Then, I want to send the result of this confirm (true|false) to a server-side VBScript function, along with the contactID. The VBScript function will then perform a delete in the database for the specified contactID.
I have seen many examples about sending stuff back and forth between JavaScript and VBScript, between server and client, but all the examples I see are just popping up generic alerts and such. I need to execute some JS on the client side, return a value, and send it to a VBScript function on the server side.
I have some pages with this VBScript code, which obviously does not work in Firefox. How can I convert this to Javascript in order for my web page to work in Firefox ? It basically fills a drop down with a list of dates that a user can select. Code:
I need some help converting this VBScript over to JavaScript so that the calculations will work properly in browsers other than IE.
You can take a look at Turn 2 Design Code: for a feel about what I'm trying to do, but basicly, I just need to calculate the cost of the selected items based on the selected quantity of that item.
The only thing I know about JavaScript is the small Pop-up scripts I've been able to litterally copy and paste to implement. So, please, dont just post code, post an explaination of whats going on and why so I can try to figure it out. Code:
Not sure whether this should go in the JavaScript or VBScript/ASP section, but I'll try here anyway.
I have an ASP include file that contains both VBScript and JavaScript code. The VBScript processes some information and has an onChange event which calls a JavaScript function. Within this javascript function I want to access a recordset and retrieve a value using a variable from the javascript. Here's the code from the JavaScript section. Code:
I'm looking to return DATE ONLY for yesterday's date. No seconds, milliseconds. Formatted either yyyy/mm/dd or mm/dd/yyyy. VB does it so easily Date()-1 will return 03/27/2007 if today is 03/28/2007. Why so many hoops for javascript? Any ideas?
I have the following function to get the total qty:
function calttl() { var ttlqty ttlqty=0 for (i = 0; i <= document.qtymain.orderdetail.length-1; i++) { ttlqty = ttlqty + document.qtymain.qty.item(i).value }
}
The problem I have is the document.qtymain.qty.item(i).value I get look like a string, so the number I get for ttlqty is not add up the number but concatenate.
How do I convert the value I get to a number in javascript?
I got two ASP pages. One is ASP email form (I'm using Persist ASP Email component). Another one has all file links in it. For example, when user click Outlook course hyperlink. It will pop up another window with outlook course PDF file. (All PDF files are already in the server).
What I am trying to do is: When user click the "Add Email" hyperlink, it will add that course name and filepath into ASP/VBScript Dictioanry Object. After the user finish and click "Attach to email" button. All the files will be attached in the email as an attachment.
Because I am not familar with VBScript. So, can Javascript add items to ASP Dictionary Object?
I have a theoretical question, I can't really post my code. But I have four results from reads to a database using php. I then read from an xml file using javascript using a loop. I am basically creating a chart of four variables with several different values for each variable. Some of the values for each variables come from the database using php, and some come straight off the XML file parsing done by the javascript. I initially had the php fetch/extract inside of the javascript loop, but it only assigned the first variables values to all the other variables. I discovered (after hours of googling) the difference between client side and server side code. So, after all this typing, my question is where should I look for tutorials on using Ajax to be able to use php code inside of a javascript loop? (If at all possible)
Now that http://username:password@site.com no longer is an accepted syntax in IE, I suddenly have a case in a project I'm working on. The easiest(?) solution would now be that there was some Javascript function that could pass the username and password or in som other way automate the login process on a given site.
Thing is I have a server-generated HTML page that I want to make the client redirect to a password protected site. (IIS Windows authentication).
Is it possble to do a HTTP post request inside JavaScript? - That is I don't want to use a HTML FORM, but need a JavaScript to post a value to a PHP script not encoding the parameters in a URL.
I'd like to make an HTTP request using JavaScript but not with the XMLHttpRequest object. I'm attempting to make this request to a different domain to get information and the security of modern browsers won't allow this with the XMLHttpRequest object.
Is there another way to do this in JavaScript? Oh and I'm not taking advantage of the asynchronous nature that object either, so that's not a criteria for a potential solution.
I want an identical effect that has three buttons -- print, email, text that does the same thing on the site.I can handle the server-side code (PHP), but I want to know how I can get that exact effect? My JavaScript is a bit above beginners, and I see they are using Prototype with some other effects.Now, on Firefox, I had saved the webpages but when I tried click on either of the 3 buttons, the JavaScript effect did not work. Can anyone show me how to implement something similar on my site?