URL, strange output??

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

URL, strange output??

Post by ChrisMukrow »

Dear LiveCoders,

I'm trying to load some XML into Livecode, this works when I use a "hardcoded link":

Code: Select all

put URL "URL TO XML PAGE" into tXMLprofile
But when I use a variable it doesn't work:

Code: Select all

put itemLinkHolder into tURLprofile
put URL tURLprofile into tXMLprofile
When I put the variable into a field, the links are identical. But when I put tXMLprofile into a field and I use a variable, it's different. It removes a part of the url, profile.php instead of profile.php/?id=1 and when I use the profile.php "hardcoded" the output is also different.

I think the problem is the URL part, is there a workaround? Maybe quote the variable, is this possible?

What am I doing wrong, any ideas?

Kind regards,

Chris
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: URL, strange output??

Post by FourthWorld »

You can quote the URL, but since URLs don't normally have quotes that probably won't do what you need.

Chances are the problem lies with the way the value is put into the variable. Can you post the complete code so we can see what's happening end to end?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: URL, strange output??

Post by ChrisMukrow »

Thanks Richard for your help! The problem got solved, kinda... It's a bug, I submitted a bug report and now I'm waiting for a fix.
ooper
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 46
Joined: Mon Aug 17, 2009 12:22 am

Re: URL, strange output??

Post by ooper »

Hi Chris, do you know if this problem was fixed in a new release? Thanks!
ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: URL, strange output??

Post by ChrisMukrow »

Hi,

Sorry for my late response. No it's still not fixed, after 2 months with an quick incident ticket... You can follow the bug on the bug tracker: http://quality.runrev.com/show_bug.cgi?id=10800
Post Reply