Languages

Menu
Sites
Language
console.log not showing

i am not getting console.log("Error" ); while i am dubgging . prev it was coming but now i cant get

Responses

22 Replies
AVSukhov

Hello,

Very difficult to say what the problem is. Maybe program execution does not reach this procedure.

appdaily

but it was working with same code

appdaily

how i can print log wihtout dubging 

AVSukhov

Hello,

This topic can help you:

https://developer.tizen.org/forums/web-application-development/it-disabled-security-reasons-run-mode

Alex Dem

Hi,
Better use Debug as. You could observe logs also : Window->Show view->Other->Tizen->Log.
Alexey.

appdaily

in log  i cant see  my log i am using

console.log("Error" );  is this right ?

 

Alex Dem

Hi,
Strange , if you use Debug as, you should be able to observe javascript logs (if your code is really working).
Alexey.

appdaily

y its happen prev i can see when i am debugging now  i cant see any error also , my console tab not working at all

appdaily

See i have say

index.html and A.html

now if i put code to index.html then i can see console log but if same code i put in a.html nothing is coming

appdaily

i am using this

function openA() {
        
        window.open("A.html");
    }

 

<button onclick="openA();">A</button>

AVSukhov

Hello,

This is not good way to navigate between pages.

Using window.open you create new window object and you cannot use back key or another listeners from your widget.

appdaily

what is the best way to open ? logs are not coming coz of opening method ?

Marco Buettner

use $.mobile.changePage('A.html'); or tau.changePage(document.querySelector(selectorOfThePage));

appdaily

TypeError: 'undefined' is not an object (evaluating '$.mobile.changePage')

AVSukhov

Hello,

Are you import jQueryMobile library?

appdaily

    <script src="./lib/tau/mobile/js/jquery.min.js"></script>

AVSukhov

Hello,

You have created web app based on TAU, in this case use tau.changePage

For more info:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.web.apireference/html/ui_fw_api/mobile/page/page_change.htm

appdaily

tizen web basic application

Alex Dem

Hi
Imho, in this case I suppose it is better for 'basic app' use window.open() instead of addnig manually js frameworks.
Or create at once 'web UI framework' or 'jqueryMobile' project and use $.mobile.changePage().
Alexey.

Alex Dem

Hi,
$.mobile.changePage('indexA.html'); should work in 'Tizen Web UI Framework' web projects ( checked with multipage app template).
What type of project do you use?
Alexey.

appdaily

indexhtml

A.html

 

in index.html button onclick i am calling $.mobile.changePage('A.html');

appdaily

 tau.changePage("a.html"); its working but when a open its not perfoming any action but with this    window.open("A.html"); its working