I am trying to write a script which will allow me to read the contents of an
HTTP web page into memory, parse the data, and output a calculated value.
The HTTP page is on a web enable appliance - I am reading some data out of a
table for further calculation. I can't modify the web appliance, only read
the text data.
I've written a script on my Windoze PC that successful uses a MSXML2 ActiveX
object to read the contents of a web page into memory using the
xmlhttp.responseText object. The problem is that the ActiveX object is not
available on a lightweight Linux based http server.
I need to write a script that will work with ASP/Javascript on a lightweight
Linux based http server.
I have written an Ajax application which can send http HEAD requests and receive the header response from server.
Now I want to show the different values in formatted manner. However, there seems be no character or expression which I can use to split the HEAD response for string processing.
Here is a sample of server response:
Mime-Version: 1.0 Date: Thu, 08 Feb 2007 03:51:13 GMT Server: Apache/ 2.0.1a Content-Type: text/html; charset=utf-8 Content-Length: 69 Connection: close
If you have any information regarding this please do let me know.
I am doing xmlhttp ajax stuff. I am using a script called "SEXYALERTBOX". I am using it to allow the user to input a password. The textbox is called BoxPromptInput. I do not think its inside a <form> tag.
Here is the code: function askForPass() { Sexy.prompt('Please type the password in order to see the pictures/videos','' ,{ onComplete: function(returnvalue) { if(returnvalue) {
var xmlhttp = false; var pageResponse = null; try{xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (error){try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} catch (error) {xmlhttp = false;}} .....
Any way to pass the value since I am sure the request.form would not work in this case since its not in a form.
I am using jquery's ajax method to POST data to a server. I am using the servers API, and it is stated that in whatever request, I have to include this "authentication token" to access the data I need, either as an http header field or a header parameter.
I prefer to add it as an http header, but I don't know how to add it.
Here's a part of my code. I wish to add a field for a token.
I'm trying to parse my data from an xml file now and print it out on the page based on date from my existing code. I have that working, with each item formatted the same way on the page What I'd like to do now is alter it a bit to make the most recent (the item listed on the top of the page) formatted differently and the rest of them as it is now. Something like - (if 1st <li> then build html like this else build html like that) I hope this makes sense.
I have a frame in which there are 2 IFrames., both being loaded from the same domain. One IFrame is loaded from http://test1.xyz.com and the other IFrame is loaded from https://test1.xyz.com/test
I am getting an error while accessing data in the HTTP IFRAME from the HTTPS IFRAME.
Is it possible at all to access the data in the other IFrame, when the protocol is different?
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...
The data that needs to parsed is on an asp page secured by a login form. I have access to the site, but I was wondering how one would go about writing a script that would automatically access the page and grab the HTML.
Garbing the HTML then parsing the information I understand. I just don't know if its possible to access the data through an external script (run from another server) even though we have access rights to the page requiring login that is situated on another server.
The reason for this is because we don't have direct access to the database.
I'm trying to write a little Javascript that would parse a CSV file that contains a name and date, and only display the name if the date matches today. Here's some example data:
If today were 6/10/2010, the output of the script would just be "Joe"
I have a credit card donation page and what I wanted to do is after they click the submit button and transaction is successfult I wanted to capture the donation amount they enter from the donation page and show it to the next page.
I'm trying to write a little Javascript that would parse a CSV file that contains a name and date, and only display the name if the date matches today.
Here's some example data:
Name, Date Joe, 6/10/2010 Jane, 7/11/2010
If today were 6/10/2010, the output of the script would just be "Joe"
I know this question has been asked a million times but I still can't get an event from an embedded ActiveX Exe to be caught in javascript. I am able to access all the properties and methods of the ActiveX Exe, I just can't seem to catch the event.
The event handler never fires. I debugged the ActiveX Exe and verified that the event is indeed being raised. I am able to catch the event in a VB6 test container project as well. Any ideas?
I want to make a capture window in *standalone* (in a *.js file) javascript, much in the same way as the VBscript inputbox() function. I can make it inside a *.html file with the prompt() function.
Or, is there a way to make a window and then work with this window?
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.
My problem is that i need an algorithm parse parse HTML. For an HTML page, my script has to parse all tags to get all forms values, even if there is frame, iframe, ... How can i do such a script ?
I need to access the CGI Variables or HTTP Headers in a request. Can I do that in JavaScript? Specifically I need to access the CGI variable remote_user.
I have a web page that I created that should basically do the following: Parse an xml feed with javascript and display the contents to the page.
The problem is as follows: I can parse the feed and display it using javascript but it only works for internet explorer. For some reason when I try doing it in firefox, it doesnt do anything and nothing displays.
I think it might have to do with the fact that it is loaded from url. Any comments?
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 ?