jquery

jQuery - click link to open Div, which closes other div's

I currently have 2 panels (div's) at the top of my website. When you click a link it will drop down the panel, when you click the other link, i want it to slide up any open div's then once it's slide up, open the div clicked. I currently have this: $(document).ready(function(){ $(".btnSlideL").click(function(){ $("#clientLogin").sl...

jQuery trying to center tooltip over hovered element

I am writing my own tooltip function like so: $(".tip_holder").hover( function() { var $containerWidth = $(this).width(); var $containerHeight = $(this).height(); var $tipTxt = $(this).text(); var $tipTitle = $(this).attr('title'); var $offset = $(this).offset(); $('#icis_dashboard').prepend('...

Prevent to submit form while checking for Current Password?

Hi, I use CGI::Ajax to check password on blur event of Password textbox field and disabled the submit button (by defualt submit button is active) if current password is wrong using jquery $('#submit_btn').attr('disabled'); It's working fine for me. But when user enter wrong password and click on Submit button directly without using ta...

jqGrid 'selarrrow' returning row numbers instead of row IDs

I can see from the jqGrid JSON data being posted to the browser that the row ID (denoted by "i" in the JSON row data) is coming through correctly, but when I make a selection and check the $('#list').getGridParam('selarrrow') it is showing the selected row numbers as opposed to their IDs. Does anyone have experience with this? Thanks U...

Using jquery from local file work only if work connection to internet

I have local library jquery <script src="/js/jquery.js" type="text/javascript"></script> i have ajax request .post('/default/AjaxAsinc/addnew',{'new':$("#name").val()},function(data){ for(var i;i< data.length.i++) { } },'json'); But it work only if connection to internet is active if connection is down i see next exception d...

jQuery can't get a good formatted Id

Hi everybody, I have a problem with this fonction: function test(value){ var id = "'" + value + "'"; $(id).remove(); } It gets an "Id", add simple quotes and then call the remove function. The "value" is a generated id by php. For example, I can have: $var = "$the_id"; When the "test" function is triggered by a click, I get te fo...

How to draw a circle to denote selection in html

Env: jQuery, html John had a big lunch, so he might want / might not want to eat this evening. Assuming you pose this question to a student, he will have to either circle (might want or might not want) to answer it in paper-pen test. How do you mimic drawing a circle around the text when he clicks on those words and toggle the selecti...

what is jquery CSS frame work and how to use the frame work for giving look and feel to the website?

what is jquery CSS frame work and how to use the frame work for giving look and feel to the website? and how to give skins? Give me how to implement jqueyUI css class and id to maintain consistent look and feel to the entire site? any demos ? ...

Using appendTo() in JQuery adds element then immediately removes it...solution?

This is probably a noob question, but how I've implemented the appendTo() function below doesn't work as expected. Basically, it added the element and instantly removed it again. It's blink and you miss it stuff. Can anyone understand why this might be happening? Here's where the function gets called: <?php foreach ($words as $word) {...

jquery issue , experts advice needed, index not updating

Hello guys I have a few elements in my document, after loading everything I change the positions of some elements using jquery, but the indexes are not updating, As per my knowledge when an element move above another its index should update, is there any command in jquery to update the index after a movement in the document. thank yo g...

how to set iframe height to 100% with javascript

how to set iframe height to 100% with javascript Example : http://mkb.ma/5f ...

Ajax call to web service - success in method but forbids data access

hi I am trying to call a web service from an ajax jquery. It is successfully entering the success method but unfortunately a 403 error is being triggered and thus won't allow me to access the data. This is my code: try { $.ajax({ type: "POST", url: urlAddress, data: dataa, contentType: "text/xml; charset=utf-8", suc...

How to increase and decrease text size in web page?

What is the best way to increase and decrease text size on a web page using PHP, CSS, or JQuery? And is there any tutorials on how to do this? or an example would be helpful. Thanks ...

If we used the **jquery popup** in my site, and if the user block pop in the browser. Is it works?

If we used the jquery popup in my site, and if the user block pop in the browser. Is it works? ...

Audio on mouseover

It it working partially, but how do I get the below to work with multiple audio files: <!DOCTYPE HTML> <html> <body> <script language="javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(function(){ var birdhover = $('.birds'); ...

Cannot access data in the callback of a XMLHttpRequest in jQuery

When I run the following XmlHttpRequest $.get('../entries/find_most_recent', {name:$("#name").val()}, function(data) { console.log("data"); }); The result can be seen in this Firebug screenshot: But when I remove the quotes from console.log("data"), like so: $.get('../entries/find_most_recent', {name:$("#n...

jQuery: loading ID tag from database

So I have lots of radio buttons with same name but different ID and I wan't specific one of them to be selected on page load. The ID of desired button is saved to the database. I've tried this kind of solution for the actual ajax call, but alas it didn't work. $.ajax({ type: "POST", url: "load_config.php", dataTy...

JS: adding text to text area issue

Hi I'm trying to implement a solution that was posed on this question: http://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery But coming unstuck. This flat function works fine when adding some dummy text into a textarea element: function add_to() { $('#ad_textarea').val($('#ad_textarea').val()+'test');...

how to remove backgrount property of a div from css through jQuery?

we can set backgroung-image property of a div like- var src = "images/download_selected.png"; $('div#link1').css('background-image', 'url(' + src + ')'); how can I remove backgrount-image or set background transparent? ...

How to Theme a web site using Jquery UI? any tutorials and Demos?

Can you provide me links and resources for jquery UI themed websites or home pages and tutotirals on how to theme a page using Jquery UI? ...