Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 18:08 16 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Cheap Bribes.

Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 01:16pm 27 Jan 2017
Copy link to clipboard 
Print this post

Just wondering if anyone accepts cheap bribes or "Donations" to take a quick look at how something works.
Oh, and possibly fix it.....

Involves Java & Php.

It's simply the pop-up on my weather site.

Apparently you just upload a few libraries that generate graph images that pop up as tool tips.

The png is supposed to be generated on the server side, from Json files, which in my case appear to be present & constantly being updated.

Mine popup, but the png files have never updated.

It's all just a field that I have no experience in, & am totally lost.

Thanks

Phil.

Weather page is here.
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5036
Posted: 01:33pm 27 Jan 2017
Copy link to clipboard 
Print this post

Could be a simple cache problem. Maybe the PNG files are been generated, but have the same file name as the old file, and you web server or your browser doesn't think the files are new, so sends/displays a cached copy of the image.

If this is the case, in your html you can use a trick to make the server/browser look for the new file. As an example, I have a php page that displays a graph, this graph is freshly generated by the php each time the page is run, but uses the same file name for the image each time. So to force the server/browser to display th enew image, I use...

<img src="TempImages/QGraph.gif?x=<?= time() ?>" width="450" height="212">

This more or less ads a unique number to the value of x, passed as part of the image source ( src= ).

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 02:41pm 27 Jan 2017
Copy link to clipboard 
Print this post

  Gizmo said   Could be a simple cache problem. Maybe the PNG files are been generated, but have the same file name as the old file....


Hi Glenn,

No, My problem is that I'm not even generating new images.

The one's it is showing are static since the installation upgrade back in September.
They are in /public_html/weather/images/

There's also copies up in /public_html/weather/, but I know they are just there from the Cumulus 1 days & can be deleted. (Gone now, mid post).

So my problem is I don't understand enough about how the setup the scripts that create the current images in weather/images.

Mostly I think I's just me not understanding the setting up process, wrong lingo etc.

Phil.

This is the simple explanation....

Gauge-Graphs Edited by Phil23 2017-01-29
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024