3/21/2023 0 Comments Jquery rss reader![]() ![]() That structure will have two fields: verified and message. I pass the value to a ColdFusion script and then wait around the result. I'm way open to being argued about this way of doing this.įinally we get to the AJAX call. ![]() So essentially - I try to get a span for my particular field. Not that a empty span would even register to a user, but I thought it would be nice if jQuery handled that as well. Why did I do this? My thinking was - it would be kind of nice if I didn't add stuff to my form that was distracting. If the user did type something, I begin by creating a new span to handle a status message. For now ignore that first line in the clause. Now the first thing I want to do is ensure the user actually typed something in. Once I have the value, I do a quick trim on it. (I should probably have filtered it INPUT tags as well.) I begin by getting the value and name. So as you can see - the bulk of the code here revolves around a blur handler for any field with the rssfield class. The last three fields, the RSS labeled ones, are the fields we will care about. I added them to show that the RSS parsing was part of a greater form. The first two fields aren't really relevant. Here is what I came up with.įirst - let's look at the form. While I have support for handling bad RSS feeds, I wanted to create a quick demo where I'd use jQuery and ColdFusion to handle checking the RSS feeds while the user is working on the form. These urls get parsed (via CFFEED) and displayed on a custom page. I'm working on a web site that allows people to enter RSS urls. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |