I've been trying the iFrame approach by Kiffi but without success. I slightly modified the code to make sure it's using html5 and edited the address to reflect my page but with both Chrome and Edge this is my result:
And here is the code I used:
netmaestro wrote: Sun Dec 10, 2023 11:07 pm
Ok, so this is just weird now. The code from 6theo4 works perfectly, refreshing my window at the selected intervals. But only if run from the IDE. If I compile the code, add it to my taskbar and run it from there it does not work anymore. Anyone have an idea?
In the compiled version did you remove the Debug statement?
Thanks 6theo4 and firace, that was it. I took the Debug statement out quite a while back and I thought I'd recompiled after that but I hadn't. Working perfectly now. Kiffi's code should work too imho but the server refuses to connect in both Chrome and Edge.
netmaestro wrote: Sat Dec 09, 2023 6:20 pmWhen sales are recorded on site the info isn't pushed, I have to refresh the page if I want to see the latest sales.
You should be able to use ReceiveHTTPMemory() to get the page's raw HTML periodically, and then parse that. I do it all the time to get info from my website. No need to muck around with a Chrome window and F5.
@BarryG, that's a great idea and I'll see if the site will talk to my computer. But it's a banking site so its security may not be something I can get through to. With the webpage I log in with my credentials and it sometimes gives me captchas and text messages containing 6 digit codes. I don't think my chances are going to be that good.
skywalk wrote: Mon Dec 11, 2023 12:30 amYeah, the iFrame html approach did not work for me.
Which browser?
Chrome and Edge are based on chromium code. Both bowsers fail to connect certain websites. Dell.com connects but I did not inspect why the others fail.
Thanks infratec but the site won't work in the native webgadget. But the WebGadgetEx by RSBasic works flawlessly. So I have a couple of solutions that are working now until Fred releases b1 of PB 6.10. Then the native webgadget should do the trick and your code will be the best and simplest solution overall. You're just a couple weeks early is all. I found your implementation of js very instructive as I'm pretty much of a noob when it comes to javascript.