I am trying integrate an upload system from YouSendIt.com in to my companies forms. The code they give for integration is basically an iframe with a coded URL set for the source. Their server sends a postback using HTTP Post method but I am not sure how to access the data that is sent back. I do not need to display it but I need to use it for validation purposes in the rest of my form. The Iframe code is as such:
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).
I have an application running on a non-interactive kiosk that I need to keep updated with information that will be provided by a remote server. To do this, I've created an XMLHttpRequest/Microsoft.XMLHTTP object that checks the modified date in the header of a watched file that resides on a remote server.
This function runs on an interval, and if it detects a change in the modified date since the last check, it retrieves new information from the remote server.
I am developing an ASP.NET web application that requires the use of remote calls going on behind the client's page in the browser. I successfully got the service working via SOAP (I have to use SOAP due to the fact that I need this to be compatible with Netscape 7.0). However, there is a memory leak in Netscape using SOAP calls, and I can't figure out why. So I thought that accessing the web service with HTTP-POST or some other javascript method might alleviate this problem. Can anyone show me another method, or tell me what is wrong with my SOAP calls?
Prior to posting a form (.asp page) to a URL, I check the parameters being passed and they are not encoded, but when the URL is served it is encoded. How can I prevent this?
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 have an HTML div that gets filled with the following HTML/javascript code via ajax:
<script type = "text/javascript"
[Code]....
The idea is that when I post the form the response gets loaded back into the same div. This works, but when I use the form to post a file I see the following output from Firebug: $ is not defined
Naturally when I resubmit my form again (for example after incorrect input) the resulting response doesn't get loaded into the div because jquery never setup the ajaxForm method.
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.
Initially I (successfully) tested my project after deploying to the Apache server which is running in the localhost.
But, if I just open the page in a browser (without deploying to the server), the project works fine! How this is possible?
According to my understanding, if we send an AJAX request, which is really an HTTP request, which has to be received by an HTTP server and the response should come from the server.
I am using jquery.ajax() to make a POST call to web server which returns HTTP 201 response for successful creation of object at server. Since 201 is a success I expect the success function specified with jquery.ajax to execute but instead it executes the error function specified with jquery.ajax. Here is how I am using jquery.ajax call.
I want to populate my client's webpage (Remote Server) automatically through my Server and Database by having him just paste a javascript on his webpage.
I have read up about Microsoft Remote Scripting but the documentation states the following : "The server which you make remote scripting calls must be the same server from which you requested the client page containing the requests."
In my case , the client and server pages are on two seperate servers which means that I cannot use MS Remote Scripting.Is there an alternate approach in any scripting language ???
Any suggestions, tutorials , websites , code snippets will be appreciated while i continue to research on this...
I'm trying to read a file (will be a firmware update) into a byte array or binary stream or stream of some sort, and then POST it to my server. Any suggestions on opening and reading files from within js? Note, the server is a development server and will not run PHP or CGI scripts for example. I just need to be able to open a file from within a js function.
Also, no ActiveX objects, this needs to be Cross Platform.
I have a few values and variables that I want to post to a server (without using a SUBMIT button). Is there a way to post data from within javascript - do sockets or connections have to be open for this to work?
I have created an entry form that I display in a modal dialog. I have two buttons on the form: "Add and close", and "Add and allow me to add another". However the only time my modal form will post back to the server is after the form has been closed. I want to do the following: The user opens the form in a modal dialog. The user enters data, and clicks the "Add and allow me to add another" button. The page sends the user input to the server, which adds the input to a database and updates a datagrid on the page. This updated datagrid is visible behind the modal form, so the user can see it happening in the background The form clears all input fields and the user goes again. Any code I write that calls the server (button click events, ajax calls, etc) are ignored, unless the modal form has been closed.
Iam using JQuery DatePicker Plugin , created by Kelvin Luck [url]. Plugins default format is d/m/Y. how to change its default format to US Date format (m/d/Y).
I am new to jQuery but loving the functionality thus far. I am having an issue however. The below code works fine if i do a full postback and on initial load.
I have a problem that the window.opener variable is lost once my popup page has a postback. On multiple pages they address this problem but I cannot find a correct answer.
This is my situation:
I have a main page which shows invoices. When a user clicks on the invoices they get a popup where they can alter the invoice which uses postbacks because of direct changes in the database. Finally the user can click a button to accept the invoice and then I need to change two variables on the main page which opened this popup, the new invoice fee and status (which is based on the button pressed). I dont want any postbacks on the main page, therefore I simply want to pass these two variables from the popup to the main page.
However, after a single postback on the popup page the window.opener variable is gone and lost forever. Now I have seen solutions using frames but I do not know how to go from there because I also pass some variables from the main page to the popup.
How may I catch all postback events which are triggered by all controls using jQuery in an ASPX page?
I am using the below provided code and displaying an alert window when any control posts back to the server, however not all postbacks are getting caught by the highlighted code.
When the page loads initally all events work. There is a button that does a postback but does not reload the page. If you try to execute any of the events that you previously did it does not recognise it.
I'm new to jQuery, and I'm wondering how I would go about making a control post back to the server automatically, in my case I have a mobile datepicker, and I'd like for it to post back to the server when a date is selected from the calendar. I'm sure it is very simple, but I am new with jQuery.
In my jsp project i am using the calendar control which selects the Birth Date of the client and on that basis it calculates the age after completion of all the fields user get registered successfully.but when registered user trying to update his date of birth his age field is blank, tell me why this happening Also tell me the javascript function.
I have a six DIVs, each containing another DIV that slideUp and/or slideDown upon a click on the its parent DIV. Each DIV has a textbox, or a datagrid, or a textarea and a button (to save the data). I have a click function attached to the parent DIV that changes the class of the child DIV (expanded/collapsed). Also, the click function calls another function to save the state of each child DIV. The idea being to maintain the state of the DIVs upon return from postback.
The slideDown and slideUp work upon the page load, or going to another page and returning to the page (not using the back button). The slideDown/slideUp cease to function when I click the save button within the DIV and the postback occurs. The other DIVs function as intended after the postback until I click a button on one of the remaining functioning DIVs, and then that DIV is now not functioning as intended. It acts as if the slideDown/slideUp was replaced with show/hide. The state of the DIVs are maintained upon postback.