I have a fixed element (div) that I want to scroll with my page. However, when the fixed element reaches the end of the container (div) I want it to stop scrolling with the page.
I'm trying to do this with CSS, or is jquery my best option?
...
Hi everybody,
firsty I want to apologize for my rather poor English, but I hope I will be able to make my problem clear anyway :)
I'm developing a template for the shopsystem Gambio GX and I encountered some problems concerning the Mootols and the jQuery library.
I want to integrate a content slider on the frontpage. At first I used a...
I am trying to write a jQuery plugin. For simplicity let's say that my code is
$.fn.myplugin = function() {
return this.each(function() {
$('a.mypluginToken').live('click', function(){})
}
}
As per above code every single time $('a').myplugin is called, a binding is done for 'click' event because of 'live'. I need that binding...
I've been trying to implement Ariel Flesler's ScrollTo plugin, but I can seem to figure out how to initiate it. This is his website:
http://flesler.blogspot.com/
What I would like to do is have a static navigation, and when the user clicks a nav link, the content scrolls within a particular div. I have a pretty good understanding of jQ...
I'm writing a custom control which includes a text box input and an unordered list of items below it. As the user types in the text box I would like for the matched text in the list to be bolded (wrapped in <strong> tags).
//I use keyup so the value takes in to account the last keystroke.
$('#filterList').keyup(function() {
...
Hi,
I tried to make a simple test with facebox_render and rails 3.
Here are my steps:
1.) Installed Jquery 1.4.2 (Jrails)
2.) Installed the plugin
rails plugin install git://github.com/ihower/facebox_render.git
3.) and added the following lines:
in my application.html.erb
<head>
<title><%= yield(:title) || "Untitled" %></title>...
I am trying to use jQuery to respond to changes in the url after the #. I've done some searching, but I don't think I'm using the right search terms.
To be clear, I want to be able to provide external links to a page like so:
<a href="example.com/foo/#home">home</a>
and to include internal links to change the content on the page dyna...
Hi,
I'm trying to remove the first link-image below the h4 and prepend it to div.image-thumb. The code i use work's fine if it's just one table row ".tr-class" .
But when I have multiple rows, it copies all the link-image into .image-thumb. So if I have 10 rows, then each row will have 10 link-image each. How can I can get just the rig...
I have a textarea field that a user can upload a CSV file to populate the field. I then need to validate each one..here is the code I have but no luck:
validateEmails = function(emailAddress){
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
return reg.test(emailAddress);
}...
Hi all,
I am doing the following null check , even thought the object is null its still unable to check that
if(callbackResults.Details[0].Tags!='') // Tags are coming as null from backend..
details is a json object. Tags is again a object array inside details.
the above null check is failing and its going inside the loop
can you ...
I'm trying to find a script (jQuery or whatever) for a site I'm working on that will count down to a specific time each week (i.e., every Friday at 5 p.m.). Once it reaches 5 p.m., it should start over and count down to the NEXT Friday at 5 p.m.
I've looked everywhere and cannot find any scripts that we allow me to do this. Can anyone h...
I'm using the jQuery UI Tabs for individual real estate listings... the listing are generated on the fly from the DB.
I'm curious if there's a better way of associating tabs and their respective DIV fragments (containers) than individual IDs per tab group:
#tabContent1_1
#tabContent2_1
#tabContent3_1
...
#tabContent1_2
#tabContent2_2
...
Wed Oct 20 2010 14:11:39 GMT-0500 (CST) {}
More detail (sorry):
I'm trying to pass in a date (like above) from the fullcalendar plugin to the jQueryUI datepicker like so:
$('#miniCalendar').datepicker({defaultDate: date});
where date = Wed Oct 20 2010 14:11:39 GMT-0500 (CST) {}
datepicker accepts a variety of ...
Hi!
I'm looking for jquery plugin that can switch content with buttons.
e.g.
In the page it would look like this:
[Prev] some text within a div [Next]
By pressing a button (next or prev) the div changes with the content to next div in the page that probably is hidden before pressing the buttom... something like that.
I hope you got...
Greetings,
Being new to jQuery's syntax, I find myself being a bit thrown off when writing up some code. So while I realize my issue is very likely a logic issue, I'm still have issues finding it because of the syntax that I'm not used to.
I have a series of <li> tags that have an <input type="checkbox"> within each of them. When the...
Hello,
I am looking to build a tooltip that allows the user to click links within that tooltip to allow them to navigate to various sections of the site. My problem is that the tooltip disappears when I leave the a with my mouse? what I want is for the tool tip to disappear if I change to a new a or click close on the tooltip, my jquer...
When writing jQuery binding events, I typically use the bind() aliases (click(), submit(), etc).
But, the more I use dynamically generated content, the more I find its ambiguous as to when bind() won't work, and end up debugging for a half hour until I try live() and it works.
Within the parameters of ID-selectors (like '#foo', not ....
I have a main navigation but I need to apply the class of 'current' to the <li> if it matches the URL I have specified it should.
This is what I have:
$(function() {
var url = location.pathname;
if(url.indexOf('girls')) {
$("li#nav-01").addClass('current');
}
if(url.indexOf('boys')) {
$("li#nav-02").addClass('current...
So, there is a jqGrid, with declaration, smth like:
$("#grid").jqGrid({
...
bunch of stuff
...
).searchGrid({ multipleSearch: true });
which is fine, when I click Search button, it brings me modal form with I guess first column and a dropdown of sopts: searchoptions: { sopt: ['eq', 'ne', 'cn']}.
Now, i want to be able to display a cou...
I made Q&A page. I'd like to click on the question and have the page scroll to the question using JQuery. What script do I use or does anyone have an example I can learn from?
Many thanks.
Erik
...