jquery

How to conserve parent detail when clicked on child menu in jquery

Hi, I have menu designed using jQuery in oracle apex.The menu is like this Parent1 child1 child2 parent2 child3 child4 parent3 child5 child6 My problem is when I click on parent1 only child1 and child2 should display but in my case each parent gets expanded. And the user can see all the childs. Which should n...

JavaScript: Trigger a function when two divs touch / overlap.

The title explains it really. How to do this? Both divs are of differing size. Both divs are moving (I'm making a little Jquery game). If one hits the other, I want stuff to happen. Thanks ...

jQuery Navigation - Help Needed

I am working on a site with a fairly large accordion style navigation (it does not use the accordion UI). There are four sub-menu sections that toggle open when clicked. I have the active link highlighted. The one remaining step is to keep the current active sub-menu open when on a page within the sub-menu. I can keep it open when I am ...

jQuery: manually close dialog

hi, i'm having my own listview widget inside a jQuery dialog. i'd like having the following dialog attributes for the dialog: close on esc but don't autoclose the dialog when clicking somewhere i set beforeclose: function(){return false;} which disables auto-close the problems: closing by esc doesnt work anymore when clicking my...

Problem in jQuery and XmlHttpRequest

I am trying to call a PHP page with XmlHttpRequest (AJAX). My problem is that I have jQuery (javascript) included in my PHP page like this: <script language="javascript" src="jquery.js"></script> <script language="javascript"> // my jquery code here </script> When I call the PHP page with XmlHttpRequest it fails! That is, the respo...

javascript for radio button list

hi, i have an Radiobutton with (6 items under it). and i have an search button. if user clicks Search button it gets all the result. i am binding the items for Radiobuttonlist using database in .cs file condition 1: now if user as selected Radiobutton1 [item1] it gets selected. and now if user again clicks on Radiobutton1[item1] then i...

Jquery Bind Event

Hello, I have the following code: $('#form_field, #button').bind('change click', function() { // take action } It works fine. However, I want to trigger the same action when 'change' is used for '#form_field' and 'click' for '#button' (not when 'click' is used for '#form_field'). I know that can be done using the following code: $(...

Find <a> with image extension in href (jQuery)

I need to find (and hide) all links with images (.jpg, .png, .gif) in href as they're causing my wordpress excerpts to break. Many thanks. ...

jQuery animation issues

Hi all, This is kind of difficult to explain, so I'll paste the function, and explain what it does function close(r){ if(r !== undefined){ $('#close').attr('name','1'); $('#close').css({ top: 30, left: 30 }); $('#close').html('First click here'); }else{ switch($('#close').attr('name')){ case '1': $('#close').at...

JQuery Tabs, problem altering selected element

Hi All, I'm using http://jqueryfordesigners.com/jquery-tabs/ for a project, the tabbing code looks like this:- <script type="text/javascript" charset="utf-8"> $(function () { var tabContainers = $('div.tabs > div'); tabContainers.hide().filter(':first').show(); $('div.tabs ul.tabNavigation a').click(function () { tabContainers.hide()...

jquery jqgrid unformatter for SEARCH filter

I have this column in my grid called TIME which displays LOCAL time in the format yyyy-mm-dd hh:mm:ss AM/Pm format. This is done by the formatter function. In the database it is stored in the UTC format. So obviously i need a conversion BACK. It seems the unformat option doesnt work for the search filter. any idea on how to make my conve...

jquery / javascript setting width fails

Greetings! I have encountered this problem: Depending on numbers from I want to create a bar chart. Interestingly it works very well in IE8 set on quirks mode, but fails everywhere else. I cannot really say where the error is and I hope that someone here can help me. I am using jQuery, but using getElementById() and element.style.width...

jquery fails while page loads with xmlhttprequest

how should i apply jquery to php page loaded with xmlhttprequest i have tried it but when php page loads with xmlhttprequest the jquery fails. so what should i do so that jquery may work after page loading. ...

li:lt(4) is not getting all list items less than the count of 4?

This is my HTML: <ol id="front-page"> <li> <img src="images/defaultImage.gif" alt="Default Image" /> <a href="#" title="Title Entry">Title Entry</a> </li> <li> <img src="images/defaultImage.gif" alt="Default Image" /> <a href="#" title="Title Entry">Title Entry</a> </li> <li> <img src="images/defaultImage.gif" alt...

Nested Portlet Serialization

Does anyone have a link to a good tutorial on nesting portlets and serializing the data? i am trying to create a jQuery drag and drop tool where users can manage fleet -> country -> port data. For example the second fleet consists of X countries and those countries have X ports inside of them. I have the drag and drop functionality wo...

Best plugin development practices to avoid polluting jQuery namespace?

I have created a jQuery plugin that allows the user to interact with a tree (creating, updating, deleting nodes). There are at least a dozen methods for interacting with the tree. Ideally, I don’t want to pollute the jQuery namespace with all of these tree-specific methods as I am doing now as each methods presents an additional opport...

JQGrid URL Sometimes including controller in call

So I have this code in a javascript function in my ASP.NET MVC application... jQuery("#SomeResultsGrid").jqGrid({ url: 'SomeSearch.mvc/SomeSearchResultsGridEventHandler', ... This loads on my default page and raises just fine (fiddler confirmed). Now, if I go to that default page (via a Html.ActionLink), the url that posts...

how to create dynamic droppables? jQuery + PHP + AJAX

I'm trying to create jQuery droppables based on a certain class. however, since there are many droppables they should only be created once something has started dragging. is there a way to create droppables based on the if the draggable has a certain class? ...

jQuery ColorBox confirm override modal dialog?

How would I use ColorBox to create a 'confirm override' modal dialog that can interupt a form submission until 'yes' is clicked. Simple Modal has a similar function, but I much prefer colorbox's implementation and documentation, otherwise I'd use the latter. ...

Prototyping Object in Javascript breaks jQuery?

I have added a simple .js to my page that has some pretty mundane common-task sort of functions added to the Object and Array prototypes. Through trial and error I've figured out that adding any function to Object.prototype, no matter it's name or what it does causes javascript errors in jQuery: The culprit? Object.prototype.foo = fun...