Using Javascript, Jquery preferably, I want to be able to trigger the visiblity of the div when a user is at a certain page height. NYtimes has an example of this when you scroll to the bottom of a story, a slider pops out with another news story, and goes away if you scroll up.
...
We want our of our AJAX calls in our web app to receive JSON-encoded content. In most places this is already done (e.g. in modals) and works fine.
However, when using jQueryUI's tabs (http://jqueryui.com/demos/tabs/) and their ajax functionality, only plaintext HTML can be returned (i.e. from the URLs specified in the a tags below). H...
The Route is:
routes.MapRoute(
"Ajax", // Route name
"BizTalk/Services/{action}", // URL with parameters
new
{ // Parameter defaults
controller = "BizTalk"
}
);
My Controller is:
public JsonResult AjaxTest(string s, int i, bool b)
{
return Json("S: " + s + "," + "I: " + i + "," + "B: " + b);
}
My ...
http://jquery.malsup.com/corner/
I tried but it fills color at corners
in place of white i need transparent corner with 0 opacity.
...
A long running background process creates a text file to indicate the completion of the process. From the frontend, I'd need to check every few seconds if the text file has been created or not.
I am doing this check from http://DomainA.com However the file is created in http://DomainB.com/Mytext.txt
Can someone help me write a jquery s...
I have the image position fixed inside div and code is gven below
#content{
margin-top:100px;
width:900px;
color:#009;
border:1px solid red;
overflow:hidden;
display:block;
}
img {
float:left;
position:fixed;
top:140px;
padding:50px;
}
#text{
display:block;
border:1px solid green;
width:500px;
height:1200px;
float:right;
overflo...
Hi All,
I am working on a site for a friend and trying to add a link to each image in a slide show. The slide show uses jquery and a script called easySlider1.7.js. Everything works just fine if the images are left alone, but when I try and wrap the images with a link, the slides no longer progress as they should. Here is the live we...
The code:
$('input.media-checkbox').live('click', function(e){
e.preventDefault();
var that = $(this);
if (that.attr('checked') == 'checked'){
var m = that.attr('media');
var mid = 'verify_' + m;
that.parents('div.state-container').find('ul.' + mid).remove();
that.attr('checked', false);
...
Hi,
i have 3 div tags of same class,
<div class="redc">
<p>sdfs</p>
</div>
<div class="redc">
<p>sdfs</p>
</div>
<div class="redc">
<p>sdfs</p>
</div>
to select div other than first ,$(".redc:not(:first)") works fine in mozilla,but not in IE
Please suggest any alternative for IE
Note: vesion jquery 1.3
...
Hi,
What are the option available to autosave the value of control when enter the control value in to the web page.Thanks inadvance
...
What I'm trying to achieve, is to output a json list that contains a list of Css classes, and their corresponding url records, i.e.
var jsonList = [{"CSSClass":"testclass1","VideoUrl":"/Movies/movie.flv"},{"CSSClass":"testclass2","VideoUrl":"/Movies/movie2.flx"}]; //]]>
foreach item in the list I am adding a click event to the class.....
When I use this code with an element whose id is "foobar":
$("#foobar").click(function () { alert("first"); });
$("#foobar").click(function () { alert("second"); });
I get two alerts: "first" and "second" second.
How do I specify a click event that also clears out any previous click events attached to the element? I want the last $("...
According to the selectors docs, you must escape [ with double backslash, etc \\[.
I have a selector that is created like so (assume val attribute is something[4][2] in this example).
var val = $(this).attr('val');
$select.find('option[value=' + val + ']').show();
Can I write a regex to escape the brackets for me?
...
Hi,
In a following piece of code i am create a progress bar and showing its progress as the ajax request get processed.
i am faking the progress shown here just by adding 5 in to cnt counter variable after that i made a
check when counter reach to 90. at this point if the request is not executed successfully then i will pause/disable ...
I want to call the javascript function using mousehover jQuery event.
Here is the one function.
// On mouse hover function
function ShowHighlighter(d, highlight_elid) {
//alert ("ShowHighlighter\n"+d);
if (d == "addHighlight") {
var txt = getSelText();
if (txt.length < 1)
...
In jQuery you can do :
$("a[href$='.img']").each(function(index) {
alert($(this).attr('href'));
}
I want to write a jQuery function which crawls x-levels from a website and collects all hrefs to gif images.
So when I use the the get function to retrieve another page,
$.get(href, function(data) {
});
I want to be able to do s...
Hi all;
Jquery Code:
$("[id$=gridvv] tr").filter(function() {
return $('td', this).length && !$('table', this).length
}).click(function() {
Alert('test');
});
This code should select all <tr> but I need .locked click return all <tr> pls help
http://jsbin.com/uheni3/edit
...
Hi, I have a problem on all browsers when I set wmode = transparent (or opaque) on a flash element on my site. I want to overlay some HTML content on top of the flash element, and this works fine, but for some reason the different components within the flash element are sometimes appearing squashed and not in the correct perspective. Thi...
I have a JavaScript Ajax call (jQuery.ajax), that does not execute the success callback function.
$.ajax({
url: target,
contentType: 'application/json; charset=utf-8',
type: 'POST',
// type: 'GET',
dataType: 'jsonp',
error: function (xhr, status) {
alert(status);
},
...
I have a jquery tabs with jquery multiselect in my second tab. My problem is that the multiselect doesn't load the css and js if it's in second tab. If I put in in a first tab it works fine. What am I doing wrong?
...