jquery

Jquery load DIV inside another DIV at same page

HTML: <div class="someclass" rel="first">text 1</div> <div class="someclass" rel="second">text 2</div></div></div> <div class="info_ly">here is some text</div> <div class="first" > the first DIV </div> <div class="second" > the second DIV </div> CSS: .first{ display:none} .second{ display:none} Jquery: $(".someclass").click(functi...

find style attribute using jquery

HI, I want to find all input elements in a HTML string that has display not set to none. I have tried with JQuery and it doesn't seem to like looking for in the style attribute. Any ideas? I have the following HTML: <SPAN style="DISPLAY: none">4B holdings AG</SPAN><SPAN dropdownCell="onShowInvestorDropDown(ele, currentText)"></SPAN><INP...

Correct jquery lib for supporting drag and drop of elements?

Hi, I'm new to jquery development. I need to get drag and drop support for some elements, and I found this library provides what I need: http://jqueryui.com/ is this a good choice? I'm not sure if there are any technical pitfalls, a better library to use for this, etc. The minified js file (with all features) is pretty large ~200kb, I...

jQuery Tools 1.1.2, tabs plugin and History plugin

Hi there I have a question regarding the history plugin and jQuery Tools v. 1.1.2. I currently use the tabs plugin, and would very much like to have some kind of history-functionality. I need this so that I can link directly to one of my tabs. I do only work with version 1.1.2 of jQuery Tools, because the 1.2.0 version conflicts with so...

jQuery plugin to post updates on Twitter?

Is there a plugin for jQuery to post a update on Twitter that uses Twitter OAuth? And if possible I would like a Hello World example. ...

Getting the height of a div after setting it to auto in IE

Hi, I'm writing some JavaScript that changes the size of some content. To do this I need to know the size of a div within my content. If I have the following html: <div id="wrapper"> ... other stuff ... <div id="inner" style="height:400px">Some text in here</div> ... other stuff ... </div> And the following JavaScript: $(...

jquery and codeigniter

Hello people, and sorry if that question is stupid I'm trying to use javascript with codeigniter and I can't get it right what I'm actually doing is placing jQuery inside the views folder and call it from one of my view files like that: <script type="text/javascript" src="jquery.js"></script> I get no response no errors it just doe...

Jquery ajax call with '+' sign.

Hi, I'm doing this: $.ajax({ type: "POST", url: baseURL+"sys/formTipi_azioni",data:"az_tipo="+azione, beforeSend: function(){$("#form").html('<p><img src="'+baseURL+'lib/img/ajax-loader.gif" width="16" height="16" alt="loading" /><p>');}, success: function(html){$("#form").html(html);} }); there is a case when azione ...

how to delete element created with jquery ?!

hi , i have write this block of code in jquery to create three element after some events $('body').append( tmp= $('<div id="tmp"></div>') ); $('<div id="close" />').appendTo("#tmp"); $('<div id="box-results" />').appendTo('#tmp'); this three elements are created normally and added to my DOM but i want to remove them with some fu...

Adding UL to jQuery UI Tabs

It seems like whenever I try to add a UL inside of the containers when using jQuery UI - Tabs, it breaks the javascript. Is there a way I can use a UL inside of these containers that I am missing? Thanks <div id="tabs"> <div id="fragment-1"> <h4>Pre-Press Requirements</h4> <span class="peesinal">&#149; S...

jQuery check link

1) We have a page index.html with blocks: <body> <div id="action1">One</div> <div id="action2">Two</div> <div id="action3">Three</div> </body> 2) CSS body div { color: blue; } body div.current { font-weight: bold; color: red; } 3) Other pages with links to index.html and some target: <a href="index.html#action1">Link to One</a><br...

AJAX Closures and targeting 'this'

In the code example below the success callback function logs 'input#04.update' four times rather than each individual input, which makes sense seeing how closures work but how would I go about targeting each individual input using this. <input type="text" name="" id="01" class="update"> <input type="text" name="" id="02" class="update"...

jQuery returning two elements for each one it finds?

I'll start by saying I'm fairly new to jQuery. For the most part, I've found it intuitive and powerful, but this one circumstance has me thoroughly stumped. In the following method, the call to .each() returns two elements for every one found. It iterates over a set of table rows given IDs starting with the word, "communication," and fo...

jquery get radiobuttonlist by name dynamically

I have two radiobuttonlist and one checkboxlist on the page. Ideally based on the checkbox selected value, I want to enable/disable corresponding radibuttonlist with jquery function. But some how $("input[name*=" + columnName + "]") always return null. It can not find the radiobuttonlist by its name? $(function() { functio...

Apply CSS based on text length of <a href="">

If a href is longer than 40 chars I want apply a class to the previous LI element. How can I do this in jQeury? ...

Two questions about jQuery UI Dialog

Hi, I have two questions about jQuery UI Dialog: (1) How can I open a big dialog with topleft corner at my mouseclick point (and if the point is very near the right-bottom corner of my viewport, the dialog will be partly outside the viewport)? I know I can set position for the dialog, but it seems the dialog always overrides my position...

content show problem

I still fight with some jquery scripts:) With my first problem Jens Fahnenbruck helped me here: http://stackoverflow.com/questions/3021476/problem-with-hide-show-in-jquery thanks:) Now i added another fancy thing - jquery tabs Made a few modifications and it works like this: When you click on tab and it loads different main image fo...

jQuery jump to id (no animation)

Script adds id for block, gives: <div id="some">Text</div> After that page should jump for that id, without animation, just like we have target #some on current page link. How to do this? Thanks. ...

Does somebody know a form select skinning plugin

I need a jQuery plugin for skinning the form select tag. Currently I'm using the Uniform plugin but it degrades on IE6. Any help is appreciated!!! ...

ASP.NET Javascript Error :: sys.webforms.pagerequestmanagerservererrorexception

I have an ASP.NET site that uses JQuery and ASP.NET UpdatePanel and ScriptManager. On one page in particular, I get a javascript error: sys.webforms.pagerequestmanagerservererrorexception: Index and length must refer to a location within the string. Parameter name:length ScriptResourse.axd Code: 0 Edit: This error does not occur i...