I'm trying to parse my data from an xml file now and print it out on the page based on date from my existing code. I have that working, with each item formatted the same way on the page What I'd like to do now is alter it a bit to make the most recent (the item listed on the top of the page) formatted differently and the rest of them as it is now. Something like - (if 1st <li> then build html like this else build html like that) I hope this makes sense.
The data that needs to parsed is on an asp page secured by a login form. I have access to the site, but I was wondering how one would go about writing a script that would automatically access the page and grab the HTML.
Garbing the HTML then parsing the information I understand. I just don't know if its possible to access the data through an external script (run from another server) even though we have access rights to the page requiring login that is situated on another server.
The reason for this is because we don't have direct access to the database.
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.
HTML Code Code: <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[URL]"> <head> <title>Bookstore</title> .....
I am currently working on displaying KML-values of ElementTags within my KML File. I already integrated the KML file as an overlay to my Google Map. But how am I able to parse the GGeoXml-object or how am I able to parse external [URL].. instead of just "polygons.kml") XML-files?
At the moment my code for loading the geoxml file looks like this:
I have a simple XML file that looks something close to this:
<presence id="12345"> <status>in a meeting</status> <priority>1</priority>
If you require a bit more info on the project itself, here's a rundown: This xml file is created by an internal chat app at my office. Each employee has their own xml file listing their current availability and status (hence "in a meeting"). This will be used to determine the availability of certain individuals in the building without having to be logged in to the chat app. That's why there's multiple xml files going to be used (roughly 10-15 in the end).
Anybody here have worked on a similar problem? What tools do you think I should take a look?
I have been trying to figure this out for a few days now and I'm stuck. I'm using a JQuery based image gallery called Galleria [URL]... Its simple enough for my needs but I would like it to load the images from an xml file. With that in mind I have been trying to modify the basic demo_01.htm demo file to do just that.
This seems like a noob error, but I really googled it out, with not much results. Got stuck on just grabbing the XML. I validated the code with the w3.org validator and it's only missing a doctype. I've checked that the file is saved with no bom. It's served from my local Apache installation.
The error I get is:
With Firebug I got:
The jQuery code:
The headers look ok to me.Response Headers
I simplified the XML and just put it in a file, but the same error comes up even when the XML is generated with PHP. I did try to change the MIME type in the request and the response, but it's all the same.
Also, if I serve a file I get a 206, and a 200 response code for the same XML generated through PHP (using header("Content-type: text/xml")).
It should not be a cross-domain issue, as it's loaded and served from my localhost?
I did implement my script first for IE8 (sidebar gadget) without jQuery and works nicely with my PHP generated XML. Then I decided to pick up jQuery and hit the first wall head on.
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:
id like it to read the specific data thats contained within the tag such as 0123456789's tag = JOE
Isnt returned in var data but the whole file is returned as a string.
I have a project that I need to read some data from an XML file.
However, since JS is a client side script so it can't read from client side, is there any alternate way to do this? I am thinking to create a "Data" class, and many "Data" objects, is this an elegant way to do it?
I think I have a varialbe scope problem here, but I can't figure it out. What I'm trying to do is extract a piece of data from a JSON file using a variable established earlier in the script as one of the keys.
When I run this script I get the alert that lets me know that the variable "theMappableItem" has been established correctly. I click "OK" in the alert box. Then in my console (in firebug) I see a line showing that the .json file has been gotten successfully. Next in the console is an error that says:
I have several functions in a .js file that collect various types of information from the visitor, let's just say they are strings, and want to send that information to my database. I have no problem putting the information in my database once I get everything into PHP (I'm relatively new to JS).
Am I able to make a form in the .js file and automatically submit it once all the functions finish? I also need the page not to refresh when sending this information so I'm assuming some AJAX will need to be involved. I was able to send a basic form using some jQuery I found and have the page not refresh but can't figure out how to do the same in a .js file.