In my page i have download links to files like Documents,Audio and Video and on click of that download link i want to update hits counter in database for that i use the strategy of jquery ajax request that will update hits counter but the issue is when i click on hyperlink it call the jquery function but doesnt call my controller action ...
does anyone know whether there is a way to make an image grayscale on hover - other than by creating 2 separate images and altering the src.
thanks
EDIT - SEMI WORKING CODE...:
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="scripts/p...
pQuery is a pragmatic port of the jQuery JavaScript framework to Perl which can be used for screen scraping.
pQuery quite sensitive to malformed HTML. Consider the following example:
use pQuery;
my $html_malformed = "<html><head><title>foo</title></head><body>bar</body></html>>";
my $page = pQuery($html_malformed);
my $title = $page->...
Hey Community out there - here comes a tough one, at least for me. Maybe there is some help out there.I am working on a full page vertically/horizontally scrolling website that is powerd by the scrollTo plugin. In general all is working good and smooth but with some content, like the Nivo Slider, the scrolling becomes a bit shaky, like h...
Hi,
Is there a better way to replace a string as having & in the textarea breaks the script as it thinks its another & parameter?
function doRequest(){
var str = $('textarea#tr').val();
$.ajax({
type: "POST",
url: "index.php?sd=t",
data: "txt="+str.replace(/&/g, "and"),
success: function(){
$("div").css('color','red...
I'm working on a small webapp that generates exercise program printouts. A user (ie personal trainer) can create an exercise program, then enter the email address of one of their clients. A link to the exercise program then gets sent to the client, like so...
http://www.myurl.com/generate.php?hash=abiglonghash...
The hash is a sha51...
I have to find an element by its id with jQuery. This element has the id:
txtHistoricalPricesDate
which would be easy to find under normal circumstances with the following:
var element = $('#txtHistoricalPricesDate');
but unfortunately, I'm working in an ASP.NET app, which helpfully renamed the element to:
ctl00_ContentPlaceHolder...
Hi there,
i am searching for a jQuery Plugin which should validate the textarea to the min. character with the count. like the one they are using in this site.
any idea about the existing plugin?
thank you
...
Hi guys,
This might spund a little bit funny, didn't even know how to put the title at first. It could be due to long hours of work or I'm just doing something wrong.
I have a file, say comment.php, which contains something similar to:
var params = $('form#myform').serialize();
$.get("/ajax/file.php?"+params, function(data){
if (d...
Today I try to make a dynamic dropdownlist using jQuery. I only provide one select list on the page at started. After usser selecting a option, if the selected category has sub categories, one new select list will be added next to the original select list by jQuery.
But I don't know how to implement my idea. How to add a select list and...
My menu is a bunch of links which I then use CSS to style as buttons
<div id="menu">
<a href="" class="mybutton">Item 1</a>
<a href="" class="mybutton">Item 3</a>
<a href="" class="mybutton">Item 3</a>
</div>
When a menu item is clicked and is active, what's the best way to style it differently? Do I use jquery or javascript ...
Hello
Im looking for a function that will allow me limit number of characters in li tag.
Tried to do it that way:
$('li.latestnewsfooterCol').limit('5');
but this dont seem to work.
Can anyone help me please?
thank you in advance.
...
Hi,
I am using the jQuery inline form validation to validate my form. my form structure is such that it is split into two columns. the second column just have the text area. while the first column have the rest of the field.
here is the code that i am using for form.
<h1 class="com-response">Leave a reply for this Article</h1>
<d...
i want that when i open a paeticular page in the website an image or a flash runs immediately and then i can chose to close it. can i do this using jquery? if yes can anyone help me with the codes or ideas? im a novice in jquery, just learning.
thanx in advance...
...
I am trying to load some content into a page using Ajax. The html that is loaded contains some javascript code. Even though the code is wrapped within $(document).ready, it gets executed before the content is inserted into the document, because the parent document's Dom is ready by the time the content is loaded.
How can I defer the exe...
Hello,
I have the following code, and the checkb starts from checkb01 to chekb342.
<tr>
<td class="specs_under">Specs</td>
<td id="checkb77" class='checkb'><input type="checkbox" id="add_remove77" class="change_image77"/></td>
<td class="specs_under_value" id="specs_unit77">1</td>
<td rowspan="13" class="specs_unde...
I want to mimic some of the Events like Ctrl+D or Ctrl+S
Here's a piece of code that I found on StackOverflow but this also is not working
var evt = jQuery.Event("keypress");
evt.keyCode = 100; // d
evt.ctrlKey = true;
$(document).trigger(evt);
...
Is it possible to read JSON feed available in another site which is HTTPS?
I'm getting empty string in return.
...
I am using a javascript plugin called pop (http://pop.seaofclouds.com/) to have a drop down menu.
It works fine but I want to show long strings so I need the drop down box to be wide rather than long. I would love to be able to make it so that if the box that appears extends the page to the right then the box would stretch to the left.
...
We are using the redmond theme from jQuery UI and we have almost ready another theme completely customized for our customer.
I would like to let the userto choose its theme between the two.
How can I do it?
...