I am finally experimenting and trying to learn MVC after years of asp.net.
I am used to using asp.net AJAX PageMethods where you can pass an object that automagically gets parsed to whatever type the parameter is in that method.
Javascript:
PageMethods.AddPerson({First:"John",Last:"Doe"});
Code-Behind:
[WebMethod]
public static Resu...
Hello guys, I have an ajax form that saves a object in the database then return a Message like this:
return Json(new {Message = "Message!"},
JsonRequestBehavior.AllowGet);
We are ok here, but I don't know HOW I'll get this result in the view to display in a jQuery modal. My ajax form is like the following a...
I'm using .NET 2.0 and Visual Studio 2005 to try to create a web service that can be consumed both as SOAP/XML and JSON. I read Dave Ward's Answer to the question How to return JSON from a 2.0 asmx web service (in addition to reading other articles at Encosia.com), but I can't figure out how I need to set up the code of my asmx file in ...
i am doing a jquery back end search of data from a DB table..until i fetch the data from the table...how do i show am image like every where its shown like searching or something like tht
...
First of all, I've checked out all the SO threads, and googled my brains out. I must be missing something obvious.
I'd really appreciate some help! This is what I've got.
UploadController.cs
using System.Web;
using System.Web.Mvc;
namespace NIMDocs.Controllers
{
public class UploadController : Controller
{
public Acti...
Ok, I'm having a slight bit of confusion writing my own jQuery UI widget plugins. The problem lies in the destroy function. In the docs, it says to put the default destroy first then write other things particular to the widget after it.
$.Widget.prototype.destroy.apply(this, arguments); // default destroy
// now do other stuff particu...
I have the following code block code when the document is ready:
$(document).ready(function() {
createDivs(); // creates some divs with class 'foo';
// iterate
$(".foo").each(function(index) {
alert(index + " - " + $(this).text());
});
}
I find that the "iterate" part misses the divs I created in the createDiv...
Hi. I'm using the jQuery UI Button control but don't seem to be able to adjust the size (width and height). Here's the API documentation. I tried setting a STYLE attribute on it, but then the LABEL wasn't centered correctly. Thanks.
...
Hi, when i click a image from my html file i want to change silverlight params value (ex. m=sample.wmv) with jquery without refresh page. can i do that?
Code is below which i used for silverlight.
<param name="initparams" value='m=sample.wmv, autostart=false, autohide=false, thumbnail=sample.jpg' />
thank you very much already now f...
I've written some modal box functionality that loads HTML into the DOM as snippets. This includes AHAH-enabled forms.
I've got as far as pulling out the AHAH settings, and can re-initialize:
jQuery.extend( Drupal.settings, response.setting );
I can also re-initialize:
Drupal.attachBehaviors( container );
I've even ensured that aha...
I have a multi-level lists like this:
<ul>
<li>Item 1
<ul>
<li>Item 1's 1st Child
<ul>
<li>Item 1's 1st Grandchild
<ul>
<li>Item 1's Grand Grandchild</li>
</ul>
</li>
...
function advanced_search()
{
$("#advanced_link").toggle(
function(){
$('#advanced_link').text('Hide - Advanced Search');
$('.advanced_search').show();
},
function(){
$('#advanced_link').text('Show - Advanced Search');
$('.advanced_search').hide();
});
}
this code worked for me..but when i tried to use the css property like
function...
For example, when you use jQuery('someDiv');, it's a function, but you can also use jQuery.ajax(...);.
How is it possible?
...
hi I am using the code below. What I wanted is to have a + or - sign on expanded or collapsed view. How can I do that.
Here is the code
Thanks in advance!
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
<!--//---------------------------------+
// Developed by Roshan Bhattarai |
// http://roshanbh.com.np |
// Fell Free...
I've got blocks of text with various specs in them and want to have jquery highlight whatever matches a specific pattern without inserting any extra html.
The following is the kind of text that I've got to work with.
Intel® Core™ i7 Processor 920 (2.66GHz, 8MB cache, 4.8GT/sec)/ Genuine Windows® 7 Home Premium 64bit- English/ 640 GB S...
I'm using jquery-ui's draggable for drag-and-drop, and jeditable for inline editing.
When I drag and drop an element that's also editable, right after it's dropped jeditable kicks in and pops into 'edit mode'.
How can I disable this behavior?
Edit - the problem happens because of netsting - see this example. I also added draggable to ...
Hy all you smart people
I am using Galleria plugin for a image gallery on a page this page is loaded in a frame page using ajax this is the ajax
$(document).ready(function() {
function loadTab(pageUrl)
{
$.ajax(
{
url: pageUrl,
cache: true,
success: function(load)
{
$("#ta...
I want to add a div on a click and automatically start the resize mouse ui functionality with the mousedown.
I can add the div easily, I have the resize functionality easy. But I can't figure out how to pass the mouse event and bind them so that the resize can start right away.
Imagine a painting like program so the div can be added an...
Hello world,
I am having a funky problem. See (this link won't disappear): www.skitzo.org/~el/bugjeditable.png for the firebug output screenshot.
Here's my code. I run getJSON() to fetch the info from the PHP which pulls from DB and I fill a div with the result. I have jScrollPane and jEditable so a user can scroll down and click to ed...
Hello,
I'd like an input to control that :
jQuery.ajax({
type: "get",
dataType: "jsonp",
url: "http://www.foo.com/something.php",
data: {numberInput: "NUMBER I WANT TO CONTROL" },
On the HTML side I've
<input type="text" id="jqueryControl" />
I want when a user enters a number into the jqueryControl to insert it in t...