try this:
href="javascript: document.getElementById('formID').submit();"
On Aug 14, 3:54 pm, BikePilgrim <[EMAIL PROTECTED]> wrote:
> Any idea how to make the toolbarButton submit a form on the page? I
> tried: toolbarButtonHREF="javascript: submitForm('formID'))"
> to no avail. I get an errors saying that submitForm() isn't defined.
>
> On Aug 14, 8:17 am, Mobivity <[EMAIL PROTECTED]> wrote:
>
> > I made a change to the iUi to handle this. I needed to hide the button
> > as well.
>
> > 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 13, 9:50 pm, BikePilgrim <[EMAIL PROTECTED]> wrote:
>
> > > I'm using iUI to build an app. Going off of the examples provided on
> > > the website, I put a blue button in the top right corner of the
> > > toolbar. When I visit other pages which are loaded via ajax I'd like
> > > to change the function of that button. Can anyone think of a clean way
> > > to do this from an ajax loaded page?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---