Lately I found myself using jQuery and JavaScript a lot, often to do the same things that I did before using CSS.
For example, I alternate table rows color or create buttons and links hover effects using JavaScript/jQuery. Is this acceptable? Or should I keep using CSS for these kinds of things?
So the real question is:
When I'm using ...
As the title suggest, my question is what is the best way to get or build a list of the titles for the set of tabs. I was thinking I would have to build the list in a for loop, but there does not appear to be any 'name' or 'title' property where you could do something like this:
var $tabs = $('contentContainer').tabs();
$tabs.tabs( 'tit...
I am having some trouble with an implementation of Soh Tanaka's excellent jQuery slide show technique. I need to nest the trigger anchor tags inside an unordered list, which breaks the script (pulling the anchor tags out of the < ul > list otherwise corrects the problem). I think it comes down to how $selected is defined is this line:
$...
Hi.....
I want to display the pop up for user selection using colorbox. I have put link on manageblacklist.jsp named 'select'. when I click on 'select' link ,colorbox is displayed.
all user is displayed but pagination is not worked. I have used display tag for pagination.
Without using colorbox, pagination is worked fine. I have use...
Could someone tell me the difference between those two. The first one is working on FF and not in IE (6) and second one is working in IE (6) and not in FF (I am using the Jquery 1.4.2). We had to detect the browser and write the script accordingly.
...
I have been looking around SO for a while and haven't been able to find anything that matches my issue, which I'm not even sure I can explain that well, so take that for what it's worth.
I have a page that loads content into a div via AJAX (using the .load() method). There are several links in the navigation, meaning the content will ch...
Hey guys,
I've a website with a lot of images:
<img class='thumb' src=thumbs/image1.jpg/>
<img class='thumb' src=thumbs/image2.jpg/>
<img class='thumb' src=thumbs/image3.jpg/>
<img class='thumb' src=thumbs/image4.jpg/>
I wonder if I can display a loading-div for every single image and when it's loaded the div hides? I'm using jquery f...
I've got a form that is using jQuery validation. When the user clicks the submit button, a dialog window displays thatshows the fields the user filled out along with the data the user entered. It asks the user if this information is correct. If it is, the user clicks the submit button in the dialog window and the form is submitted. If...
Hi. I'm using the Flowplayer plugin inside the AnythingSlider control. I'd like to stop the slider from moving to the next slide when the user clicks to interact with the Flowplayer. I've tried the following but the slider continues to move to the next slide; the .click() call on the #start-stop item didn't work either. I'd like it to st...
I'm a jQuery noob - so please excuse the probable basicness of this question.
I'm doing something pretty simple - on hover animate the position and size of an image. When you mouse over the images there are some noticeable 'jaggies' (in FF, chrome, safari and that other crappy browser) - is there a way to get rid of this? The jquery co...
I have an ASPX web form. I use jQuery to simply my Javascript. I use a Javascript validation script to validate each of the form fields' values. If an error occurs, I popup an alert with an error message. Then I transfer focus to the underlying element.
Here are examples I have tried.
Using jQuery:
var Form_FieldDef = function(name) {...
I am wanting to redirect a page on click, and then load specified content into on of those pages div.
How do I go about doing this?
For example:
<div id="redirect">Click here to go to new page</div>
When the new page loads, there will be a div with id = content that needs to have content automatically loaded via ajax based on data s...
So im using the overlay effect to present a swf on the page.
In firefox it looks fine but there is a spot where the template blocks me from clicking on the Swf.
in IE everything clicks fine but the overlay box does not get the right dimensions, so the swf appears to overlap the white box.
I think it's the school's default template t...
Using jquery, when a button is clicked (server side), I want to append #button to the url.
This will only be used when there is validation errors, I want the browser to scroll to the bottom where the button is.
I already tried MaintainScrollPositionOnPostback but it doesn't work here since the validation rows are made visible upon cli...
I have a click handler for a specific link, inside that I want to do something similar to the following:
window.location = url
I need this to actually open the url in a new window though, how do I do this?
...
I am using the following code :
$.ajax({
url: "pgiproxy.php",
data: ({ data : $("#formdata").serialize(), mode : "graph"}),
success:
function(result){
var temp = $('<div/>').html(result);
var val = temp.find('center').html();
$('#BFX').html(val);
...
I have the following, which displays an image and when the user clicks on the image, it takes them to the Youtube video:
<html>
<head>
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1", {uncompressed: true});
</script>
<script>
jQuery(function($){
$('a').click(fun...
i see that in tableSorter you can sort one page at a time which concerns me.
Only 1 page of results can be sorted at a time?, which is pretty limiting. If you have a query result that spans multiple pages, how you will handle this?
If anyone knows better, feel free to correct me if iam incorrect
Thanks.
...
The jQuery find(..) traversal method doesn't include the current node - it starts with the children of the current node. What is the best way to call a find operation that includes the current node in its matching algorithm? Looking through the docs nothing immediately jumps out at me.
...
Hey community,
I want to create an navigation with anchors. By clicking on a navigation link, the whole visible page should scroll down to the clicked anchor.
The most important is the following structure of the page.
--------------- (Begin visible browser area)
NAV1 nav2 nav3
content
--------------- (Begin/end visible browser area)
...