语言

Menu
Sites
Language
How can I share SAP socket between HTMLs?

Hi,

My application consisted of multiple HTMLs.

I have a problem with SAP socket network.

For example, SAP socket was opened in sample_A.html.

And then, when I open the sample_B.html from sample_A.html, opened SAP socket was closed.

So, I need to initialize new SAP socket.

How can I share SAP socket between HTMLs?

 

编辑者为: Kim 20 11月, 2015

响应

8 回复
Marco Buettner

dont split in different pages, use instead one single html with <div data-role="page"></div>

AVSukhov

Hello,

What methods do you use to navigate between pages?

Could you please provide code sample?

Kim

I just use below code.

window.location = "sample_B.html"

 

AVSukhov

your javascript code (SAP connection) placed in html file or separate js file?

Kim

it's separated js file.

Adam P.

Has anyone found a way to resolve this?

Adam P.

The way Marco Buettner suggested seems to work, although it is in a workaround fashion.

Thanks Marco!

Marco Buettner

Its the recommmend way to develop webapplications for tizen ... =)