<div style="width: 100px; height:50px; line-height:50px; overflow:hidden;">
<p>A short line</p>
</div>
<div style="width: 100px; height:50px; line-height:50px; overflow:hidden;">
<p>A really really really long line</p>
</div>
Wrapped text in the second example gets cut off because of the line-height:50px which should be 25px i...
Hi,
I am using jQuery UI Tabs.
<div id="tabs">
<ul id="tablist">
<li><a href="#fragment-1"><span>One</span></a></li>
</ul>
</div>
I have a button that adds new tabs. I use the following code:
var newTabId = $('#tabs').tabs('option', 'selected') + 1;
$('#tabs').tabs("add",'someUrl.htm','New Tab',newTabId);
(Tab will be adde...
Is this faster:
$(document.links).filter('a.someClass')
than just plain old this:
$('a.someClass')
?
I don't see anywhere in jQuery's code the utilization of document.links
which gives you the collection of links on the document right away,
than, it would seem, it would be faster to just filter in the collection
instead of all the...
Hi. I am creating a portfolio page for m personal site. I have a slider with approx 20 anchors that link to projects I have worked on, each one contains a client logo that when clicked should load some html content then fade that content into a container div on the same page.
I have been advised to use the JQuery method load() which see...
Hi all.
I'm creating a slideshow with jcarousel.
So far, my slideshow uses most of the defaults for a horizontal slideshow with the tango theme.
Can I add an extra "next" and "previous" arrows?
I'd like to have them outside of the slideshow container.
Is this possible ?
...
I am trying to change my comboboxes to use autocomplete so i leverage the code listed here (which worked perfectly for my dropdowns)
The issue is that i also on the same page have a listbox with the following code:
<%= Html.ListBox("Cars", Model.BodyParts.Select(
x => new SelectListItem {
Tex...
$('form').submit(function(){
this.action="http://www.sitename.com/post";
return false;
});
having altered the action attribute of the form ,i want to add one more input parameter to it how do i do that ?
...
like in this site: http://www.1stwebdesigner.com/resources/57-free-image-gallery-slideshow-and-lightbox-solutions/
it only loads the image when you are rally seeing it. This is something i would want to implement in my website. thanks
and a preloader if possible. i use jquery
...
Hi,
I am trying to develop a mobile application which can interact with a MOSS Site via web services.
i expect it to be be able to;
1) retrieve documents (pdf, doc, docx, excel)
2) retrieve reporting services reports in a PDF or excel form.
i will be using either phonegap or rhomobile to develop this app and i know that i can consume ...
I have a click handler, which has "event.preventDefault". There is whole lot of logic that occurs within this function. At the end of this logic i would like the page to scroll up to the top. ie the same effect as an anchor. ie "
$('.vod-playlist-film a').bind("click", function(event) {
// some logic
// now i need the brows...
I've a table which has customers names along with the products they purchased with their prices. So there are multiple records for each customer. This table is simple 3 column table : name, product and price.
What I wanna do is:
Put all records belonging to one customer together (I've done it) and just after these rows add one new extr...
I can't seem to find any resources relating to the implementation of SO's interesting tags javascript implementation, where adding tags happens on the client-side, and you can delete tags on the client-side also. It's just I'm looking for a way to select multiple entities for use in a query, without using a multi-select list (combo box?...
I have a menu within a page, I have an active class applied to the relevant menu item in relation to the page.
This active class is reused when another menu item is hovered over, and is removed from the original menu item.
How can I make the menu <div> refresh when I .mouseout from #menu?
...
I've been using the ASP.NET Ajax Control Toolkit Slideshow extender and while it works, I'm not totally satisfied with it as it has problems handling multiple slideshows on one page and the fade is choppy. Anyone suggest any alternatives?
Edit
Just curious also. What is the general opinion of the Slideshow extender? Just wondering ...
This is similar to this question, but I thought I'd reword it a bit differently in order to make myself more clear.
I have this json coming back from a $.ajax call:
{"COLUMNS":["PERSONID","FIRSTNAME","LASTNAME"],"DATA":[[1001,"Scott","Wimmer"],[1002,"Phillip","Senn"],[1003,"Paul","Nielsen"]]}
Q: In JavaScript, how do I parse through it...
Hello, I am trying to add ajax functionality to my pagination so the content loads in the same page instead of the user having to navigate to another page when clicking the page links.
I should mention that I am using this php pagination class.
Being new to jquery, I am unsure of how to properly do this with the pagination class.
Thi...
I have a text box I'm using as a timer display "hh:mm:ss" When I select the box and press a number, it inserts the number at the cursor location, but instead of replacing the value at that position, it shifts all existing values over. For example, the timer text box reads "01:00:35" and I replace the first minute position with 1, the ti...
I'm new to JQuery, i want to uncheck certain row in the repeater grid.
I got this work, this will uncheck all checkbox for me.
$('span.chkIncRows input').attr('checked', false);
This works for me, if I want to uncheck row #2 checkbox from the repeater, without passing row number.
$('span.chkIncRows input')[2].checked =false; ...
I only want this function to run if .toolbar li does not have the class .Oactive:
$(".prod_description").mousedown(function(){
$(this).parent().parent().addClass('mousedown');
$(this).parent().parent().parent().addClass('mousedown');
})
.mouseup(function(){
$(this).parent().parent().removeClass('mousedown');
$(this).parent().parent().p...
I have a form which I want to submit and show in Colorbox.
The form is Mals Ecommerce View Cart.
See: https://www.mals-e.com/tpv.php?tp=4
I want it to Show the Cart contents in a colorbox iframe. Is this possible to do using the FORM method rather than the Link method?
...