Stephanos,

It would be ideal if you could put up a quick project on GitHub that
demonstrates the problem.  Having reproducible code helps us solve problems
faster.  Any chance you could do that?

Thanks,

David

On Wed, Jan 6, 2010 at 11:17 PM, stephanos <stephan.beh...@googlemail.com>wrote:

> Hi guys,
>
> I'm stuck with this problem for a few days now and need help. I want
> users to be able to upload a ZIP file. When I embed this functionality
> directly in the page it works flawlessly - but I need to put it into a
> modal and that's were the trouble starts.
>
> When I submit the form it executes correctly but it prints (!) the
> response to the browser:
>   try{jQuery("#lift__noticesContainer__").each(function(i)
> {this.innerHTML = "<div class=\"success\"><ul><li>Thanks for the
> upload!</li></ul> </div>";});} catch (e) {}
>
> The code looks right but it shouldn't print to the screen. What am I
> doing wrong?
>
> #########################################################
> My current progress (using M8):
>
> HTML:
>    <lift:SourceUpload form="post" multipart="true">
>        <fieldset style="width: 90%; margin: 0 auto">
>            <strong>At first</strong> select the zip file <upload:file/
> >
>            <br/><br/>
>            and <strong>then</strong> push
>            <input type="submit" value="upload!"/>
>        </fieldset>
>    </lift:SourceUpload>
>
> CODE:
>    def request(in: NodeSeq) =   // opens file upload modal
>        ajaxButton(in, () => S.runTemplate(List("/katas/share")).
>                   map(ns => ModalDialog(ns)) openOr Alert("Internal
> error: Couldn't find template!"))
>
>    def render(in: NodeSeq): NodeSeq = bind("upload", "file" ->
> SHtml.fileUpload(processFile _))
>    ....
>
> Cheers,
> Stephan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

Reply via email to