I have an entity model User and it's metadata is
public class UserMetadata
{
[Required]
[RegularExpression("...")]
public String Username { get; set; }
[Required]
public String Password { get; set; }
}
I have a controller that recives REST callbacks. One of it's actions is
// POST /users
[HttpPost]
[ActionName("...
Hi everyone,
I am adding a "remove me" icon to all elements on my page with class "myClass":
div myClass:after
{
content: url('remove-me-icon.jpg')
}
Then I am using event delegation to detect clicks on all these icons by listening for clicks on the containing element:
$("#myDivThatContainsThoseOtherDivs").click(function(e){
if (...
Hi,
I would like to use JSON for sending multiple variables like status, error-message and content to a Javascript function via Ajax.
The problem I'm having is that I fetch the content from a database and almost all data that is sent back to the browser is multi-line. And because of that it seems like my JSON is not validated.
An exam...
When I use ajax, I have to use mysql_query again to get information in that file which is for ajax. Can I do action without mysql_query like with include();?
Ask if you don't understand, because I guess I asked not very properly.
edited: When I try to reach ajax file, in that file I have to retrieve member information again. So, my ques...
I'm using ASP.NET MVC in a project and I have a requirement like this..
It has one main View(Main.aspx) and a Action methods to render the main view. And I have another View (SearchResult.aspx) and Action to render the search results content. I need to load the SearchResult page asynchronously in to a DIV in the main View. Is there a w...
I make a JSONP request using MooTools:
var username = 'hsz';
var password = 'pass';
var req = new Request.JSONP({
url: 'http://api.blip.pl/profile.json',
method: 'get',
headers: {
'Authorization' : 'Basic ' + Base64.encode(username + ':' + password),
'Accept' : 'application/json',
'Content-Type...
I'm having an odd problem in RAD 6.0.1 with AJAX. I'm using a very simple show/hide (Karl Swedberg's slickbox) and it works fine on a raw html page, but the js functionality just stops when running on the server on a jsp page. e.g. here's my html page
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script...
looking for some general advice and/or thoughts...
i'm creating what i think to be more of a web application then web page, because i intend it to be like a gmail app where you would leave the page open all day long while getting updates "pushed" to the page (for the interested i'm using the comet programming technique). i've never cr...
I am trying to have an effect when moused over, the item does not shake from side to side, but slides sort of like a clock pendulum rotating from 180-90 degreeds (or whatever, I can't remember the exact numbers right now). Is this possible with scriptaculous or another js library?
...
Hello,
I'm very new to JQuery and I try to fill my html select boxes with Jquery but they stay empty. Below is my code:
$('select').each(function(){
var action = 'SELECT_FLDS_GRID';
var fldnam = $(this).attr('name');
$.getJSON('frm.grid.php',{'action':action,'fldnam':fldnam},function(j){
var_SelectOption(j...
I am building a user registration form in asp.net. I want to check if the username is available or not on the leave event of the TextBox. I am not able to get the Leave Event of the TextBox.
Should I use OnBlur event of the Html TextBox.
Please Help.
...
Hello I am using jquery to do some ajax that calls in some data from a database, on the mouseover and element the method runs and I get the expected results, however when I then mouse over another element, the method runs again, however I need to delete the first lot of data from the screen first, this is what I have so far,
$("a.conte...
I am trying to load a new post in wordpress without reloading the entire page. I am not sure where to start with this. I am new to AJAX and JavaScript. Any help would be great.
...
Hi I am building div content with AJAX call, but when I make call to any page from loaded page, if there is any exception the content loaded from AJAX call is not there in previous page. Is there any way to stop happening that?
...
I'm trying to implement comet style features by polling the server for changes in data and holding the connection open untill there is something to response with.
Firstly i have a static variable on my controller which stores the time that the data was last updated:
public static volatile DateTime lastUpdateTime = 0;
So whenever the ...
Okay, so we all know that most modern browsers (without tweaking) are set to 4 parallel HTTP requests at a time to a single domain/subdomain, but how does long-polling AJAX affect this?
Say I have a long-poll on a 15 second interval. While the browser is waiting for a response during those 15 seconds, does that still eat up one of the 4...
I'm about to potentially start work on a website, but the client has a requirement that the website should also be accessible from mobiles/cell phones. He hasn't mentioned which mobiles he wants to support in particular but I assume it would be smart phones like iphone, blackberry, android, etc.
My question is, how much work will this t...
I am working on a ASP.NET website that needs popups in a modal window similar to JS confirm and alert. How would I do this on client and/or server side?
...
hello i have some problems with my php ajax script
i'm using PHP/mysql
i have a field in my accounts table that will save the time for the last request from a user, i will use that to kick the idle user out of the chat. and i will make a php function that will delete all the rows that its time field more than the time limit, but wher...
A client wants a merch shop on their site, and has set one up. I could iFrame in the whole page to the merch page, but frankly the merch site is an eyesore, and their site has a very particular feel to it. So I'm considering using an AJAX GET to grab the whole page, then javascript to display only the div with the merchandise in it. H...