[Solved] Possible Webgadget problem

Linux specific forum
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

[Solved] Possible Webgadget problem

Post by Perkin »

Can some kind soul test this code and tell me what happens.
On xubuntu (10.04) it comes up as plain text but in windows displays properly.

Thanks.

Code: Select all

HTML.s="<html>"+#CRLF$
HTML+"<head>"+#CRLF$
HTML+"<title></title>"+#CRLF$
HTML+"</head>"+#CRLF$
HTML+"<body>"+#CRLF$
HTML+"<p><em>this should be emphasized</em></p>"+#CRLF$
HTML+"<p><i>this should be italicized</i></p>"+#CRLF$
HTML+"</body></html>"

tmp_file.s=GetCurrentDirectory()+"tempfile.html"
If CreateFile(0,tmp_file)
  WriteString(0,HTML)
  CloseFile(0)
  OpenWindow(0,0,0,300,500,"Test")
  WebGadget(0,0,0,300,500,tmp_file)
  Repeat
    EvID=WaitWindowEvent()
  Until EvID=#PB_Event_CloseWindow
  DeleteFile(tmp_file)
EndIf
Edit: Solved - Using Xubuntu 11.04 and getting Webgadget sorted now works as it should.
Last edited by Perkin on Sat Nov 05, 2011 12:16 pm, edited 1 time in total.
%101010 = $2A = 42
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Possible Webgadget problem

Post by idle »

It's working with 4.60 rc1
maybe you can try adding file:// it works on ubuntu 11.04 both ways

Code: Select all

WebGadget(0,0,0,300,500,"file://"+tmp_file)
Windows 11, Manjaro, Raspberry Pi OS
Image
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: Possible Webgadget problem

Post by Perkin »

Thanks for testing, but adding "file://"+ , still comes up in plain text, I'll try PB 4.6rc1 and if it still doesn't work I'll then try going to xubuntu 11.04 or .10

Edit: Alright, can't down rc1, so trying 4.5
%101010 = $2A = 42
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: Possible Webgadget problem

Post by Perkin »

Nightmare trying to get WebGadget going, so giving up on PB4.51, trying the rc2 on newer xubuntu.

Can someone if they've got Xubuntu 10.04 and WebGadget sorted, give the code a try and see if it displays correctly. If it does I'll give that a go again.
%101010 = $2A = 42
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: [Solved] Possible Webgadget problem

Post by Perkin »

Solved - Using Xubuntu 11.04 and getting Webgadget sorted code now works as it should.
%101010 = $2A = 42
Ramihyn_
Enthusiast
Enthusiast
Posts: 314
Joined: Fri Feb 24, 2006 9:40 am

Re: [Solved] Possible Webgadget problem

Post by Ramihyn_ »

I am using a webgadget in a program myself and while it works fine in Windows, but the linux version sometimes shows the html page as a raw textfile. It happens approximately 20% of the time. Seems to be independant of the linux version with PB 4.60 beta/RC.
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: [Solved] Possible Webgadget problem

Post by Perkin »

I'm just happy to have got it working on one version.
Wouldn't want to contemplate getting it working across several distros.
%101010 = $2A = 42
Post Reply