WebBrowser Component has no JavaScript history.back()?

  • Thread starter Thread starter felix
  • Start date Start date
F

felix

Hi,

we are using the .Net CF 2.0 webbrowser component and it seems like the
history.back() function doesn't work.

Does anybody have an idea what's the problem here?

bye,
felix
 
I just tested if the OpentNetCF Browser component works in this regard.

Nothing happens when I use this link (got to the back() page through a
link):
<a href="javascript:history.back();">BACK</a>

Does anybody know what's the reason? I thought JavaScript is supported
by these components...

felix
 
Yes, JavaScript is supported and you can test it by writting instead
"alert('test')". But it seems that object "history" is absent for PIE.
 
Hi,

interesting, in the real PIE application that's preinstalled
history.back() is working but not in the components you can use in a
..Net program.
I thought that both would use the same framework or something like that.

bye,
felix



Sergey said:
Yes, JavaScript is supported and you can test it by writting instead
"alert('test')". But it seems that object "history" is absent for PIE.


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

I just tested if the OpentNetCF Browser component works in this regard.

Nothing happens when I use this link (got to the back() page through a
link):
<a href="javascript:history.back();">BACK</a>

Does anybody know what's the reason? I thought JavaScript is supported
by these components...

felix
 
It's a bug (which you may workaround)

The history is an array; arrays lack some functionality on the PPC, mainly the method push. You can write your own history object just relying on concat instead.
 
Back
Top