Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back from 1 to 10+ pages to re-sync the thread and this will then show the latest posts. Thanks, Mike.
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

<script> element not refreshing

  • 05-03-2014 10:22am
    #1
    Closed Accounts Posts: 6,075 ✭✭✭


    I have a Java class that builds up a name/value pairs string that displays information in a JSP file. The data is added to the <script> element. E.g.

    [HTML]<script>Value 1</script>
    <script>Value 2</script>[/HTML]
    The values are populated from values in a form, when i hit a button called Search.

    When I fill in the values and hit Search, I then inspect the page and see the correct values (as above). But, if I change the values (say change Value 2 to Value 3) and hit Search, the script elements remain the same.

    Can anyone tell me why?


Comments

  • Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭colm_c


    Need a bit more code to be honest.

    Those <script> tags won't do much, they're invalid JS.


  • Closed Accounts Posts: 6,075 ✭✭✭IamtheWalrus


    Here is what is output in my JSP file. This is the part that won't refresh:

    [HTML]<!-- START OF Web Trends logging -->
    <script src="//interface.test.com/site04/script/wtinit.js?ver=20.72.11" type="text/javascript"></script>
    <script>var dcsInit=new DcsInit('dcs6gwgaq100004ztxmdc01dd_8q1q','.com','.*bb\.com','statse-prod.com');</script>

    <SCRIPT>addMeta('DCS.dcsuri','/site04/HotelPriceList.jsp');</SCRIPT>
    <SCRIPT>addMeta('WT.oss','SYD');</SCRIPT>
    <SCRIPT>addMeta('WT.oss_r','1');</SCRIPT>
    <SCRIPT>addMeta('WT.si_n','GenericBooking');</SCRIPT>
    <SCRIPT>addMeta('WT.si_x','3');</SCRIPT>
    <SCRIPT>addMeta('WT.cg_n','Options');</SCRIPT>
    <SCRIPT>addMeta('WT.cg_s','Results');</SCRIPT>
    <SCRIPT>addMeta('DCSext.SearchType','Search');</SCRIPT>
    <SCRIPT>addMeta('DCSext.ResultsCount','7');</SCRIPT>
    <SCRIPT>addMeta('DCSext.City','SYD');</SCRIPT>
    <SCRIPT>addMeta('DCSext.CityName','Sydney, Australia');</SCRIPT>
    <SCRIPT>addMeta('DCSext.DestinationType','C');</SCRIPT>
    <SCRIPT>addMeta('DCSext.RoomType','TB');</SCRIPT>
    <SCRIPT>addMeta('DCSext.RoomCount','1');</SCRIPT>
    <SCRIPT>addMeta('DCSext.CheckInDate','03/08/2014');</SCRIPT>
    <SCRIPT>addMeta('DCSext.CheckOutDate','03/10/2014');</SCRIPT>
    <SCRIPT>addMeta('DCSext.Nights','2');</SCRIPT>
    <SCRIPT>addMeta('DCSext.StarRating','0');</SCRIPT>
    <SCRIPT>addMeta('DCSext.Available','5');</SCRIPT>
    <SCRIPT>addMeta('DCSext.DaysToTravel','3');</SCRIPT>
    <SCRIPT>addMeta('DCSext.OnRequest','2');</SCRIPT>
    <SCRIPT>addMeta('WT.sp','J');</SCRIPT>
    <SCRIPT>addMeta('DCSext.SearchResultsHotels','SYD_VUL;SYD_MET1;SYD_AAR;SYD_CIT;SYD_DIA2;SYD_GRA1;SYD_ROY');</SCRIPT>
    <SCRIPT>addMeta('DCSext.Availabilty','A;A;A;A;A;OR;OR');</SCRIPT>
    <SCRIPT>addMeta('DCSext.InventoryType','GC;GC;GC;GC;GC;GC;GC');</SCRIPT>
    <SCRIPT>addMeta('DCSext.Location','All Locations');</SCRIPT>
    <SCRIPT>addMeta('DCSext.Facilities','NNNNNNNNNN');</SCRIPT>
    <SCRIPT>addMeta('DCSext.SearchResultsSort','N');</SCRIPT>
    <SCRIPT>addMeta('DCSext.Pagination','N');</SCRIPT>
    <SCRIPT>addMeta('DCSext.PageNumber','1');</SCRIPT>
    <SCRIPT>addMeta('DCSext.Duplicate','N');</SCRIPT>
    <SCRIPT>addMeta('DCSext.OffersAvailable','N;N;N;Y;N;N;N');</SCRIPT>
    <SCRIPT>addMeta('WT.ti','HotelResults');</SCRIPT>
    <script src="//interface.test.com/site04/script/wtbase.js?ver=20.72.11" type="text/javascript"></script>
    <noscript>
    <div><img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="//statse-prod.com/dcs6gwgaq100004ztxmdc01dd_8q1q/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=1.1.0"/></div>
    </noscript>
    <!-- END OF Web Trends logging -->
    [/HTML]


  • Registered Users, Registered Users 2 Posts: 6,198 ✭✭✭Talisman


    Any particular reason you are trying to write the meta tags with individual scripts instead of actual meta tags?

    e.g. [HTML]<SCRIPT>addMeta('WT.oss','SYD');</SCRIPT>[/HTML]

    could be written as a meta tag:
    [HTML]<meta name="WT.oss" content="SYD">[/HTML]


Advertisement