I have a web page that I created that should basically do the following:
Parse an xml feed with javascript and display the contents to the page.
The problem is as follows:
I can parse the feed and display it using javascript but it only works for internet explorer. For some reason when I try doing it in firefox, it doesnt do anything and nothing displays.
I think it might have to do with the fact that it is loaded from url.
Any comments?
My problem is that i need an algorithm parse parse HTML. For an HTML page, my script has to parse all tags to get all forms values, even if there is frame, iframe, ... How can i do such a script ?
For a project I am working on, I need to retrieve links from html documents. The easy part is to obtain 'plain' links like <A HREF="http://site/path/document">, but when those links are javascript'ized, the only robust solution needs to load the javascript and dom document representation in the same way that browsers do. For example, links in the form:
First I though that using spidermonkey (the mozilla javascript interpreter) should be enough, but in that case, I dont have the document structure elements (like document, window, document.history, document.form.element, etc), so I tried parsing the document using a library to build a tree representation of it, but that leads me to the same problem again, that is, I have to represent all tree nodes as javascript entities.
Anybody here have worked on a similar problem? What tools do you think I should take a look?
I'm writing a program on Zimki, which I think uses SpiderMonkey as a server side Javascript engine.
My idea is to have an html file that someone else created, and look inside for cells in a table that have special known names, like name, description, etc. Then I want to figure out the <tr<tr/pair that encloses all of those special tags, and use that as a template to generate a bigger table from another datasource.
So, I'm wondering how I actually open a file and then parse it as html so I can poke around the DOM, all from the server side without involving a browser client.
I am trying to write a script which will allow me to read the contents of an HTTP web page into memory, parse the data, and output a calculated value.
The HTTP page is on a web enable appliance - I am reading some data out of a table for further calculation. I can't modify the web appliance, only read the text data.
I've written a script on my Windoze PC that successful uses a MSXML2 ActiveX object to read the contents of a web page into memory using the xmlhttp.responseText object. The problem is that the ActiveX object is not available on a lightweight Linux based http server.
I need to write a script that will work with ASP/Javascript on a lightweight Linux based http server.
When I try to parse xml fixed string following code works fine. When I try to parse the string get from remote server.(bellow code example) It gives me an error unterminated string. I think this error is because of large string. Code:
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.
I'm using a script for getting yahoo weather forecast on my site. The script includes and html file and a js file that do the job. translating description words that comes from rss feed like "Clear", "Humidity", "Storm", etc... I now that in php exist something like preg_replace function, but i have no clue how to do it in js. This is the js file:
I have a twitter feed on my site and although am generally happy with it, the time-stamp for each tweet is several hours ahead of my time zone. I've looked through the js files to see if there is anything that allows me to set the timezone but cannot find anything. Anyone know how to reset the time to pacific standard time?
If you mouseover a movie, you will see a nice looking popup with info. I would like to do the same thing only with rss feeds on a text link. (not sure if this is possible)
I pulled down every .js, .html, .css from their site and I am trying to figure out what they are doing... I am a novice at javascript, but I can hack and slash pretty well. Code:
I would like to know if anyone has some javascript code that reads an external, arbitrary, XML feed, and can display the 2 or 3 latest submissions based on the XML src.
Is such a task even possible with just client-side javascript?
$(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 pulled together a custom RSS twitter feed that uses javascript; however, when I tell the code to "callback" 3 posts, they all run together without line breaks. What is the best way to have breaks between the posts?
This page shows the html code (in the right sidebar): [URL]
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?
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 have the below code in an html page and, since I cannot change the hidden types to text (no control whatsoever on the form), I manually add the values in the code. Clients only need to press "Submit", which is the only visible part of the form on the screen, and they are then taken to a page outside of my website.
What I want to do is add two Text Fields in the html page where the above code is given to allow clients to add text and somehow "feed" this text to the values of the hidden fields Param1 and Param2. This way, the added text will show up in the page outside of my website where the clients are taken after they submit the form.