MG3: event.linkTo() produces a few blank lines before output.

0 views
Skip to first unread message

Adam Tuttle

unread,
Jun 26, 2008, 9:07:47 AM6/26/08
to model...@googlegroups.com
This isn't a big problem, but I figured it was worth mentioning. I've been using event.linkTo('eventName') as my form action to post a form to another event. Today I looked at the source of the generated page, and the code looks like this (including line breaks):

<form action="



index.cfm?event=user.doLogin" method="post">

I tried wrapping it in a trim:

<form action="#trim(event.linkTo(xe.loginFormPost))#" method="post">

... But the output is exactly the same. It doesn't appear to affect the functionality of the form in either Firefox 3 or IE7 -- both still post and function as expected.

But again, I thought it was worth mentioning. I'd file a bug but... ;)

In a copy of MG I checked out from SVN about 2-3 days ago, I modified /ModelGlue/gesture/eventrequest/EventContext.cfc, line 496 (the function definition of linkTo) and simply added: output="false" to the <cffunction> tag, and this resolved the issue -- not even a trim() is needed.

Maybe someone with committer access can make the same change in the SVN repo?

Regards,
Adam

Raymond Camden

unread,
Jun 27, 2008, 10:33:11 AM6/27/08
to model...@googlegroups.com
Done.

--
===========================================================================
Raymond Camden, VP of Software Dev, Broadchoice

Email : r...@camdenfamily.com
Blog : www.coldfusionjedi.com
AOL IM : cfjedimaster

Keep up to date with the community: http://www.coldfusionbloggers.org

Adam Tuttle

unread,
Jun 27, 2008, 11:11:45 AM6/27/08
to model...@googlegroups.com
Thanks, Ray!
Reply all
Reply to author
Forward
0 new messages