jquery

javascript array to coldfusion

I have an array i've create in Javascript. The end result comes out to element1,element2,,,element5,element6,,,element9.... etc Once passed to coldfusion, it removes the null elements, I end up with element1,element2,element5,element6,element9 I need to maintain these spaces, any ideas? My problem may begin before this, to explain in...

JQuery and YUI, can they live together?

Hi, Can JQuery and YUI live together w/o any conflicts? ...

How can I randomly show a set of elements using jQuery?

Using jQuery, how would you show() every div.foo on a page in a random order, with a new one appearing every X milliseconds? Clarification: I want to start with all these elements hidden and end with all of them showing, so it wouldn't make sense to show() the same element twice. I originally thought I'd make an array listing all the e...

Convert jquery slide effect to mootools

I have a script that slides a div down from behind the menu, when people click on the tab. However its in jquery and I want to use mootools (lots of reasons I wont go into here). However im stuck with mootools 1.1 at present. But for some reason my attempt is not working :( The html print("code sample"); <div id="panel"> <form a...

Calling a jQuery function inside html return from an AJAX call

I am working on a web page that is using jQuery. I have an ajax call that gets data from the server an updates a div. Inside that data there is a jQuery function; however, the function is not being called after the data is loaded into the page. I have the proper js files include in the page already. This is what is returned from the aja...

How do you handle oncut, oncopy, and onpaste in jQuery?

The jQuery documentation says the library has built-in support for the following events: blur, focus, load, resize, scroll, unload, click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, mouseenter, mouseleave, change, select, submit, keydown, keypress, keyup, and error. I need to handle cut, copy, and paste events. How be...

How do I change the background color of a resizable handle of a JQuery UI Dialog?

You'd think it would be easy, but keep reading. I can change many of the styles associated with a resizable JQuery Dialog, but not the handles. The code below isolates the problem. Why does the handle disappear entirely? There must be some logic I'm interfering with in ui.resizable.js, but I don't see it. <script type="text/javascr...

Where can I find JQuery UI themes besides "flora"?

Is there a repository for JQuery UI themes? ...

SimpleModal containerCSS not working in Firefox or Chrome

Good Afternoon, I tried to override the settings in the default stlyesheet that comes with the simplemodal jquery plugin with containerCSS which is working fine in IE7 but not Firefox or Chrome. Not sure if this is a bug or I am doing something wrong. jQuery: $(document).ready(function() { $("#ButtonPopup").click(function()...

How does jQuery implement hide() and show()

Do they set display: none or visibility: hidden? I'm pretty sure display: none takes the element out of the normal flow, whilst visibility: hidden just hides the element but still has a reserved space for it. Should I just go download the unpacked version and study it or does someone have a quick answer? ...

What's the best way to apply a drop shadow?

What is the best method for applying drop shadows? I'm working on a site right now where we have a good deal of them, however, I've been fighting to find the best method to do it. The site is pretty animation heavy so shadows need to work well with this. I tried a jQuery shadow pulgin. The shadows looked good and were easy to use but...

Handling of child and grandchild windows in Javascript.

I have a main window (#1) on my webpage from which I open a new browser window (#2) from which I open a new window (#3). Now if my user closes window#2 before window#3, I have the problem that window#3 no longer can call function in its window.opener since it has gone away. What I would like to do is to set window#3.opener to window#1 ...

How do I change an element (e.g. h1 -> h2) using jQuery / plain old javascript?

Of course, there are a whole range of possible errors relating to document validity, but my immediate stumbling block occurs when changing a paragraph (p) into an address element. My current method is (more-or-less): var p = $('p#test'); p.replaceWith('<address>' + p.html() + '</address>'); but that fails for this specific case; it wo...

jQuery autocomplete in ASP.NET webforms?

Has anyone used jQuery to populate an autocomplete list on a textbox using ASP.NET webforms? If so, can anyone recommend a good method? From my reading so far, it seems like most people are using delimited lists rather than JSON to bring the items back. I'm open to any ideas that will get me up and running rather quickly. ...

JQuery Validate Plugin - How to create a simple, custom rule?

How do you create a simple, custom rule using the JQuery Validate plugin (using addMethod) that doesn't use a regex? For example, what function would create a rule that validates only if at lease one of a group of checkboxes is checked? ...

jQuery UI: Filter selectable dates on datepicker

I want to filter the selectable dates on a datepicker. I basically need to filter by work days - i.e. make holidays and weekends not selectable. I know you can specify dates using a function in the beforeShowDate: and you can also use $.datepicker.noWeekends. Question is: can you do both? ...

Can I target an element before it's closed?

I'm wanting to add a class to the body tag without waiting for the DOM to load, but I'm wanting to know if the following approach would be valid. I'm more concerned with validity than whether the browsers support it for now. <body> $("body").addClass("active"); ... </body> Thanks, Steve ...

What are the best references for using jQuery?

I'm interested in what you find are the best development references for learning and using jQuery. Books, websites, etc. are all welcome. ...

jQuery & ASP.Net Resources & Gotchas

What are some good jQuery Resources along with some gotchas when using it with ASP.Net? ...

How do I select an item by its text value in a dropdown using jQuery?

If I had the following select, and did not know the value to use to select an item in advance like in this question or the index of the item I wanted selected, how could I select one of the options with jQuery if I did know the text value like Option C? <select id='list'> <option value='45'>Option A</option> <option value='23'>Option B<...