Page 10 of 10
Re: STUSK (Stupid site keeper)
Posted: Sun May 16, 2010 8:04 am
by Fangbeast
Since I use an embedded web template in a web gadget, using the SetGadgetText directive on the written out template which then loads the modified template from disk, the string sin the gadget have to obey the web gadget formatting rules (Whatever they are).
I've worked out that a 655pixel width is just about approximate to an A4 paper size and designed the web template to wrap the text in a field.
Most data wrap fine, but one doesn't
I've had 166 records with some strings over 2 pages long, 20 fields with no spaces, they all wrap. Some fields wrap at the question mark (?), some wrap at the dash char (-), some at the space ( ) which makes sense. So, I need to find out what characters cause the html to force wrapping.
The below line won't wrap at all and forces the record that it is in to look bad.
"
http://corporate.digitalriver.com/store ... mbElement5"
More research to do.
Re: STUSK (Stupid site keeper)
Posted: Sun May 16, 2010 10:47 am
by Perkin
If I can remember correctly, ages ago I had a similar problem, I think I solved it by inserting <wbr> tags after any /'s in offending lines.
Not sure If this is correct, or if it still works.
I can't find the old code I used (may have been in an old vb project)
Re: STUSK (Stupid site keeper)
Posted: Sun May 16, 2010 1:23 pm
by Fangbeast
Perkin wrote:If I can remember correctly, ages ago I had a similar problem, I think I solved it by inserting <wbr> tags after any /'s in offending lines.
Not sure If this is correct, or if it still works.
I can't find the old code I used (may have been in an old vb project)
Well I'll be smegged on, it works!! You should be writing parts of this software, not me:):):) I know bugger all about html apart from the very basics. I knew it had to be some sort of translation thingy.
Re: STUSK (Stupid site keeper)
Posted: Sun May 16, 2010 3:00 pm
by Perkin
Glad to help

Re: STUSK (Stupid site keeper)
Posted: Mon May 17, 2010 7:09 am
by Fangbeast
Perkin wrote:Glad to help

Can you think of any other characters that need this treatment? If not, I'll post the updated exe online.
Re: STUSK (Stupid site keeper)
Posted: Mon May 17, 2010 10:57 am
by Perkin
I think if you used the tag after any character which it made sense that the line should continue on (but as you say wouldn't wrap otherwise).
Here's a few ( all usually part of an address )
/ . ? & =
You might instead add the tag after every n'th character, where field width should wrap, but then you have to know text width's, unless you use a fixed width font for addresses and wrap at exact chars.
Re: STUSK (Stupid site keeper)
Posted: Mon May 17, 2010 1:35 pm
by Fangbeast
Perkin wrote:I think if you used the tag after any character which it made sense that the line should continue on (but as you say wouldn't wrap otherwise).
Here's a few ( all usually part of an address )
/ . ? & =
You might instead add the tag after every n'th character, where field width should wrap, but then you have to know text width's, unless you use a fixed width font for addresses and wrap at exact chars.
I'm not using any particular font, the web gadget just loads whatever is the default on that user's system for the II browser and I could be wrong but I think the web gadget uses that?
Never mind, I will add those chars, this is looking better.
I was thinking of buying srod's printing/report tool but it would be overkill for this small freeware program. Still would have been more precise than a web gadget but this does work.
I'll add those extra chars tomorrow. Will be out most of the day.
Re: STUSK (Stupid site keeper)
Posted: Sat Aug 21, 2010 1:08 pm
by Fangbeast
I won't be checking the forums for a long while as my father is nearly gone (got a day at the most) and I will be busy taking care of things and finalising the estate.
Those who need me for my junk support know how to get a hold of me.
Adieu.
Re: STUSK (Stupid site keeper)
Posted: Sat Aug 21, 2010 1:41 pm
by yrreti
My condolences Fangbeast
Sorry for your loss.
Re: STUSK (Stupid site keeper)
Posted: Wed Oct 13, 2010 5:44 am
by Fangbeast
It took a lot longer, long illness, longer than anyone expected. But he finally passed away quietly at 8:05am this morning, at peace at last. I'll be busy for a while.
Re: STUSK (Stupid site keeper)
Posted: Wed Oct 13, 2010 12:16 pm
by srod
My condolences fangles. Very sorry to hear this news.
Re: STUSK (Stupid site keeper)
Posted: Thu Oct 14, 2010 8:24 am
by Fangbeast
srod wrote:My condolences fangles. Very sorry to hear this news.
Thank you. Everyone is crying, walking around like zombies but I have made all the funeral arrangements for Monday, signed all documents, finalised everything and Apu (dad in English) is finally out of pain and in peace.