hi everybody,
I have a page with a div, inside this div I load a page with a form with a select, I can get selected option by post() function but, how can I get at the same time selected option and full data option? I've tried to get full data with a post() in a click() function positioned directly on form page but it does not work, can...
I am developing my own lightbox kind of jquery plugin. Everything works but I want to hide the loaded content until the images have loaded in the browser from the AJAX call. I found a similar post and I am using the following script but the setTimeout function is what reveals the content and not the .load function. Am I trying to achie...
I have the following JQuery Ajax request on my template that i want pass to my django view,
function loginUser(){
$.ajax({
type:"POST",
url :"/login-user/",
data:"title=ajax call",
datatype:"json",
error:function(data){alert('Error:'+data);}
success:function(dat...
Hi!
Situation: I´ve giot a Webpage which has some Ajax-Actions (opening a little Window like on FaceBook after clicking on "Remove of friends -> a tiny "window" opens and I can choose yes or no).
Problem: I want to create a normal link to that little window. I mean a link which I can share over ICQ or something else: click on it and th...
In grails, I use the mechanism below in order to implement what I'd call a conditional server-side-triggered dialog: When a form is submitted, data must first be processed by a controller. Based on the outcome, there must either be a) a modal Yes/No confirmation in front of the "old" screen or b) a redirect to a new controller/view repla...
Hi, sorry if I am being thick but what is the execute="@all" in an f:ajax tag really supposed to do? I expected it to submit all the elements on a page but it seems to POST only the values in the enclosing form, not all forms on page.
For example
<h:body>
<h:form id="form1">
Input1/Form1 <h:inputText id="testinput" value="...
Hello,
how do I implement a rapid gridview with two columns, with ability to add rows by clicking the add button, and remove in the same way.
I look for plugins, but often contain many unnecessary option in my case, I'm looking for something fairly simple.
solution jquery, ajax.. I'm using ASP.net (C #)
I've already prepare this for ...
So here is my question. Using javascript/jQuery I am currently loading in an XML file that has a file name such as carousel_large_2010-06-08.xml.. the way I am doing it is checked for todays date then grabbing a file that has that date in the filename... the issue is sometimes they wont be uploading a new file for a given day so it needs...
I have code that uses Microsoft's XDomainRequest object in IE8. The code looks like this:
var url = "http://<host>/api/acquire?<query string>";
var xdr = new XDomainRequest();
xdr.onload = function(){
$.("#identifier").text(xdr.responseText);
};
xdr.open("GET", url);
xdr.send();
When the scheme in "url" is "...
Hi everyone,
do u have an idea of how to send my radio button name for
myAjaxPostrequest.send(parameters);
can parameters be like this:
var answername=document.getElementById('option1').name;
var parameters=answername;
? this code is for using ajax to post a form
and my php page needs the name of the radiobutton clicked
I tried...
Hi
I noticed that jquery ajax request sometimes take about 1-2 seconds before the responce comes is this normal and is there any way to short that time to minimal?
The responce type is json and it's small html code.
Thanks!
...
Is it possible to call a php class function DIRECTLY using ajax?
Something like below... except ajax...
myclass::myfunction();
I've been using the jquery library to work with AJAX.
$.get('control.php', {func: funcName, arg1: arg1});
The above is similar to what I'm trying to achieve MINUS the control.php;
I'm not sure if this is...
I want to know the correct way to structure ajax views in django.
say i do something like :
def foo_json(request):
if is.ajax():
# return JSON here
and make it available as a resource at something like '/foo/data/'..
all is fine..
but if I point the browser at '/foo/data/' .. obviously I get an error (debug) like:
a...
Hi,
I've been trying to figure out why the following script's success function isn't running. Everything in my form works perfectly, and the form contents are being emailed correctly, but the success function isn't being called.
If anyone could review my code and let me know why my success function isn't being called I would very much ...
This is my Javascript:
$(document).ready(function() {
$('#like').bind('keydown', function(e) {
if(e.keyCode == 13) {
var likeMsg = $('#like').val();
if(likeMsg) {
// Send the AJAX request to like.php
$.ajax({
url: 'like.php',
succ...
I am running system("cmd") for n number of times in my cgi script
This is read by Ajax on the client side.
Out of n number of times there are some cases when the cmd couldn't be executed as file is not available.
I want my system() call to work everytime and output something.
What is happening now is that, it just prints the last value.
...
When a user clicks a button I need to create a .bmp file on the server. After the .bmp file is created I will load it into the html page. Would Ajax be the best way to accomplish this?
...
I am a tech writer and am working in visual studio creating tooltips for an ERP site. Originally we were using the Jquery tools from flow player http://flowplayer.org/tools/demos/tooltip/form.html but these did not agree with our asp elements. Specifically the drop down and check boxes. It also caused odd display features with our button...
I am returning some json which needs to be handled by javascript as the response to an XMLHTTPRequest.
If I set the response's content type to "text/plain", all browsers but Chrome will accept it and pass it to my JS with no problem. However, Chrome will wrap the response in
<pre style="word-wrap: break-word; white-space: pre-wrap;"> ...
So far the things I can do with AJAX are handle requests and reload content.
...........
What Else?
...