So I have an ASP.NET user control that is using jQuery AJAX to call a method. Here's the jQuery:
$.ajax({
type: 'POST',
url: 'Default.aspx/AdvertClick',
data: '{"name":"test"}',
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function(result) {
//do something
}
});
Because...
I would like to send data using $.ajax like this:
$.ajax({'url': 'my.php',
'type': 'POST',
'data': arr,
'success': function(response) {
alert(response);
}
});
The problem is that arr is an associative array that looks like:
arr['description_0'] = 'very nice picture!';
a...
Hi
I must now seek help after too many hours of failure.
I'm using a basic registration form with Ajax, but the form is not connecting to the database. I'm obviously overlooking something.
So here's the field i want to validate. obviously, its the username.
Username:<input type="text" name="user" id="user" maxlength="30">
<span id="...
function set_preview_image(image_link){
$('#slideshow-container').css("background-image", "url('files/images/store/content/templates/websites/preview_images/" + image_link + "'");
}
I'm passing through an image variable. Everything works fine in FF and IE. What am I missing? I've already tried us...
i have one jquery dialog which can show after click radiobutton.
last time it can show but after i put some script for submit from dialog, the dialog become not show after click the radiobutton.this is my code:
<script type="text/javascript">
$(document).ready(function() {
$('#dialog').dialog({
autoOpen: false
...
I recently wrote a small AJAX-based chat program. The clients ping the server occasionally for new messages and update the view if a change has occurred. Simple.
Is it possible to do this entirely client-side? Could a set of loaded pages identify themselves to other users and send out updates to the other clients? How would this be acco...
What does Asynchronous means in Ajax? and also how does Ajax know when to pull data without server polling?
...
I was trying out example JQuery examples and to my surprise, I got an error state for an AJAX call mentioning that timeout isn't defined. When I removed timeout attribute, it worked fine.
I downloaded JQuery few days back, so I am pretty sure it's not a version problem.
I was trying with Firefox(3.6.8) and not any other browser.
Why ...
$(document).ready(function() {
$(".rshownews").click(function() {
window.setInterval(function() {ajaxselectrss($(this).attr("title"))}, 1000);
});
});
function ajaxselectrss(rssurlvar) {
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpReque...
Hi,
I need to obtain postdata from a form and send it
via ajax .
The code is given below :
var $fields = $('#myform :input').serializeArray();
var values = {}
jQuery.each($fields, function(i, field)
{
values[field.name] = field.value
});
myJson = JSON.stringify(values);
Now, instead of values[fiel...
I'm probably doing this all wrong but here goes....
I'm calling a php function with ajax to create a table with three columns. Currently the php function fetches all the data and creates a table which it loads into a div once the function is finished.
The third column can only be created using data from the first two columns.
Is ther...
Hi
I have several different groups which my users can subscribe to. When they are logged in their mainpage will be /frontpage which is a Views generated view based on the users subscribed groups and it shows the latest activity across those groups.
I am using the Live Update API to show new content whenever it is posted. As it is now i...
I have written a Java Servlet that retrieves a SVG image. The content type for this servlet is CONTENT_TYPE = "image/svg+xml";
This certain servlet is being integrated in a bigger (ADF11g) application as an inlineframe. The code should look familiar, if you are accustomed with JSP:
<af:inlineFrame source="servlet?Filename=TestSVG1&...
$(document).ready(function() {
function ajaxselectrss(rssurlvar) {
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{...
I'm using the following code to call a function when the main browser's url changes.
var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShellTreeItem)
...
I would like the user's cursor to be in "wait-state" during certain actions, but the problems with using the CSS cursor property is forcing me to search for more... creative solutions. (The problem I'm referring to, is that the cursor doesn't change until the user moves the cursor. See, for example: http://stackoverflow.com/questions/175...
I want to mess with jQuery and Ajax for a little while.
For my first I want to create just a single input box, type in my comment and then the comment will appear below. No page refreshes. How can I do this?
...
Hi,
In my Bing Ajax Map app the user is presented with a list of locations they can choose from. OnRowClick the map center and zooms on that places location. After it has focused on that location, it shows the info window for it as well.
The problem is that the info window seems to be loading before the map has finished panning. This c...
Hi,
Trying to send postdata thru ajax
The code tried so far,
var $inputs = $('#myform :input');
var values = {};
$inputs.each(function(i,field) {
if($(this).is(':text'))
{
//alert("id : " + field.id + " value : "+ field.value);
va...
Is it possible to use WCF's CallbackContract or any other "remote eventing" mechanism provided by WCF from an Asp.Net Ajax control/page?
So far all the articles I found treated separately about CallbackContracts and WCF's usage from Asp.Net pages.
Is there any way to make the service's callback reach back to the page that initiated the...