Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16159] MobileWeb: NavigationGroup buttons click event not working

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2014-03-04T19:16:01.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sRelease 3.3.0
ComponentsMobileWeb
LabelsNavigationGroup, event, qe-closed-3.3.0, qe-testadded
ReporterHazem Khaled
AssigneeChris Barber
Created2014-01-07T08:12:02.000+0000
Updated2014-05-08T09:32:31.000+0000

Description

Description: Back button not working, also try to set rightNavButton then add event click or singleTab but also no thing happen
<Alloy>
	<Window>
		<NavigationGroup id="nav">
			<Window id="webWin">
				<RightNavButton>
					<Button class="aboutBtn" onClick="openAbout" />
				</RightNavButton>
				<TableView id="list" />
			</Window>
		</NavigationGroup>
	</Window>
</Alloy>
var openAbout = function() {
	alert('working');
};
$.index.open();
Also not working if we tried in controller only
<Alloy>
	<Window>
		<NavigationGroup id="nav">
			<Window id="webWin">
				<TableView id="list" />
			</Window>
		</NavigationGroup>
	</Window>
</Alloy>
var btn = Ti.UI.createButton({
	title : 'aaa'
});
btn.addEventListener('click', function() {
	alert('working');
});
$.webWin.rightNavButton = btn;

Comments

  1. Hazem Khaled 2014-01-07

    Hi Ingo, NavigationWindow is not supported in MobileWeb http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iOS.NavigationWindow I'm talking about this API http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.MobileWeb.NavigationGroup
  2. Ingo Muschenetz 2014-01-07

    Yes. I just edited the title to correct spelling and then afterwards realized that the component was wrong. NavigationGroup has been removed in 3.2.0. You should replace it with NavigationWindow. Does that work as expected?
  3. Hazem Khaled 2014-01-07

    The better way make it like NavigationWindow Thanks Ingo
  4. Ritu Agrawal 2014-01-08

    Resolving this ticket as NavigationGroup has been replaced with NavigationWindow in 3.2.0 release. It is documented as part of the release notes here: http://docs.appcelerator.com/titanium/release-notes/?version=3.2.0.GA
  5. Hazem Khaled 2014-01-08

    Hi Ritu, I Know Titanium.UI.iPhone.NavigationGroup replaced with Titanium.UI.iOS.NavigationWindow but i'm talking about Titanium.UI.MobileWeb.NavigationGroup, it's still available in 3.2.0 and events not working, this what i mean. Thanks
  6. Ritu Agrawal 2014-01-08

    Reopening this ticket based on reporter's latest comment.
  7. Ingo Muschenetz 2014-01-08

    Hazem, this used to work in 3.1.3?
  8. Hazem Khaled 2014-01-08

    Thanks Ingo & Ritu
  9. Ritu Agrawal 2014-01-10

    Moving this ticket to engineering as we can reproduce this issue with the sample provided in the documentation. I reproduced this issue with Studio browser as well as Android emulator browser. http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.MobileWeb.NavigationGroup var win1 = Titanium.UI.createWindow(); var win2 = Titanium.UI.createWindow({ backgroundColor: 'red', title: 'Red Window' }); var win3 = Titanium.UI.createWindow({ backgroundColor: 'blue', title: 'Blue Window' }); var button = Titanium.UI.createButton({ title: 'Open Blue Window' }); button.addEventListener('click', function(){ nav.open(win3, {animated:true}); }); var nav = Titanium.UI.MobileWeb.createNavigationGroup({ window: win2 }); win2.add(button); win1.add(nav); win1.open();
  10. Thomas Neerup 2014-02-18

    Any updates on this one.. Updating to 3.2.x on MobileWeb seems impossible with this bug.
  11. Chris Barber 2014-03-04

    Dupe of TIMOB-16539.
  12. Pragya Rastogi 2014-05-08

    Verified the fix on: OSX: 10.9.2 Xcode: 5.1.1 Studio - 3.3.0.201405011408 SDK -3.3.0.v20140507163312 acs-1.0.14 alloy-1.4.0-dev npm-1.3.2 titanium-3.3.0-dev titanium-code-processor-1.1.1 Browser: Chrome Version 34.0.1847.131 , Firefox 29.0

JSON Source