I was trying to find some more information on the following jQuery function:
jQuery.active
It is described here to test the number of active connections to a server and will evaluate true when the number of connections is zero.
http://agilesoftwaretesting.com/?p=111
http://web.elctech.com/2008/11/10/jquery-ajax-loading-and-selenium-r...
I have this HTML:
<div id="main"><div id="mainly">11</div><div id="mainly">22</div></div>
I want to select the div with value 11.How to do this?
I tried:
$("<div id="mainly">11</div>")
,but it didn't work...
I don't have only two divs with id="mainly".
...
I'm using jQuery AJAX to retrieve a page with different user selected options. I'd like the page to appear by default with default options so in $(document).ready I call the function which contains the AJAX.
This creates a delay in loading as the browser first loads the actual page, then the jQuery javascript file and then finally it re...
i meet a problem, when try to make an ajax request after sending data by post.
let's assume i have a index.php file. In the form i send data by post to the same file, and after posting i want to make ajax request, but it don't doesn't happen, because it "wants" to ask about resending data, but it doesn't show in popup window.
So, how ...
I have a textarea and I want to replace "\n" with "," in it's value.
var valuetxtarr = $("#txtarr").val();
var valuetxtarrs = valuetxtarr.replace("/\n/g",",");
alert(valuetxtarrs);
But it don't work?Why?Where I have mistake?
...
I have a div element, with img element in it.
onclick of div i make one function, and onclick on img - another. but when i click on img it make the first function too, because the img is in div element.
so, i think, that if there were something like isClicked, onclick of div i can just verify, if img is Not clicked ...
(i can write a l...
I have a simple function:
var total = 0.00;
$("#basket .txt").each(function() {
total += parseFloat($(this).html());
});
$('#total').text('Total: ' + total.toFixed(2));
That is used in 3 places on a script. How do I turn it into a function that can be called in the relevant places a bit like:
getTotal();
rather than use the "fi...
just now i ask a question, and it creates a new question.
for example, when i wrote
$("#new_lang").click(function(e)
{
alert("something");
e.stopPropagation();
});
who is e here, and why it doesn't work without it?
why can i write anything instead of e?
Thansk
...
I have a form that looks like:
<form action="search.php" method="post">
<fieldset>
<label for="level_one">Main category</label>
<select name="level_one" id="level_one">
<option value="0">All main categories</option>
<option value="7">Health</option>
...
I have a dialog window in my JSP page and its implemented using jQuery.
If my server is timed-out and I click on a button to open the dialog window, my login-page is shown inside the dialog window.
I want to actually close the dialog window and redirect to login page.
How can I achieve this?
...
In my web app, users can input text data. This data can be shown to other users, and the original author can also go back and edit their data. I'm looking for the correct way to safely escape this data.
I'm only sql sanitizing on the way in, so everything is stored as it reads. Let's say I have "déjà vu" in the database. Or, to be more ...
Okay, i posted a question before to fix my live validation contact form. Now the form athentication is working perfectly but my jquery hover menu effects are going, on other pages menu is working but not on the contact form page..
here is the link to check it online link text
is there any conflict between these two functions.....
...
Say I have this code:
function onComplete(event, request, settings)
{
// How do I get the data? In the correct format?
}
$('body').ajaxComplete(onComplete);
In regular ajax success handlers, I can just access the data directly since it will be the first parameter to the handler. It will also be in the correct format (as long as t...
The code is :
$("#radioGroup").click(function() {
$("#groupSpan").css("display", "block");
$("#advisorSpan").css("display", "none");
});
and for second button of radio group:
$("#radioAdvisor").click(function() {
$("#groupSpan").css("display", "none");
$("#advisorSpan").css("display", "block");
});
this works fine, w...
Given a select
<select id="Myselect">
<option value="-1">Please Select<option>
<option value="1">Selection 1<option>
<option value="2">Selection 2<option>
</select>
What the best way to determine if there is an option of value X in the select with JQuery?
...
Please check this link:
http://www.kings-mall.co.uk/index.php?id=5
Check the mall layout, it's done in flash. I was wondering if this can be done in Javascript or DHTML? But the list at the bottom would be links instead. When the mouse hover at one position/category like 'Fashion and Sports' it would highlight a lot of links and its po...
I know that in PHP the only difference between double quotes and single quotes is the interpretation of variable inside a string.
Well, in jQuery Javascript, I often see doublequotes used in jQuery selectors, or in strings, is there a particular reason for that or is single quotes just the exact same as doublequotes?
...
Hi
I'm using tablesorter and have problems with sorting tables that contain rowspan in definition.
I've read hints here http://stackoverflow.com/questions/2509690
but solution doesn't work when I have different values for rowspan: once is rowspan=3, once 4 - depends on data taken from DB.
Do you have any other plugin that sorts even s...
Hi,
I have a code with input field, and with clicking on add it adds new input field with new name:
/* multiply recepient */
var number = 1;
$('a.plus').live('click', function() {
number += 1;
$('.multiple').append('<p><input type="text" name="recepient_' + number + '"></p>');
});
this works fine. But then I want to post ent...
Can you use CSS3 to transition from height:0 to the variable height of content?
...