I have set in css the height of an image to a certain value and the width modifies automatically so that the aspect ratio is preserved. I'm using the .width() jquery function to get the width of the image after the css resized the image. in Firefox and internet explorer this works great but in chrome and safari the width returned is alwa...
Is it possible onHover to make HTML dropdown elements adopt a new background color that is unique for each dropdown element?
Take the following example:
<select>
<option value="China">
<option value="Holland">
<option value="France">
</select>
I know that you can alter styling according to an attribute's value using CSS3 attribute se...
Considering a http-request and the server will answer with a pdf. I like to show a spinner, while the request is processing. How to do that?
...
I am using below function to call a function on controller:
function getPartialView(actionUrl, targetDiv, ajaxMessage, callback) {
showAjaxMessage(targetDiv, ajaxMessage);
$.get(actionUrl, null, function (result) {
$(targetDiv).html(result);
callback();
});
}
and calling it like t...
Hello everybody,
this seems to be a simple question and I hope you can help me.
I'd like to add that my code works the way I'm describing it. I'm not content with the way I solved my problem concerning my problem in incrementing [i] outside the for-loop.
What I want is to get a sidebar menu shown when one hovers over an image.
My CSS...
I'm about to build a web application(not web presentation) which will load its content through AJAX (jQuery) into a specific div. There will be a menu above the div and when a user clicks on an item from the menu, the appropriate page will be loaded into the main div.
I'd like to know if there are any cons and pros of choosing this patt...
Hi,
I'm trying to get the JQuery jqModal extension to work as a confirm box, as per the example given on the jqModal website ( http://dev.iceburg.net/jquery/jqModal/ ), and incoprate this function into a dotnet usercontrol so I can re-use it over the website.
This is the code I've written so far. The control has a TriggerID property wh...
Hi SO!
Is there any way to make an iframe's vertical scrollbar shorter than the iframe itself? For instance have a 500px high iframe with a 450px high scrollbar (but the scrollbar would still fully pan the iframe's content).
(with Javascript, jQuery, or CSS)
Thanks in advance!
...
Hi all,
I am having a nightmare trying to get this working (and have looked at other posts but am still having an issue).
Basically I have a link like this:
/test.php#bob
on test.php I have this:
<div class="accordion">
<h2>Customer care</h2>
<div>
<p>xxxxxxxxxxxxx</p>
</div>
<h2 id="bob">Strong leadership from start to finis...
hello
i have followed this tutorial wich uses jquery UI to generate tokens facebook like:
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-use-the-jquery-ui-autocomplete-widget/
my problem is i need to pass two values thru Json: the ID and the NAME:
the server side script looks like this:
header('Content-Type: text/html; charse...
Hi,
imagine i have one textbox (with autocomplete 1.1, not the latest UI version) and a checkbox.
The textbox triggers an asp.net .ashx page that will execute a stored procedure at the sql-server and return the results.
It's all working, but i want to add another feature.
When the checkbox is checked i want stored_procedure_1 to be exe...
Normal lazy load plug in..
$(function() {
$("img").lazyload({
placeholder : "img/grey.gif",
effect : "fadeIn"
});
});
Can i control the speed of the fadeIn aspect say 0.9 or 1 seconds..?
That possible..?
Many thanks for any help :)
...
hi, i want to understand this piece of code as i m a beginner.Mostly these red color fonts. they are taking which page value?
$(function() {
$("#title").blur(function() { QuestionSuggestions(); });
});
function QuestionSuggestions() {
var s = $("#title").val();
if (s.length > 2 && !($("#title").hasClass(...
I have 4 links that change the position of 4 divs inside a web page. I am using the following jQuery script to change the color of the links when I hover them.
$('a.menua').hover(function(){
$(this).css({'color':'#2EC7C7'});
},
function(){
$(this).css({'color':'white'});
});
how can i modify this script so that when i clic...
I'm aware there are other questions similar but I just cannot get this to work.
Id like to close the colorbox iframe on the click of a .NET Button form within the iframe.
<script type="text/javascript">
$(document).ready(function() {
$(".del-add").colorbox({ width: "800px", height: "660px", iframe: true, open: true });
});
</script...
I have the following code, which is supposed to set the main_table_on_page variable according to the actual table presence in the document...
$('table#main_middle_table').livequery(function() {
if ($("table#main_middle_table").attr("id")) {
window.main_table_on_page = true;
} else {
window.main_table_on_page = fa...
Could someone take a moment to look at my script and see where I have gone wrong. This works fine in all modern browsers. Its IE6/7 which have the problem.
A 9KB color picker loaded.
Once loaded the picker is run.
picker.run();
This makes the picker and saves it as an object variable.
This variable can then be shown using.
picker....
I carefully read the question 'Official way to ask jQuery wait for all images to load before executing something', but IE is giving me a hard time.
I want to fade in some images after the background image has load, so thanks for the explanation, all is working well on FF, Safari and Chrome. It doesn't seem to work on IE though. Tried it...
Hi,
I have 2 select inputs and I filling them with an array of years. After that I want to set currentYear the selected value for every Select. I hacve this code but only works with first Select I don't understand why.
EDIT 2
Everything works great with jQuery 1.4.3, 1.4.2 fails :_(
EDIT
I'm trying this without success :-( only fisr...
Hello Guys, I developed an application in ASP.NET MVC. This app has an action that returns a JsonResult and I get it with jquery in client side. Everything works fine but I'd like to know, if is there any way to make a security in this action to return only requests that came from my website.
Is there any way to avoid others websites t...