jquery

Buildling an array of vaules from page elements in JQuery/Javascript

I have a set of text boxes in which the user inputs an email address into each one. I want to loop around these and build an array of them. How do I do it? var emailAddresses = new Array(); $(".email_address").each( function() { //add this $(this).val() emailAddresses ...

Is it possible to recreate IKEA's functionality using Ajax?

A client is looking to achieve the same level of functionality as can be seen on Ikea's room set pages for an ecommerce site but doesn't want to use flash. Ikea Room Set With Flash Although complex, would this be possible using Ajax? Thanks for your insight in advance. Regards Jonathan ...

jquery tabs reload

I am trying to figure out how to load the tabs the way I want. Basically when someone visits my page I want it to create 2 tabs(which I have working). Now inside of each of those tabs I have a widget that is put there through embed code (which is working fine). However, when I switch from one tab to another it is reloading the data in ea...

jQuery: Count unique occurrences of class

I have a number of elements on my page that belong to classes with unique identifiers, based on my backend programming. Such that I may have the following: <element class="element-1"></element> <element class="element-1"></element> <element class="element-2"></element> <element class="element-2"></element> <element class="element-3"></...

Clone jqueryui dialog buttons at top of dialog

I have a tall dialog box with Save and Cancel buttons that perform some actions on the data in the dialog box as well as closing the dialog. Is it possible to duplicate these buttons so they display at the top of the dialog as well as the bottom? I've been able to do this manually with sporatic results. Can I clone the exact buttons t...

How can I set the default size of a jquery datepicker?

Have a look at this page. The datepicker itself (called on <div id="calendar">) has a width of "68em" set initially. I then use $("#calendar").children().css("width","auto"); to set the width to auto (so it fills up the page). As you can see, this works. Changing the month (with the buttons), however, causes jQuery to change the width ba...

Does Jquery work well in quirks mode?

For reasons beyond my control, the site works in quirks mode. Will Jquery help me in this situation? I expect the jquery developers concentrate on strict mode today - the mode of the future. On the other hand, all those libraries once started to ease the pain of working in quirks mode. ...

jquery selecter that filters out animated children

I am trying to have a jQuery selector to select a element only if its children are not animated. I tried: var articalLink = $(".navArticals").filter($(this).children("ul:not(':animated')")); It doesn't work It turned out that only this works var articalLink = $(".navArticals").filter(function() { var filtered = $(this).childre...

JQuery - work with divs

Hello, I want to set another class for the clicked menu-part. Clicking generates url with #NAME. Here is my menu: <div id="head_menu"> <a href="#order"><div name="order" id="menu_part">make order</div></a> <a href="#portfolio"><div id="menu_part">portfolio</div></a> <a href="#contacts"><div id="menu_part">con...

Is there a way, using jQuery, to change the document.title after the page has loaded?

I have coded myself into a corner. Does anyone know the answer? Thanks! ...

jQuery drop down like NBC.com

I've been trying to make a drop-down like NBC.com with no success--because I'm constrained to using the following HTML. I'd like it to be on mouseover--kind of like the UI accordion... Any help would be greatly appreciated! :) <div class="mainMenu" align="center"> <table cellpadding="0" cellspacing="0" border="0" width="950"> ...

Binding click event to appended link with jQuery

I've got a lightbox that uses jQuery's $.ajax to retrieve data. If i get back no data, then I append a "no data found" message to my list, and a link to reset the search parameters. Basically I'm trying to add a .click() event to a link that I've appended. The problem is that the function is running immediately, not waiting for a clic...

$.getJSON for asp.net mvc

I am trying to create dropdown list when selecting item from the other dropdown list. I use $.getJSON to get data from my action in controller here is my code. JQuery Code looks like this. $(function() { $("#GroupName").change(function() { //alert("Test"); var str = ""; $("select option:selecte...

How can I use jQuery to style /parts/ of all instances of a specific word?

Unusual situation. I have a client, let's call them "BuyNow." They would like for every instance of their name throughout the copy of their site to be stylized like "BuyNow," where the second half of their name is in bold. I'd really hate to spend a day adding <strong> tags to all the copy. Is there a good way to do this using jQuery? ...

IE workaround for converting an XML document into a string?

Right now, I have the following: function jQueryToString( jQueryObject ) { return $('<div>').append(jQueryObject.clone()).remove().html(); } Which works swimmingly in firefox, opera, chrome, and safari. However, it breaks in IE. I need to convert an XML Document object into a string, so what are my options? ...

Append a space with jQuery

I'm trying to append a space using jQuery. Neither of these samples work: $("#mySelector").append($(" ")); $("#mySelector").append($("&nbsp;")); Any ideas? ...

Jquery Append() and remove() element

Hi, I have a form where I'm dynamically adding the ability to upload files with the append function but I would also like to be able to remove unused fields. Here is the html markup <span class="inputname">Project Images: <a href="#" class="add_project_file"><img src="images/add_small.gif" border="0"></a></span> <span class="project_ima...

Date Popup module - I want a Time Popup as well

I've got a field in a form (custom content type built using CCK) configured as a date and time. I have the Date Popup module installed. My field shows up as two fields, one for the date and one for the time. When users click in the date field, the JQuery calendar pops up and all is fine. But nothing happens when they click in the time ...

JQuery click() not working on replaced html

I'm still new to Jquery so bare with me. I am trying to create a go-moku game using jquery,php, and mysql database. I have a ajax function that updates the a board every second if needed. var turnCount = -1; setInterval(function(){ $.get('includes/boardControl.php',{turn: turnCount }, function(data){ if(data != "") { $("#board").h...

How to add help prompt attributes to Business Objects in MVC and display in View

How can I provide some form of Attribute against my Business Objects in my ASP.Net MVC application so that I can pick up the help texts in the View and have them appear as pop-up hover help texts like this: <%= Html.TextBox("PostalCode", Model.PostalCode, new { title = "Please enter your postal code." })%> I want to be able to g...