I'd like to send data to browser from server (website).
For example on SO you receive notifications about new answers when answering a question.
Should I every n seconds send ajax queries to server, or there are better ways of doing this?
Is it possible to push data from server to browser?
...
Does anyone see anything wrong with the following:
$.ajax({
url: '/tags/ajax/post-tag/',
data: { newtaginput : $('#tag-input').val(), customerid : $('#customerid').val()},
success: function(data) {
// After posting
alert(data);
arr = data.tagsinserted.split(',');
alert(arr);
//Loop th...
Hi All,
I got RJS error: TypeError: element is null while using ajax.
I used in view
<%= periodically_call_remote(:url=>{:action=>'get_user_list', :id=>'1'},
:frequency => '5') %>
in controller
render :update do |page|
page.replace_html 'chat_area', :partial => 'chat_area', :object => [@chats, @user] if @js_update
end...
Hi,
I stumbled upon http://www.kettletime.com.au/chance where the user needs to drag and drop a box with a number into another box to prove that he is human.
How do you implement this? Any free library to do this?
Thanks
...
amq object is undefined at the server.
...
We are using an application made in GWT with the server as tomcat.
The project runs fine normally, however there are situations where the server is restarted. At such point of time, the ajax call made by the code below returns blank text
with the status code as 304
RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.POST, ...
I'm using this code as the starting point to an overhaul of our JavaScript framework:
$("#get").click(function(){
$("#result").html(ajax_load);
$.get(
"http://www.google.com",
{},
function(responseText){
$("#result").html(responseText);
},
"html"
);
});
But when the reque...
Hi all and thanks in advance to all for this
I tired searching the entire forum and was unable to find the answer i was looking for so i decided to post a new thread, if a thread explaining this already exists than i'm sorry for not finding it and posting there.
any how my problem is that i am unable to update the values enterd in the ...
This is my code to trigger the ajax..
<td>[url=”#”]load->library(‘ajax’);
$this->ajax->link_to_remote($row->project_name, array(‘url’ => ‘index.php/admin_cont/ajaxtake’, ‘update’ => ‘data_div’));
?>”
style=“text-decoration:none”><?php echo substr($row->project_name,0,11).”..”; ?> [/url]</td>
here “admin_con” is my controller page a...
Hi there,
I keep having an error when running my web application. The error does not cause a compilation error when on live server at least a javascript error and nothing else. But the real problem is when "debug" ... javascript error stops the compilation and I have to "Continue" three times before proceeding normally my debug. But thi...
Can someone provide a good example of multiple UpdatePanels being updated by a singe Dynamic Populate extender? Is there some way to have one UpdatePanel trigger another to make a call and subsequently update another UpdatePanel?
...
I want to capture the responseXML that i have built in my jsp.
What should I do.
after that i will transform it in html.
I know this is annoying and we could do it with a framework or a library like jquery but i realize it with ajax.
Also i have problems with jquery and jsp\servlet since i must use a JSON SERVICE.
Why it seems to me that...
I have a situation where I need to, based on user selection and some server-side processing, display a message to allow
user to choose to continue processing or cancel. I have a RadGrid populated with data from the database. When User adds a new item to the grid,I want to do some processing in the back end and then inform the user of wh...
When I'm using AJAX, I typically do something before each request to let the user know that they'll be waiting for a second. This is usually done by just adding an animated loading gif. When I do this, Firefox does what you'd expect and adds the gif before moving control to the next line (where the AJAX is called). In Chrome, it locks th...
Is it possible to monitor a page's AJAX calls via cURL in PHP? For example, if I connect to a website that uses lots of AJAX to pull content, can I connect to the site via cURL, have it wait a couple of seconds until the AJAX requests are done and analyze the request that the site made?
...
I'm calling a Coldfusion component (cfc) using jQuery.post(). I need an integer or string representation of the number returned for use in a URL.
{"PAGE":"My Page Title","ID":19382}
or
{"PAGE":"My Page Title","ID":"19382"}
Instead what I get back is a decimal:
{"PAGE":"My Page Title","ID":19382.0}
Needed to update the following HTM...
I want to be able to show some data based on criteria the user enters in a text field. I can easily take this data, process the form post, and show the data on another page. However, I want to be able to do it all on the same page - they click the button, and a new div shows up with the information. This doesn't seem too complicated, ...
Hey everyone
I created a date picker that uses ajax to populate an element with an id of calendarContainer. When the user clicks on a button to bring the calendar up, I want the user to be able to click anywhere else on the screen besides the calendar and have it hide. The calendarContainer is at the root of the dom and I have tried eve...
This is my jQuery:
$(document).ready(function(){
$('#mycarousel').jflickrfeed({
limit: 14,
qstrings: {
id: '26339121@N07'
},
itemTemplate: '<li><a href="{{image_b}}"><img src="{{image_m}}" alt="{{title}}" width="155" /></a></li>'
});
alert("msg");
$('#mycarousel').jcarou...
I'm a newbie to JQuery and have a problem, when I click submit button on the form everything says registration was successful but my MYSQL database was not updated everything worked fine until I tried to add the JQuery to the picture.
Can someone help me fix this problem so my database is updated?
Thanks
Here is the JQuery code.
$(...