jquery

using comet i-frame with jquery?

i havent found any good tutorial with code examples on how to use comet with jquery. found this link: http://www.zeitoun.net/articles/comet_and_php/start but they are using prototype. and i found a comet plugin for jquery on the jquery website but there is no documentation and i cant figure out how to use it. are there any good tutori...

Limit/Count Characters in CKEditor w/ Jquery

I am using CKEditor for my wysiwyg editor and I need to monitor and limit the character count as they are typing I have a jquery script that works fine for a normal TextArea <script type ="text/javascript" language="javascript"> function limitChars(textid, limit, infodiv) { var text = $('.' + textid).val(); var textl...

Save data from AJAX request in variable (jQuery)

How can i get the data from a AJAX request saved in a variable with jQuery? Thanks in advance ...

Most Common JQuery ModalBox Plugin

(Before I start: the intent of this question is not to start flamewars or put down anyone's favorite tool.) I am trying to determine the most commonly used and/or best supported ModalBox plugin. There seem to be dozens of them, and since I have no way to determine their popularity or quality, the best thing to do seems to be to ask here...

Why does this if/else not work in jquery for me?

I have the following that fires off when a checkbox is changed. $(document).ready(function() { $("#reviewed").change(function(){ if ($('#reviewed:checked').val() !== null) { $.ajax({ url: "cabinet_reviewed.php?reviewed=yes", cache: false, success: function(html){ ...

Detect a page submit in jQuery

I am currently working with reading data from a USB card reader and it sends a page submit command along with the card track data. Is there a way for me to detect a page submit command and can I programmatically disable the submit command? ...

what comet technique is this demo using?

what they do on this demo is exactly what i wanna do. http://www.lightstreamer.com/demo/RoundTripDemo/ i wonder what comet technique they are using. it cant be iframe cause on Firefox i can open two tabs with same link. with iframe u cant do that. and it cant be long polling with ajax cause i didnt see it polled anything with firebug....

jQuery slideDown vs. jQuery UI .show('slide')

I'm trying to utilize jQuery's built in effect functionality to create a "drawer" that slides out from behind a navigation bar, pushing the content below it out of the way. If I use $('#drawer').slideDown(), the content is pushed out of the way, but the content does not actually "slide down." It's more of a wipe to reveal the content. ...

JQuery: How to create a lighbox to open up a webpage

Using JQuery, how do I create a lightbox effect but instead of display a single photo - I want to display an HTML document within the lightbox. Essentially, if you have every used Facebook - they do this effect all the time. Instead of going to a new webpage to send a message, it just pops up the message HTML form inline on the current ...

How does one do async ajax calls using cherrypy?

I'm using cherrypy's standalone server (cherrypy.quickstart()) and sqlite3 for a database. I was wondering how one would do ajax/jquery asynchronous calls to the database while using cherrypy? ...

Angled elements in a jQuery accordion list?

I'd like to use something like jQuery's accordion menu, but have the triggered elements be angled. I'm guessing this isn't possible, but thought I'd see if anyone has tried it before. A few less than ideal ideas: Go old-school and work with image maps. I haven't used an image map in years though, so that'd take a bit of testing to see...

Jquery/CSS - Stack images by "rel"

Hey guys, I am trying to reformat and style some data (basic HTML) that is being output by a specific piece of software. Each of the items (of data) has an image attached to it. Certain images are part of a series and are directly related to eachother. What I would like to do is, using Jquery/CSS, have the images that are part of a s...

jquery (js) string replace problem

hi, i want to highlight all digits in string, i try to cover matched digits with tag but cann't! Here is my code regexp = /[1-9]/g; //$("#task").val() it's my input title = $("#task").val().replace(regexp,'<span class="int">$1</span>'); $1 - i found in google some samples, where $1 must be first matched value, but it's dosn't work! ...

Is it possible to remove the expand/collapse button from the jQGrid header?

Hi there, I'm using the jQGrid available at http://www.trirand.com/jqgrid/jqgrid.html and I can't find a way to disable its expand/collapse button on the top right of the header. Anyone know if there's an option to do that? I'd linke to remove the thing circled in red: ...

jquery comet long polling and streaming tutorials?

im so tired of not finding good tutorials on long polling/streaming comet techniques with jquery. what is wrong with the comet community. a lot of people wanna use this but there are no good tutorials about it. why so slow? ...

JQuery: Can I use a Dialog to open up an external web page?

Can I use a JQuery Dialog to open up an external web page, and if so - how? Essentially, I want to replicate the abilities of LightWindow using JQuery (LightWindow is based on scriptalous). www.stickmanlabs.com/lightwindow/index.html Ideally, I want to use something that is apart of the JQuery core. If it need to be a JQuery plug-in, ...

calling the default event handler from my custom click handler?

Hi everyone, I am using jquery to implement event delegation on my page. I define a click handler for the top level element, but only want to do something "custom" if the click fell on an element of certain class: $("#myDivWithManyLinks").click(function(e){ var target = $(e.target); if (target.hasClass('myClass123') { /...

Checking if a DIV is currently shown on the page

I'm learning jQuery and this is my code so far: <script type="text/javascript"> $(document).ready(function(){ $('#login').click(function(){ $('#login-box').fadeIn('fast'); }); }); </script> It works, when you click the login button the DIV called login-box shows on the page. What I wanted to do was if the login button ...

jquery validate plugin method/css issue..need help.

Hi Everyone! I have this simple form that is having some CSS issues when the field is invalid. Check this out: Simple Form with jQuery and Validate plugin So all the fields are required. If you just hit the submit button the error fields get a nice yellow background to alert you (along with the invalid text). The issue is the option...

How can I legally use LGPL javascript in a commercial web site?

My understanding is that with LGPL, can I link and use an LGPL library for commercial use, as long as I don't copy code? That make sense for programs you compile to binary, but what about JavaScript? I want to use the Greybox plugin for JQuery in my commercial website but don't know how to do that legally since it's LGPL. ...