Well, I'm still a noob when it comes to PHP (or anything), so I'll just give an example. If you go here: http://www.gmodules.com/ig/ifr?synd=googlemodules&w=500&h=350&mid=0&url=http://hosting.gmodules.com/ig/gadgets/file/102166312438248764726/calendar-personalized.xml 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 http://www.gmodules.com/ig/ifr 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 PostIt is just an XML CDATA block. Load this file into SimpleXML/DOMDocument, and you can do with it what you want.
Jump to PostWhere'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 PostI still think it is because you have an invalid HTML file.
All 11 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
RobotFX
0
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
RobotFX
0
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
RobotFX
0
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
RobotFX
0
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
RobotFX
0
Junior Poster in Training
pritaeas
2,194
¯\_(ツ)_/¯
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.