Well, I'm still a noob when it comes to PHP (or anything), so I'll just give an example. If you go here: you'll see the XML gadget displaying nicely in the browser window. Of course, if you load only the gadget in the browser (http://hosting.gmodules.com/ig/gadgets/file/102166312438248764726/calendar-personalized.xml) the page will display only as text.
What I want is the PHP code that does this trick. In this example is and I suspect that it might be PHP, but I don't mind a javascript code that can 'read' and display xml gadget.
Thanks!
RobotFX 0 Junior Poster in Training
Recommended Answers
Jump to Post— pritaeas 2,276It is just an XML CDATA block. Load this file into SimpleXML/DOMDocument, and you can do with it what you want.
Jump to Post— pritaeas 2,276Where's the rest of the HTML file? No html, head, body tag... Trying to append to a class named 'combo1' in an invalid HTML file will probably fail.
Jump to Post— pritaeas 2,276I still think it is because you have an invalid HTML file.
All 11 Replies
pritaeas 2,276 Most Valuable Poster Moderator Featured Poster
RobotFX 0 Junior Poster in Training
pritaeas 2,276 Most Valuable Poster Moderator Featured Poster
RobotFX 0 Junior Poster in Training
pritaeas 2,276 Most Valuable Poster Moderator Featured Poster
RobotFX 0 Junior Poster in Training
pritaeas 2,276 Most Valuable Poster Moderator Featured Poster
RobotFX 0 Junior Poster in Training
pritaeas 2,276 Most Valuable Poster Moderator Featured Poster
RobotFX 0 Junior Poster in Training
pritaeas 2,276 Most Valuable Poster Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.