jquery

can jquery manipulate the global css definition of the document?

i'm trying to make a checkbox that will hide a specific css class when clicked, but i also want this effect to apply to all future objects that get that specific class. for example: i have 2 divs: divA is of class abc divB has no class i want the checkbox to hide all divs of class abc, this is easy, using $(".abc").hide(). but the pr...

jqModal/JQuery problem, div not updating with new content?

I'm hoping someone can point a relative jQuery/jqModal newbie in the right direction for debugging this error. I'm loading an html fragment into a div and then use jqModal to display that div as a modal dialog. The problem is that the div is displayed but not with my updated html. I'm showing my jqModal dialog in the response from a jq...

Changing a form input to the current time [jquery]

I have a form with an input that contains the date in the form: 12:00:59 am, 25 December 2010 The most likely time I'd want to change this to is the current time. Is it possible to have a button or link next to the input field that when clicked jquery would update the time to the current time. (I'm already using jquery for something e...

Got a scrollable div, draggables still get dropped on hidden elements?

ok i've got a scrollable div, but when i drag my draggable outside of that overflowed div and try and drop it on a different drop zone. it gets dropped onto the hidden elements underneath the drop zone i want it to get applied to. is there any to give the drop that i can see "priority" ? ...

How Can I strip HTML from Text in .NET?

I have an asp.net web page that has a TinyMCE box. Users can format text and send the HTML to be stored in a database. On the server, I would like to take strip the html from the text so I can store only the text in a Full Text indexed column for searching. It's a breeze to strip the html on the client using jQuery's text() function, ...

JQuery Ajax Post results in 500 Internal Server Error

I am trying to perform this AJAX post but for some reason I am getting a server 500 error. I can see it hit break points in the controller. So the problem seems to be on the callback. Anyone? Thanks! $.ajax({ type: "POST", url: "InlineNotes/Note.ashx?id=" + noteid, data: "{}", dataType: "json", success: function(data) ...

Using the jQuery Validation plugin, how can I display the validation errors in my own span tag?

Currently the jQuery Validation plugin is displaying an error by creating its own label tag, using the class error. Is it possible for me to place a tag on the screen, and if there is an error have the error message injected into that tag? ...

Centering a JQuery Dialog Box

I have a JQuery dialog box that is set to position: 'center' Now I run a database query and return a long list of records, and each record has an "edit" button. If I scroll down the page and click the edit button for the record jquery pops open my dialog and centers the dialog based on the scroll position, but it also reset the page ...

How to programmatically page to next/prev page in jqGrid

Is there a jqGrid method that will skip to the next/prev page of rows. I was trying to programmatically click the button itself with jQuery, but didn't succeed yet ...

How can I combine the jQuery datepicker plugin and hover event?

I am not aware of an easy way to perform a function when hovering over a day with the jQuery UI datepicker so I am trying to do a work around by assigning a class and then calling a hover function: $('.someDate').hover(function() { alert(this) } ); This does not work how I would like it though because it returns [object HTML TableCell...

jQuery lightbox plugin change apperance of my wordpress site

I just installed the jQuery Lightbox Plugin on my wordpress blog. But that totally changed the apperance of my menubar. Before, it was about 40-50 px high and contained my menu links, but after the installation the menubar - that is, the background of the menubar - is now only ~5-10 px high. The links are still the same height and change...

Finding current page number in jqGrid

How can I find the current page number in jqGrid (using jQuery of course). Also how do I know how many pages are there in total. ...

Useful JavaScript libraries? including JQuery and beyond...

This question is no longer just about UI Being rather new to the whole JavaScript/JQuery/JQueryUI lark, I have just discovered the Yahoo User Interface Library. I'm sure there are other free and fully functional JavaScript libraries out on the web that I should be aware of. Around UI design, or really, anything. ...

Can I make a URL load a tab for me in jquery?

Below is the complete code of the jquery AJAX tab script I am working on. I need some help. This script has 3 tabs, each load a page using AJAX into a DIV. I need to be able to have 1 of the 3 pages "selected" and loaded on page load. If the url was www.site.com/page.php it should load the first tab's contents and have that tab se...

In jQuery, how to load ajax content after a specified element

I have the following HTML: <div id="mydiv"> </div> I would like to load content using jQuery so it appears after my DIV. I've tried this: $("#mydiv").load("/path/to/content.html"); However, this ends up with this result: <div id="mydiv"> <p>content from file</p> </div> How do I get this result? <div id="mydiv"> </div> <p>conte...

Can I make this into a javascript function?

$("#tab1").click(function(){ loadTab(1); $('div.HOMEtabdiv ul.HOMEtabs a').removeClass('selected'); $(this).addClass('selected'); }); Would it be possible to make the code above into a function where I could just call it like tab(TAB NUMBER HERE); and have it add/remove the correct styles/divs? The whole code f...

Loading external post/content to a specific div (jquery, wordpress)

Hi, I've been playing around with the grid-a-licious theme, and found some really cool sites similar to the theme: ex. http://home.visuaal.com/ The question is: any idea on how the post contents were loaded similar to the sample above? When the user clicks on each box, the specific div expands and displays/loads the entire post. When t...

Next version of jQuery

Does anyone know what's going to be in the next version of jquery (1.3.3 and 1.4) and if there's a place where we can follow its development? ...

To make an action based on the link location by jQuery

How can you retrieve the value of the rel attribute of a given link and pass it to the handler? I have a list of links such that Link list <div id='one_answer'>Answer1 <a href="$" class="delete_answer" rel='Answer1'>delete</a> </div> <div id='one_answer'>Answer2 <a href="$" class="delete_answer" rel='Answer2'>delete</a> </div>...

jQuery UI Tabs - Available fx options

I haven't been able to find any real documentation on this, so I'm wondering if anyone knows all of the available fx options for jQuery UI Tabs? The only ones I've seen so far are: opacity: "toggle"; height: "toggle"; A crossfade would be nice, though I don't think I've seen this done with jQuery UI Tabs yet. Also, I can't even fin...