I was wondering if you can extract an item from a rss file and display it in a div. like extract the title and put it in an h3 tag, extract the description and put it in a paragraph, and have the link below, and all automatic, so you just insert the code and it displays the first 10 items or so?
My requirement: Each time a visitor arrives at a specific webpage i want the main image on the page to be different, or more specifically, one of 6 images which will be shown in rotation. Solution: Set a cookie. Each time the visitor access the page read the cookie and display the corresponding image. Then increment the value and rewrite the cookie, so that next time they'll see the next image in sequence. NB: if the cookie does not exist (first timer) or is at 6, then the value is set to zero (and then incremented).
Problem: Can't get my coding to work. Specifically it just doesn't do anything - no error message, no cookie written. I'm a very novice scripter, as in I've cobbled the coding together from bits off the net that i think i've managed to grasp some kind of an understanding of. Very suck it and see - so far lots of sucking and no seeing!
$(this).html(); I want to dig out all the images in an rss feed and display them using an image plugin. so I have something like this. $('div#rss_feed p a img').each(function (){ #('#imageviewer').append(this); });
Now that worked but I need each image to be in an li element $('div#rss_feed p a img').each(function (){ var h = '<li class="image"><a href="">'+$(this).html()+'</a></li>'; #('#imageviewer').append(h); });
I know I cant use $(this) like the above but I want to do something of the same effect. Is there a way to get the html code of whatever this is pointing to?
I've been asked to put a weather feed onto a website/digital display, please see the image below. I'm new to this RSS feed, and I have been searching all day, but a bit confused, so any suggestions on plugins, code,
I was hoping to get some insight as to why this may be happening. I am using the jFlickr plugin which can be found here:
[URL]
I am using their colobox mashup to display the thumbnails in an overlay when clicked. Problem is, is that I am only getting 21 images to display. I have over 500 images that have been tagged properly.
i am trying to open feedback page.after any user see the pages in a site(i,e when user close page one-by-one and when he or she close the last page that time i want to open a feed back pages).
I would like to some javascript connect to a URL on the same webserver and read a CGI. The output from this CGI is not plain HTML but rather data which needs to be displayed in a moving graph. Coming from a Perl background I'd say I'm looking to do something like:
while (my $data = read_url(http://whatever) { print some pretty moving data across the screen; }
Is something like this possible to do in javascript?
I try to write a script that can read a csv file and then display it on the browser in table form by using HTML and save the file as .jsp. But , I couldnt read the data from the file. Anyone can help ??
Below here is my codes ..
Quote:
// Create some variables var datafile = "student.csv"; var fso, fin, fout;
function read() { var numbers = new Array(); for (i = 0; i < field.length; i++) numbers[i] = document.test.checkboxName.value; var counter=0;
[Code]...
I want to read the values of the checkboxs and store the vlaues into an array (there are more than 1 checkboxs) the form name is text and the names of the check box = checkboxname
<div id='testDiv' style='display:block'>blah</div> then an alert(document.getElementById('testDiv').style.display) will of course give you "block." But, if you give the element a property through an external CSS file, the same alert comes up empty!
This is causing me big problems as I've discovered and is ridiculous. Can javascript read properties from external CSS sheets?
Basically am going to make an search script to my website. I am going to use onkeyup event when the user is writing and my problem is that I wont to make a function that takes in input from the user and put it in the url. So I need to be able to write and read from the url without refreshing the page. I've managed to do this using window.location.search but I cant get it to work because the page keeps refreshing.
I'm trying to read the <title> value from a page head. All browsers I've tried are happy with $ 'title'.text apart from ie8 which returns nothing. Am I doing something wrong, or is it IE8 that's wrong? Is there a workaround?
I have an XML document which lists some information about movies(Title, actor, etc.) I am using Javascript to pull that data and display it as html. Is it possible to create a link for each one of those titles that are pulled from the XML in my JS? Here is my code:
for (var i=0; movies.length > i; i++) { var Title = movies[i].getElementsByTagName("title"); var Actor = movies[i].getElementsByTagName("actor"); var Price = movies[i].getElementsByTagName("price"); results += i+1 + '. ' + ' "<span class="title"><a href="http://www.imdb.com">' + Title[0].firstChild.nodeValue + '</a></span>"' + ' starring <span class="actor">' + Actor[0].firstChild.nodeValue + '</span>' + ' and costs approximately $'+ Price[0].firstChild.nodeValue + "<br/>
I am working on a simple tool for my office.We have a very huge database with 5000 tables. All the tables, Columns and their attributes are stored in to excel sheet.
Tool I am designing is for mapping between front end and back end values. Now I will use an image (front end screen of our application) , when user clicks it, I need the HTML to access the excel sheet and display the back end field,the name of tables it can be found in and other data related to that field
Simply,I want to pull data from excel and display them differently for each different click. I want to pass the parameter on click and filter a column in excel with it and display the entire set of sheet with this criteria. Is this possible? or am I expecting too much
I want to find any <!-- --> comment tags in a page and then read the contents. I would also like to distinguish between those in the body and those elsewhere in the HTML document.What do I use to get an array of these elements?
How can i add a function to all links which share a same class on page read? I want to add this addClassSub(); to all the links with a class name 'sub'.
I am developing a web application in which I need to integrate a javascript/html editor on some of the web pages and then provide 'Edit' buttons on those web pages so that users can edit the content on that partciular html/jsp page (like editing in wiki pages) and then, when they add some content and click on submit button, the new content should appear on the web page with all the formatting (i.e. bold, italics, color and so on) which was applied by user when he was entering the text.
Now, I need help for the below issues:
1. Suggest me a good javascript/html editor (freely downloadable) which I can use to integrate with my web pages.
2. Once the user has entered some content using the above javascript editor, how to make that content reach the server and update the corresponding web page.
what it does is that it hide and show a panel by slidint it to the left.But my client want that on page load the panel opens automatically for about 2-3 seconds just to let users know that its here. But when the panel finished showing the button to open it again doesn't work.
I'm using RSSFeed & getJSON to pull a feed from yahoo pipes, it works just fine in Chrome, but not in IE, and only on first load for FireFox. That being said I'm assuming I have some screwy code somewhere since those browsers tend to be a little pickier about code.
I've tweaked and checked and have been unable to find the issue. Though strangely enough another instance of getJSON on the page works just fine...
The page is located at [URL]
Though it isn't necessary to be a user to view the above issue, in case you need an account for trying to diagnose the problem I've created a public account:
Username: test Password: test11
If you log in and click "My Images", you'll notice the "Select Images" button does not work in IE either, I don't know if these issues are related, but just in case they are, there you go.