Revision: 14318
Updated Code
at May 29, 2009 14:11 by rwczippy
Updated Code
<script language="JavaScript" type="text/javascript"> <?php $num=rand(1,7); ?> var ds = new Spry.Data.XMLDataSet("data_in_XML.xml","record/thing[id='<? echo $num; ?>']"); </script> . . . <div spry:region="ds"> <p spry:repeat="ds"><strong>{ds::title}</strong></p> <p spry:repeat="ds">{ds::desc}</p> </div>
Revision: 14317
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 29, 2009 14:06 by rwczippy
Initial Code
<script language="JavaScript" type="text/javascript"> <?php $num=rand(1,7);?> var ds = new Spry.Data.XMLDataSet("data_in_XML.xml","record/thing[id='<? echo $num;?>']"); </script> . . . <div spry:region="ds"> <p spry:repeat="ds"><strong>{ds::title}</strong></p> <p spry:repeat="ds">{ds::desc}</p> </div>
Initial URL
Initial Description
what was taking an embarrassingly long time in Spry took 2 lines in PHP
Initial Title
Random XML Record in Spry using PHP
Initial Tags
php
Initial Language
PHP