Given the following code on an ASP.NET MVC View:
<% using (Ajax.BeginForm("AddCommunity",
new AjaxOptions { UpdateTargetId = "community-list",
OnSuccess = "BindCommunityHover" }))
{ %>
Add Community: <input type="text" id="communityName" name="communityName" />
<input type="submit" value="Add" />
<% } %>
And the ...
Hello,
I would like to create a javascript playlist with Jplayer. This is a nice and easy tool, however I never coded with javascript.
Look at the javascript used in this demo. It uses a list to store MP3 and Ogg files :
var myPlayList = [
{name:"Tempered Song",mp3:"http://www.miaowmusic.com/mp3/Miaow-01-Tempered-song.mp3",ogg:"ht...
I'm trying to call the jQuery text() function and run it through the trim() function to remove all trailing and leading whitespace. Seems to work great in Firefox, however, does not work in IE7 (refuses to remove a space trailing at the end).
Any ideas?! Maybe a regex solution?
...
Using the following JQuery/AJAX function I'm calling a partial view when an option is changed in a combobox named "ReportedIssue" that is also in the partial view. The is named "tableContent".
<script type="text/javascript">
$(function() {
$('#ReportedIssue')
.change(function() {
var styleValue = $(this).va...
Hi,
i'm trying to implement the jquery autocomplete plugin.
I've got it up and running, but something is not working properly.
Basically i have a autocomplete-list of employees.
The list is generated from a table in a sql-database (employee_names and employee_ID), using a VB.NET handler (.ashx file). The data is formatted as: employee...
I have this code that it is working on firefox and chrome, but in IE8/IE7 it's not working.
The server is not been reached ever.
$("#adicionarItem").click(function(){
$.ajax({
type: 'GET',
url: $("#formAdicionaItem").attr("action"),
data: $("#formAdicionaItem").serialize(),
success: function(result){
...
I have the following home-grown jquery plugin:
(function($) {
$.fn.defaultButton = function(button) {
var field = $(this);
var target = $(button);
if (field.attr('type').toLowerCase() != 'text')
return;
field.keydown(function (e) {
if ((e.which || e.keyCode) == 13) {
...
I'm new to CouchDB, so please bear with me.
I have an instance of CouchDB running on a VM. I can access it just fine through the browser via futon or directly at:
http://192.168.62.128:5984/articles/hot_dog
Calling that URL in a browser returns the proper JSON. But, when I try to call that exact same URL via ajax, I get nothing:
var...
Hello! I am trying to implement a live search on my site.
I am using a script somebody has already created. http://www.reynoldsftw.com/2009/03/live-mysql-database-search-with-jquery/
I have got the Jquery, css, html working correctly but am having troubles with the php.
I need to change it to contain my database information but everyt...
I'm having an extremely difficulty time getting the flowplayer to show up and the worst part is I have no idea what is wrong because I'm not getting any error messages!
I have an external javascript file:
C:/desktop/mysite/js/jq/plugins.js
calling $f() from:
C:/desktop/mysite/thirdparty/flowplayer/flowplayer.js
the swf files also li...
I'm having some trouble figuring this out. I have an unordered list menu that I want to style all the last elements with a folder icon and style all the expandable (parent) elements with a plus.gif image. I wanted to simply change the class by using .addclass() using jquery, which will contain the css to add the background-image. My j...
I have a list with links. These links are links to tables on the same page. What I want to do is whatever link I click in the list it will show its corresponding table and hide all the others.
Without adding a different id/class to each link in the list and its corresponding table, is there a way to find out which element was clicke...
Is there a way I can tell how many times a from submit button has been clicked using JQuery if so can some one please provide a code sample? Thanks!
...
Im using an existing widget from the jquery-ui labs call selectmenu. It has callback options for the events close and open. The problem is i need in these event to animate a node that is part of the widget but not what its connected to. In order to do this i need access to this node.
for example if i were to actually modify the widget c...
I'm new to JQuery and was wondering how can I have Changes saved! displayed only once even if the user presses the submit button multiple times for example if a user decides to change there info three different times the text, Changes saved!Changes saved!Changes saved! is displayed i only want Changes saved! displayed once.
How can I f...
I have a very simple bit of jQuery to retrieve my latest Tweet
$.getJSON("http://twitter.com/statuses/user_timeline/username.json?count=1",
function(data) {
$("#tweet_text").html(data[0].text);
});
This works fine on a simple HTML file on my desktop. However, once the file is accessed from my local...
I've been using jquery 1.3.2 to pull snippets of html (including script) from a server. A typical response might be:
<div id="content"><div id="inner">...
<script type=...> alert("hello world");</script>
<p>Hello World</p>
</div></div>
I've been using the query .get function:
$.get($(this).attr("href"), function(response) {
$(...
I have a table of results in an ASP.Net MVC page where the last column is an View Details link. I want to have the user click the View Details link and an AJAX method be called to open the results in floating dialog.
What I am struggling with is how to link the AJAX call to the link in the results table. I was using a link which embedde...
I am attempting to use livequery. I unfortunately am stuck using jquery 1.2.6.
This is my code:
$(document).ready(function() {
$('a.sort').livequery('click', function(event) {
alert('hello');
});
});
If I click ANYWHERE in the document, I get the alert 'hello'.
What exactly is wrong there? Is it some bug with jQ1.2...
Hello. I am having trouble constructing a jqGrid TreeGrid using local data. This method works just fine as a regular grid if you comment out the treeGrid and ExpandColumn attributes, but once you add those to try to make it a tree grid, it doesn't create a tree grid (it just creates a "normal" grid), and it no longer sorts properly.
I ...