Brilliant..Thanks!

Thanks
Justin Will

----------------------------------------
From: "Aparajita Fishman" <[email protected]>
Sent: Thursday, April 30, 2015 3:35 PM
To: [email protected], "Active4D Developer Discussion List" 
<[email protected]>
Subject: Re: [Active4d-dev] Escaping Quotes

> is there a shortcut like to make this easier for use in buckets of fields 
on a form?

Yes, create a library method that writes the whole field.

method "writeInput"($name; $value; $class = ""; $extra = "")

    writeln('<input name="$name" value="`url encode($value)`" 
class="$class" $extra>')

end method

writeInput("foo"; [table]field)
writeInput("foo"; [table]field; "form"; "onblur=\"doSomething();\"")

Regards,

  Aparajita


_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to