0

yml:form behavior in canvas versus small view

How can I post a form to my server using YML in canvas view ?
Works well in Small view but not in canvas.

Should the code be different between canvas view and small view for a form submission using YML ?
Seems not posting to my server because running in an iframe and not taking into account the domain name which is actually specified for the canvas.

Please help.Any pointer is appreciated...

Claude Hussenet

4 Replies
  • QUOTE (claude @ Oct 24 2009, 07:00 AM) <{POST_SNAPBACK}>
    How can I post a form to my server using YML in canvas view ?
    Works well in Small view but not in canvas.

    Should the code be different between canvas view and small view for a form submission using YML ?
    Seems not posting to my server because running in an iframe and not taking into account the domain name which is actually specified for the canvas.

    Please help.Any pointer is appreciated...

    Claude Hussenet


    Hi,

    Were you using yml:form to do the submission in small view?

    You can take a look at http://developer.yahoo.com/yap/guide/yml-c...orm_canvas_view to see code example to post using yml:form.

    - Henry
    0
  • QUOTE (Henry @ Oct 24 2009, 03:33 PM) <{POST_SNAPBACK}>
    Hi,

    Were you using yml:form to do the submission in small view?

    You can take a look at http://developer.yahoo.com/yap/guide/yml-c...orm_canvas_view to see code example to post using yml:form.

    - Henry



    Thanks.But as pinpointed in my email,I have no problem to do the form submission in small view ...
    The issue is in canvas view....The same code working in small view does not work in canvas view.

    Let me know if you have a pointer.
    Thank you
    0
  • QUOTE (claude @ Oct 24 2009, 03:42 PM) <{POST_SNAPBACK}>
    Thanks.But as pinpointed in my email,I have no problem to do the form submission in small view ...
    The issue is in canvas view....The same code working in small view does not work in canvas view.

    Let me know if you have a pointer.
    Thank you



    I figured out....

    yml:form in canvas view does not support a path such as /webcontext/myform.php ..Has to be myform.php
    The same syntax does work in small view ! Certainly a bug ....

    Thx-Claude
    0
  • QUOTE (claude @ Oct 24 2009, 04:10 PM) <{POST_SNAPBACK}>
    I figured out....

    yml:form in canvas view does not support a path such as /webcontext/myform.php ..Has to be myform.php
    The same syntax does work in small view ! Certainly a bug ....

    Thx-Claude

    Hey Claude,

    The path should be relative to your full view URL, so if your canvas view url is myserver.com/yap/ you should be able to reference anything from the yap folder. Behavior should be the same in the small view, I wonder if you are referencing root for your canvas view and this may create the issue you're describing - can you confirm?

    Thanks,

    X
    0

Recent Posts

in YAP