AJAX ::javascript Which Can Keep On Checking For New Articles On Various Sites?
Mar 31, 2010
I am in process of building a website using asp.net and c# which fetches the new articles posted on various websites and posting those in one place. So basically, I am looking for a javascript which can keep on checking for new articles on various sites,and if it finds a new article then it will fetch it and post it on my website with comments at the bottom.e.g.If a new article is posted on cnbc.com then that article must be fetched and posted on my website with comments "courtesy:cnbc.com"
I am interested in developing Web Parts that can be used in our ASP.NET sites and our SharePoint sites. An example Web Part I have in mind is a Post Code (Zip Code) look up.- Visual Studio 2010 Premium- SharePoint Designer 2007- Windows 2003 Server (therefore WSS 3.0)- No SharePoint Server
I am using if (document.getElementById('<%= MainImg.ClientID %>').complete) { hideLoadDiv(); }
to hide a div which indicates the image is not loaded yet,but it hides before the image has finished loading and is shown, while the browser is giving me a message that the page is still transferring data from the server :S
Is there another function I can use to make sure that the image is fully loaded?
<script type="text/javascript"> // check the spelling on a textarea $("#check-textarea").click(function (e) { e.preventDefault(); $(".loading").show(); $("#text-content") .spellChecker({ lang: "en", engine: "google", suggestBoxPosition: "above" }) .spellChecker('check', function (result) { // spell checker has finished checking words $(".loading").hide(); // if result is true then there are no badly spelt words if (result) { alert('There are no incorrectly spelt words.'); } }); }); </script>
I am getting Error Message Object Does not support this property or method..
I am creating a custom control and had a thought before I began. My control relies on the jQuery library to work. What if the user already has a version of the library already on their page. Will this effect anything? If my version is newer / older and my control will only work with that version of the libaray, what should I do?
I have found plenty of examples where the checkboxes to be checked are within a datalist, gridview or other datacontrol like that.. but i dont have that setup..
I have individual checkboxes within my page and need to provide a way to check or uncheck them all..
I cant use a checkboxlist because of the layout of the page.. so not sure if it would be easiest with javascript or do it with the checked event for the single check box that will be used..
I know that may not be the best or cleanest way, but is there a better way?
Reason i cant use a checkboxlist for the larger set of checkboxes, is that a few of them will have additional fields that need to be completed if they chose certain checkboxes.. so i have those controls next to the checkbox that they belong with..
On my web part page I use a JavaScript timer to call a Page Method to check if data has changed and then only I refresh the page. Now I want to disable that JavaScript timer when the web part page is in shared personalization mode. Then when web part page is again in BrowseDisplayMode, I want to reenable the timer to poll for updates. How do I access web part manager personalization mode in the client side JavaScript ? Do I need to use a hidden file in UpdatePanel ?
I have some controls on the asp.net page that can be required on certain senario and can be not required on others.
So we enable/disable them dinamaically depending on the current transactions.
Now I am thinking of a way where I can check the required field by Javascript on the click event of save button. Remember control not be required at all time.
I am trying to get a function to work in VB ASP 2010 that would retrieve all articles in my sqldatabase. The problem is the return syntax of this function results in an error.
I have some code which connects to a port quickly and if it can connect then it turns the line in the gridview green, if it cant and times out then it turns the line red. This is great, the problem i have is that the page takes a long time to load (as it has to check each port first) and then if i want to check again if the port is up / down i have to manually refresh it which is not what im after.
[Code]....
The code is in a loop and cycles through the various ports in the DB, what i want to know is how i can write a loop that will going through each port without waiting for the last port to come back with a result
Secondly do this in some way that it will auto refresh every 30 or 60 seconds without having to refresh the whole page.
Anyone have any good articles on creating user sections? I've been finding some stuff that is rather dated for asp 2.0, I'd like to find some stuff that is 4.0.
I am having a big problem with the OnTextChanged event of a textbox....
I have tried several different scenerios and just don't seem to be getting it to work right...
I either get a full page postback which is not what I want or get a very peculiar extra textbox added to my page after OnTextChanged is executed...
currently the update panel is working as expected but it inserts an extra textbox into my form "magically"... so strange...the textbox that is added keeps a running history of what is submitted...you can take a look here at the behavior.. it is the email form in the middle of the page
Sample
Here is what I am working with...
[Code]....
and then in the code behind I insert a image to let the user know what is going on..
[Code]....
not sure why an extra textbox is added but everything else seems ok.....
I'm currently doing some work involving optimization of session-related code. The code I work on uses a state server approach in a web farm environment. I want to deeply understand what happens session-wise when a request occurs on the server.
Fast, Scalable, and Secure Session State Management for Your Web Applications Underpinnings of the Session State Implementation in ASP.NET - msdn.microsoft.com/en-us/library/aa479041.aspx (I can't post more than two links as I am a new SO user)
How can i make proper search result for example if i have one article now it have different tag like my article is related to asp.net ..in that article i am adding some tag like asp.net, database.user will come and click on that tag and related article will be come for example user click on asp.net tag then al related article will be come.
where the RecentArticles Action (in ArticleController) is :
[ChildActionOnly] public ActionResult RecentArticles() { var viewData = articleRepository.GetRecentArticles(3); return PartialView(viewData); }
and the code in my RecentArticles.ascx partial view: <li class="title"><span><%= Html.ActionLink(article.Title, "ViewArticle", new { controller = "Article", id = article.ArticleID, path = article.Path })%></span></li>
The problem is that all the links of the articles (which is built in the partial view) lead to the same url- "~/Article/ViewArticle" . I want each title link to lead to the specific article with the parameters like I'm setting in the partial view.