0

Message not working in Small View

So... I am working on adding some content into the Yahoo Small View. I can see the code and the display result but the message does not work. I.E. the message box does not appear when you hit the submit button.

I have the code in a function as such...

$content .= '<yml:message params="message_landing.php" view="YahooFullView" insert="success">';
$content .= '<input type="hidden" name="image" value="http://someimage.com/image1.jpg" />';
$content .= '<input type="hidden" name="subject" value="My Subject" />';
if(count($connections) > 0) {
$content .= '<input type="hidden" name="to" value="'.implode(',',$connectionIDs).'" />';
}
$content .= '<input type="hidden" name="body" value="My Message Body">';
$content .= '<input type="submit" name="submit" value="Send This Message" />';
$content .= '</yml:message>';


When I firebug the Yahoo Small View I see the following:

<form id="yml-message-9kQl9B70-devpreview6491-yap-box-0-6a46bbf7-yap-md-9kQl9B70" name="yml-message-9kQl9B70-devpreview6491" method="post" action="http://apps.yahoo.com/dev-preview/9kQl9B70/YahooFullView/message_landing.php"><input type="hidden" value="http://yahoo.kisses.zynga.com/kiss4.jpg" name="image"/><input type="hidden" value="KISS! XOXO" name="subject"/><input type="hidden" value="Z2AUB5RSMGF63X3FJ2MUGR2CA4" name="to"/><input type="hidden" value="I just sent you a kiss, are you going to kiss me back?" name="body"/><input type="submit" value="Send This Kiss!" name="submit"/></form>

Now - the big difference I notice with this code in firebug compared to a message within the Yahoo Full View is that when I firebug almost the exact same code from a Full View the form has an OnSubmit parameter.

Are sending messages supported in the small view? Am I doing something wrong to prevent the OnSubmit parameter from being added to the resulting form.

Thanks

by
0 Replies
  • Hi Henry, the small view of an open application uses a subset of YML called YML lite (see the bottom of this page: http://developer.yahoo.com/yap/yml/). From what I can see from that list yml:message is not supported. It looks like that's the reason the functionality is not working with what you're trying to do.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network

    QUOTE (HenryS @ Dec 10 2008, 02:11 AM) <{POST_SNAPBACK}>
    So... I am working on adding some content into the Yahoo Small View. I can see the code and the display result but the message does not work. I.E. the message box does not appear when you hit the submit button.

    I have the code in a function as such...

    $content .= '<yml:message params="message_landing.php" view="YahooFullView" insert="success">';
    $content .= '<input type="hidden" name="image" value="http://someimage.com/image1.jpg" />';
    $content .= '<input type="hidden" name="subject" value="My Subject" />';
    if(count($connections) > 0) {
    $content .= '<input type="hidden" name="to" value="'.implode(',',$connectionIDs).'" />';
    }
    $content .= '<input type="hidden" name="body" value="My Message Body">';
    $content .= '<input type="submit" name="submit" value="Send This Message" />';
    $content .= '</yml:message>';


    When I firebug the Yahoo Small View I see the following:

    <form id="yml-message-9kQl9B70-devpreview6491-yap-box-0-6a46bbf7-yap-md-9kQl9B70" name="yml-message-9kQl9B70-devpreview6491" method="post" action="http://apps.yahoo.com/dev-preview/9kQl9B70/YahooFullView/message_landing.php"><input type="hidden" value="http://yahoo.kisses.zynga.com/kiss4.jpg" name="image"/><input type="hidden" value="KISS! XOXO" name="subject"/><input type="hidden" value="Z2AUB5RSMGF63X3FJ2MUGR2CA4" name="to"/><input type="hidden" value="I just sent you a kiss, are you going to kiss me back?" name="body"/><input type="submit" value="Send This Kiss!" name="submit"/></form>

    Now - the big difference I notice with this code in firebug compared to a message within the Yahoo Full View is that when I firebug almost the exact same code from a Full View the form has an OnSubmit parameter.

    Are sending messages supported in the small view? Am I doing something wrong to prevent the OnSubmit parameter from being added to the resulting form.

    Thanks
    0
  • Hi JoseZ,

    If you're running into problems with the tags or would like us to help with some workarounds please let us know, we'd be glad to be of assistance.

    Jonathan LeBlanc
    Senior Software Engineer
    Yahoo! Developer Network

    QUOTE (JoseZ @ Dec 18 2008, 06:53 PM) <{POST_SNAPBACK}>
    :arap
    0

Recent Posts

in YAP