String locationMarkup = "<a href='" + location + "'>play</a>";
anyway the example looks wrong to me, location has to be urlencoded.
"hello world.php?id=1&cool=full awesome"
has to be "hello%20world.php?id=1&cool=full+awesome"
On Fri, Jul 24, 2009 at 10:45 AM, mohit chavakula<mohit...@gmail.com> wrote:
> I guess its a problem with your locationMarkup string.
> It should be:
>
> String locationMarkup = "<a href=\"" + location + "\">play</a>";
>
>
> On Thu, Jul 23, 2009 at 11:37 PM, zlu <zhao....@gmail.com> wrote:
>>
>> I'm new to wave. I'd like to display a hyperlink in a blip.
>>
>> Blip blip = wavelet.appendBlip();
>> TextView textView = blip.getDocument();
>> textView.append("some text");
>> String location = "location of an audio file";
>> String locationMarkup = "<a href=" + location +
>> ">play</a>";
>> log.info("appending markup: " + locationMarkup);
>> textView.appendMarkup(locationMarkup);
>>
>> "some text" shows up fine but the locationMarkup doesn't. I would
>> like to click on the hyperlink and hear the audio for testing. Is
>> this approach going to work?
>>
>> Any examples of using appendMarkup is appreciated as I can't google
>> any.
>>
>>
--
--
ℱin del ℳensaje.