I'm writing a chat app, and I'd like to add some simple functionality where users use markup to affect text formatting, like bold or italics. I'm envisioning this would be like how it is done on Google Talk or StackOverflow. Does JQuery have any plugins to do this?
...
In all my years of .NET programming I have not run across a bug as weird as this one. I discovered the problem because some elements on the page were getting double-bound by jQuery. After some (ridiculous) debugging, I finally discovered that once the view is completely done rendering itself and all its children partial views, it goes ba...
I want to get, via ajax, a collection of data objects and parse them into JS data.
Currently I have 2 choices:
- Server returns valid javascript code and then I eval it.
- Server returns JSON object and then I eval the json object
What is the fastest of these in Firefox? (I only care about the "parsing" performance, not server or da...
I know a good bit of JS and I'm familiar with jQuery, and I'm trying to create an "endless" slideshow (like the one on http://thisismedium.com/), where the images scroll -- one right behind the other -- and when it reaches the end it loops.
I don't really know how to start, so I was hoping someone could point me in the right direction....
Hi,
I have to pass string entered in the input text to server method calling through jquery ajax. But its not going through. can please somebody tell me what i m doing wrong here. Below is the code:
$.ajaxSetup({ cache: false timeout: 1000000}); function concatObject(obj) { strArray = []; //new Array for (prop in obj) { ...
I have an AJAX chat room module in Drupal and I am trying to insert BBCode stlye tex tags to the submit box when the user clicks Insert Tex. I managed to get the following code to work the first time but afterwards when I click Insert Tex it inserts the tex tags triple times.
$('#edit-chatroom-message-entry-submit').click(function (e) {...
This site has a script that works in all browsers I tested but Chrome, which I think is strange because it is usually IE that acts up. What should happen is that there is a dynamic tour through the store, in Chrome only the picture is seen, it seems like none of the script triggered.
The error console says
Uncaught TypeError: Cannot ca...
I use jquery pagination plugin for paging... If there is one pagination plugin there is no problem for me... But if there is two one seems to work but the other doesn't seem too... Here is my code,
<div id="PagerUp" class="pager">
</div><br /><br /><br />
<div id="ResultsDiv">
</div>
<div id="PagerDown" class="pager">
</div>
An...
I am returning a simple javascriptResult that unhides a div. When I do this, other click events that post ajax will now post twice when clicked. What could be causing this?
...
Why am I getting "too much recursion" error when I do the following?
function sendTheNames() {
alert("start submitting names..");
return function (array) {
var name = $(array.shift()).text();
$.ajax({
url: "test.jsp?name=" + name,
complete: function () {
...
I have started a new web application and have decided to use jquery as my primary javascript library... But still i want to get some pros and cons tips from SO users who used jquery ...
...
Int he below code a textarea is added 6 times and initially the textarea conatins the text Enter Text.
My question is, if the user enters data in first and third textareas.
How to give alert to the user saying that the "textareas are empty" this is a general message but focus on the 2nd textarea and when the user enters data in 2nd the ...
Hi All,
I am developing a small application in asp.net (writing in c#).
In my application I am using jquery to perform asynchronous call to the server.
I have an http handler that listens in to the requests and does what it needs to do.
Problems start when in the handler I need to access information stored in the page , from where the...
Hi, I`m having the following error . Why am I having this error and how can I solve it?
$("SelectProject").dialog is not a function
http://localhost:1419/Customer
Line 57
$("#SelectProject").dialog is not a function
http://localhost:1419/Customer
Line 69
My codes are as follows:
$(document).ready(function() {
$(...
Jeditable is inserting extra spaces around the actual text in a text area for me when I click to edit some text. How do I trim this or actually fix this?
...
How can i fade rotate between two images using jQuery?
Say for example.
<img src="image01.jpg" />
<img src="image02.jpg" />
I like the images to fade in/out between for say 2seconds each.
Thanks! Much appreciated. :)
...
I have a table that I use jEditable with.
Saving to the server works, but the callback for refreshing my table element (that I just edited and saved to the server) does not work.
/* Apply the jEditable handlers to the table */
$('#example tbody td').editable( '<%= url_for :controller => 'impact_matrix', :action => 'post', :scenario...
I've been using JQuery hotkeys to make an internal tool for a team of developers. It'd be nice for them to be able to navigate through the entire page using only the keyboard, but I've been having problems when they end up in input fields. Is there a way to bind a hotkey and make it work even inside an input element?
I got my jQuery-h...
Hi,
I'm using jQuery to toggle the visibility of a <div> using the jQuery toggle method. The toggle is fired on the mouseenter and mouseleave event, thus creating the effect of the div to fold out on mouseenter and fold in on mouseleave. Problem is, if the user drags the mouse over the <div> a few times and then leaves the <div>, the di...
Hello everyone,
how can i get order number of some element by javascript/jquery?
<ul>
<li>Anton</li>
<li class="abc">Victor</li>
<li class="abc">Simon</li>
<li>Adam</li>
<li>Peter</li>
<li class="abc">Tom</li>
</ul>
There is 3xli with abc class. Now I need to get order(sequence) number of Simon li.
Thanks in advance
...