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
2 Replies