jquery

Programming a Codeigniter Networking Site From Scratch

I have made a social networking site from scratch, but I am looking to develop a site much faster. Needs: 1. eCommerce 2. Profiles 3. Information "nodes" 4. Control over Ajax functions for all of this, maybe a simple API 5. Google Maps 6. Third party posting formats and content processing and display. User must be able to post nodes ...

Add a surrounding div with jQuery?

Bit tricky to communicate but hope this makes sense. I have 8 div containers and need to wrap all the even numbers with an extra div using Jquery, the desired effect like so, <div id="wrapper"> <div id="content"> </div></div> <div id="content"> </div> <div id="wrapper"> <div id="content"> </div></div> ...

jQuery Marquee - like Pandora

I'm trying to make a marquee -- via jQuery, that is like Pandora's. I want it to make it only start scrolling if 1) The width of the element would be cut off 2) If you're hovering over the element. It should revert back to normal when you mouseoff it. Here is what I have so far, which almost works: var h3 = $('h3:first'), h3Width ...

Can I have a jquery AJAX image Picker to use it as a RTE plugin

now i am developing a django-based blogging system. and am stuck when trying to integrate textarea with a fully-featured Rich Text Editor, tiny-MCE and CKEditor implemented their image browser (Image Manager) plugin using PHP (with a complex-not-documented source code). and when i was googling i found that there was a good free example...

When validating a form via jquery, ensure field contains at least one letter...

So, I suck terribly at regex and javascript. As such, when I realized I needed to validate a form field via jquery to ensure that at least one alpha character was used, I decided to ask you fine folks for some help. I want to allow user to use apostrophes, spaces, dashes, periods, underscores, and alphanumeric chars in this field. The...

I want to get all links that point to an image, using jQuery

Hello, I want to get all links that point to an image. Is there an easier way than the following? $("a[href$=.jpg],a[href$=.jpeg],a[href$=.png]"); Thanks Jean ...

how to select th with no colspan in IE

I am using this code to get all the tableheads which do not have colspan. It only works in firefox and chrome, but not in IE. What is the equivalent code for IE? thanks. $tableHeaders = $("thead th:not([colspan])", table); ...

jquery, unselect checkbox

hi, now i get value if i selected checkbox(id which was selected), but how get value when i unselected (id which was unselected)? For example I push on 1, and i get value 1. When I unselect 1, i get value 1. I hope you understand my problem. <script> $(document).ready(function() { $("input[type=checkbox]").change(function(event){ ...

Language recognition and automatic textbox direction switch

Hi everyone, Say I have a textbox in HTML using the following code: <input type="text" name="text" id="text" /> And my site is intended to be for right-to-left as well as left-to-right languages. That means that I have some textboxes that will be typed in a right-to-left language, but the email textbox, for example, will be left-to-r...

jquery tablesorter 2.0, resorting table after values change

I need to re-sort a table when the input elements in cells change in value. I've already created custom sorters for my data, which works wonderfully, but now I need to re-sort when data changes. $('#id').tablesorter(...) almost does what I need, but it seems to apply ANOTHER set of sorting on a given table, which leads to really weird b...

Unable to capture Ctrl+Alt+Arrow key event in jQuery

For some strange reasons I can't capture Ctrl+Alt+Arrow key combination inside textarea. Is it some sort of system hotkey that is getting swallowed by Windows? Ctrl+Alt+<Any Letter> and Ctrl+Alt+Shift+Arrow are getting captured fine. $(document).ready(function() { $("textarea").bind("keydown", function(event) { console.log(e...

jQuery making selection

I have a nested div like this <div id="one"> <div id="two"> id two goes here </div> <div id="three"> id three goes here </div> <div id="four"> id four goes here </div> </div> Now i want to handle click and doubleclick events on all divs except in div#four, like this $('#one').liv...

Update dropdown options, but keep selected

I have a dropdown list of companies. I also have some dropdown lists of contacts (primary_contact, sales_contact, insurance_contact) which all belong to class "contact". When the company changes, I update the list of available contacts using the following code: $('#company').change(function () { var company = $(this)[0].value....

How to resize a table cell using jquery?

I have a 2 cells table and I wanna make the first resizable with a grab hand using jQuery ...

SQL return if statement

I have thie function and need to know if im going about it the right way. What it does it looks up the last entry into the sql called "LastID" and if the return is the same as "postid" it returns false. function LastPost(div) should look up the last post. and UpDateSQL(div,LastID) checks the if condition else inputs into the database....

get numbers from html to jQuery

Hi, i have numbers (in html text): 1, 2, 3, 4, 5. And when i push on numbers i need get this numbers in jQuery. How this looks like? maybe somebody have sample? In php this is easy: echo $_GET['num']; <a href = "index.php?num=1">1</a> <a href = "index.php?num=2">2</a> But how this makes with jQuery? ...

$(this) in plugin options

I'm new to writing jQuery plugins, and I'm confused as to how to let users use $(this) in their options. As a simple (and redundant) example, say I wanted to let a user append their selection's text to an element they supply in their options, like so: $(function() { $('#stuff').appender({ 'placement' : this }); }); And the plugin c...

jeditable: additional buttons with "Ok" and "Cancel"

Hi all Is there a way I can add additional buttons with click event handlers to jeditable (jQuery plugin)? What I want to do is, when you click on some editable element and the input element with "Ok" and "Cancel" buttons show up, I would like to add another button with some text, clicking which should redirect the user to another URL. ...

Scrolling the window during a jQuery animation

When the user clicks a certain button at the bottom of the site I am working on, it expands into a comment form. If there is a lot of other content on the page, the comment form will expand below the fold and the user might not notice that it has appeared. I would like to scroll the page down as the comment form expands to draw the user...

fadeOut div after onClick event problem

Hi, this is my first time posting on here and have read alot of helpful stuff over the past few weeks since I found the site! So, my question is: I have the following code on my site and what im trying to do is... When an element (.btn-leavecomment) is clicked, a hidden div (#commenttype) is revealed via slideDown. This hidden div ...