Re: How to update a css file when using the Browser widget

2018-11-05 Thread James Hale via use-livecode
hh wrote: > Say you have the font-size declaration in the css for body. > > Then script, for example: > do "document.body.style.fontSize = '110%';" in widget "Browser" Brilliant! Thank you so much Hermann. Putting the script in a button worked like a charm Putting it in the handler that loads t

Re: How to update a css file when using the Browser widget

2018-11-04 Thread hh via use-livecode
> James H. wrote: > Context: I want to be able to change the font-size displayed > in the browser. The pages being displayed all use the same > external css. I thought that by changing the font-size > definition with the css and saving it back to disk, a reload > of the page would use the new setti

Re: How to update a css file when using the Browser widget

2018-11-04 Thread hh via use-livecode
To disable caching of an input css file (or js script file) this works with every browser: Either change the file name of the input file or add a counter value (or timestamp) to the filename, for example ___ use-livecode mailing list use-livecode@lists

Re: How to update a css file when using the Browser widget

2018-11-04 Thread James Hale via use-livecode
@brian - yes I am on a Mac. I wondered if it was webkit too. However Safari performs as expected. I load the page in Safari, then change the css and then reload the page in Safari (using the reload button in the address field) and the page reloads using the modified css. @Phil - no joy with th

Re: How to update a css file when using the Browser widget

2018-11-03 Thread Phil Davis via use-livecode
Hi James, Maybe putting a parameter after the URL for the reload would make the widget think it's worthy of a complete reload. like so: https://my.big.site.com?12345 Haven't tried it, just thought of it. Phil Davis On 11/3/18 9:55 PM, James Hale via use-livecode wrote: Further exploring f

Re: How to update a css file when using the Browser widget

2018-11-03 Thread James Hale via use-livecode
Further exploring from my previous post. Making a standalone of the stack. Simply reloading the html page still does not use the modified css (as was the case in the IDE) But, deleting the browser widget and recreating it before loading the page and the modified css is recognised. So the deletio

Re: How to update a css file when using the Browser widget

2018-11-03 Thread Brian Milby via use-livecode
Is this on Mac? I've seen it when working on the LC Dictionary (where I was messing with the CSS). I don't think it is LC, but rather Safari (WebKit). I think that I recall that reloads were easier on Windows. I did not find a solution other than restarting the IDE that I can recall, but would

How to update a css file when using the Browser widget

2018-11-03 Thread James Hale via use-livecode
Recently I have been exploring modifying a css file so as to change the appearance of an html file being displayed in the browser widget. Simply, I thought. Load a page that uses a css file. Modify the css file and rewrite it to disk. Re-load the page from before, assuming it would use the new