jquery

jQuery RTE Recommendations

There are some decent JavaScript-based RTEs out there, but when it comes to jQuery plugins, the selection seems to be quite sparse. What are the most recommended/promising projects (either finished, or in progress) that provide a simple-to-implement RTE using jQuery? Here's what I've found from my research so far: jQuery UI Rich Text ...

jQuery get array values from url

I've got an url like this: http://www.somewhere.com/index.html?field[]=history&field[]=science&field[]=math Using jQuery, how can I grab the GET array? Thanks. ...

jQuery returns 'none' for background-image css value

I am trying to get the value of an elements background-image url. This is set in an external css file. The following always returns, 'none'. $(".navHeader").each(function() { alert($(this).css("background-image")); }); css: .navHeader { background-image:url("../../../../commondata/sharedimages/summ...

How do i check if a substring matches with regex?

I want to find out if my string contains a certain substring and return true if it does and false if it doesnt. regex = /^[a-z0-9]*(TEST)+'[a-z0-9]*$/; if(myString.contains(regex)) { // do something } ...

jQuery carousel entire slide changes with images/text/etc

Hi, I'm pretty new to jQuery but basically what I'm looking for is a script that can do the following: imgur.com/PYSAL.jpg The numbers will change the entire slide (image and text). Can someone point me to a script that can do this? Or something very similar, I'm just learning about JS. Thanks! ...

Creating multi-field in-place editor with JavaScript/JQuery

I am looking for a way to create an in-place editor in JavaScript like JEditable or similar plugins. However, the difference is that my editor would be a multi-field form rather than single field. Since the same form will be used in different parts, i.e. editing existing items and creating new items, I would like to be able to specify t...

What is considered redistribution?

Hi I have lots of plugins and each has it's own license at the top and they can be a bit on the long side. I am trying to minifiy and compress everything to get the smallest sizes possible but these licenses can add quite a bit of KB. So I am wondering if I can just remove them or maybe just link to the file instead since I understand ...

cross-window javascript events

I am launching a popup window with window.open(...) and I pass an elementId to the new popup window. Then during startup of the popup window I find the element in the opener window that matches the elementId passed to the popup. Then the popup subscribes to events on that element using jQuery.bind(...). Then from inside the opener win...

How do I get the div background to change when I mouse over a link - using jQuery?

I have a background image on a div and I would like to change its position from center bottom to center top when I mouse over the link which is in the div. I don't speak jQuery very well, I am kind of like the American in France, knowing little more than parlez vous, but here goes. Here is the html: <div class="video-link"> <a href="...

jQuery select table cells with specific header

I have a table with a "header" that user regular tr tags (not th). I need to find header "Col2" and then to each cell under Col2 add an anchor. I can do $("td:contains('Col2')) to find the header, but the data rows could also have "Col2". How would I search just the first row and then loop through the row cells? <table> <tr> <t...

When should we not create a jquery plugin?

When should I be creating a plugin and when not? Is it better to create a plugin and stuff everything (Data, Logic, View) within a plugin and use it like a black box or to separate Data, Logic and View ? ...

JQuery Auto-Complete With TextChanged / OnBlur PostBack

I'm having a pretty nasty problem with an auto-completing textbox. I want to initiate an asynchronous PostBack whenever a user selects an item from the auto-completed field and retain the value of the item, rather than the text inputted. This works perfectly when enter is pressed rather than a mouse click. An example of my issue: Someo...

Using jQuery to show/hide a div and then show/hide a div within that div

I have a series of links nested within a div. When one of those links is clicked, I'd like to hide the div with the link that was clicked and show another div. Then, if a link is clicked within that div, I'd like to change the div to yet another div. The html looks like this: <div id="main"> <div class="item"><a href="">Link to di...

slide() gives me error - jQuery

Hello, Why does this slide() gives the error $(this).hide("slide", { direction: "down" }, 1000); Error: Message: Object doesn't support this property or method Thanks Jean ...

rich text editor tab straight to textarea

Hi all, I have been using a couple of rich text/wysiwyg editors in one of my project (tinyMCE and markitup). I am currently running the latest version of markitup and its great, however it makes the mouse a must have in form navigation due to not being able to tab from the input above into the actual textarea, it just starts tabbing al...

Jquery chaining selector question

Hi, I have a table that is generated dynamically. And a click event on a button in one of the rows. I need to get the values of the labels with classes 'label1' and 'label2' in the row that the button is clicked. here is example html: <table> <tbody> <tr> <td><label class="label1">test row 1 - label 1</label></td> ...

Upgrade jQuery plugins to latest version

Hello everybody. I have quick question about jQuery plugins, hope somebody out there has some advice. I'm working with a jQuery plugin that has been working as expected, but in the last couple of days we upgraded from jQuery 1.1.4 to 1.4.2. After a lot of debugging, I was able to realize that in the old plugin, selectors are written as ...

modal windows over homepage instead of loading new page

new to jquery, and going for some mighty challenging things right off the bat. i'm creating a portfolio website where the homepage contains images as links. when the user clicks on the links, instead of load to a new page, i would simply like a transparent overlay to occur, so that you can still see the content of the new page laid ove...

Possible to disable jQuery for IE6?

I've tried to be sneaky and set a var in an IE6 conditional comment; then use an if (is IE6) { do nothing } else { do these effects }; to no avail. It was ignoring my calls to show/hide. I saw a few things where IE6 sucks with show/hide, so I tried adding hide/show classes to no avail as well. Any help would be greatly appreciated and ...

Can't get jQuery Ajax to parse JSON webservice result

I have validated the JSON response from my C# Webmethod, so I don't believe that's the problem. Am trying to parse the result using simple jQuery $.ajax, but for whatever reason I can't get the method to correctly fire and parse the result, also incidentally can't seem to get the function to fire the result. Are their any limits on the...