June 25, 200818 yr Hi all, I am what you would call a "newbie" when it comes to any form of web design but set up a simple website for my old man promoting his apartment in tenerife - Tenerife Apartment We have a maintenance company that lists availability on their website their website would it be possible to display this information on my site? I am slightly against linking to their site as it promotes a variety of other apartments in the area. Tried copying the HTML code from the page source however only get a calender with no information on it. Thanks for any advice. Smokey
June 25, 200818 yr Welcome to WDF! The availability site won't let you display the date info unfortunately, at least not in it's current format. The best you might do is contact the site owner and see if they have a data feed that you can put on your site, but I doubt if they will have that. Worth asking though!
June 25, 200818 yr Author Thanks bluedreamer, Thought so - shame as it would have looked great on the site. Cheers for checking. Smokey
June 25, 200818 yr actually you can get that info ... i believe you copied the html part like this one: <table class="bpcalendar"> <tr> <th colspan="7" class="calendartitle">June, 2008</th> </tr> <tr> <th>S</th> <th>M</th> <th>T</th> <th>W</th> <th>T</th> <th>F</th> <th>S</th> </tr> <tr> <td class="available">1</td> <td class="available">2</td> ..... REST OF THE DATES HERE <td class="bookedstart">14</td> You should also get the CSS associated with that html (classes "available", "bookedstart" will get styled accordingly ).
June 25, 200818 yr Author actually you can get that info ... i believe you copied the html part like this one: <table class="bpcalendar"> <tr> <th colspan="7" class="calendartitle">June, 2008</th> </tr> <tr> <th>S</th> <th>M</th> <th>T</th> <th>W</th> <th>T</th> <th>F</th> <th>S</th> </tr> <tr> <td class="available">1</td> <td class="available">2</td> ..... REST OF THE DATES HERE <td class="bookedstart">14</td> You should also get the CSS associated with that html (classes "available", "bookedstart" will get styled accordingly ). Sorry - but you lost me very quickly there. As mentioned I am a simply newbie using Weebly for this site. Is there another way of explaining it or is this to complex for me?
June 25, 200818 yr actually you can get that info ... i believe you copied the html part like this one: You should also get the CSS associated with that html (classes "available", "bookedstart" will get styled accordingly ). @Mihai - that would copy a static calendar, but I think SmokeyBubbles wanted it to auto update.
June 25, 200818 yr @Mihai - that would copy a static calendar, but I think SmokeyBubbles wanted it to auto update. If that is indeed the case it can still be done. I'm guessing that if you couldn't figure out the CSS part, telling you about this more complicated example won't get you far either, but here goes: You can use cURL (if your host provides php with the cURL library) to automatically (and even dinamically) parse that page and get the info you need. To find out if you have cURL installed you can put <?php echo phpinfo(); ?> in a php file on your website and run in into the browser. It outputs a lot of useful info. There are many ways you can do this ... you can even cache the result into a database etc. If you really want this on your website and can't figure it out I can create a script for you for a small fee. (shameless self promo )
June 26, 200818 yr Author Thanks for all the advice but it looks to complex for me. I appreciate the offer Mihai but to honest for what the site does its not worth it. I just thought I might be missing something simple. Thanks again.
Create an account or sign in to comment