Hi,
Please consider the code below, supposed to check all child checkboxes
wjen a parent checkbox has been checked.
Hi,
Please consider the code below, supposed to check all child checkboxes
wjen a parent checkbox has been checked.
//parentCheckbox and childCheckboxes are two variables set
in the alret box.
On 29 juil, 16:46, Liam Potter radioactiv...@gmail.com wrote:
take the variables out of the quotes, you're just passing strings.
that should sort it out.
jjshell wrote:
Thanks for your answer.
I did it. Now livequery is applied as expected, and the redirect issue
has
Hi,
Please consider the code below. It should open a modal everytime a
link of a given class is clicked. But... it does not.
//get the url of the link clicked
var url;
$('a.edit').livequery('click',function(){
url= $(this).attr('href');
});
//initiate the modal box
$('#modal-test').jqm({
wrote:
uncomment the return false
jjshell wrote:
Hi,
Please consider the code below. It should open a modal everytime a
link of a given class is clicked. But... it does not.
//get the url of the link clicked
var url;
$('a.edit').livequery('click',function(){
url= $(this).attr
Hi,
I am using jqModal (http://dev.iceburg.net/jquery/jqModal/#examples)
to open a modal div (some will argue it's an overlayed div since
I'm not forcing focus as code below shows).
An html form is loaded using ajax. I'd like to submit this form and
load the html response in the modal.
Here's
Hi,
In the below code, the ajax-loader disappears before the html returned
by .load is actually visible in the browser. How can I correct it?
$.post(registerClient.php, data, function(returned){
$(#client).html(returned);
$(#all-clients).load(allClients.php, function(){
wrote:
That's what serialize() is for:
$(':submit').click(function(){
var data = $(this).parents('form:first').serialize();
// or $('#formID').serialize();
$.post(delete.php, data, function(){ ... });
});
On Jan 1, 8:48 am, jjshell blahblahcoui...@gmail.com wrote:
Hi
{ CheckedIDs[this.name] = null }
});
});
Why do you need to store them in an array anyway? The checked ones
values will be submitted with the form, and you can access them at
anytime with $(:checkbox:checked)
On Dec 31, 3:52 pm, jjshell blahblahcoui...@gmail.com wrote:
Ok I'm getting
Hi,
I have a tabular data I need to be able to delete by selecting
checkboxes, and submitting a form (a .php script then checks which
checkboxes have been submitted, delete by id, return an updated list
of the items injected into the dom).
My problem is that I currently can't manage to gather
) {
//Handle the returned results
}
}
delete.php will see a comma delimited string of IDs to delete
On Dec 31, 7:11 am, jjshell blahblahcoui...@gmail.com wrote:
Hi,
I have a tabular data I need to be able to delete by selecting
checkboxes, and submitting a form (a .php script
The problem seems to be located around these parts:
var CheckedIDs = [];
$(input.item_id).livequery('each',function(add) {
if (this.checked){
alert('push');
CheckedIDs.push($(this).attr(value));
}
});
On 31 déc, 15:26, jjshell blahblahcoui...@gmail.com wrote:
Thanks
item_id.
Check the API again: http://brandonaaron.net/docs/livequery/#api
Also, $.each method is similar to a for-loop:
http://docs.jquery.com/Core/each
That's a start for sure...
Cheers.
Joe
http://www.subprint.com
On Dec 31, 9:39 am, jjshell blahblahcoui...@gmail.com wrote
Hi,
Please consider the code below:
$(document).ready(function(){
$(div#display).load(display.php);
});
$(document).ready(function(){
$(a.test).livequery(click,function(event){
var id = $(this).attr('id').substr(1);
$(div#status).html('img name=wait src=wait.jpg /');
?
Cheers.
Joe
http://www.subprint.com
On Dec 30, 10:14 am, jjshell blahblahcoui...@gmail.com wrote:
Hi,
Please consider the code below:
$(document).ready(function(){
$(div#display).load(display.php);
});
$(document).ready(function(){
$(a.test).livequery(click
Hi,
I'm loading a page reloaded every x seconds is injected into the dom
(#reloaded). The page in question contains links of a certain class
(.loadNewPage). Clicking on a loadNewPage link will load another page
in another div (#edit). Since the links are the result of a page
loaded into the dom,
Hi,
Here's a bit of code I have:
function getContent() {
$(div#content).load(content.php, '', reload);
}
function reload() {
setTimeout(getContent();, 1000);
}
$(document).ready(getContent);
I'd like to rewrite so as to include the functions within the document
ready part:
First of all, thanks for your time and answers. I really appreciate
it. Having made a few tests, the $.ajax approach seems the one that
fits the most my application.
Just a few questions:
1.
Can you avoid to explicitely name each field of your form?
data: test= + $(input[name=test]).val(),
What
Hi,
Initiating myself to Ajax, I cam to wonder one important thing:
How do you guys handle error messages in the context of a form
submission? So far, I have always proceded like this:
The fields are treated server-side. If a problem is detected, I return
the page to Client (with persistant
Thanks a lot for your reply and time :)
It's all clear now.
Hello,
I'm new to jQuery (and AJAX for that matter). Even if the library is
really easy to use, I'm still having problems ajaxing.
I'd like to understand how to post the following simple form to the
server, and send a message to the client depending on the submission
process output (telling him
20 matches
Mail list logo