jquery

copy td background color and set div to the color when clicked

How can i take the bgcolor and title of a td and then set a div to that color and write out the title next to the div <div id="boxcolor1">change color</div><div id="boxtext1">write td title here</div> <table id="box1"><tr><td title="Maroon" bgcolor="#5A0014"></td></tr></table> I'm sure it's possible but i can't see it working for me...

jquery shifting of popup when content increases

Hello , I have one div which is dynamic and getting the increments in the css dynamically from jquery to fit the contents if they are larger. now the problem is that there is one popup associated with the same div. if content increase that popup's comes down, I don't know how to solve this issue . please help. HTML < div id='main...

Best practice: Javascript/Jquery saving variable for later use

Hello there, I'm sure, this question has been answered somewhere before but I just couldn't find it. If within a function a variable has been defined, what is the best practice to save it for later use? 1. Saving it "globally"? foo = 'bar';...function bar(){ ... foo = 'bat'; return foo; }... Here, the varia...

How to add 15 minutes to custom timer - Javascript

Hello, I've got this js: <script> $('#appt_start').val(parent.location.hash); $('#appt_end').val(parent.location.hash); </script> which gets the hash value from the url something.com/diary.php#0800 for example. The value is then used to autofill the start and end times in an appointment form. I need the second time (#appt_end) to b...

JQuery Modal won't tie-in with dotnet ClientID

Hi, Simple problem which is causing enormous headaches. I'm using the JQuery modal plugin (jqm) which is normally initiallised with a function that looks like this: $().ready(function () { $('#popup').jqm({ trigger: $('.trigger') }); }); Where #popup is the ID of the element you want to show when the modal is displayed and 'tr...

jQuery Datatables fnRender row change

Hi, I want to add some class to row when I render a table, sample code: $("#id").dataTable({ bProcessing: true, sAjaxSource: com.reelroles.path.api.message[component], aoColumns: [ {}, {}, { sWidth: "37px", fnRender: function(obj) { return "<span>" + myData + "</span>"; ...

User Jquery to determine online/offline status

Hi People, i am currently building a website and was relying on php fetch_content to read file this (http://opi.yahoo.com/online?u=yahooid&amp;m=a&amp;t=1) and it returns 00 for offline and 01 for online. Somehow i moved my hosting n the new hosting can't do php_fetch_content, is there is any way for jQuery to do this? i've tried .get()...

Light box jquery

Hi, I want to make a light box using jquey, any body can give me tutorial? ...

jQuery bookmarklet for selectors

It should work like this: Fire a bookmarklet Select the first element by clicking Select the second element It outputs a series of jQuery calls which would allow selecting the second element given a reference to a first element (i.e. using relative positions of the two elements in a DOM tree). Is there such a bookmarklet (or browser ...

jQuery delay with multiple selectors

Hi, I know you can do something like this: $('#item').fadeOut().delay(1000).fadeIn(); which will fade the element with the id of item out, then wait a second before fading it back in again. But is there a way to fade one item out and a different one back in with a delay inbetween. I've tried this but it didn't work: $('#item1').fadeO...

Can't find form on returned HTML

I have a main page consisting of a link and a div with id 'containerDiv'. When you press the link it loads some HTML from another page using Ajax into this div. The HTML that is returned contains a form. When the form is submitted, I wish to stay on the same page and display the resulting content in the div. Please see a picture showi...

mouseenter issue

Hi all, I have a problem using the .mouseenter() method on a div. The initial mouseenter event is triggered when the mouse enters the div. However as soon as the mouse enters a child, the mouseleave events is triggered. I was expecting the mouseleave to be triggered ONLY when the mouse goes effectively outside the div area and not ALSO ...

JS embedded on other sites - how can I use jQuery without screwing up other jQuery installations?

I'm working on some JavaScript that will be embedded on other websites (think like Google Analytics or AdSense). There is some hardcore JS being done -- AJAX requests, animations, JSON(P). I've written the prototype using jQuery, and really want to keep using it, but this might cause a problem when embedded on the other sites if they al...

Jquery DIV element Scroll top and down ?

I have a div and some buttons. I have fixed the div with a particular height, and i have hidden the scrollbar. By clicking on a button I need scroll the div to the end of the line. for that I used $("#divid").height() & $("#divid").offset().height functions to get the entire height of the div but it returns what I have specified in the c...

How to make facebook like private message

Hi, When you send a private message to someone on FB in the TO field when typing the first letter a suggestion appears then it becomes a little box with the name of the user you selected which can be deleted, anyone got a tutorial on this? thanks ...

jQuery: what does this code do?

l = $("#chat > div.monologue:last div.message:not(.pending):last"); ...

How to use jQuery Mobile to create iPhone Web Apps?

I have been assigned to create a web app for the iPhone, and I was supposed to try jQuery Mobile for developing as it supports many platforms. Is PHP a requirement for creating iPhone web apps? What other ways can we create an effective web app similar to native apps? ...

jQuery loop on carousel not working

Hi All, Adding a loop option does not make my carosel loop! `jQuery('#third-carousel').jcarousel({ vertical: true, loop: true });` Using: /jquery/jquery-1.3.2.min.js Carosel script:http://sorgalla.com/projects/jcarousel/lib/jquery.jcarousel.min.js Can you help? ...

JQuery UI Sortable - limit drop to certain elements

Hi, I have a number of ul's which the user is able to sort li's into. I have 2 different types of li and need to restrict which list they can be dropped into. Here is a small example: <ul class="top"> <li class=typeA">Item</li> <li class=typeA">Item</li> <li class=typeB">Item</li> <ul class="sub"> <li ...

Jquery, finding the type of a selector - howto?

I need a way to determine if a returned object is a textarea (for example). ...