Hi everyone,
I am using jquery to implement event delegation on my page. I define a click handler for the top level element, but only want to do something "custom" if the click fell on an element of certain class:
$("#myDivWithManyLinks").click(function(e){
var target = $(e.target);
if (target.hasClass('myClass123')
{
/...
Try the following case:
Log on to Yahoo Mail.
Click Inbox.
Click Drafts.
Click Sent.
Click Spam.
Click Trash.
Observe the browser's back history menu -- these different "pages" are not listed.
Now click back button multiple times-- the browser cycles through each of previously clicked "pages". (Note that "Forward" button is not availab...
I am trying to combine ajaxSubmit with the validate plugin
Here is my code
It says the ajaxSubmit is not a function
$("#send-reply").validate({
meta: "validate",
errorElement: "em",
errorClass: "error",
validClass: "success",
highlight: function(element, errorClass, validClass) {
...
Hi there,
Is there anyway to load content body by click on its title ajaxly in the same page?
should I make changes in template or use an extra extension?
also just can use javascript plugins and not changing them unless they have a specific manual for the certain plugin.
Regards...
...
Hello all,
I am working on a PHP application and missing some of the functionality that Rails has. I currently have an AJAX form that when submitted accesses my_page_save_ajax.php. After I process the form and save it, I would like to redirect the AJAX call to either my_page_show_ajax.php if successful or back to my_page_edit_ajax.php i...
when i use comet iframe i just send script tags from backend php file to front end and javascript is displaying it.
can someone explain briefly where a comet server comes up in the picture and how the communication will be between frontend (javascript), backend (php) and the comet server.
cause i read that if you are going to let a lot...
I have a self-rolled MVC framework that I am building, and up to this point have managed to avoid the need for any AJAX calls. Now, however, I'd like to create a real-time updating feed.
My question is, where are the handlers for the ajax calls usually stored in an MVC? Should I store them in the same controller that is involved in maki...
I am designing a web site in which users solve puzzles as quickly as they can. JavaScript is used to time each puzzle, and the number of milliseconds is sent to the server via AJAX when the puzzle is completed. How can I ensure that the time received by the server was not forged by the user?
I don't think a session-based authenticity to...
Here's what I am trying to do. I have a website that lets users submit requests that are queued up in a Jobs table that the service picks up and processes. I have a status column in the table that denotes whether the request is queued up for processing or being currenty processed by the service or the service has completed processing the...
My friend and I have a site (www.rosasecta.com). It uses a lot of Ajax, but it's all by hand, and it's really ugly and hard to dig through. We want to switch to a JS library, but JQuery, Prototype, and Dojo are to large. We just want a small, compact library that can do AJAX cleanly and some basic DOM selecters. Can anybody recommend one...
i'm using update panel, my response have some javascript like bellow. After a success response, i need to eval it, load it (with external script)
ex: my html response
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
alert('asd');
</script>
<div>test</div>
<div>blah blah blah</div>
...
Hi,
I created an ajax request, request1, in prototype+cakePhp function getItemDetailsCheckItemAvailability, and inside that request1 I created another ajax request, request2 (function submitIsbn).
It stopped working on the 2nd attempt of invoking ajax request1.
Is creating an ajax request inside another ajax request allowed by the spec...
How can I find the POST URL for a form that's being posted using ajax (action handlers are in PHP, but I doubt that matters too much in this case)?
Problem is I need to find out using an alternate method as I don't have access to the source.
...
I am able to send data to the server using JSON and get back the appropriate data, but before I handle the returned data appropriately I am just trying to output the returned JSON data as an alert. I cannot understand why this is not working.
I do get an alert but the text value says "undefined" - I am not sure what I need to do to eith...
The method of XMLHttpRequest could be overridden by using:
window.XMLHttpRequest.prototype.open = function (method, uri) { ... }
Could I override the "open" method of ActiveXObject('msxml2.xmlhttp')?
...
I have a jQuery ajax function and would like to an entire form as post data. We are constantly updating the form so it becomes tedious to constantly update the form inputs that should be sent in the query.
...
I am creating a site where users can upload there own background images, after upload they see each background they uploaded in a menu represented by a number, clicking on the number will in theory load in the new background, however I have noticed that does this calls in the view again as well (the view is already loaded from another fu...
I want a table to do CRUD, but I want it in an Ajax way, how can I modify the default RoR behavior, any suggestions on that?
I tried comment these code in destroy method, but it don't work, it saw missing the destroy.erb:
respond_to do |format|
format.html { redirect_to(categories_url) }
format.xml { head :ok }
end
...
I was wondering what the best way is to calculate the difference in time from now to a certain point, lets say the countdown time.
I have an auction that has a closetime at a certain point, this time is stored in an mysql record in the format " DATETIME 00-00-000 00:00:00 ". This record is called closetime.
Now on my website i have a j...
Hi,
I'm working on school project witch sends multiply ajax request at the same time.
I'm using ajax manager plugin, here is link
(http://www.protofunc.com/scripts/jquery/ajaxManager/jquery.ajaxmanager.js)
Is there way to get current request number??
Best regards,
...