I try to impliment the jScrollPane in to a wordpressblogg, so I can make the content be contained in a nice scroll-area that fits my design, the key thing is that I want to style the scrollbar also. I've tried following the instruction given her with the change that I try to use the Jquery library implimented (I call directly to Jquery i...
I have a page with ten sortable lists that properly save the order of list items(divs) as they are moved inside their list. Each list itself is generated with a separate php file that basically iterates content based on its boxid #. So all content with a boxid of 5 gets output to list 5. All content with boxid of 3 gets output to list 3 ...
I have a set of tabs which cause certain DIVs with options to 'fly out' over the top of a parent DIV. The content is pulled in via AJAX.
The fly outs are called on click like so
$('.fly_out').live('click', function() {
var $widget = $(this).closest('.widget');
var $flyOutIndex = $(this).index('.fly_out');
if ($flyOutInd...
I use the <a> tag to build buttons. I use JavaScript (jQuery) to implement the behavior.
How can I prevent the browser from following a link, while continuing to execute all click() events?
This:
$("a.button").live("click", function(event) { return false; });
doesn't work, because, depending on the position of that handler it might ...
I have a <table> that the data is separated per 2 <tr>'s
So i want to style the rows(each 2 rows) as zebra stripped, but each set of 2 should be styled.
I am trying something like:
tr:nth-child(3n+1), tr:nth-child(4n+1){background:#f7f7f7;}
I would prefer a CSS3 solution, but if only jQuery can do it, that will be fine.
Please see...
Hi All
RESOLVED:
The line destination.block(...) is the one causing the errors. I've forcing empty to equal true to avoid this. I think that the if (empty) statement is just picking between two different ways of displaying a busy message.
I'm new to jQuery and have taken over maintaining an ASP.NET MVC 2 project from an ex-colleague. ...
Good morning Brian,
Your work on using the slice() method to get jquery's pagination plugin (http://plugins.jquery.com/project/pagination) is fantastic and was so helpful.
I'm wondering if you have implemented the jquery plugin so that the Pagination div is on the top and the bottom of the div where the pagination results are displayed....
Hi all,
I'm trying to get better at using Jquery and therefore would like feedback on ways to optimize my script below.
To briefly describe the functionality I have a "checkall" checkbox and a button for performing actions on the checked elements. If there's no elements checked, my button should be disabled and have the class disabled ...
Hi everyone,
I need to render HTML dynamically, without touching the server side. It seems like JQuery is a good solution. Please note I am using HTCs.
Does having the HTML/HTC controls render in steps rather than all at once raise performance concerns? If not, is there a property I can set on a page (IE-6 through IE-8 compatible) that...
I have this code that works as posted:
$('#cs_tableVideoListings tbody tr td').each(
function() {
$(this).css('border-bottom','2px solid gray');
})
the issue is that "gray" is too dark. When I try #333 or any hex number, it doesn't work at all.
I only need to apply the bottom border, so using "border-bottom" : "2px so...
I have a LinkButton that I need to perform a click on to cause a postback. The actual link target is:
javascript:__doPostBack('ctl00$c1$btnRefreshGrid','');
Clicking the link does perform the postback, as verified by a breakpoint in the code-behind. Also pasting javascript:__doPostBack('ctl00$c1$btnRefreshGrid','') in the address bar o...
So right now, I have a few forms where as one is submitted, it retrieves another in a modal. So right now, I might have a link to example.com/modal/1, which opens the first modal. However, if javascript is not enabled (so the browser actually follows the link), then some html displays (the html that was going to be retrieved.). I'd like ...
How to get scrollHeight value from document?
Getting undefined currently.
Anyone? :)
...
Hi how can i select and add a class to the prev and next a tag.
<div class="sub">
<ul>
<li><a href="#">a</a>
<ul>
<li><a href="#">b</a>
<ul>
<li><a href="#">c</a></li>
<li><a href="#">d</a></li>
<li><a href="#">e</a></li>
</ul>
</li>
<li><a href="#">f</a></li>
<li><a href="#">g</a></...
Hi All, is there any way to submit an iframed form from jquery?
What i have is the following.
$('button#bookingButton').click(function(){
$('<iframe id="externalSite" class="externalSite" src="/form/page" />').dialog({
title:'Form',
autoOpen: true,
width: 800,
height: 600,
...
Hi,
I have to make a link in a Jquery Datatable cell (http://www.datatables.net/) and a marker on Google Maps V3. An exemple without Jquery Datatable is available there : http://code.google.com/p/gmaps-samples-v3/source/browse/trunk/sidebar/random-markers.html?r=142
Any idea ?
Thanks in advance !
...
Hey,
I'm having a hard time getting the jQuery Validation plugin to work as i want. Please bare with me since i'm no jQ expert :)
What I have is a form with several required inputs, rules as showed below:
$("#makeEvent").validate({
onfocusout: false,
rules: {
name: {
required: true,
minLength: 2...
Well i have a simple for loop function issue is that i want the page to reload once done but
what happens sometimes is that the page preloads before the loop has been fully run which makes the script not behave properly
it's like this at the moment:
for (loop condition) {
action
}
window.location.reload();
but as i just mention...
I have this function that embeds flash :
function embedswfile(target, swf, base, width, height) {//dosomething}
And I want to call the function like this
embedSwf("flashgame",decode("<?=base64_encode($path['location'])?>"),decode("<?=base64_encode($path['base_directory'])?>"),"800","600" )
The idea is that whenever someone looks f...
I am validating a bunch of text boxes but these boxes have a default value using a text water mark if they are empty. How do I create the validation rule so that it ignores a single default value?
Originally the default value of these text boxes were all different (default value stored in ToolTip tag), then I realized it would be a lot...