Hi i wanted to remove a link and i got this code
$(document).ready(function(){
$(".features-list a").removeAttr("href");
And is not selecting the element
<ul class="features-list">
<li id="f1"><a href="http://www.somepage.com"Link that stops being a link</a></li>
</ul>
I added the id to try and see if i could do this
$(".feature...
Hi to all,
i would like make a script that detect if the page is full loading in 30 or else refresh the page with method (CTRL + F5) of Firefox that clear the cache of that page and refresh..
Is possibile to make?
P.S: If is not possibile to make in Jquery i can use normal javascript.
Thanks in advance.
Kind Regards.
Luca.
...
Please, show me how to get my a random question, $randomQuestion (i.e., "What color is the sky?"), and matching answer, $matchingAnswer (i.e., "BLUE"), from the $quizID's table's list of questions in my SQL database. Then, please help me use jQuery to refresh the $randomQuestion and $matchingAnswer, without refreshing the whole page.
I...
I have an AJAX request:
$.ajax({
url : "proxy.php",
type : "POST",
data : xmlData,
contentType : "application/x-www-form-urlencoded",
processData : false,
success : function(data) {
// success
},
error : function(data) {
// error
},
});
Which is being answered by a PHP proxy:
header('Conte...
I have the following JS function triggered by a button:
function uploadPicture( ) {
$("form#pictureUpload").ajaxSubmit({
data: $("form#pictureform").serialize(),
type: 'post',
url: '?action=loadpicture',
success: function(response) {
$('#div-pictures').html(response);
}
});
...
I need to return dynamic loaded content. I thought this was the way to do it, but the function returns blank. What do I need to do in order to set htmlCode with the html code retrieved from jQuery.ajax?
// Get directory listing
function getHTML(instance, current_path, dir) {
var htmlCode = '';
jQuery.ajax({
type...
I have this code but it isn't working on my localhost and I don't know why. Can anyone shed any light on this?
(Script is in head and the other code is in the body)
<script type="text/javascript">
$(function(){
$(input[name='jsenabled']).val('1');
});
</script>
<input type="hidden" name="jsenabled" value="0" />
<label for="si...
I'm trying to put this jquery carousel on a page:
jqueryfordesigners.com/jquery-infinite-carousel/
http://labs.webtemplateprofessional.com/app-portfolio/
by default, the scroller only has 1 line of thumbnails, but I'd like them to appear in a 4x2 grid.
instead of 1 2 3 4 5 6 7 8
I don't know much about jquery
thanks
...
Hey guys, I have a bit of a weird problem. I have a jquery script that basically prepends messages from data in a php script in descending chronological order one by one so that latest messages are on the top. What I want to do is somehow put a div container around two or more these messages as they come out so I decided to check which m...
Using Jquery, how can I get the URL of an iframe after redirection has occurred to a URL in the same domain?
...
A I have a PHP file that if the user access it directly he should be redirected to another location, but if my script call it through ajax, it should do nothing special.
For example, if a user access
/site/page.php
he should be redirected to
/index.php?view=page
But if he is on the index.php?view=page the file should load without ...
Hi,
I'm implementing a live search feature on my website(rails). Everytime there is a keypress, I'm submitting the form. But if the user types several characters, several search requests are sent to the server. I was wondering if there is a way to stop the previous(unprocessed) requests. I want only the last request to be successfully p...
Hey.
I've a few inputs and I want to clear their values after clicking. How to?
<input type="text" value="Name" />
I've tried:
$(this).inputValue("");
But it doesn't work. If I'm unable to change the value, how to add text to the input ($(this).text(""); works very well in, for example, textareas).
Thanks!
...
Using jTemplates, it is possible to composite templates like so...
<textarea id="templateList" class="template"><!--
{#template RESULTS}
This a template for generating a list of results
{#include PAGINATION root=$T}
{#/template RESULTS}
{#template PAGINATION}
This is a template for generating pagination through the r...
Hello all,
I'm very curious how your Rails apps include javascript. For example:
do you package all your js code into a single file and serve it for all requests?
do you conditionally load certain js depending on controller/action?
what tools or techniques do you use, ie: asset_packager, yui compressor, sprockets, BigPipe inspired imp...
I have a website with ajax loaded content. Now I want to implement the jQuery address plugin for better user experience and SEO crawling.
With this line $.address.value($(this).attr('href')); the address changing thing works, but how can I do the history support, crawling and so on?
There is something with the $.address.change(funct...
This may be a semi-duplicate question, but I'm not finding anything that fully addresses what I'm trying to do.
I've got a div with a fixed position, pinned to the bottom of the screen. Its z-index puts it over the main content. As expected, this sticks to the bottom of the screen when I scroll, and its background image partially overla...
Look this code:
<input type="hidden" id="finalvalue" value="2" />
<script>
$.post("/increment_in_one", { param: 2 }, function (data) {
alert( data ); // this shows: 3
$("#finalvalue").val( data );
alert( $("#finalvalue").val() ); // this shows 3
});
alert( $("#finalvalue").val() ); // this shows 2...
Hello,
on the jQueryUI web site, at the following address, there is a sample of styling a button
with a down arrow that can open a menu (maybe it's better to look at the url to be sure to understand... :O).
let's suppose to have the following markup:
<div id="buttonMenu" style="display: none;">
<ul>
<li><a href="#1">Menu Ite...
What's the key code for left shift? When I press left shift do something..
Thanks
...