Re: defpartial returns object instead of html string

2012-06-22 Thread Murtaza Husain
Got some help on it from stackoverflow. It is actually a DOM object that is returned, and the html can be extracted using outerHTML property. Thanks, Murtaza On Friday, June 22, 2012 6:49:08 PM UTC+5:30, Dave Sann wrote: > > actually - not quite true > > You could always extract the html from

Re: defpartial returns object instead of html string

2012-06-22 Thread Dave Sann
actually - not quite true You could always extract the html from the generated element using std browser functions, jquery or similar. On Friday, 22 June 2012 23:16:56 UTC+10, Dave Sann wrote: > > you can't > > I believe that the code is designed to specifically bypass strings. > > Why do you w

Re: defpartial returns object instead of html string

2012-06-22 Thread Dave Sann
you can't I believe that the code is designed to specifically bypass strings. Why do you want a string in the client? On Friday, 22 June 2012 20:38:09 UTC+10, Murtaza Husain wrote: > > > Nope doesnt work. > > > On Friday, June 22, 2012 4:05:13 PM UTC+5:30, bsmith.occs wrote: >> >> str >> >> O

Re: defpartial returns object instead of html string

2012-06-22 Thread Murtaza Husain
Nope doesnt work. On Friday, June 22, 2012 4:05:13 PM UTC+5:30, bsmith.occs wrote: > > str > > On Fri, Jun 22, 2012 at 11:58 AM, Murtaza Husain > wrote: > > > > Hi, > > > > I am using Chris Ganger's crate library to generate html on the client > side. > > > > > > (defpartial html

Re: defpartial returns object instead of html string

2012-06-22 Thread Ben Smith-Mannschott
str On Fri, Jun 22, 2012 at 11:58 AM, Murtaza Husain wrote: > > Hi, > > I am using Chris Ganger's crate library to generate html on the client side. > > >     (defpartial html [] form) > >     (def form >   [:div.form-horizontal >    [:fieldset >     [:legend "Student Registeration"]

defpartial returns object instead of html string

2012-06-22 Thread Murtaza Husain
Hi, I am using Chris Ganger's crate library to generate html on the client side. (defpartial html [] form) (def form [:div.form-horizontal [:fieldset [:legend "Student Registeration"] [:div.control-group [:label.control-label "Hello World"]]