The idea is to gather only small part of the xml output:
<oembed> <version>1.0</version> <provider_name>SmugMug</provider_name> <provider_url>http://www.smugmug.com/</provider_url> <type>video</type> − <html> <object width="640" height="480"><param name="movie" value="http://cdn.smugmug.com/ria/ShizVidz-2010102501.swf"/><param name="allowFullScreen" value="true"/><param name="flashVars" value="s=ZT0xJmk9MTAxMTYyNTgwOSZrPTl0NGRIJmE9MTM4MDY3NzBfNXRuTGgmdT1odW50c3ZpbGxlY2Fyc2NlbmU="/><embed src="http://cdn.smugmug.com/ria/ShizVidz-2010102501.swf" flashVars="s=ZT0xJmk9MTAxMTYyNTgwOSZrPTl0NGRIJmE9MTM4MDY3NzBfNXRuTGgmdT1odW50c3ZpbGxlY2Fyc2NlbmU=" width="640" height="480" type="application/x-shockwave-flash" allowFullScreen="true"></embed></object> </html> <duration>116</duration> <height>480</height> <width>640</width> <author_name>huntsvillecarscene</author_name> <author_url>http://newpics.huntsvillecarscene.com/</author_url> </oembed>
URL of above xml is:
http://api.smugmug.c...011625809_9t4dH
And I am trying to get only the <html> </html> element saved in a new .html file
I tried using
xmlhttp.open("GET","http://api.smugmug.com/services/oembed/?url=http%3A%2F%2Fnewpics.huntsvillecarscene.com%2FHuntsville-Car-Scene%2FEvents%2FFirst-Look-2011-Audi-A8-and/13806770_5tnLh%231011625809_9t4dH",false);
but this doesn't seem to work, or I could not get it to work.
Any ideas?
I would have a file called createpage.php
with
Enter Url: Text Field for URL
Enter Page name: [pagename] Text field for name of the .html to be created
[Submit]
This would then output pagename.html
with only <html> </html> element of the xml given.


Sign In
Create Account

Back to top









