#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    1
    Rep Power
    0

    Next, Previous, First, Last Function


    Good Day!

    I have really a hard time finding some instructions on how to make a code for next, previous, first, Last function one by one of the images.

    here is my xml code

    Code:
    propertyList date="2011-08-30-15:02:54" username="console" password="C0ns0l3" type="">
    	<rental modTime="2011-08-30-15:02:54" status="current">
    		<agentID>triplel-test</agentID>
    		<uniqueID>2</uniqueID>
    		<listingAgent>
    			<name>awts</name>
    			<telephone type="BH">awts</telephone>
    			<email>awts</email>
    		</listingAgent>
    		<dateAvailable>2011-09-15T00:00:00</dateAvailable>
    		<rent display="yes" period="weekly">230</rent>
    		<energyRating>0.0</energyRating>
    		<bond>460</bond>
    		<address display="no">
    			<streetNumber>22 </streetNumber>
    			<street>Perth Street</street>
    			<suburb>Oamaru</suburb>
    			<state/>
    			<postcode>9401</postcode>
    			<country>Australia</country>
    		</address>
    		<category name="House"/>
    		<headline>Get the sun all day!</headline>
    		<description><![CDATA[<font>All day sun, large section, fully fenced<br> 2 Bedrooms with an office space.</font>]]></description>
    		<features>
    			<bedrooms>2</bedrooms>
    			<bathrooms>1</bathrooms>
    			<garages>1</garages>
    		</features>
    		<holiday value="no"/>
    		<images>
    			<img id="a" modTime="2011-08-30-15:02:54" file="awts/p2i4.jpg"/>
    			<img id="b" modTime="2011-08-30-15:02:54" file="awts/p2i5.jpg"/>
    			<img id="c" modTime="2011-08-30-15:02:54" file="awts/p2i6.jpg"/>
    			<img id="d" modTime="2011-08-30-15:02:54" file="awts/p2i7.jpg"/>
    			<img id="e"/>
    			<img id="f"/>
    			<img id="g"/>
    			<img id="h"/>
    			<img id="i"/>
    			<img id="j"/>
    			<img id="k"/>
    			<img id="l"/>
    			<img id="m" modTime="2011-08-30-15:02:54" file="awts/p2i3.jpg"/>
    			<img id="n"/>
    			<img id="o"/>
    			<img id="p"/>
    			<img id="q"/>
    			<img id="r"/>
    			<img id="s"/>
    			<img id="t"/>
    			<img id="u"/>
    			<img id="v"/>
    			<img id="w"/>
    			<img id="x"/>
    			<img id="y"/>
    			<img id="z"/>
    		</images>
    		<objects/>
    	</rental>
    	<rental modTime="2011-08-30-15:02:54" status="current">
    		<agentID>triplel-test</agentID>
    		<uniqueID>2</uniqueID>
    		<listingAgent>
    			<name>awts</name>
    			<telephone type="BH">awts</telephone>
    			<email>awts</email>
    		</listingAgent>
    		<dateAvailable>2011-09-15T00:00:00</dateAvailable>
    		<rent display="yes" period="weekly">230</rent>
    		<energyRating>0.0</energyRating>
    		<bond>460</bond>
    		<address display="yes">
    			<streetNumber>22 </streetNumber>
    			<street>Perth Street</street>
    			<suburb>Oamaru</suburb>
    			<state/>
    			<postcode>9401</postcode>
    			<country>Australia</country>
    		</address>
    		<category name="House"/>
    		<headline>Get the sun all day!</headline>
    		<description><![CDATA[<font>All day sun, large section, fully fenced<br> 2 Bedrooms with an office space.</font>]]></description>
    		<features>
    			<bedrooms>2</bedrooms>
    			<bathrooms>1</bathrooms>
    			<garages>1</garages>
    		</features>
    		<holiday value="no"/>
    		<images>
    			<img id="a" modTime="2011-08-30-15:02:54" file="awts/p2i4.jpg"/>
    			<img id="b" modTime="2011-08-30-15:02:54" file="awts/p2i5.jpg"/>
    			<img id="c" modTime="2011-08-30-15:02:54" file="awts/p2i6.jpg"/>
    			<img id="d" modTime="2011-08-30-15:02:54" file="awts/p2i7.jpg"/>
    			<img id="e"/>
    			<img id="f"/>
    			<img id="g"/>
    			<img id="h"/>
    			<img id="i"/>
    			<img id="j"/>
    			<img id="k"/>
    			<img id="l"/>
    			<img id="m" modTime="2011-08-30-15:02:54" file="awts/p2i3.jpg"/>
    			<img id="n"/>
    			<img id="o"/>
    			<img id="p"/>
    			<img id="q"/>
    			<img id="r"/>
    			<img id="s"/>
    			<img id="t"/>
    			<img id="u"/>
    			<img id="v"/>
    			<img id="w"/>
    			<img id="x"/>
    			<img id="y"/>
    			<img id="z"/>
    		</images>
    		<objects/>
    	</rental>
    If anyone can help me on this. Thanks in advance!
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,115
    Rep Power
    9398
    Originally Posted by babynaamaw
    I have really a hard time finding some instructions on how to make a code for next, previous, first, Last function one by one of the images.
    Those would not go in the XML. They would be created by whatever is reading the XML and outputting stuff.

    Also, usernames are fine, but why would you want to include the password in there too?

IMN logo majestic logo threadwatch logo seochat tools logo