I want walk back up the tree menu of a nested unordered list to the top most < li > and retrieve the "p_node" attribute using the toggle function of jquery. So, for example, when I click on "Annie" I want to retrieve the root li, which in her case is "mCat1" and extract the value for "p_node" to be used in the script. How can I accompli...
Alright, I'm having some issues and I believe it's a CSS one.
Here is what I'm working on currently: http://www.notedls.com/demo/
Focusing on the News accordion menu.
The idea here is to have a small image (50x50 with padding) and then a huge headline next to it. When the user clicks the headline, it expands to the article. If the user ...
I have a traditional ASP.NET GridView. Inside of it I have a Template Field with edit capabilities. I need to use a jQuery autocomplete plugin on the edit piece. It works anywhere but inside of this GridView. In other words, I know the plugin works.
Here is the ASP.NET stuff (yes, I'm using a SqlDataSource):
<%# Eval("INGREDIENT_...
Hi,
I'm looking for code that makes a div appear after a certain amount of time on a site. Here's the sort of thing I'm talking about:
<div class="container">
<div class="secretpopout">
This is the div I want to pop out after a couple of minutes.
</div>
</div>
I'm relatively new to javascript and jQuery, but I'm assuming I will need ...
I am trying to create a datepicker using a different locale than English. According to the jQuery manual I need to add the line:
$("#datepicker").datepicker($.datepicker.regional['fr']);
to $view->jquery()->addOnLoad(). The code is output and runs without any errors, but the month and day names are still in English.
Is there some sim...
I often saw this code in jQuery.
$('div').action1().delay(miliseconds).action2();
I could realize it in one level action in the following code.
function $(id) {
var $ = document.getElementById(id);
$.action1 = function() {
};
return $;
}
How to write the method delay() and action2() so that I could use them this way...
How can one get the height of the content area in a JQuery UI tabbed panel? $('.ui-tabs-panel').height() clearly returns the height of the content area + the height of the tabs. I am assuming there must be an easy way to get this dimension? So far my searching online is not turning that answer up.
Any suggestions would be most appr...
I've seen the post that deal with this issue but I still can't solve my issue:
I've got XML with CDATA and when I parse the XML, it includes the CDATA (which I don't want).
XML sample:
<mainnav>
<nav path="/" xmlpath="home.xml" key="footer" navigator="">
<display><![CDATA[Home]]></display>
<title><![CDATA[Home...
I'm building a survey w/ Codeigniter, and it's getting cumbersomely long...so I want to split it up into sections (about 5).
If I want each section to validate, and submit to db after the user clicks "next", what is the best way to do this? I've never made a multi-step process before.
Any advice for a noob? :)
...
I added a jquery function to add a <tr> dynamically at the end of my table. It worked fine until I added table headers to my table. After I did this, the function started adding 2 trs at a time to the table. What happened?
HTML:
<table id="table" border="0">
<th>Col 1</th><th>Col2</th><th>col3</th>
<tbody>
<tr>
<td>
<select...
if I put a div in the head and display:none, than use javascript to display it, will this work?
Edit:
I have stuff loaded in ajax. And as my ajax changes the "main" portion of the site, I want to change the meta-tags as well.
...
All,
I am trying to use JQuery's URL Validator plugin.
http://docs.jquery.com/Plugins/Validation/Methods/url
I have a text box that has a URL. I want to write a function which takes the textbox value, uses the jquery's validator plugin to validate urls and returns true or false.
Something like Ex:
function validateURL(textval)
{
/...
I am generating user control according to search result. And allowing to change text inside of textarea (picture or video description)
aaaaaa is default text to change. User can change textarea and when user clicked on EKLE (ADD) button,
i am cloning DIV element that contains image, span, textarea elements and their value. When clic...
using Jquery/javascript
Is it: $(document).focus()?
...
Hi,
I am trying to start writing some simple jQuery plugins and for my first try if figured I would write something that does nothing else but apply .first & .last classes to passed elements.
so for instance i want to ultimately be able to:
$('li').firstnlast();
So that in this html structure:
<ul>
<li></li>
<li></li>
<...
I'm buiding an HTML/jQuery site where almost all the content comes from remote JSON data. I'm having trouble coming up with a good way to store and access the data in the future (scope-wise).
Currently, I've written a jQuery plugin that gets the JSONP data when the site loads. But I have other functions and jQuery plugins that need to ...
Hi, I have a question about some functionality I'm trying to add to my jQuery to enable a button or text to expand/contract all the divs on click... and I'd like to figure out how to keep the first div open when the page loads.
Here is the jQuery:
(document).ready(function(){
//Hides containers on load
$(".toggle_container").hide();
...
I am using jQuery and I am making AJAX request from the many methods available to me. I am testing error callback condition and so far so good.
If I bring the server down then firebug shows the request in RED which means it was an error. However error callback is not getting called. Is this expected ? Or should jQuery's error callback ...
not an expert programmer.
i created this code to resize photos/images to fit the screen, considering the space available for the nav bar.
the script happens on load of image, and on click of the navigation. is it a good piece of code, or could it be done better? any browser issues?
in the html:
$(document).ready(function(){
$("#photo"...
I was playing with Infogrid on my site.
I added a header, a footer and added some text on the last block of iron man.
As you can see the footer doesn't show up and the text of the last block is cut off.
Now if you remove overflow:hidden; on the body, html the footer shows up but the text is still cut off.
Any idea on how this the footer ...