This is a migrated thread and some comments may be shown as answers.

Issue while redirect to another .html page

2 Answers 216 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jaydeep
Top achievements
Rank 1
Jaydeep asked on 31 Mar 2012, 12:22 PM
Hi

I set set an url while binding a list. its have no issue if set local view id. But instead of local view id if i set a local .html page. it will stop working in android device. In Phonegap, it giving an error ---

03-31 16:30:24.359: E/Web Console(19853): Uncaught TypeError: Cannot call method 'getAttribute' of undefined at file:///android_asset/www/js/kendo.mobile.min.js:8

------------------------------------------------------------------------------------------------------------------------------------

var MainMenuAction = [
            { name: "Book Your Ticket", description: "", url: "eventtypelist.html", id: 1},
            { name: "Trace Your Ticket", description: "", url: "traceticket.html", id: 2}
        ];


        function SetMainMenu() {
            $("#ulMainMenu").kendoMobileListView({
                dataSource: kendo.data.DataSource.create({ data: MainMenuAction }),
                template: $("#TmpIndex").html()
            });

    <script type="text/x-kendo-template" id="TmpIndex">
    <h4 class="item-title">${name}</h4>
    <p class="item-info">${description}</p>
    <a data-role="button" data-item-id="#:id#" href="#: url#" class="details-link">Continue</a>
    </script>

----------------------------------------------------------------------------------------------------------------------------------------------

List is populate but when i click on button it will not working in my mobile.

How to fix this issue.

Thanks 

Jaydeep

2 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 02 Apr 2012, 12:26 PM
Hello,

This is not a known issue. My guess is that for some reason the remote view html file is not deployed on the device. 

Regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Reinaldo
Top achievements
Rank 1
answered on 18 Apr 2012, 07:01 PM
I have a similar issue. When I use a remote view witth a button (data-role="button") the application stops working in the Android device (through Phonegap). The same code, if run in a desktop browser works fine.
Tags
General Discussions
Asked by
Jaydeep
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Reinaldo
Top achievements
Rank 1
Share this question
or