02-02-2011 09:07 AM - edited 02-03-2011 03:27 AM
I have gotten the Text from this source XML document to appear in the BrowserField
I was thinking far too much about this. The question is more simple that I thought originally.
How can I programatically insert the string "fie:///store/home/" into the above string so it says?
Solved! Go to Solution.
02-03-2011 05:43 AM
Sorry, I think I am missing the point here:
What is wrong with this java code:
src="file:///store/home/users" + src;
02-03-2011 05:59 AM - edited 02-03-2011 05:59 AM
Sorry Peter, I edited the string I was working with down too far.
The full String that I have to work with is :
<p><img class="wp-image-17 size-full alignnone" title="Chris" src="wp-content/uploads/2011/01/Chris_bild.jpg" alt="" /></p><p><strong>Chris</strong></p> <p>Some guy </p> <p>testing with some more text</p>
I dumbly posted only a part of it. Making the issue seem more simple than it is.
That above code is pulled out of an XML file. I need to trick the BrowserField into looking for that Chris_bild.jpg locally. only way I can think to do that is do put the file path in the HTML.
The only way I can do that is to append that string with the missing parts.
02-03-2011 06:03 AM
find the index you want to manipulate, for example using indexof("src=")
use substrings and add the parts together as you want.
02-03-2011 07:17 AM