JQuery :: Implementing A Live Data Feed?
Aug 3, 2010
I am required to create a functionality like the "Top Tweets" of www.twitter.com,I started out thinking that it would be simple and just use a update panel and a timer with a gridview in the middle of it and just have it update every few seconds. but as you can see the problem here it updates the whole entire gridview and I just want to go ahead and add the new updates to the top of the page and not refresh the whole entire feed everyfew seconds.
View 5 Replies
Similar Messages:
Nov 18, 2010
I've been tasked with implementing a JSON feed on an asp.net website that will be consumed by 3rd party apps (such as IPhone, Android, etc) and I'd like to follow best practices.
An example of what I'd like to achieve would be something similar to: [URL]
I've chosen the JSON.net api as this seems to be highly recommended.
My Google-fu must be failing me as I can't find a single full example code for an Asp.net web application with JSON.net implemented on it, so I've no real concept of where to begin.
My question is fairly simple:
Should I create this sort of feed as an ASPX, or ASHX file? Or even a .NET Web Service? (Remember that the tools that will be using this feed are on external apps like IPhones, etc)
I created a test feed in both ASHX and ASPX format ... here is the code (I'm using Subsonic to populate the collection) ... are either of these along the correct lines?
ASPX:
[Code]...
View 2 Replies
Nov 18, 2010
I've recently been using Steve Sanderson's knockout js library http://knockoutjs.com/ in my client side web development. I just recently found out that microsoft has contributed code to jQuery for a Data Link plugin that seems to duplicate what I like about knockout.[URL]
View 2 Replies
Jun 28, 2010
I am using a generic handler (indicator.ashx) to create a graphic that is overlayed from information from a table (called LIVE) from our SQL database. This is working very well and I am very happy with the results.
However I am having an undesirable issue where the query string that is used for this is also being accessed by another page (called ReceiveLive.aspx) which is populating our LIVE table with data when we don't want this. I have been able to track this issue down to our generic handler that seems to populate this table with data whenever the handler is accessed.
The query string that is used to access our graphic through our generic handler is
http://mydomain.com/indicator.ashx?ID=ABC001.
Our other page that writes data to our LIVE database used the query string
http://mydomain.com/live.aspx?ID=ABC001 which is normally only accessed by a small piece of software that sits on the users PC and sends the data when necessary.
My question is this: How do I prevent data from being written to our LIVE table via the Live.aspx page everytime a query string is processed by my indicator.ashx is accessed?
View 10 Replies
May 25, 2010
I want to know how to show A jquery lightbox modal from a link placed inside the listview. My Code Is As Follows.
[Code]....
I am using server side code to assign image to the image control.
And some javascripts to assign the href of anchor tag.
The Problem which I am facing Currently is as follows:-
If I am clicking on the image of 1st row then the jquery light box modal is working perfectly but when i am clicking on the image of other rows then its not working.
What I think, when the listview tries to repeat the rows the id of that anchor tag & image control is getting changed and the javascript which I am usiong to assign the href attribute of anchor tag, cannot find an id for that same anchor tag and the image control.
View 3 Replies
Jan 27, 2011
I am developing a web application by using asp.net 3.5 and sql server 2008R2. I have to create a page as like as facebook News Feed (wall post). I need post Status and reply comments. I know it will be done by jQuery but I am not expart of Query. Anyone help me with sample code or demo project?
View 1 Replies
Mar 11, 2011
I have implemented Continuous Page Scrolling according to this post given below [URL] But problem is. How to handle post back events on scrolling e-g On Scrolling i render a user control in ashx handler where I have a asp.net button with click event but don't know how to handle click event because on clicking it does not fire click event except submiting a form and redirect to ashx handler with white screen.
View 1 Replies
Jun 22, 2010
what is the correct way to pass data through the AJAX calls and have it be model-binded into an object inside my Controller Action?
So far, I've read in some places that jQuery sends data in key-value pairs, so I don't have to do anything extra, while in other places, I've read that I have to first use a JSON deserializer and then bind the result. I've currently implemented my Controller Actions as ones that accept HTTP POST.
View 2 Replies
Sep 13, 2010
I have a table that loads after the intial load of the document so I can't use$(document).ready function()I have been able to manipulate every thing else using the live function, besides applying the css. Can some one tell me how to use the live and addClass functions together without using the click event. Some of the other events I tried are mouseover, mouseout, mousemove, hide(); etc. Here is the code snippet:
$('.mycontent').live('someevent', function () {
$this.addClass('mynewclass');
});
Basically I want to hide the .mycontent item but after the document has been loaded and certain postbacks have been made.
View 3 Replies
Oct 28, 2010
I am attempting to implement the suckerfish menu found on this tutorial. I get "object expected" error from the sample javascript:
$(document).ready(function () {
$("#nav-one li").hover(
function () { $("ul", this).fadeIn("fast"); },
function () { }
);
if (document.all) {
$("#nav-one li").hoverClass("sfHover");
}
});
I have imported the JQuery using:
<script type="text/javascript" src="~/Scripts/jquery-1.4.1.js"></script>
The JQuery import is in the page header. The javascript is just inside the <body>.
It would be nice if I could tell which object is having the issue instead of being pointed at this block of code. I'm new to JQuery and beginner level javascript.
UPDATE
The start of the menu:
<ul id="nav-one" class="nav">
<li>
<a href="#item1">item 1</a>
<ul>
(I think the #nav-one points to the id of the menu "nav-one").
And I believe this css covers the "sfHover" part:
#nav-one li.sfHover a {
background: #ccc;
color: #000;
} [code]....
View 1 Replies
Mar 1, 2010
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 this correct? How would I do this in ASP.NET?
View 3 Replies
Nov 8, 2010
[Code]....
Implementing the listview control with delete link and lightbox?
View 1 Replies
Nov 16, 2010
I am using the following code to post data from a asp.net 2.0 site to an asp.net 2.0 web service that post the data to a server:
$.ajax({
type: "POST",
url: "SynchroniseCustomers.asmx/synchroniseCustomers",
data: JSON.stringify(customerObj),
[Code]....
Thing is, if I run this locally and drop my internet connection the web service returns a 500 error (like I want it to do) and deleteCustomer(customer.id); is not called. However, on the live site if I drop my connection the web service does not return an error and deleteCustomer(customer.id); is called even if I don't have a connection to the internet (customer gets deleted from local database without being posted to the web server).
View 2 Replies
Feb 26, 2011
Live Chat is a very famous tool on websites, and the operators use a special web/windows interface to talk to the clients.What I want to implement is to specify some email accounts, and when the client click's the live chat and starts typing, his/her instant messages are delivered to the available email account. My operators can talk back to them as if they are on their friends list.I don't need to require any login or registration for clients to use this Live Chat.So are there any ideas about how to implement such a thing? Are there any good third-party-modules that already do that?
View 4 Replies
Mar 21, 2011
I am able to get a token with Windows Live Delegate Authentication samples provided by Microsoft.
Now I want to access emails (New, Read, Unread etc) from live account. How can I achieve it with the help of Windows Live Delegate Authentication? Are there any examples for the same?
The Samples given by Microsoft are not related to emails.
View 2 Replies
Oct 26, 2010
I am using ASP.NET MVC and jquery. I would like to implement preview functionality to a form. i.e. I have a form with number of fields for example name, address etc.. Before the user submits the info, he/she can preview it as to how it will appear on the site. how I could implement this in a cleaner way? I have tried regenearting the html on click.. but it's very messy.
View 3 Replies
May 20, 2010
I'd like the user to specify a RSS feed address and serialize the information from it. I am not interested in the XML format, but populate a strongly typed object from the XML. My question is, is there a standard that all RSS feeds support (Do all of them have date, title etc)? If so, is there a XSD that describes this.If not, how do I handle serializing a RSS feed to an object in ASP.NET?
EDIT:
The SyndicationFeed's Items have the following properties:
Title.Text -> Gives us the title
Summary.Text -> Gives the Summary
Q1 - The Summary includes the html tags. Is there a way to strip them? I am interested only in the text
Q2 - Do all RSS feeds have full content in the Summary element? I see that some RSS feeds have only a few lines for Summary while others have the entire content of the post.
View 6 Replies
Mar 7, 2010
I've wanted to incorporate my blog into my website, and be able to organize the data in the blog based on the keyword tags- so I can use the single blog and present relevant blog entries on different sections of my website, where I have control over the formatting, etc.
After exhaustive research (where I've learned a lot about RSS, XML, ATOM), it looks like I'm going to have to write one heck of an extensive xsl file to be able to access the XML data in an atom feed, and it seems that surely I am trying to reinvent the wheel.
Does Visual Web Developer Express have a better way to create a website with atom feed elements? If not, is there another way I should go about this?
View 3 Replies
Nov 6, 2010
I am going to import some data, and I have the data available in either a JSON feed or a XML feed. I can't decide if I should use the XML or the JSON feed.
What are the pros and cons of choosing either feed, and what is your prefered choice?
View 4 Replies
May 17, 2010
their is an easy way to supply data to a menuitem from a sqldatasource?
View 6 Replies
Feb 10, 2010
I am looking for a simple (fastest execute solutions) for generate RSS feed from user search result in ListView & ObjectDataSource?
For example; User does some search, the search result summary is display in ListView. If the user like the search result, he/she click on RSS button, then RSS feed is generate with entire current view record/table.
View 2 Replies
Aug 13, 2010
Hey I have a XML Feed which is sometimes slow to connect to making my front page quite slow to load sometimes.I load it as follows Try
[Code]....
How Can I set a timer on these i.e give it 5 secs if it doesnt load, just forget it and go straight to catch for example
View 1 Replies
May 18, 2010
Currently I have
dlRSS.DataSource = GetRSSFeed("http://www.foodsafetynews.com/headlines.xml")
dlRSS.DataBind()
Function GetRSSFeed(ByVal strURL As String) As DataTable
'Get the XML data
Dim reader As XmlTextReader = New XmlTextReader(strURL)
'return a new DataSet
Dim ds As DataSet = New DataSet()
ds.ReadXml(reader)
Return ds.Tables(2)
End Function
<asp:DataList ID="dlRSS" runat="server" Width="100%" >
<ItemTemplate>
<strong><p><div><asp:HyperLink ID="TitleLink" runat="server" Text='<%# Eval("title") %>' Target="_blank" NavigateUrl='<%# Eval("link") %>'/></div></p></strong>
<strong><p> <div><asp:Label ID="SubtitleLabel" runat="server" Text='<%# Eval("description") %>' /></div></p></strong>
</ItemTemplate>
</asp:DataList>
But is returning all rows in RSS Feed I would only like top 5 or so
View 1 Replies
Nov 23, 2010
I have to bind OData feed, which is a response from WCF Data Service, to a gridview. The structure is as follows:
[Code]....
[Code]....
View 1 Replies
Mar 26, 2011
I will shortly be going live with a new .net web application. It will be deployed to a load balanced environment over 5 servers.Before go live there is a holding site on all the 5 servers to which the domain is currently pointing ->Prior to go live, I would like to deploy the new site to 5 servers and for the holding site to remain and for it to be what the public sees. And when the time comes, I can put the new site live with a flick of a switch. I also want the new site to be on the servers so that I can test it prior to go live.I am running in IIS7. This is common practice I presume so what is the easiest way doing that above and achieve installing the new site on the servers will not affecting the holding site. The new site be accessible to me but the holding site be viewed by the general public.
View 1 Replies