I added these attributes
hideToolbarButton
toolbarButtonText
toolbarButtonHREF
Works perfectly. Just put the attributes in your Form or Div or UL tag
for the page. Make sure you actually create the button though. This
only changes it.
<ul id="Welcome" title="iPheedr" toolbarButtonText="Settings"
toolbarButtonHREF="prefs.aspx">
Then I added this in the UpdatePage routine:
// @@ Added on 8/1 by gh - change ToolBar button
var toolbarButton = $("toolbarButton");
if (toolbarButton)
{
if (!page.getAttribute("hideToolbarButton"))
toolbarButton.style.display = "inline";
else
toolbarButton.style.display = "none";
if (page.getAttribute("toolbarButtonText"))
toolbarButton.innerHTML =
page.getAttribute("toolbarButtonText")
if (page.getAttribute("toolbarButtonHREF"))
toolbarButton.setAttribute("href",page.getAttribute("toolbarButtonHREF"));
if (page.getAttribute("toolbarButtonType"))
toolbarButton.setAttribute("type",page.getAttribute("toolbarButtonType"));
}
// *******
Works great. Hope this helps. I struggled for a while before deciding
to hack the iui.js file.
On Aug 14, 8:17 am, Mobivity <ghar...@mobivity.com> wrote:
I'm open to suggestions if you have one, but I'd guess that we're
using invalid HTML because it works on the device we are targeting and
its easy. What more do you need?
Tried it. Seems iui uses a serialize and Ajax approach to forms which
I can't seem to invole outside of an iui page> > >