I have Multiple ActionResults in my Controller. Almost all of them process either AjaxRequest and normal requests, dependending on the request (duh!). The point is, if I'm adding something to the database using an AjaxRequest, I just want to return a OK or ERROR (or 1 or 0, etc..) to my page instead of a View() or a ParcialView() because...
I'm using the jQuery jEditable plug-in to edit some part of a website.
As the text use Textile format, I use the LoadURL option to bring in the unformatted data.
The problem arise when the user edits some text, and then go back to re-edit it, the ajax call brings back the cached result.
I've tried to add a random parameter, but the ...
I have to program websites, but I rather don't like the static HTML nature. I prefer more of a client-server architecture.
Now I've figured, that with XMLhttp, you can basically dynamically update your page and send/request for information/action to/from a server. So this would basically cover the client area.
But to complete a client-...
I'm implementing a voting system like the one used by stackoverflow. It's working with ajax sending POST request to an url. I'd like a way to fail gracefully when javascript/ajax isn't supported or enabled, a GET like /voteup/id isn't even considered because i'm altering the database.
What's the best solution? I'm either considering a fo...
How can i show a Save as window in asp.net and C#...
This is similar to the one that opens for uploading but that window is the open file...
I am not looking to save only one file...like
Response.AddHeader("Content-Disposition", "attachment; filename=" + myfile.Name);
can i make it ung ajax... please help... samples or suggestions....
I was thinking of creating a UtilityController that only contains actions which return json because I might have several forms with a province/state dropdown and a country dropdown. These dropdowns are filtered by selection with ajax...only show prov/state in selected country.
What do you think about this idea...is it good...bad...neith...
Hi,
Ok, let's assume we are working with ASP.NET MVC 2 (latest and greatest preview) and we want to create AJAX user interface with jQuery. So what are our real options here?
Option 1 - Pass Json from the Controller to the view, and then the view submits Json back to the controller. This means (in the order given):
User opens some Vi...
I'm designing a web service that serves up JSON through a REST API. This API is currently being used by an iPhone app to do CRUD operations.
My question is, can I design a web client that uses this REST API using nothing more than ExtJS (or some other RIA framework) and HTML pages? In other words, can I create a static HTML page that us...
Hi,
this is my code:
<script language="javascript">
function refresh() {
try {
xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {}
xmlhttp.onreadystatechange = triggered;
xmlhttp.open("GET", "data.php");
xmlhttp.send(null)...
I've build 2 contact forms (quote.php and contact.php), validated with jquery and submitted with to separate ajax_contact.php and ajax_quote.php files. They've both been built on the same template I've used on other sites, but for some reason the ajax_contact.php is returning this error:
Warning: mail() [function.mail]: SMTP server resp...
I have a html/javascript table/grid that I need to import data from a file, this is not possible without serverside. So I decides to have a FileEcho server that takes a file upload from the table/grid, the problem is I don't want to refresh the page afterwards, it's a multipart request, not an ajax request. Is it possible to up the fil...
Hi all-
Here is my question. I want to create a table with a specific header row that looks like this
<table>
<tr class="table-header"> <th></th><th> Name </th><th> Location </th></tr>
..data..
</table>
The problem comes when i want to do an ajax populate of the table rows. I have tried a couple options. Basically my app knows wh...
hi, i want to update different areas of my MVC page after one action (say a click) occurs.
how, i use ajax, and wrapping the entire area where all these parts need to be updated is counter intuitive as the ajax data being sent back would be close to the entire page.
so, i have a few partial views, - but the problem is, each action only...
The following code inside the tags gives error: "Object Expected".
<!-- JQuery/AJAX-->
<script type="text/javascript">
try {
$(document).ready(function(){
$("p").load(function(){
MakeRequest('divElectionCategory','ulElectionCategory','SELECT * FROM electioncategorymaster',...
do you think it would be difficult to write a framework where mvc compares last html it output to the current html we want to output, and instead of sending the entire html, figure out what has changed and generate js code that will do the updating as compared to previous html? (presuming nothing was manually changed on the client using ...
Hi,
I would like to pass fullcalendar settings (i.e. startTime, endTime) via ajax. I would like to have something similar to this:
eventSources:
[
"events.php",
"settings.php"
]
where events.php holds events array, settings.php holds settings array. If this approach works, how can i use settings values? If settings.php generates jso...
i want to import .txt file values into mysql using php and jquery/Ajax without page refresh.
with following format.
for example text file is :
user@emaill;user name;gender
user1@emaill;user name;gender
user2@emaill;user name;gender
user select file and press Process Button.
once it start processing
JQUERY/AJAX s...
Hi!
I'm trying to learn new technology called Web Sockets.
I've got the setup (pywebsocket as Apache2 module) working and I'm playing with examples.
http://code.google.com/p/websocket-sample/wiki/samples?ts=1262888726&updated=samples
One thing is bothering me - all the examples use shared file to monitor changes in message counter, ...
i have seen lots of solution, but what is the best stable solutin for no-administrator user who cant config server. i found some of these:
using apc extension
perl cgi instead of php
flash based
using js framework
im not sure i could use extension, not understand perl to control over the process, and totally not use flash in mywebsit...
I'm using the Auth component on my pages and I would like to show a login overlay when an Ajax action is called for which the user doesn't have permission.
Example:
User wants to edit a jeditable field, then when the users wants to change the value, he will first get a login/register overlay.
My current way is to check in the action f...