Javascript / xml help needed - Post...

User 2430989 Photo


Registered User
1 post

Hi All

I run Visual Site Designer for a ski chalet rentals business in Switzerland.

Ideally I need a script to pull in a table (relevant to each individual chalet) with price and calendar information from one of my partners. The feed need to update itself 3 times a day.

My partner has given me a guide example as follows.

<availabilities>
<availability>
<accomodationId>312</accomodationId>
<apartmentId>631</apartmentId>
<accomodationName>Balcon Cime de Caron</accomodationName>
<persons>16</persons>
<squareMeters>190</squareMeters>
<price currency="Euro">790.00</price>
<dateOfArrival>16.05.2009</dateOfArrival>
<dateOfDeparture>23.05.2009</dateOfDeparture>
</availability>
</availabilities>


If the apartment is not available, you would receive an empty xml-root element:
<availabilities/>

I am in quite a rush to get this nailed this week.

Any help / suggestions much appreciated. Please note I have no script writing experience so please keep it simple. If you need more examples of what I am trying to do. email me davis.meredith5@gmail.com or skype meredithdavis88

best wishes

Meredith


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.