×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    18

    Urgent !! Wml variables

    Hi,

    I have a problem when I try to view an image in wml. The src of the image contains variables. This is the code:

    <setvar name="url_image" value="http:%3a%2f%2fmyurl%3a8090"%2fimagenes%2fwbmp%2f"/>

    (I've tried whit the url without escaped characters,too. eg http://myurl:8090/imagenes/wbmp/, but It's wrong)

    <img src="$(url_image)animage.wbmp" alt="" />

    The problem is that the emulator(Nokia, Openwave and Ericsson) read the url and takes the value:
    <img src="http://myurl:8090/images/5/animage.wbmp//" alt="" />

    With double "/" at the end of all url.

    Anyone can help me?
    Regards,
    Elena

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    334

    RE: Urgent !! Wml variables

    Hello!

    Have you tried with escaped characters in url

    <setvar name="url_image" value="http%3a%2f%2fmyurl%3a8090%2fimagenes%2fwbmp%2f"/>

    and using ..."$(url_image:unesc)... to unescape the value of the variable?

    Kind regards,

    sami / Forum Nokia Developer Support

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×