I am using jquery.
I have tried searching how to implement them but it makes no sense to me. It talks about apache and Django and Lighttpd, but I have no idea what those are.
I used ySlow on my webpage and it told me I need an expires header..
Apparently it really helps with performance though and that's what I really need.
Anyone help...
I have an EditTask View for editing the following properties for a Task that I am modeling.
[Task Name]
[Project Name]
[Assigned Employee]
Task Name and Project Name are just simple text boxes.
I want Assigned Employee to be a selection from all the available Employee's currently in the database. Dropdownlist is not ...
i made a jquery modal.
am trying to populate data using Ajax inside modal.
I am getting an id , using that i wanna populate data using AJax.
how shud i call ajax on click event...
is there any other event the modal is open or loaded...
modal is just a div show hide thing...
...
Can the same "disable" be used to turn off a function using a checkbox for example? Any out there?
...
I want to be able to change all the anchor's properties on a page. But I don't know how to loop through all of them.
...
There must be a cleaner way to do what i'm trying to do here...
I have a jquery Ui dialog box that opens when i click on the eventClick handler in the FullCalendar plugin.
The dialog box contains the details of the event. On the bottom of the form there should be an edit button, that will close the dialog box down and open a new one w...
I'm trying all day to set up a peristant style attribute to the body tag of the ckeditor instance. I could not find something like bodyStyle in ckeditor.config api (only bodyId and bodyClass).
So I was trying it myself, with the following solution (jQuery is used):
$(this).find('textarea.editor').ckeditor().ckeditorGet().on( 'instanceRe...
The way it is, I learn the methods by jQuery.getJSON ,
I tried to made a small album with dribbble's api.
I would like to click on pictures to enlarge, (slides).
I according jquerytools and fancybox the demo format output.
But the strange thing is that
The things we do not have a slide effect.
However, the output of the html copy ...
How would I change the html of a tag like so:
$('#someId').html('<p>foo bar</p>');
while using the live() or delegate() function? Just for clarification I don't want this to happen on hover or focus or click... I just want jquery to immediately change the html inside of a certain tag.
Basically, I'm trying to change the logo in t...
So for example, I have a list and I need to extract the hrefs from it:
<ul class="list1">
<li><a href="link1">Link1</a></li>
<li><a href="link2">Link2</a></li>
<li><a href="link3">Link3</a></li>
</ul>
BTW, this forums spam protection is not letting me put any more hyper links which is why the code above is semantically incorrect.
And...
the newly inserted rows just showed for 2 secs.then disappeared...
$item = $( "<tr><td><input type=\"text\" class=\"inputBig\" /></td>"+
"<td><input type=\"checkbox\" checked=\"checked\" /></td></tr>");
$item.prependTo($("#tbodyPI")).show();
...
How can I check check-boxes (on page load) according to value of check-boxes using jQuery? I have list of values that I have stored within localstorage (Long live HTML5 !!) A sample data would be
something_random|something_random2|something_random3
And basically I want to read each value and make sure onload checkboxes that already ha...
function appendRefToLinks(ref){
alert("hi");
$j('a').each(function(i){
alert('hello');
$j(this).attr('href',$j(this).attr('href') + "?ref=" + $j.cookie.get("tb_ref"));
});
}
I see the hi alert, but I have to links on my page, and I never see hello.... what am I doing wrong?
...
I am trying to post a request to the google authSub for youtube. I use jQuery for AJAX posts etc. When I make the POST I get a 405 error: "405 Method Not Allowed".
Here is my js:
$.ajax({
type: 'POST',
url: "https://www.google.com/accounts/AuthSubRequest",
beforeSend: function(xhr){
xhr.setRequestHeader('X...
$(document).ready(function() {
$('#nome_dominio').autocomplete("testeJson2.php", {
parse: function(data) {
},
formatItem: function(result) {
return formatar(result);
}
}).result(function(e, result) {
alert ('escolheu algo');
...
Hello,
I've noticed this weird behaviour of jQuery in Safari. After setting up the call like this:
$.ajax( {
'url' : url,
'dataType' : 'json',
data : reqdata,
timeout: 20000, //10 secs of timeout
success : function(data, textStatus, XMLHttpRequest) {
console.log("success");
if ((data === null) || (d...
Like, I want to check if a link has a certain domain, or already has parameters attached to the end.
is there a way of doing a regex thing like ~= maybe?
currently, I have
alert(ref);
$j("a[href*='mysite']").each(function(i){
alert("hello");
$j(this).attr('href',$j(this).attr('href') + "?ref=" + $j...
I'm trying to use the new JSON ModelBinders in MVC 3 which Scott Guthrie talks about in his blog.
My example is very similar to the one he is using. I have a model with 3 values which I am trying to POST to the server.
The model looks like this:
public class CommentViewModel
{
public string Product { get; set; }
public string...
function formatar(result) {
return result.q + ' (teste ko)';
}
$(document).ready(function() {
$('#nome_dominio').autocomplete("testeJson2.php", {
//data is a string formatted in json
parse: function(data) {
//so, we can use JSON.parse
var responseObject = JSON.p...
Possible Duplicate:
Disable browser's back button
How can I disable a browsers back button, in an asp.net mvc project. Can I use java script for this ? or is there any other ways to do this ?
...