post

Ajax form not working (jQuery - PHP)

jQuery: $("#contact-us-form").submit(function () { var nameVal = $("input[name=name]").val(); var companyVal = $("input[name=company]").val(); var titleVal = $("input[name=title]").val(); var emailVal = $("input[name=email]").val(); var phoneVal = $("input[name=phone]").val(); var messageVal = $("input[name=messa...

HTTP POST and graceful degradation

I have a web application which among other things contains a table of items created using an Ajax callback. A bunch of form fields at the top of the table allow me to filter the items that will be displayed in the table according to various criteria and show it. Some parts of the table have lists of items with an [X] marked next to the...

HTML5 App Cache not working with POST requests

Hello, I'm working on a web application and I went through the necessary steps to enable HTML5 App Cache for my initial login page. My goal is to cache all the images, css and js to improve the performance while online browsing, i'm not planning on offline browsing. My initial page consist of a login form with only one input tag for en...

Trying to increment a javascript counter when using polling ajax http requests

Hi, I have a script that is running every 5 seconds, as a polling ajax http request. I want to send an incrementing amount through it, on each request (1,2,3,4,5,6 etc...) I have this so far, but the code just sends '1' through all the time. // set the value to 1 var state = { recordId: 1 }; $.ajaxPoll({ url: "map-s...

Jquery: post data to a jsp method?

I am currently a asp.net guy, but have to do some jsp work now. I know that in asp.net, you can define a public static method with [WebMethod] attribute e.g. [WebMethod] public static string GetIt(string code) { return GetSomething(code); } then, I can call this mehtod in jquery $.ajax({ type: "POST", url: "PageName.a...

how do i get http header values from a post request.

Hi Guys, See what I'm trynig to do is on a post request made collect the http headers and then add them to app.Request.Headers.Add(). In my application basically another post request overides certain post requests that I make. On each request to my server there is a redirection to another server which adds some headers over my origina...

Jquery Post to external php

I want to post to an external php file and get the result. It a php that i have hosted in my server online. I want the static page in my localhost post by ajax and load the html in a div. But I'm not able to do this. $.post("http://www.site.com/index.php", { font: "panchami", input: "hi" } ); Is there anything wrong in this? ...

Sending a tweet using Authlogic-OAuth

Hi, I'm building a Rails application which uses Authlogic for authentication, which I've now set-up to run using the OAuth extension, meaning a user can be created by signing in from Twitter. This stores their OAuth token and OAuth secret, meaning they're accessible, but I was wondering how I would actually go about sending a tweet usin...

How to send data to webserver and know it comes from a certain application?

Hello all. I'm trying to send data from my application to a webserver. The catch is that I want to encrypt the sent data and also make sure it comes from my application. (From what I've read so far it's easy to decrypt the data if it's not sent via HTTPS. On the unique application I didn't find anything except the Application ID Apple p...

How to get row data from Web Service Request?

I want to check raw data string (raw xml) received by my web service methods (for logging and debugging purposes). I saw recommendations: to handle 'BeginRequest' event in HttpApplication. But I don't see which field of 'Request' object contains this POST data? ...

zend framework posting json via rest

Hi guys, Im trying to build an authenticating api with rest and also post a large object. Im talking about posting number of items such as some information about a car and its owner and store the information at a db level. is rest the way to go with this or use soap ? and if so any ideas how i can post json objects ? Much appreciate it....

how to handle POST method with OpenRasta?

I have a simple OpenRasta webservice and a console client for the webservice. Using GET method is quite easy - I defined GET in OpenRasta and when client uses this code it all works fine HttpWebRequest request = WebRequest.Create("http://localhost:56789/one/two/three") as HttpWebRequest; // Get response using (HttpWebResponse ...

wordpress custom post type rewrite rule pagination for author

i'm using Wordpress 3.0.1 and i have made custom post-type called 'dienasgramatas'. my plugin also makes custom rewrite rules for displaying all posts from this post type and even custom permalink structure to query posts with this post type coming from defined author, but i can't create rule for pagination: the one that works: $new_ru...

ActionScript POST

How to post data from a flex file to a php file? I am not able to create an action. ...

Activate Upon Scanning?

I'm not sure if this is where I need to be asking this question, but here it is. My company is preparing to release a software program in the format of PIN cards (similar to phone cards). Each card will have a PIN on it under a scratch panel. The PIN can then be used to download the software program from our website. I need to figure o...

How To (Effectively) use jQuery to Match the Value of an Input with a Database?

I've been working on a PHP project of mine, and I am attempting to add a feature that tells the user whether or not the username they entered in a register form is already taken as they update the input. When starting this, I thought I knew how to code this- but I ran into some problems along the way. When I post the data to my PHP scri...

PHP: How to get name value in <form name="form1" />

Is there a way to get the value of the name attribute in the form tag? I'm using PHP and don't see it in $_POST. ...

Why is $_POST array empty in PHP after an a request with post data

I make a post request to the the page getremote.php with post data but the $_POST array seems to be empty. Would be grateful if anyone can tell me what I've done wrong. The javascript code to make the request is var postdata = "Content-Type: application/x-www-form-urlencoded\n\nedits=" + this.createEditXMLtext(this.editXMLstruct); var...

HTTP post: url parameters and form data

When I do http POST request via Web form, Is there any difference(practically or theoretically) between parameters specified in the URL and parameters passed with form on the server side? Can I do whole POST with url parameters and expect same result as with form inputs? Like: <form action="/?id=2" method="post"> <input type="...

application/x-www-form-urlencoded or multipart/form-data?

In HTTP there are two ways to POST data: application/x-www-form-urlencoded and multipart/form-data. I understand that most browsers are only able to upload files if multipart/form-data is used. Is there any additional guidance when to use one of the encoding types in an API context (no browser involved)? This might e.g. be based on: da...