blackberry/WebWorks-Samples

Swipedown.js and the <embed> element

Closed this issue · 1 comments

I might just be displaying my ignorance and lack of even rudimentary training (other than good ol' google) in html coding, but when I include an element the swipedown.js stops working if I follow any links.
Here's an example of a .bar I made, only changes I made were to remove the original body (except the script for the dropdown) and insert -
.bar download link: http://dl.dropbox.com/u/9610464/Temp/swipemenu.bar
zipped source: http://dl.dropbox.com/u/9610464/Temp/swipemenu.zip
The dropdown works great on the initial page, but if I click any links it no longer works.
Same deal with an iframe.

I believe what is happening is an error occurs that prevents the JavaScript defined at the bottom of the index.html page from loading. This would cause the menu to stop working. Is there any way to confirm, perhaps using remote web inspector, if a runtime error occurs when including an embed or iframe

https://bdsc.webapps.blackberry.com/html5/documentation/ww_testing/Web_inspector_overview_1553586_11.html