Welcome to Motorhomefacts, we are a thriving motorhome community (Largest in Europe). Why Not JOIN NOW and get instant access to more of the website. It costs nothing to join and only takes a few minutes. We have 200,000 different people visiting our site monthly and this amount of motorhomers in one place guarantees a fast response to any questions you may have. We also have unique facilities not found elsewhere such as our Online Logbook, stopover tracker, Motorhome directory with Ebay type feedback and the largest repository of motorhome campsites reviews found anywhere
Ive been almost a week now useing html and javascripts to put a date on my web page for when it was last modified. Ive loaded a few which work to a point but not only does it update the date and time I amend page but anoyingly it updates it every time I view it aswell so it gives the impresion that as soon as I view a page its gives me the exact time I view it as the last time it was amended and thats not correct. Has anyone found a code that works round this problem. All I want is one that only changes when I update anything not just when I view it.
Help Ramos
À tous mes amis du forum thankyou pour toutes vos pensées agréables et avec son amour derrière moi je lutterai contre mon conflit avec un esprit de postive et le triomphe
I haven't used java for this and can't easily see how it would work.
This should be done server side not client side to get results, if the code that is trying to get the modified date and write it to the webpage stream is java script, then it runs on the client machine, the person/machine viewing the page and doesn't have access to the source files (or their modified attribute), only what is serverd by the web server. to do this correctly the webpage should be written in dynamic html, for example ASP, this way the html source is created on the fly at the server and sent to the client, the server can check the last modified attribute of the ASP source file and place it on the html page as it's created for the client. alternatively if the webpage content is stored in a database, then the last modified date would be a field in the db against the content, and would be taken from there, again by the server before the html is sent to the client.
I haven't used java for this and can't easily see how it would work.
This should be done server side not client side to get results, if the code that is trying to get the modified date and write it to the webpage stream is java script, then it runs on the client machine, the person/machine viewing the page and doesn't have access to the source files (or their modified attribute), only what is serverd by the web server. to do this correctly the webpage should be written in dynamic html, for example ASP, this way the html source is created on the fly at the server and sent to the client, the server can check the last modified attribute of the ASP source file and place it on the html page as it's created for the client. alternatively if the webpage content is stored in a database, then the last modified date would be a field in the db against the content, and would be taken from there, again by the server before the html is sent to the client.
Hi Thanks for that ,only thing is I dont fully understand it. Ive never heard of asp. so I surfed and found a site for codes I copied and pasted one into my web page but on viewing all I got was a copy of the code not any dates. I can send you a pm with the code if you like and perhaps you can guide me as to what to do with it.
I haven't used java for this and can't easily see how it would work.
This should be done server side not client side to get results, if the code that is trying to get the modified date and write it to the webpage stream is java script, then it runs on the client machine, the person/machine viewing the page and doesn't have access to the source files (or their modified attribute), only what is serverd by the web server. to do this correctly the webpage should be written in dynamic html, for example ASP, this way the html source is created on the fly at the server and sent to the client, the server can check the last modified attribute of the ASP source file and place it on the html page as it's created for the client. alternatively if the webpage content is stored in a database, then the last modified date would be a field in the db against the content, and would be taken from there, again by the server before the html is sent to the client.
Hi again. since my last quote Ive been digging. My problem maybe down to piczo not accepting asp. HTML is ok but thats about it. I have contacted them to confirm.If this is the case then my problem is unresolveable.But thanks for your help anyway.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
All times are GMT + 1 Hour Page 1 of 2Goto page 1, 2Next