Hello,
I have been looking all the day about my strange problem.
I have a page, which is loading dynamically content via ajax (with jQuery), but I think it's not a jQuery problem.
The dynamic page contains a javascript function, let's call it "myTestFunction()", without any parameters.
After document.ready (jQuery) or at the end o...
I'm trying to get the success data from a jquery Ajax call so I can use it elsewhere but for some reason its only accessible within the actual success call, so immeditaly below works but the other doesnt'.. any advice is appreciated
success: function(data) {
alert (data)
}
this doesn't work when I try to pass "data...
I'm trying to watch for an element to load on the page from an ajax call. I don't have access to the jquery that's making the ajax call. So, when some new html is loaded onto the page, I'd like to apply some changes to it.
I'm currently trying to use the .load() function:
$( '.autosuggest_keyword' ).load(
function()
{
...
Hi,
I'm using ajax to submit a contact from without reloading the page, it works well for the most part except when I try to send the body of the message nothing gets sent. The to and subject parts work fine, it is just when the body tries to get sent I see nothing. I've tested it running strickly a php function and the body works, ju...
Hi, all,
I'm working on a web-app project which involves allowing the user to view several hundred small images of roughly the same size, many of them several times. These images are generated on the fly by passing URL strings (specifying height, width, file format, and content) to a service running on an Apache Tomcat server; the URL s...
I want to use Dojo to be able to style the upload input, since the browser will not allow CSS to style it.
Currently I can only get the FileUploader to work as AJAX, and this is not desired because it needs to be passed with other form data.
Is it possible to do this with Dojo? Or should I just write my own transparent file input and s...
In the documentation there is a list of possible values that textStatus might be if the error() callback fires ("timeout", "error", "notmodified" and "parsererror") but nothing specified for the success() or complete() events.
Are there any other values besides "success" that could be passed to the success() callback? Is this documented...
What is the easiest way to disable an entire HTML page until an initial .load call is complete?
What I mean by disable is the user can not interact with it in any way. It is ok for them to navigate away.
I am using jQuery 1.2.6. Is it to set the call to be sync instead of async? how do you set options for this on the .load function?
U...
From client side, I need to call a server method that is not static.
For example, I got the following user control ucData (private instance of code-behind) that is Databind in the load event.
The server method I need should return ucData.IsValid(). So it can't be static
Is there a way I can do that ?
...
Hi,
I have a form that i want submitting with AJAX, using rails 3 and jquery. The problem that I am facing is that rails is responding to the AJAX request as HTML too. After a little search I found that this has something to do with the correct Accept headers not being passed. How do i fix this?
This is the controller code
respond_t...
I'm looking to implement a count-down timer that you see on auction sites with "overtime". So, that's a timer that counts down to a specific date/time but if a bid comes in, then X seconds are added to the timer and the time continues clicking down. Let's say X=10 sec and 5 bids come in when the counter is at 00:03, then the new counter ...
I'm having problems sending a json jQuery array via ajax to a php script. What is the problem here:
var tee = $('#voting_image img').attr('id');
var vote = 1;
var thing = {tee: tee, vote: vote};
var encoded = $.toJSON(thing);
$.ajax({
url: '/vote_save.php',
type: 'POST',
...
Hi,
I'm new to that subject in ASP .NET, however I had experience in PHP - where whole idea was preety straightfowrad: create page like something.php which returns pure JSON, and call it using $.post (for instance).
Now , in ASP, I walked into another approach (using Web Services + ScriptService attribute + MS library for proxy genera...
Hi
i am just trying to make a simple Ajax call using jQuery
this is my JavaScript:
//Starts the game
function startGame() {
$.ajax({
type: "POST",
url: "Default.aspx/StartGame"
});
}
my button:
<input type="image" value="twist..." src="images/play.png" class="playButto...
Hi All,
I'm using MVC 2 and the default view engine to return .ascx partial views using the JQuery Ajax .get() method. The partial views have some javascript in them and I'm finding that the behaviour of the javascript is erratic in that sometimes it executes, while other times it doesn't. I came across a reply from a MS Program Manager...
What's the simplest platform for building a little stand alope app, that can run from the status bar on mac and windows (xp, vista, 7)
It will be done in html/css/javascript and talk to the online web application through ajax calls.
I was thinking adobe air might be best?
...
I've just started out trying MVC 2 and Ajax, and I'm wondering if I'm doing something wrong, because I was under the impression that Ajax would make changes in a webpage very fast. The example I have is with the Ajax actionlink:
<div>
<%: Ajax.ActionLink("Dita", "AjaxView", new AjaxOptions { UpdateTargetId = "myDiv" })%>
</div>
<div i...
Hello I have two dependants select box, the second one is popularited after onchange event.
The first one is loaded with a selected value (selected=selected), what I'm asking, it is possible to send the requested while the page is loading, ie as I have the the selected option, just send the request.
Javascript
function getXMLHTTP() {
...
How can I throw an exception on my server and have the exception's message be read in JavaScript (I'm using AJAX with jQuery). My server environment is Google App Engine (Python).
Here's my server code:
def post(self):
answer_text = util.escapeText(self.request.get("answer"))
# Validation
if ( len(str(answer_text)) < 3):
...
I have an ajax mail form like
- form_remote_tag :url=>mails_path,:condition=>"validate_mail()", :html => {:id=>"mailform",:method => :post, :class => 'ajax',:style=>"padding:15px;" } do |form|
.gimmespace
Naam
%br
= text_field_tag :name,params[:name],:class=>"title required"
.gimmespace
Telefoonnumm...