jquery

jquery selectors

I'm having problems selecting the div i want to animate in jquery. I have this html <div id="perimg"> <a class="false" href="show_model.php?param=Addison"> <div id="name_container"><img id="slide" src="../../pictures/picture.jpg"><div id="name">Picture name</div></div> </a> </div> I used that markup because i want to slide up...

jQuery + ASP.net MVC.

Here is the problem. lets say I have a product category table and a product table. by using foreach statement getting categories making them a html table and putting products inside the table as a radio group. so 3 product categories makes three different html table and inside the tablo i m listing the product as radio buttons. when u...

What is the fastest method for selecting descendant elements in jQuery?

As far is I know, there are a number of ways of selecting child elements in jQuery. //Store parent in a variable var $parent = $("#parent"); Method 1 (by using a scope) $(".child", $parent).show(); Method 2 (the find() method) $parent.find(".child").show(); Method 3 (For immediate children only) $parent.children(".child").sho...

add column title

is it possible add column title in case of multicolumn autocomplete ...

can I add div before elements which be added dynamically in future ?

I have a drag drop elements facility. I want to add a div before any element, after it is dropped to the page. Is it possible ? I tried to do it using live, but number divs it adds are strange. For first time, it add one or two and second time. it adds more than two. I'm trying this : $('#PageContent > .textElementClass').live('dblclick...

Send data to database when click on a link without page refresh

Is there a way to send data to database when click on a link without page refresh? I use php/mysql... ...

select odd with several tables on the site?

EDIT Hi. I got 1 page(html) where I got a couple of tables. I want so within each table every odd row got a class. My problem is it only take the first table and go on with the odd on to the others to, when it just suppose to do that with in that one table, stop, start over with the next table. like this table, every other row, add class...

jquery facebox plugin problem

this jquery code enable you to show the box when click any specific text now i want it appear in the page start not in click i mean when the page open it appear automatic ...

alternative to .load() in jquery

Hello, Is there an alternative to .load() in jQuery. Thanks Jean ...

jQuery function

Hi guys! I'm new to jQuery but I managed to get something working. The only thing I can't really figure out is how to make a function of this script so I can reuse it on several divs. The idea is to have a tumbnail, when you hover the tumbnail a infolayer will fade in over the tumbnail. When your mouse leaves the tumbnail, the info lay...

jQuery animated image swap

Howdy. It's me again, and It's jQuery again. I have somthing like that: http://misiur.com/small/ When this menu on left is clicked, then I want to change src of this image, or just swap it. However I want to make it animated. Images paths are taken from DB, and stored in "images" array (You can check that with firebug). thanks Update...

Changing sth. with Javascript(using Gm and jQuery)in the website when an option is selected

Hello everybody, I'm writing another Greasemonkeyscript with javascript using jQuery and -"tamtam"- there was a question comming up to my mind. There is a button on the page I have no access to. By clicking it, you can choose between four options.Option 2 is preselected. <select id="idname" name="namename"> <option>Option1</option>...

voting bar showing no of votes

Dear all, I want a jquery plugin which shows dynamic bar consisting of no of votes from database,when a user points to that voting tab.please suggest . ...

.val() doesn't trigger .change() in jquery

Hello, I am trying to trigger .change() on a text box when I change it's value simply with a button but it doesn't work. Check link below. If you type something in textbox then click somewhere else .change() triggers but if you click only button, it changes textbox value but .change() doesn't trigger. :( why? http://jsbin.com/otove/edi...

how to make the menu close if it is clicked out

i have an menu with some values and i got someting hidden and while click on more button it shows like google more menu... if it is clicked out it is not hiding till the more menu is clicked once again <a href="javascript:;" onClick="toggle('one');">More<small>▼</small></a><div class="more list" id="one" style="display:none"><a href="#"...

How to set id after creating new jstree node?

I'm using jsTree 1.0. And have this code : $(document).ready(function () { $("#folders_tree").jstree({ "core": { "initially_open": ["root"] }, "html_data": { "data": '<?= $folders; ?>' }, "themes": { "theme": "default", "dots": true, "icons": true, ...

iterating through java collection using jQuery

I am starting with this object, public class myTO { private String id; private String name; } Which is used in this object public myCombiTO { private myTO myTO; private List<String> valueList; private List<String> displayList; } I create a list of these objects List<myCombiTO> myCombiTOList = getMyCombiTO...

How to edit content using Tiny Mce

Hi, I am using Tiny MCE to edit some content within my site. I am having problems displaying text within the Tiny MCE content area ,which has been retrieved from the database. What am I doing wrong? The text is plain not HTML formatted. Thanks ...

Creating canvas objects at a higher DPI than screen?

I've got a canvas object that I need to be able to create at a higher resolution than what native screen resolution is. I'm using the Flot graphs library, and I'd need to output a graph that looks just as good when it's printed as when it's displayed on screen. The only method I can think of is making the canvas size 3x larger, then sca...

JQuery: Adding space between multiple selections

I select some paragraphs inside a div: $('#myDiv p.p1, #myDiv p.p2').text(); My problem is that I want to add space between each selection so that the output is: "paragraph1 (space) paragraph2" instead of "paragraph1paragraph2". Any ideas? ...