The following code does not submit the input values:
$('.button').live('click', function() {
var date = $('#date', this).val();
var guests = $('#guests', this).val();
$('.resLoad').load('/confirmation.php?guests='+guests+'&date='+date);
});
It loads the page in the proper div, but the variables are listed as ...
So here's my problem:
I've got one function that runs every 15 seconds. It checks to see if new comments have been added to a page.
I've got a form that submits a new comment once the submit button is pressed, then displays the new comment on the page.
In the process of adding a new comment, the "checkEvery15Seconds" function is query...
i have many events such as
$('.hidefile').click(function (event) {
On page load and on certain conditions i use ajax to get the html for a certain div and fill it in with .html(htmlstring). It took me forever but i notice that the events do not work when i do this. How do i fill the div with html and have the jquery events work with i...
I'm using the .load() function to load a section of html that has some jQuery functionality that is bound to a certain class. =/
thoughts?
...
I am working on an iPhone mobile web app using jqtouch to make it feel more "native". It seems that safari chokes on large Ajax responses. Is there a limit on response size? Firefox is behaving normally and small responses are working just fine. Not sure where to start on this or what tools to use in safari to help troubleshoot.
...
Does anyone know how disqus works?
It manages comments on a blog, but the comments are all held on third-party site. Seems like a neat use of cross-site communication.
...
Hi.
I want to return the function when a certain time has passed. In my function below the return thing didn't work(the alert was triggered).
The thing is that in my handleRequestStateChange I initialize myArray.
function() {
xmlHttp.open("POST", "xxx", true);
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-u...
Hello
I have 3 forms at the same page and each has a different form submit. Such as:
<h1>Address</h1>
<form method="post" id="adress_form" action=/profile/update/>
{{ form_address.as_p }}
<p><button type="submit">Save</button></p>
</form>
<h1>Email Change</h1>
<form method="post" id="email_form" action=/profile/update/>
{{ form_email...
I have a problem with getting jquery to retrieve results from a WCF service. I am hosting the WCF service within IIS and when I attach the debugger to this process I can see that the code is processed successfully. However, when it hits the callback within jquery there is no data??
I have set up a trace on the wcf service and there are ...
Hi there,
I need to have a checkbox which ajax-submits a form.
The following code throws an error "index 112009 out of string". What's
wrong here?
<% form_remote_tag :url => { whatever_url } do -%>
<%= check_box_tag 'whatever', nil, whatever, { :onclick => "#{remote_function('this.form.submit();')}" } %>
<% end -%>
Thanks for any ...
Hi,
I am working on a site where the main part of it is driven by an ajax style navigation system using anchors in the url to define the application state.
On top of this I now need to support IFrames that are loaded on top of this application. The problem I'm having is that the back button breaks if I make use of fragments.
I've creat...
Initially, my form has two dropdowns. the contents of the second dropdown is populated via ajax
using dwr. The "Add another" link creates another instance of the dropdowns but it loses the
ajax/dwr functionality of the first.
Appreciate the help.
< div id="dynamicInput">
< form:select path="schoolState" id="schoolState...
We want to embed an ajax style service into a number of our websites each with a unique api key. The problem that I can see is that because the api key is stored in the javascript file the user could potentially take the key, spoof the http referrer, and make millions of requests to the api under that api key.
So I am wondering how Goog...
Doing an ajax get request works as expected using the following code:
$.ajax({
type: "GET",
contentType: "application/json",
url: "http://someSeceretUrl/test/document,
dataType: "jsonp",
success: function(msg) {
console.log(msg);
},
error: function(a,b,c) {
console.log(a);
console.log(b);
console.l...
im using jquery to make ajax requests. is it possible to detect if the request is an ajax request or a normal request on the server side? does jquery add any input variables or headers to make this possible?
thanks
...
Hello,
On a page I have different element which I bound yo different Ajax calls.
For example one a.click is requesting x.php another one down the same page requests y.php.
What I like to do is place an individual loading image for each.
ajaxStart and ajaxStop won't do it since they are fired everytime, no matter which one called.
So h...
Hello, I'm trying to remove the object with the oldest updated_at value when the rjs is executed.
page.insert_html :top, :messages, :partial => @message
page[@message].visual_effect :grow
page[:message_form].reset
Message.old_messages.each do |m|
page.remove(m.id)
end
page.delay(1) do
page.select('.message').last.visual_effect :fad...
Hello !
I am an undergraduate student ,
and working on my Final Year project these days.
I have some queries related to Custom Controls as follows:
I am designing a text box field which will have three or more functions as follows :
Either it will allow numeric characters only
Or it will allow an email address to be taken as input
Or i...
Good beautiful afternoon everyone,
I've been stalking the JQuery fourms trying to get a good clean solution to this problem, however, I can't seem to knock this one out.
I have a page that has multiple links with various attributes (these attributes will be pulled in from a database):
index.php
<html
<head>
<script type='text/javas...
Hey guys I need help. Have an HTML form that I am submitting using JQUERY ajax instead of updating with a server response, it is updating with the index page html.
The form
<form id="publishimages" action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
<input type="submit" name="publishimages" value="Publish Selected" />
</f...