[Seaside] form action change to external link?
Alejandro Infante
alejandroinfante91 at gmail.com
Tue Mar 1 16:22:12 UTC 2016
Hi!
The WABrush>>with: call must be the last call to a brush. So instead of:
html form
with: [ stuff… ];
action: 'http://localhost/home/html/upload_large.asp <http://localhost/home/html/upload_large.asp>'
Try:
html form
action: 'http://localhost/home/html/upload_large.asp <http://localhost/home/html/upload_large.asp>';
with: [ stuff… ]
I have tried and it works :)
Cheers!
Alejandro
> On Mar 1, 2016, at 11:30 AM, Robert Kuszinger <kuszinger at giscom.hu> wrote:
>
>
>
> Hello Everyone!
>
> I'm still working on my large file upload project on a windows server (so ngix won't play :( ).
> I have a good uploader and also technique to solve upload outside Seaside (or VA WebCOnnection as I did before) and then come back into the session afterwards.
>
> But to make it I need to hack the seaside form to put my own link into the ACTION=".....".
>
> Here is what I did, but it seems that action is overwritten by Seaside to its usual internal form action (understandably)
>
>
> f := html form.
>
> f with:[
>
> .... form creaton code here.... works well, no problem.......
>
> ].
>
> f action: 'http://localhost/home/html/upload_large.asp <http://localhost/home/html/upload_large.asp>'.
>
> And when looking at generated page source:
>
> <form accept-charset="utf-8" method="post" action="/uploader?_s=jdXt_Vzp8dKoK3M9&_k=C197PyH7ka66mXVd">
>
>
> So, how to hack my own action into the form?
>
>
> thanks
> Robert
>
>
>
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20160301/8a47f30a/attachment.htm
More information about the seaside
mailing list