I'm trying out the jQuery Validation plugin
jQuery Docs
Here is the markup of my form:
<% using (Html.BeginForm("action", "contoller", null, FormMethod.Post, new { id = "sxform" })){%>
<div id="manifest">
Manifest Option:<br />
<%= Html.DropDownList("docid", ViewData["manifests"] as SelectList, new { @class = "requi...
I'm trying to learn how to get an application access token from Facebook for my app.
I'm sending a jquery reguest (in the firebug console) based on the data specified here (http://developers.facebook.com/docs/authentication/#client_credentials).
I seem to get the response ( access_token = 'my_app_id|'+the_app_token ) but firebug se...
Hi All ,
I have the following code which centers the popup when we scroll , it quickly re-positions itselef to center. How to get the smoothing effect as if it is dropping very smooth.
$(window).scroll(function () {
var top = ($(window).height() - $('.myPopUp').height()) / 2 + $(window).scrollTop();
$('.myPopUp').ani...
...
$(document).ready(function(){
$('form').submit(function(){
$('input#second').focus();
return false;
});
$('#first').blur(function(){
alert('blur');
});
});
...
<form>
<input id=first><br>
<input id=second><br>
<input type=submit>
...
This might be the simplest question of the day.
I'm looking for the best answer based on all knowledged across community, not a basic tab effect but one that could be scalable, easy to implement and compliant with standards.
What could be a good and simple (compatible) way to accomplish having different sections with javascript. I pers...
The first time a user is visiting my website, I am pulling a lot of information from various sources using a couple of ajax calls. How do I reload the page once the ajax calls are done?
if(userVisit != 1) {
// First time visitor
populateData();
}
function populateData() {
$.ajax({
url: "server.php",
data:...
When I do file inputs, I usually set their opacity to 0 and position a browse button beneath them (simply because the file inputs are kind of ugly and inflexible by themselves - and I must to meet the designer's requirements).
I just stumbled across Uploadify.
My form is working at the moment as a standard form with file input uploads....
Hello,
I have setup in jqGrid a delete function call that uses the native features for checking if a row have been selected in the grid or not as in the following code sample:
$("#myGrid").jqGrid('navGrid', '#pager',
{ add: true, addtitle: 'Add record',
edit: true, edittitle: 'Edit record',
del: true, deltitle: 'Del...
What am i doing wrong here?
var navbar = document.getElementById("navbar").getElementsByTagName("li");
var hover;
var moname;
var slider;
var newPos=new Object();
var body=document.getElementsByTagName('body')[0];
for (x in navbar) {
if (x != 'length') {
moname=(x+"-mo");
hover...
Hi.
i am using jquery and jquery ui plugins in my web application.
and i have some asp.net server controls that they register their scripts on the page.
Since my application should be work Local could i put all scripts in master page ?
all scripts i mean jquery script and jquery Ui scripts such as DatePicker Dialog and effects.
or is the...
I have a heartbeat interval which calls a function every few seconds. This function then in turn makes a JSON request to the server via jQuery, the server returns the JSON response and a success jQuery function like usual. Within the success function it does another jQuery function, a foreach for each id. From each id another function is...
Hello
I'm trying to figure out how Uploadify works.
I'm trying to see the POST in FireBug on the demos page, but can't see anything.
I thought even requests that originate from Flash still appear in Firebug.
LiveHTTPHeaders didn't tell me anything either.
When I try it on my site, the file can be selected OK and the progress bar mov...
Hi,
I have 2 close buttons in my colorbox, 1 is the default close button (the X button) and the other is the one I created. I need to know which button I clicked in the onCleanUp event of colorbox. Both of the button can close the colorbox but I need to do something if the button which I created is the one that is clicked.
$(".openBo...
For example, I use:
$('test-div').html("<div></div>")
Actually the html is changed, but when I click "view source" from the browser, in browser the html is not changed, is it a bug for the browser?
Thanks.
...
Website located here:
http://acs.graphicsmayhem.com/spoogs/index.php
Code is located here: http://jsfiddle.net/vMM8Q/ (website for the calendar blocks uses ids instead of classes, not that it matters any)
So the problem I'm facing is that when you collapse either the top-right or top-left Calendars in the first link, and than reload ...
jcarousel does not work in IE6, if overflow property value is visible for "jcarousel-clip" class.
If I use the CSS class as follows, the carousel does not work in IE6
Css Class:
.jcarousel-clip {
overflow:visible !important;}
If I change into,"overlow:hidden", it works fine.
For a particular requirement, I need to use "overflow:vis...
Ajax.BeginForm, Calls Action, Returns JSON, How do I access JSON object in my OnComplete JS Function?
so my ajax.beginform looks like this...
using (Ajax.BeginForm("Coupon", new AjaxOptions { OnSuccess = "CouponSubmitted" }))
and my OnSuccess Function Looks like this...
function CouponSubmitted() {
var data = response.ge...
Hi All,
Im using jquery content move in my webpage and my code is
$(document).ready(function()
{
//hide the all div except first one
$('.msg_body:not(:first)').hide();
//when the anchor is clicked content gets faded
$("a.linkclass").click(function()
{
$('.msg_body').fadeOut("slow");
$($(this).attr(...
I have some jquery code that uses the live method of triggering events:
$(document).ready(function() {
$('.cross-link').live(function() {
$('a[href=#2').click();
});
});
Where 'cross-link' elements can be generated after the DOM has loaded.
Firebug reports that "F is undefined". It references the last line in ...
I have master in my project.i have added js file in my master page.so that i can able to call the function in my content pages.My problem is when i am using this function ""if(!$.browser.msie){alert("Not ie Browser");}"" not working in ie6.In ie6 it is showing alert("Not ie Browser") all the time when the page load happens?Can i get some...