jquery

flash-like navbar with jQuery

Hi there, I'm just wondering if it would be possible to use jQuery to create a slot machine navigation effect like the link below. This nav bar is really slick but I would prefer not to use FLASH if at all possible Here's the link: http://www.templatemonster.com/website-templates/24799.html thanks in advance Decbrad ...

jquery/javascript convert date string to date

I have a date string "Sunday, February 28, 2010" that I would like to convert to a js date object formatted @ MM/DD/YYYY but don't know how. Any suggestions? ...

jQuery - Slideshow with different sized images and text

I need some sort of slideshow, with text (something like moving boxes would be nice). I have tried several, but i'm always having problems with different sized images (the images can be for eg. 500px x 300px, but the next one can be 500px, 300px), this gives some problems with the pictures ... I hope you understand what i mean. It's ve...

jQuery slide up the image?

Ok, I have a structure like this: <div class="image"> <img src="img1.jpg" alt="" /> </div> <div class="image"> <img src="img1.jpg" alt="" /> </div> <div class="image"> <img src="img1.jpg" alt="" /> </div> and CSS like this: .image{ height:100px; overflow: hidden; } SO basically, only the top 100px of the image sh...

event is not defined in FireFox, but ok in Chrome and IE

I generate HTML using jQuery: $("<a />") .append("demo") .click(function () { DemoFunc(event, value.Id) }) This works perfect for Chrome and IE8, but in FireFox I got an error: "event is not defined". I changed the code like this: .attr("onclick", "DemoFunc(event, " + value.Id + ")") It works for Firefox, but not for Chrome...

How to set equal width on divs with javascript

I've got five rows that looks like this: It's an ul with lis. I want the first li "text" to be equal on all rows. To do this I need to look for the widest li, then apply the new with to all li's. (ul > li > span & ul) Text > Li 1 | li 2 | Li 3 Textlong > Li 1 | li 2 | Li 3 Short > Li 1 | li 2 | Li 3 Longer13456 > Li 1 | li 2 | Li 3 I...

Element unselectable with jQuery

I have a div in a page that I can't select with jQuery. I've tried selecting by ID and by class, with alert(jQuery(".warningmessage").size()); and alert($("#" + warningId).size()); but both return 0. The only thing I can think of that might have an effect is that the content containing the element was loaded with Ajax, or maybe the...

jQuery Tools - to make Keyboard and Cookies feature for AJAX:ed tabs with History and Google Analytics

Could anyone make Keyboard and Cookies feature for jQuery Tools AJAX:ed Tabs with History and Google Analytics!? The feature issue in http://github.com/jquerytools/jquerytools/issues#issue/54 Simple Keyboard feature for jQuery UI Tabs already has been done in http://fnagel.github.com/jQuery-Accessible-RIA/Tabs/ajax.html jQuery Tools Ta...

test if display = none

Hi This does not work. Should it? Or can you stop the error if another line could do the same: function doTheHighlightning(searchTerms) { // loop through input array of search terms myArray = searchTerms.split(" "); for(i=0;i<myArray.length;i++) { // works. this line works if not out commented. Will highlight al...

jQuery Droppable, get the element dropped

A small question hopefully with a simple answer, I am using jQuery draggable and droppable to place items into a dock. Using the below code for the drop. $("#dock").droppable({ drop: function(event, ui) { //Do something to the element dropped?!? } }); However I couldn't find a way to get...

jQuery Colorbox Dynamic Resize

I using Colorbox for login form. And there's a signup link in the login form. I want to resize colorbox window when sign up page opened. main page: <a href="/login.php" class="colorbox_login">Click</a> to login. login page: <form method="post" action=""> ... </form> <a href="/signup.php">Sign up!</a> Help please ... ...

Escaping quotes in jquery

I'm having a bit of a problem escaping quotes in the following example: var newId = "New Id number for this line"; $(id).html('<td><input type="text" id="my' + newId + '" onKeyUp="runFunction("#my' + newId + '");"></td>'); The issue is that when I look at the generated code the id does update to id="myNewId", but in the function call...

JQuery Ajax: Old content flicks in before showing the loaded content

Hi, have a problem with my ajax code. I have some links and a content area. When i click on a link, i hide the content area, load the new data and show the content area again. It works, but when showing the content area, you see the old content for a short time and then it flickers to the new content. Can i somehow let the loading scre...

show/hide div based on select option jquery

Here is my code ..tell me what is wrong, it doesn't work. <Script> $('#colorselector').change(function(){ $('.colors').hide(); $('#' + $(this).val()).show(); }); </Script> <Select id="colorselector"> <option value="red">Red</option> <option value="yellow">Yellow</option> <option value="blue">Blue</option> ...

IE8 error when loading web page

I am helping to make improvements to a SharePoint 2007 page that someone else has developed. This stuff is pretty new to me, so please forgive me if this is a noob question. When I load the page in IE8, I get the following error: Message: Object doesn't support this property or method Line: 159 Char: 2 Code: 0 URI: <blah>/Pages/defaul...

Good way to allow people to select a lot of things?

I'm using jQuery, ASP.NET, SQL Server, and the other usual suspects to design a company CRM. After they put in contact info, notes, dates, places and so forth they have to be able to select many different people to be "CC'ed." A group of people will be required to be one either "CC'ed" or "ToDo." The rest of the people can be nothing or ...

Need to modify JQuery Cycle updateActivePagerLink option

Hey everyone. I'm creating a simple 3-image slide show, and I'm pretty new to Jquery and Cycle. I have the slideshow working, with 3 pager links that also work. The only thing I need to accomplish is, add "activeSlide" functionality to the currently selected pager image, which I can't do in CSS by simply using the activeSlide class......

jquery-sortable using behavior of a linkedlist

I suspect I'm not looking at this issue in the right way so here goes. I have essentially a LinkedList of data on a web page (http://en.wikipedia.org/wiki/Linked_list) that I'd like to manipulate using traditional Linked List behavior (i.e. just updating the reference/id of the "next" object) for performance reasons. Where this gets ...

Which jQuery treeview is the most appropriate for the demand?

Here comes a requirement and i'm still at the beginning of choosing jQuery treeview plugin, which should support c# web service. the datasource is really a big one, so all treeview nodes must be collapsed defaultly. Once user click a node to expand, an extra parameter will be passed into the webmethod and populate its children treeview. ...

Images wont show after I've cleared the content

Hey everyone, I'm a newbie using jquery and js either, so maybe thats the reason why i just cant undesrand why my code isn't working. I created this function createList to push image content into div element. (this part works great) So what i want to do is, creating an element witch holds every picture and after i have deleted the cont...