jquery

Does anyone have an example of events (as a function) for FullCalendar

I want to use events (as a function) in my calendar. The example listed refers to myxmlfeed.php and using xml. I have tried adding some xml but I return a js error. has anybody used FullCalendar in this way? http://arshaw.com/fullcalendar/docs/event_data/events_function/ ...

JQuery tabcontrol: load gridview

I got a JQuery/CSS tabcontrol, which currently handle 4 tabs, containing gridviews. I'd like the gridview to be loaded, when you hit the tabs. This reduces the loading time of the page, as some of the gridview's sprocs take some time. The gridviews need to load once, they don't have to be updated each time you open the specific tab. JQu...

jQuery - Opening links within tabs

Hi all, At present I have some jQuery tabs and these tabs contain links. Unfortunately on following one of the links, the new page opens as if you were following any normal link i.e. not within the tab which is want I would want to happen. Have tried following this section but to no avail: http://jqueryui.com/demos/tabs/#...open_links_...

How to get the dimensions of the scroll bars ?

I have an HTML table that contains lots of rows and columns. Therefore, it has vertical and horizontal scroll bars. How can I get the dimensions in pixels of these scroll bars in Javascript/jQuerys ? ...

A quick question on data returned by jquery.ajax() call (EDITED)

EDIT: The original problem was due a stupid syntax mistake somewhere else, whicj I fixed. I have a new problem though, as described below I have the following jquery.ajax call: $.ajax({ type: 'GET', url: servicesUrl + "/" + ID + "/tasks", dataType: "xml", success : createTaskListTable }); The createTaskListTable funct...

Jquery get each div's sub child divs and grab info into an array

I have a some html that looks like this <div id="main"> <div id="sub_main_1" class="sub_main"> <input type="text" class="sub_name_first" /><br /> <input type="text" class="sub_name_second" /><br /> </div> <div id="sub_main_2" class="sub_main"> <input type="text" class="sub_name_first" /><br /> <input type="...

regex jquery remove all double spaces

Hi I have this code, I want it to remove all the double spaces from a text area, but it will only remove the first occurrence each time. $(document).ready(function(){ $("#article").blur(function(){ ///alert($(this).val()); $(this).val($(this).val().replace(/\s\s+/, ' ')); }); }); I've also tried removeAll(), but it won't ...

Select Options from JSON

I am a newb when it comes to JSON and am wanting to try to write a JSON select option autofiller, but do not know where to start. The way my script works currently is using PHP and MySQL to fill the first set of select options with a distinct list from a DB table and then upon a user selection the next set of select options are autofil...

$.ajax - dataType

what is the difference between contentType: "application/json; charset=utf-8", dataType: "json", vs. contentType: "application/json", dataType: "text", ...

how to display the grid in div tag..

<script type="text/javascript"> var showGrid = function() { $("#Grid1").load('/friends/names/fried'); }; </script> <div> <%= Html.Trirand().JQGrid(Model.OrdersGrid, "JqGrid1")%> </div> <div> </div> /////// i need to dispaly the Grid1 here? can anyone tell me? thanks ...

jQuery AJAX form submission not working

I'm trying to submit a form through AJAX instead of using the normal POST submission. The HTML is just a standard form with method="post" and my jQuery code is as follows: jQuery.noConflict(); jQuery(document).ready( function($) { var $form = $('#default_contact'); $form.submit( function() { $.ajax({ type: '...

Problem with onblur="submit" when using TinyMCE with JEditable

I'm trying to use TinyMCE together with JEditable, as per SamSpeak's blog post. I'm running into a small but annoying problem. I set onblur="submit" in JEditable's settings. The behavior I expect (and want) is that as soon as the user clicks away from the editor, the editor submits the new data (in my case, to a function). The problem ...

What is the best unobtrusive and lightweight jquery solution to make tab?

Which is the best unobtrusive and lightweight jquery solution to make tab? Although Jquery similar to jquery ui. jquery ui tab is good but it's overkill fro for just tab. we will have to add jquery ui core.js, jquery ui tab.js then a little code snippet. I need lightweight solution. using this type HTML. and jquery code should be in no....

1-letter names for variables and functions in jQuery, JavaScript

Hi there, I was looking at Twitter's static scripts and noticed that all variables and functions where just 1 character long, why and how do they do this? Has it something to do with performance? If so, why don't they give all elements on their website these kind of short names, maybe 2 characters long instead of 1 to avoid any collisio...

How to programatically select all text inside a TinyMCE editor

I'm looking for a way to programatically select all the content inside a TinyMCE editor instance. The reason I need this is that I'd like it if all the text inside the editor was selected, as soon as someone clicks on it (I'm using TinyMCE in conjunction with JEditable, by the way). Thanks, Edan ...

Validating url with jQuery without the validate-plugin?

Hello I need to validate a url in variable with jQUery, but can't use validate-plugin. Is there a simple way to do this? Martti Laine ...

need to align part of list item to right of li - using CSS3 Jquery column-layout

Using this jquery script to acheive CSS3 3-columns, to display a list of members alphabetically. I need it to display this way, which is does: A D B E C F Here is what I am using http://www.csscripting.com/css-multi-column/example6.php? (using this js file http://www.csscripting.com/js/v1.0beta/css3-multi-column.js) To the rig...

dynamically added HTML elements won't be affected by plugins !

there are plugins such as flowplayer overlay that asks to put a "rel" attribute to the HTML element to make it trigger certain events ... the problem is , when I create dynamically elements that have that rel attribute ,, they won't trigger it ... what is the solution for this !? ...

jQuery calling a predefined function

I have a big function defined and executed on an element click. Is there a way to execute again that "big" function later, call it somehow, without writing it again? $('#element').click(function(big){ some big function ... ... }); $('#another_element').click(function(){ this should execute the previous "big" function }...

Problem with jquery-droppable in Chrome

I have a simple application that users jquery-ui's draggable and droppable. In Firefox, it works perfectly. In Chrome, however, I'm having problems. This is the code: $(".cell").droppable({ drop: function(event, ui) { var originalTarget = event.originalTarget; ... } }); In Chrome the 'event' obj...