PDA

View Full Version : button geturl and id in url string


davej
06-27-2008, 10:05 PM
Hi all
I am having a big problem with a simple flex button <mx:Button click="getURL('http://site.com/index.aspx?com=73&id=12')" label="Lean +" width="200" height="22" labelPlacement="left"/>

the button works great untill I use a url that contains vars with a var of id. I get this error when building the project

" Encountered errors or warnings while building project Strategy.mxml.
Strategy.mxml: The reference to entity "id" must end with the ';' delimiter.
"

I am at aloss and I need to have the code in line as it is can any one help??

thanx dave

davej
06-28-2008, 12:32 AM
ok figured it out, so lame you have to use &amp; instead of &. Not sure why adobe made it this lame but thats how it is