I have noticed that in Google web reader (that lets us read RSS feeds on the web), the page does not seem to load ALL the feeds. Instead, as I scroll down, I can see more and more feeds (and the size of the scrollbar increases if you know what i mean)
I assume they do this by finding the position of the scrollbar and do an AJAX call. Is...
I am trying to add Google Maps to my page using YM4R/GM. As a regular submit using form_tag everything works, so I know I didn't mess that part up.
But using form_remote_tag I end up with nothing inside my update div. I tested with rendering text so the right method is being executed and YM4R/GM is returning the Google Maps KML. But t...
I have a link_to_remote and I want to make sure people can only click it once while waiting for it to return.
Is there a good way to disable it after someone clicks it? (Changing the text of the link is nice too, but I want to disable it also to be sure).
This is Ruby on Rails btw.
...
Hi there.
I'm mucking about with jQuery AJAX and have stumbled upon an oddity (or rather a lack of understanding on my part :). Here is the code for my main ASPX page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="jQuery_Test.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional...
I'm working on an ASP.NET WebForms CMS application, and having a bit of trouble solving a particular problem. For a while now, I've had a menu on the side of the admin console that shows a list of the pages, links, etc that make up the sitemap. Users could click on an entry, bringing up a flyout menu at the point of the mouse click. T...
I've been looking around JQuery libraries for the URL hash, but found none that were good. There is the "history plugin", but we all know it's buggy and isn't flexible.
I am loading my pages inside a div. I'll need a way to do back/forward along with the url hashing.
mydomain.com/#home
mydomain.com/#aboutus
mydomain.com/#register
Wha...
I have a jQuery-based "carousel" which switches between multiple sale banners on an e-commerce site. They're each pretty large, and I want the page to load as fast as possible. The first banner is referenced in the HTML, and the others are requested through the JavaScript, roughly like this:
<div class="banner"></div>
Pseudocode for ...
I can't seem to find this info anywhere: When you get geo info about a user who's in the US through Google AJAX APIs, does google.loader.ClientLocation.address.region return the full state name (e.g. "California") or the abbreviation ("CA")?
If you're in the US: What result do you get for "Region" on http://www.thewhyandthehow.com/javas...
I am creating a simple ajax call that retrieves the content of a specified url and writes it to the page. The problem I am having is that it replaces the entire body contents with this information
here is the JS:
(function(){
var mb = window.mb = {};
function get_ad(url, parameters){
var result = "";
var http_...
I'm not that great at Javascript, for the record! I DO know how to use ajax. I just need a bit of help.
I'm having a hard time figuring out how to display a 5 minute countdown, and once the countdown hits zero, to run a function. I need to pass a variable to the function that needs to run. I tried SetInterval but this isn't exactly my ...
What I want to do here is to append the result of addItem action to the current div.
What do you think the problem in the code?
Page
function showNewRow() {
$.ajax(
{
url: "/Details/AddItem/",
type: 'GET',
dataType: 'html',
success: function(data) { ...
I know MVC controllers are quite good at serving JSON formatted AJAX requests, but is there any built-in ASP.NET functionality I can use for these type calls from a plain old web forms site?
...
{"imgsrc":"http:\/\/192.168.1.181\/postcardthis\/facebook\/angel_wall.jpg","message":"asdf","friend":"Friend1","error_message":""}
this my json, here imgsrc location seems dificult, two slahes. what to do to convert perfect url?
...
Iam trying to use a UserControl named CheckBoxControl as value for the ExpandControlID/CollapseControlID attributes of the CollapsiblePanelExtender. It works fine when I use a normal CheckBox instead.
<uc:CheckBoxControl ID="ucHaftpflicht" runat="server" OnCheckedChanged="UpdateStatus" ControlLabel="Haftpflicht" />
<asp:Panel...
Hi
I have an AJAX web service call that returns a chunk of HTML that I then apply to a DIV element on my page. This works fine for any html element except a flash video which comes up with 'Movie not loaded'.
I've double-checked the html that is being returned and it's all fine, and it works if I don't use AJAX, but when I use AJAX an...
Hi in the code below :
1) The form submit action is changed by the document ready fn to make an ajax call
2) If the data from the ajax is not 'No probs' then it puts the error message in a div and changes the value of the submit, so that a second click takes you to the standard action.
This bit works.
3) If there is not an error I wan...
I'm using JSF 2.0 and it's new (actually old, but now incorporated in JSF) ajax features.
I have something like this:
<h:inputText id="name" value="#{coordinatesMBean.name}"/>
<h:commandButton value="Reverse me!">
<f:ajax execute="name" render="reverseName"/>
</h:commandButton>
<h:outputText id="reverseName" value="#{coordinatesMBean...
Hi all,
I have a small "contact form" with jquery validation, php and ajax. My website running on IIS.
The problem is, I am trying to post the form contents using ajax+jquery, but I am getting the response
like "405 Method Not Allowed" (From firebug console).
But its running properly in local server. Pls help me to fix 405 error. Tha...
IE does not work good with unknown elements (ie. HTML5 elements), one cannot style them , or access most of their props. Their are numerous work arounds for this for example: http://remysharp.com/2009/01/07/html5-enabling-script/
The problem is that this works great for static HTML that was available on page load, but when one creates H...
Hi,
Value of window.XMLHttpRequest is Undefined when i run my application even in IE7 or IE8, Is there anything i have to enable in IE7 to make it work.
Thanks
...