post

What should the action return when submitting multiple forms in an MVC app?

I have a form with multiple tabs. Each tab has its own <form>, defined like this: <% Using Html.BeginForm("Save", "FirstSection")%> I've got a master Save button that submits all the forms on the page like this: $("form").each(function() { $(this).submit(); }); The problem is that I don't know what each Save action should return: ...

Best way to save data on a strongly-typed view when not all fields are loaded

Let's say I have an edit view that is strongly-typed to a table called "MyData". The view has multiple tabs, each with several different fields from the table. For performance, the data is only loaded when the tab is viewed, so if you only edit a field on tab 1 and submit the form, the data for tab 2 will not be loaded. The problem I'm ...

C# : How do i post a form to a website with some checked checkboxes ?

I'm working in C#, and I want to POST to a website that has multiple checkboxes and returns a datafile depending on which checkboxes are checked. First of all, how do I post a form with checked checkboxes ? And once that is done, how do I get the datafile the site sends me ? ...

ASP page not receiving POST parameters

Hi all, I am writing a small application in Classic ASP. I have a page which has a form, which posts to a second page. Included with the form's POST, are file uploads, hence the need for a POST method. The second page though is NOT seeing ANY of the fields being sent by the first page. Calling either Request("param") or Request.Form("...

Best way to post files asynchronously with ExtJS

Hi, I basically have a form that the users filled in, and in which it's also possible to attach files. It's really equivalent to gmail actually: the files are sent while you're still typing the information in the form, and when you click on the final submit button, it waits for the files to be all transferred and submit the final fields...

can you post complex objects from form to controller in asp.net mvc

i see there are solutions using different model binders like castl but i didn't know if the basic default model binder supported nested complex objects when i am posting a form to a controller. ...

POST cross domain https in flex code faild

I have added https: / /catherine.mob.dev/crossdomain.xml: <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"&gt; <cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="static.mob.dev" to-ports="*" secure="false"/> <allow-http-request-headers-f...

Trouble uploading to twitpic

Hi, I am trying to upload a photo using the API and am having an issue that I hope you can help me with. Below, I have pasted the http request to the API (minus the twitter username/password). I am getting an error message back saying image not found, even though the image is there with the proper name "media". I have created a simpl...

Django, Python: Is there a simple way to convert PHP-style bracketed POST keys to multidimensional dict?

Specifically, I got a form that calls a Django service (written using Piston, but I don't think that's relevant), sending via POST something like this: edu_type[3][name] => a edu_type[3][spec] => b edu_type[3][start_year] => c edu_type[3][end_year] => d edu_type[4][0][name] => Cisco edu_type[4][0][spec] => CCNA edu_type[4][0][start_year...

Cookies...Http POST doesn't correctly work, why?

Probably this is often problem, but I can't solve it. I need to automaticallly fill out some fields on the web form, which is given from server. I use Apache HttpClient to make more easy my life) By now, one can consider my steps to acheive the aim: 1. I have not certificate to http://trac.edgewall.org/ so I download this software and...

replace page with jquery $.post response

Hello, I'm using jquery's $.post like this: $.post("/searchresult", $("#searchDiv").serialize(), function(data) { //??? }); The "data" parameter has all the html code of the result page I want. The question is how do I replace my current page's content with this one returned by the $.post function. Thanks, Rui ...

fancybox ajax post to iframe

Hi all, is it possible using fancybox to post a var to the iframe when opens? I currently have: function fancyBoxLoad(element) { var elementToEdit = $("#" + $(element).attr("class")); var content = encodeURIComponent($(elementToEdit).outerHTML()); $.fancybox( { 'href': 'loadEditor.php' }, { frame...

Django: Passing a request directly (inline) to a second view

Hi all, I'm trying to call a view directly from another (if this is at all possible). I have a view: def product_add(request, order_id=None): # Works. Handles a normal POST check and form submission and redirects # to another page if the form is properly validated. Then I have a 2nd view, that queries the DB for the product d...

jQuery POST/AJAX not showing up in IE, works in FF

I've done my homework and scoured SO to no avail. I've even gone from $.post to $.ajax in an effort to clean out everything. There's no cacheing either. $('#send').click(function() { $.ajax({ url: "submit.php?ts="+new Date().getMilliseconds(), cache: false, type: 'POST', dataType: 'text', data: $("#myform")...

How can I read the URL-Data send with POST in Perl?

I'm trying to read out the POST-Data that was sent from a form in a page to my Perl Script. I googled and found out that: read(STDIN, $param_string, $ENV{'CONTENT_LENGTH'}) reads out the whole Data-String with and writes the whole string to $param_string in the form of Param1=Value1&Param2=Value2&Param3=Value3 by spliting it at the...

C#: Open a browser and POST to a url from a windows desktop app....

I have a small WPF app (although I guess it doesn't really matter whether it's a wpf form or a webform app?) that I want to have launch a new browser window and POST to a specific url. I've been messing around with: System.Diagnostics.Process.Start("http://myurl.com"); to launch the window but I don't think I can use the same process ...

Wordpress query post get Image unless blank

Hi I am creating a wordpress custom page theme, I have included the code. Is there a way to dynamically add the list items. In the code I grab each image related to its post with screenshot1 screenshot2 so on... This all currently works. My problem is at the current moment if I upload 2 screen shots 3 list items will show up and the thi...

Calling Abort on a HttpWebRequest asynchronous POST

Wondering... I have a test whereby calling abort on a HttpWebRequest asynchronous GET requests seems to make the request abort and return the relevant status code. However for POST requests, calling Abort does not have the same effect. It appears to continue processing the request regardless. Is this by design or am I doing something wro...

Google Translate call from JS using POST

We're using google translate to translate some shorter texts dynamically on our site. The current implementation looks pretty much like this example in google code playground. Now we need to translate slightly longer texts, which are too long for GET-method. From google documentation it seems to be possible to use POST for sending the t...

Usability standards when combining AJAX and regular POST-based form saves

I'm working on a project where on certain pages (e.g. settings pages) we combine AJAX and regular fill-out-the-form-then-submit POST based operations. I'm curious if anyone has advice on improving the usability of such a page. One of my ideas is that when the user enters/modifies a value in a non-ajax part of the page, some sort of div...