jquery

Need Help With jQuery Hidden Div

I have a jquery code where when I click on a peice of text another div appears above it, but the div just go's on top of the original div, but what i want is for the new div to push the orignal div down with it. This is the code HTML: <div id="social">Content to Show</div> <div id="joinus"> <center><a id="activator" href="#">...

jQuery.validate.js and asp.net master pages

I have jQuery in various files, and recently I have needed to change items in the master page. This has caused various jaavscript includes to stop working. Stackoverflow are suggesting great ideas to solve the issue regarding the get by ID selector. $("#ctl00_ContentMainPane_eliteUser").html However I have a problem where we have use...

jQuery Plugin for HTML Editor with Syntax Coloring

I'm looking for a jQuery Plugin that will display a textarea for HTML authoring & editing. The things I'm looking for: Must support authoring the HTML, not a WYSIWYG representation Must color the HTML as you type as any rich-client IDE would. Should be jQuery, but native JS would be OK too. I have played with MarkItUp which gets...

Making Javascript-search-function fast

Hello everyone, I made a little search-function with javascript to look for a string in a table: There are "tr"s that simply contain a number as an id and there are "tr"s that contain "childNode+idOfParentNode" as an id (e.g.: <tr id="1"> ... </tr> <tr id="childNode1"> ... </tr> Now I want to look through the table, see if a giving s...

jquery plugin to edit table cells in place and save to file (also select diff kinds of inputs)

I am generating a html table from a mysql query (generates a new flat html page) Is there a plugin that i can use that will let me click/edit individual cells and save that data and refresh the content (important, cause i scrape the page and write to file later) but i also need to be able to select individual input types, some are simpl...

address validation in java script

Hi Iam new to j query can any one let me know if there is a way to declare a jQuery.validator.addMethod function and write the java script inside this jquery validator for validating address where it should not take "PO BOX", "PO BIN", "BIN", "P.O BOX", "P.O BIN", "P.O", "PO" the above values can be in any case spaces before, in bet...

how to display hyperlinks in jqGrid

I'm new to jQGrid. Is it possible to display hyperlinks in the columns of jqGrid? In our UI, we need to display Edit and Delete links next to each row of the table. is it possible with jqGrid? ...

javascript validation for address

Hi Iam new to j query can any one let me know if there is a way to declare a jQuery.validator.addMethod function and write the java script inside this jquery validator for validating address where it should not take "PO BOX", "PO BIN", "BIN", "P.O BOX", "P.O BIN", "P.O", "PO" the above values can be in any case spaces before, in betwe...

jQuery each() and "on success"?

I'm using $().each() to loop through some items. I want to make sure that the action that follows after this piece of script is only executed when each() has completed. Example: $('something').each(function() { // do stuff to items }); // do something to one of these items $('item').etc It seems to work at this point, because it's...

jQuery 1.2.6 caching

Hi, I'm doing quite a bit of DOM manipulation in my app, adding new nodes, and I've found that the children() function can get out of sync. I've got a tbody element with two rows, I use the children() function on this to do some manipulation with these rows. I then add two more rows to the tbody, when I use the children function again t...

jQuery - widest item on page

How can I find the widest item (width set in css or as an attribute) on a web page using jQuery? ...

JQuery IE8 Variable Undefined Error

I am trying to read the value of the FlashVars parameter off of a Flash .swf file that's being embedded onto a page using swfobject. I can't change anything about how the Flash is being put on the page so I'm trying to manipulate it with JQuery. In Firefox the following selector works: $flashvars1 = $(".homepagecolumn1 embed").attr("fla...

traversing classes using Jquery

Hi, I'm brand new at working with Jquery, this is actually my first real project with it, and I'm having a little bit of trouble. Here is my HTML: Edit: alright, I fleshed out the code, and included where the function is being called. <tr><th scope="row"><?php echo $box_name[$i] ?></th> <td> <div class="parent_div"> <d...

Why is Jquery slower in IE?

I have a complex ASP.NET page that makes heavy usage of jquery for DOM manipulation (no AJAX). The page is faster in Mozilla based browsers (Firefox) compared to IE 7 or 8. Are there some functions that are optimized for FF? ...

JQuery - ref div and href id in div

Hi, I want to be able to know when someone clicks a link and then reference a var within the link that I assign as a ID. For example given a link like this: <a class="TrackClick" id="SomeUnknownVar" href="javascript:void(0)" onClick="window.open('http://someurl','','width=650,height=400,scrollbars=yes,left=150,top=100,screenX=150,scree...

Javascript sending key codes to a <textarea> element

Hi, I can't figure out how to trigger a keydown event on a textarea element, e.g. imagine i have two textarea elements and when i type something in the first one, I want the second box to show the typing as well, but for a certain reason I have to do it via events. This is what I tried and it doesn't work: <script language="javascript"...

HOWTO: Attach or update a timestamp querystring parameter

I want to attach a timestamp to my querystring in order to ensure that the browser bypasses its cache when I refresh the page via javascript. I need to account for an existing querystring (which might already have a timestamp parameter in it) and for the hash tag (http://www.example.com/?ts=123456#example). I have written my own implem...

Changing the value of a Telerik RadEditor with Javascript/jQuery

I'm trying to manually clean the HTML of a Telerik RadEditor with Javascript but I can't seem to find the correct place to store the value so that it gets saved on post back. Here's the JS I have: $(function () { jQuery.fixHash = function ($html) { // modify $html return $html; }; $("#adminEditi...

Are jQuery's :first and :eq(0) selectors functionally equivalent?

I'm not sure whether to use :first or :eq(0) in a selector. I'm pretty sure that they'll always return the same object, but is one speedier than the other? I'm sure someone here must have benchmarked these selectors before and I'm not really sure the best way to test if one is faster. Update: here's the bench I ran: /* start bench */...

Resizing iFrame with jQuery UI

I have this code and it works fine: Head <script> $(document).ready(function() { $("#test").resizable({minHeight: 50, minWidth: 50}); }); </script> Body <div id="test" style="border: .1em solid black;"> </div> However when I change my "div" into "iframe" I can't resize it anymore. Body <iframe id="test" style="border: ....