jquery

Checkbox values to textfield using JQuery & Greasemonkey

Hi all, I have a setup looking like this: <div id="problem"> <table id="incident"> <tr> <td><input type="checkbox" value="value1"></td><td>value1</td> <td><input type="checkbox" value="value2"></td><td>value2</td> </tr> </table> </div> ... <input type="text" value="" id="textfield_a01" ma...

need to run javascripts on iframe which loads an external domain.

mysite.com has an iframe which loads some differentsite.com. need to run javascript on this loaded iframe document. Single Origin Policy kicks in. i resort to using proxy. its slow, creates bottleneck, unable to fully render the site (JS is not rendered). Alternatives ? ...

Jquery Dialog and Div Position

Using the jquery UI Dialog, why is it that when the div that I want to make a dialog of has a position of absolute, the resulting dialog is minimized (can only see the header of the dialog .. if I take out the absolute position everything is fine ..? Thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.o...

jQuery odd/even Selectors for Multiple Elements

Hi, I am using the following code to zebra strip a few tables on one page: $(".events-table tr:even").css("background-color", "#fff"); $(".events-table tr:odd").css("background-color", "#efefef"); This is working just fine, but the even/odd intervals are applied to every table on the page. I would like each table to have the sam...

jquery: selecting xpath or converting xpath to css ?

i need to select based on xpath , or convert xpath to css. is there a plugin or built in function. ex. $('/html/body/div/a[4]').each .... ...

jquery dialog scroll bars

Does anyone know if there is a way to disable scroll bars in the jquery dialog box? The content that I have in the div is 300 px but the dialog is set to 200px. It automatically puts the scrollbars but I do not want them. I will add it myself to the second div that makes it bigger than the window. Any help is appreciated. ...

binding a mouse over event in jquery

My DOM looks like: <body> <div class="c1"> <div class="c2"> ... </div> <div class="c3"> <div class="thisone">....</div> </div> </div> <div class="c1"> <div class="c2"> ... </div> ...

[JQuery] onclick="func()" or .click()?

I was wondering which one of the above methods is preferred or is the general guideline that you use $(elem).click() for simple things and < a onclick="func(1, 2, 3, 4);" > when you need to pass parameters to the script when the element is clicked? I've been trying to only use $(elem).click() to keep the code clean and simple, but when y...

jquery selection

I have the following code : $(document).ready(function() { var hash = window.location.hash.substr(1); var href = $('#nav li a').each(function(){ var href = $(this).attr('href'); if(hash==href.substr(0,href.length-5)){ var toLoad = hash+'.html #content'; $('#content').load(toLoad) } }); $('#nav li a').click(f...

Javascript does not load in initial page load

Hi, Im having issues with having to load my javascript, when I visit my website (php) for the first time(cookies cleared) and I click on a link (which calls a javascript method), it does not work , however if I reload the page and then click on the link, it works(the link does not refresh the page but calls another php page and makes c...

Javascript & jQuery escaping quotes

I'm trying to do inline editing for my website using jQuery so I can edit the HTML and text of a page without having to change the source. When I submit the form data though jQuery's $.ajax function, it escapes all the quotes. How can I either prevent jQuery from escaping this(probably a bad idea) or remove them on the PHP side of things...

jquery ajax error!

SOLVED in the last answer im getting following error, dunno where and why? cause code works fine and i dont know what is wrong, please suggest something :$ uncaught exception: Syntax error, unrecognized expression: # Line 0 why code and functionality works totally fine, even when this error show.. but it dont work in ie, so i need t...

Jquery Post Ajax

Hi, I am new to jquery ! I am using the code below to insert record, the data posted to targeted asp page, but nothing happen, but when I try using simple form and post with same coding , the data inserted ! Jquery Code <script> $(document).ready(function(){ // code here $("a").click(function(event){ // alert(...

Jquery cookie deletion using plugin

Hi, I am having a little bit of problem deleting a specific cookie. I have created the cookie successfully but the problem is deleting the cookie when a specific del id has been invocked. This is the complete code, can someone please point out what I am missing and if possible, guide me by helping me fix it? jQuery(function($){ ...

Is there a way to make this jquery script dynamic?

I'm using this jquery code to show and hide divs on my page. As you can see, I an limited to 5 divs. Is there a way to make them dynamic? $(document).ready(function() { $('.box').hide(); $('a.toggle').click(function() { $('.box').toggle(400); return false; }); }); <a href="#" class="toggle" title="Show Comments"><img s...

jquery live method, how to disable one link and not every link

how can i disable live('click', function...) method and then after ajax call (depending on response), then enable it again? i read some place that "event.preventDefault();" dont work on live method and even if it works, how can i enable it again? i cant use die('click', function...) method, because it will disable all the links and not ...

Jquery parents() help

Can someone please tell me why this doesn't work? I'm trying to show and hide content. Here is my markup <div class="entry"> <p class="posted"> test<br /> <a href="#" class="toggle" title="Show Comments"> Show/Hide </a> </p> <div class="box" class="comment"> test hidden comment </div> </div> $(function...

Find Tabel Row Index using jQuery

Hello All, I'm an intermediate user in jQuery. I know to find the rowIndex of a table using jQUery, but my scenario is a different one. My table(GridView) consists of 20 columns and each column with different controls like textbox, dropdownlist, image, label. All are server side controls in each row. I bind the gridview with the records...

jquery issue on IE

Hello, here is link to an example: http://techchorus.net/demos/jquery/hiding-input-elements-in-a-div.html It actally disables few elements on click function on radio. It works on Firefox,but it only works on IE when you click any where on page. Why IE does not render elements in real time like firefox. Please advise. Thanks here is th...

JavaScript / jQuery - Make an AJAX request when a user is typing in a textarea

I have a textarea where people enter some text (naturally), and I want to make it so that an AJAX request is made every now and then to get some suggestions regarding what the textarea is about (like stack overflow's Related Questions, but for a textarea, not a text input). The problem is that I can't do an AJAX request at every keypress...