jquery

How can I check if two elements/div belong to the same parent?

Hi I am working on this piece of code for a shopping cart $('.addtoCart').click(function() { //get button id var cartID = $(this).attr("id"); //get check box id var checkBoxID = $('input.cartLevelChecked:checked').attr("id"); //get parent id var levelListID = $(this).closest('li').attr("id"); if...

Best way to put delay after calling javascript functions

Hi,I'm using jquery to call some javascript functions with a delay between them. Also I'm using Jquery Wait When I call below function,all functions are called recpectively,there are no delays between each other. $(this) .call(f1) .wait(5000) .call(f2) .wait(5000) .call(f3); Here call function calls some function as I did $.fn.call ...

How to bind event with Grid view check box event add using jquery.

Hi, Will you please help me out Thanks............ I have following table I just needed functionality. When user click Full (Permission) then the corresponding row having following permission Read, Add, Edit, Delete all are checked. When user have click on the edit, delete, add check box the read permission is automatically checke...

jQuery selector: Firefox recognize but IE not

This is my element with a custom attribute: <input type="radio" status="B" name="OPT_PARENT"/> My script: Alert($(this).attr("status")); Alert($(this).attr("test")); Output: Firefox 3.0.10 --> "B" and "undefined" IE 8.0.7600.16385 --> "true" and "undefined" My observation: IE will return the option button "checked state" which is tr...

select box issue in IE when using BOXOVER.js tool tip

Hi All, I am using boxover.js tool tip: http://www.koders.com/javascript/fid8780CBE6D1BEE164FC239AA55DCB13A53B3536E8.aspx?s=document#L6 The tool tip works well with all the elements except SELECT box in IE. I have a code where i need to show some image as a tool tip on selecting the option in a select box. Ex: <select name="categor...

4-States button (with .toggle()) and delayed Ajax in each state

Hi, I've got a 4-states button. I would like to know how to delay the execution of my ajax request in order to have only one request at the end... I mean, if I press the button twice, i don't want to execute the first ajax request, but only the second one after a specific timeout. $('.btn_mark_erreur').toggle( function (){ //St...

disable js script with jquery or js

Hi, in one page function i want disable js script. How make that? I try jquery: hide(), but this not' work Thanks ...

How to remove the attribute "disabled" from input siblings when i click on a submit input

Hi, i have this problem: i need to remove the "disabled" attibute from the siblings inputs of submit input. Here is the html: <td> <input type="hidden" value="2000000000002_STATUTO_07_10_2010.gif" name="nomeDocumento" disabled="true"> <input type="hidden" value="811ecdd0-65e9-49d6-8d9d-8b7c9d9b6407" name="UUID" disabled="true"> <inpu...

Permission denied for ajax request inside an iFrame

Hello, For many various reasons my web page consist of the following, a ruby page from www.example.com that calls an iFrame from another PHP server (subdomain.example.com), in both parent and child there is this javascript instruction : document.domain="example.com"; Parent page can access elements in child page, I needed that to make ...

find the height of a div and change the current div height to match

I'm trying to make a div the same height as the parent (if the parent is larger) or make the parent the same height as the current div (if the current div is larger) Here's what i've got so far $(this).parents().find('.address').slideToggle(function() { $(this).parent().height($(this).parent().find('.address').height()) }) It mak...

Regular expression for url matching

Hi All, I have a text field have value http://localhost/Send/test.php?s/?a=1&amp;o=2 . Another three text boxes . If we enter three values the above url will change like http://localhost/Send/test.php?s/?a=1&amp;o=2&amp;s1=a&amp;s2=b&amp;s3=c . The value for s1,s2 and s3 will not save anywhere . My question is how we check is the value ...

jquery lavalamp and autoscroll easing problem (conflict)

Hi there, I have got a problem and am really hoping you guys can help. http://ontwikkelomgeving.wijzijnblits.nl/primawonen/ Here you can find a website that i am currently creating. As you can see the autoscroll works (called het laatste aanbod). This uses the easing.min.js plugin. At the navigation i use lavalamp, however this does ...

Trigger event on body load complete js/jquery

I want to trigger one event on page load complete using javascript/jquery. Is there any way to trigger event or call a simple function once page loading fully completes. Please suggest folks if you any reference. ...

Returning the response from an Jquery AJAX call

I have written a function, which has to check whether a username has been taken or not. Now when I call the function from another function, and alert it's return value: alert(checkusernameavailable('justausername')); it says 'undefined'. I've searched high and low, but can't find what I'm doing wrong. I guess it should just return th...

jQuery Selector: How to select the children of just THIS element.

So, I have code that looks like this: <span class="comic_menu mid_menu_title"> <ul> <li class="level-0 page_item page-item-264"><a href="http://www.domain.com.php5-15.dfw1-1.websitetestlink.com/wordpress/?page_id=264" title="Ca$h Rulez">Ca$h Rulez</a> <ul class='children'> <li class="level-1 page_item pag...

ASP.NET MVC 2. Javascript Error when deployed to IIS7.

Hello guys and girls Been working on a ASP.NET MVC 2 solution for some time now and today I decided to test in in the IIS7 so I could put in on a company server for my colleagues to play with. However I got quite a surprise when I hosted it. I started to get Javascript errors in code that worked while running it locally in my VS2010. ...

Image upload, resolution check, crop and preview. PHP

Hi I am looking for a solution to upload an image, check the resolution crop it if necessary then then preview the image before it then gets printed onto a canvas. I have found loads of examples of this but obviously nothing straight forward, plus i don't want to rip off someone elses work. ASP is NOT an option as the site uses PHP an...

how to animate div at fixed postion with jquery

i have to divs side by side i.e <table><tr> <td><div id="div1"></div></td> <td><div id="div2></div></td> </tr></table> where div1 has content in it and div2 is hidden now i have a link in div1 so that on clicking that link i want to show div2 with animate() slide from left to right on its position... where div2 has position:fixed in c...

jquery simple modal and insert on database

Hi all, i am using jquery.simplemodal-1.1.1 and jquery-1.2.6.min to create a modal popup. this is my problem: i can display the windows, can insert values, fiels, ecc. i have 2 buttons, save and close. when i click on save button, it triggers an event that execute, from code behind, an store procedure that insert some dates on my db. ...

google maps custom markers / shadow help needed

Hi all, so I have google maps directions on my website, I have managed to change the icon, although I can't seem to get it to align it with the original marker shadow (which I actually need help removing also, it's just a good point to show that my custom marker is off). I hope this made sense? The url is: http://www.emuholidaypark.com....