Hi,
I have a div, i want get height of the div.
$('.graph_container').css('height')
and css is
.graph_container {
width:100%;
float:left;
border:1px solid #CCCCCC;
margin-top:1em;
position:relative;
}
since height is not mentioned, in IE it give 'auto'. How can i get exacte height.
I appreciate your suggestio...
I'm looking for a JQuery plug-in for a drawer-like effect. I found that plug-in which is quite similar to what I want but it slides from one side of the screen (top, bottom, left or right). In my case, I have an image as wide as the content div, and I want it to slide down when clicked to reveal the content, but not from the top of the s...
Hi all,
I am using jquery's $.post for ajax (like populating a selectbox with a value selected in different selectbox).
I used the following code for this
$('#cmbState').change(function(){
$.post('<?php echo APP_URL."include/ajax.php"; ?>', {stateid: $(this).val(), option: 'getCitiesList'}, function(response){
if(response != '')
...
I'm trying to update a Total: (span.wrap p span) field at the bottom of a form using jQuery.
I have a few checkboxes, each of which has an associated price contained within the title attribute like so: title="$2".
I'd the Total: field to update dynamically when the user clicks a checkbox. Here is the script I have, but it's throwing a ...
This code only seems to work in Firefox. Safari and Opera don't like it:
alert($("<body>").css("background-color"));
I've tried other methods too which are even less successful.
alert(document.getElementsByTagName("body")[0].styles.backgroundColor);
alert(document.body.styles.backgroundColor);
I've tested these browsers on Mac - an...
Consider the following :-
$("#id").click(function(){
// how do i access $("#id") here: say i want to add a class to #id? without $("#id")
});
...
Why cant I access the embedded app elements?
Looking at the HTML, the app is put inside a div but when I try to find the div contents, e.g.
$("input").get()
I only see input element of FB, not the app. I injected jQuery after the page load with FireQuery plugin.
How can the HTML looks fine but cannot be traversed with jQuery?
...
Hey,
I am trying to use JQuery to select the next element in a set of elements with the same class.
Here is the HTML setup:
<div class="sameClass selected">
<p>Text in here</p>
</div>
<div class="differentClass">
<p>Text in here
</div>
<div class="sameClass">
<p>Text in here</p>
</div>
When I have the first div with the class ...
i like the jquery.toggle(switch) function as i can do the following in one line;
$('.mytable').toggle(checkboxes[0].checked);
However i cant seem to integrate effects into this call (sliding / fading etc).
Can anyone offer suggestions?
...
Hello guys,
can somebody tell me how this pageflip is implemented, and any samples would be appreciated.
http://www.cataloguecentral.com.au/Catalogue/BIG-Christmas-Gift-book-6610
Thanks
...
Hi,
I have the following jQuery code that stops the user selecting text in a table element.
$('table').live("selectstart", function(e) {
e.preventDefault();
});
This works in IE, but not in Firefox. How can I get this to work in Firefox?
Thanks
...
I have
table row with click event
button with click event, that button is on table row
and I have problem. When I hit button, row click event execute too, but I don't want this behavior. I want only button click execute, without row click.
...
I have a continuously generated data (text file) generated by a program on the server. I want to plot the data as a real-time graph just like powergrid does. This was my approach:
As the data is generated continuously on the server in a text file, I wrote a PHP script which reads that file(get_file_contents), outputs the data points an...
Hi, I am getting a some unusual problem with JQuery ajax. I am using IIS to host my web application and I have http handler for which I have enabled only POST verb on it. Using JQuery ajax, I am posting data to this http handler, this is working fine in our development and testing environment and also most of the time on production envir...
Is there a way to abort the print event after a user has pressed the web browsers print button?
This works for print buttons within the HTML (jQuery):
print_btn.click(function() {
if (confirm("Are you sure you want to print? Consider the environment")) {
window.print();
}
});
Is there a way to do the same with the web...
Hello.
I'm making a "show password" button for password input.
Problem that is browsers don't allow to change attribute 'type'.
Ok, i'm cloning this element with jquery's clone() function and change this attribute "in memory".
It works in all 'normal' browsers, but not in IE.
Then i'll try to copy html, replace 'password' to 'text', sav...
I need an div (for advertisement) that slides down like here (when loading the page): http://www.webintenta.com/Files/JQueryCollapse.html
Tricky part: When I click on the [x] the whole div should disappear. I want it to disappear for the Browser Session or better for the IP that accessed it. Saving it to a Cookie would also be a solutio...
Can we use 2 different url on same for javascript disabled and enabled condition
If javascript is enabled then link should be <a href="link1">
and If javascript is disabled then link should be <a href="link2">
...
Hi guys.
I have a page which display multiple blocks with results details. Inside each block I have some tags with thichbox jQuery plugin attached( class="thichbox").
http://jquery.com/demo/thickbox/
here is an example of one kind of ampersant tag:
<a class="thickbox" title="Please Sign In" href="userloginredir.php?height=220&width=3...
Suppose i have this ($ = jquery):
$.fn.my_function = function() {
function foo()
{
//do something
};
function bar()
{
//do something other
};
}
I lauch this with $('.my_class').my_function();
Now, i need to call foo and bar on callback to certain events.
How can i call them?
...