Page 3 of 3
Re: iPhone Webpage Question
Posted: Thu 19 Jul 2012 11:42 pm
by gemini06720
Steve, all of my 1&1 accounts are using the
Linux Web Hosting package - I would not go any other way - for me, there are too many things (facilities/options) missing with the
Windows Web Hosting package...
I'm hvaing problems getting AJAX Scripts to work.
Steve, you have to remember that an AJAX (or
Asynchronous JavaScript and XML) script is a 'user side' programming language, meaning that the script does not run on the hosting server (such as a PHP script, which is a 'server-side' programming language) but is first downloaded to the user's browser cache before it can be run on the user's computer.
I have not had problem getting AJAX scripts with the Linux Web Hosting package.
I am also running
XAMPP for Windows (Apache server software, MySQL, PHP, Perl) on both my home/office server computer and my development computer - I use the server software to test and post the Cumulus/Weather Display web pages - the AJAX script is also running fine from those server.
Re: iPhone Webpage Question
Posted: Fri 20 Jul 2012 12:16 am
by SJG1976
Thanks Ray,
If you get time, could you have a look at my
http://www.cm2weather.co.uk/Davis/index.php page please.
To see if you can spot anything obvious in the code that making the AJAX Fail to update the variables of the weather please?
I just seem to get a next update in (10mins for the time page was loaded) and then it just sits there....?
Steve
Re: iPhone Webpage Question
Posted: Fri 20 Jul 2012 12:34 am
by gemini06720
Steve, as I wrote before and will write again, it is my belief (feelings) that one should install and make sure the templates are behaving (running/working) as designed before attempting to include any additional stuff...
Any of the additions to your page (such as Google Add, social networking links/scripts, Twitter feeds, PayPal, Flag Counter and Top Sites code/links) can/could prevent the AJAX script to operate/run normally.
Re: iPhone Webpage Question
Posted: Fri 20 Jul 2012 1:23 am
by saratogaWX
SJG1976 wrote:Thanks Ray,
If you get time, could you have a look at my
http://www.cm2weather.co.uk/Davis/index.php page please.
To see if you can spot anything obvious in the code that making the AJAX Fail to update the variables of the weather please?
I just seem to get a next update in (10mins for the time page was loaded) and then it just sits there....?
Steve
Hi Steve,
The ajaxCUwx.js script is looking for your realtime.txt file in the document root of your website. Since you installed the template set in the /Davis/ subdirectory, you just need to change ajaxCUwx.js from
Code: Select all
var realtimeFile = '/realtime.txt'; // URL location of realtime.txt relative to document root of website
to
Code: Select all
var realtimeFile = '/Davis/realtime.txt'; // URL location of realtime.txt relative to document root of website
to have it find the file and do the update to the page.
Best regards,
Ken
Re: iPhone Webpage Question
Posted: Fri 20 Jul 2012 6:09 am
by SJG1976
Thanks Ray, appreciate the feedback.
Will bear that in mind in the future, but I didn't think I was that far out.
Ken,
Thankyou, that worked a treat.
Now to make some more changes and break it all again, and come crying for help.
Steve
Re: iPhone Webpage Question
Posted: Mon 23 Jul 2012 12:58 pm
by SJG1976
Well all seems to be working as expected now.
Have created some Additional monthly record files, probably not the best way to do it as I have but they seem to work anyway on what data is avaialble.
Now trying to play about with the JpGraphs, and get that to pull data out of a SQL Database which I have now got working and updating.
As I say, Steep Learning Curve for me.
Re: iPhone Webpage Question
Posted: Mon 23 Jul 2012 6:34 pm
by duke
Re: iPhone Webpage Question
Posted: Mon 23 Jul 2012 9:17 pm
by SJG1976
Bigger Buttons, for Fat Fingers on small screens....?
Steve
Re: iPhone Webpage Question
Posted: Mon 30 Jul 2012 1:13 pm
by SJG1976
Well I've now updated my iPhone Pages.
Still not getting an AJAX Refresh in there (something else to work on in the future)
And they are still plain HTML.
Some of the Record Data doesn't look quiet right, but I think it's moving in the right direction now.
http://www.cm2weather.co.uk/Davis/iPhone
Any comments or suggestions welcome as ever.
Steve