I used this example and created a form within the ascx control.
http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/
the problem is, whenever i place a asp.net button or an update panel, the ascx doesn't load. what could be the problem?
...
I have a string which looks like:
<html><head><title>example</title></head><body>some example text</body></html>
I get this string returned as a result to an AJAX request.
I would like the browser to render and display that string. The idea would be to do something like:
$('html').parent().html(myString);
Well, that doesn't work...
is it possible to be able to do without a view for a cakephp controller function? i am trying to have my server return a datatype that is not a string - but an array
my controller function :
function test() {
$this->layout = 'plain';
$task['Numbers']['uno'] = 'mooo';
$task['Numbers']['dos'] = 'says the cow';
...
NOTE: Solved my own problem, it seems. See the edits.
I am trying to write a greasemonkey script that will highlight all the matching texts on the page when the user selects a text, and then remove the highlighting when the selection is canceled. I am looking for a jQuery way to do this. It seems like there is a select event in the jQue...
I have a disabled text field that I want to become enabled when I click it. Unfortunately, it seems that the text field's click() event doesn't fire while it's disabled.
Is there a way around this?
...
I posted a question yesterday dealing with parsing json data. In one of the follow up answers someone said I was taking a performance hit by using the jQuery append() function within each iteration, while using each().
I was doing:
$.getJSON("http://myurl.com/json?callback=?",
function(data) {
// loop through each post
...
jqGrid exposes a property rowNum where you can set the number of rows to display for each page. How do you set the grid to just display ALL rows?
Right now I'm just setting the rowNum to something really high like <%= int.MaxValue %> but I'm wondering if there is a better way.
...
Hi all, the problem i have is that whenever i try to drag and drop with a handle, in the process of drag and drop, the body text will not stay aligned with the text, which is illustrated in the code attached at the end.
The reason why I prefer not to put the handle in the <p> tags, as some of the examples on the web shows, is that i wo...
I've got a simple Listbox on a HTML form and this very basic jQuery code
//Toggle visibility of selected item
$("#selCategory").change(function() {
$(".prashQs").addClass("hide");
var cat = $("#selCategory :selected").attr("id");
cat = cat.substr(1);
$("#d" + cat).removeClass("hide");
});
Th...
I'm modifying some code from a question asked a few months ago, and I keep getting stymied. The bottom line is, I hover over Anchors, which is meant to fade in corresponding divs and also apply a "highlight" class to the Anchor. I can use base JQuery and get "OK" results, but mouse events are making the user experience less than smooth.
...
Okay, I have a map of the country, the user clicks on their state, and a bunch of suppliers is loaded through jQuery via a page like this:
$('#sa').click(function () {
$('#mapimg').hide();
$('<div id="info"> </div>').load('dealers.php?state=sa', function () {
$(this).hide()
.appendTo('#dealers')
.slideDo...
I have a small piece of jquery, where I am hiding then showing a div. After both events are completed, I execute a few lines of code which is like so:
$(".subFields").hide("slide", { direction: "up" }, 250, function() {
$(".subFields").show("slide", { direction: "up" }, 250, function() {
...
Hi, how do i actually retrieve data from a website when i write the URL in a textbox and then hit the submit button. I want the data to be put in an div that i have. Is this possible?
I have tried with this, but it doesn't work!
<script type="text/javascript">
function contentDisp()
{
var url = $("#text").val();
$("#contentArea").load...
Hi,
I need to make a horizontal "breaking-news" style bar with jQuery. I pick new from the server (the easy part) and I need some way to make them continually scroll from left to right. Any jQuery plugin to help me? thanks
...
Hi,
I have a simple form to check the value of post code entered by the user against a variable,
I'm trying to disable the submit button and do the check and give alert message, I can't figure out what I'm doing wrong, any help would be appreciated.
<form id="post_code">
<input name="textfield" type="text" id="postcode" siz...
I'm looking for a way to populate a select box with unique values from a table column using jQuery. So far my attempts have been futile but I am relatively new to front end development so I'm hoping someone can show me the light.
Cheers.
...
I have just started to learn jQuery + ASP.NET MVC. Whatever tutorials I have read about jQuery, they suggest that all jQuery code should be in head element.
Now in the ASP.NET MVC project, I have one master page which is responsible for head element. In other view pages, I get content place holder which draws in body element.
I am conf...
Please Help how to write JQuery coding in Helper function on Rails.
...
I am using jquery validation plugin for validation. I am using one javascript function for many forms so it is difficult to define rules for all fields for many forms.
What is the code if I want to apply a rule "required=true" for all textfields those have a class "required".
I am trying this but it is applying this rule only on first ...
I want to register user clicked on ads and save users info to database without change ads operation.
<div>
<a>ads link</a> // without modify ads
<a>ads link</a>
<a>ads link</a>
<a>ads link</a>
</div>
how to update user info to database before load link ads.
Please help.
...