Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$50
Adding java script in a widget
I want to add the below java script code to my sidebar at http://www.thailandliving.se
How can I make it work in a widget?
It doesn´t work when I try with the following plugins: HTnl Java script Adder
Thanks!
Charlotte
<div id="SearchBox"> </div>
<script src="http://ajaxsearch.partners.agoda.com/partners/SearchBox/Scripts/Ago da.SearchBoxV2.js" type="text/javascript"></script>
<script type="text/javascript"> var AgodaSearch = new AgodaSearchBox({
cid: 1410906, filterCityName: '', fixedCityName: false, fixedCityNameVisible:true, hotelID: '', checkInDateBefore:3, night:2,
language:25, currencyCode: 'SEK', newWindow: false, header:http://thailandliving.se/wp-content/themes/charlotteNew/images/header.jpg '', footer: '', style: 'CMSLanding, Element: 'SearchBox'
}); </script>
This question has been answered.
Charlotte Raboff | 01/19/13 at 10:33pm
Edit
Tutorial: How to assign prize money
(2) Responses
See a threaded view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
01/20/13
3:54amChristianto says:Hi Charlotte,
In your site, I saw error on your site because script not loaded correctly,
there are space on your script src url, on "/Ago da"
http://ajaxsearch.partners.agoda.com/partners/SearchBox/Scripts/Ago da.SearchBoxV2.js
you can remove the space it to see if it work..
http://ajaxsearch.partners.agoda.com/partners/SearchBox/Scripts/Agoda.SearchBoxV2.js
also I see error here, some parameter missing apostrophe (') on its value and some need to be inside apostrophe
please try use this code on widget:
http://pastebin.com/0mw2a6CwPrevious versions of this answer: 01/20/13 at 3:53am | 01/20/13 at 3:54am
-

Last edited:
01/20/13
7:18am
This question has expired.
Charlotte Raboff, Arnav Joy voted on this question.
Current status of this question: Completed
Please log in to add additional discourse to this page.
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
