<onclick> query

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Eddage Offline
Senior Member
Posts: 248
Joined: Jul 2011
Reputation: 7
Location: Bristol, England
Post: #1
This is probably a really simple solution but I can't seem to find it.

I just want to define the enter key to an <onclick> how would I do it?

At the moment I have my low list view as such...

[Image: screenshot004-2.jpg]

Then when I press right it shows some more info...

[Image: screenshot005-2.jpg]

What I want to be able to do is still select the TV Show when you're viewing the info, rather than having to go back to the list. I'm sure it's just a simple <onclick> but can't figure out what it is Tongue !

Thanks in advance.
find quote
pieh Offline
Team-Kodi Member
Posts: 672
Joined: Aug 2010
Reputation: 13
Location: Poland
Post: #2
when You show that extra info set <onclick>SendClick(10025,50)</onclick> on some buton You focus

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
find quote
Eddage Offline
Senior Member
Posts: 248
Joined: Jul 2011
Reputation: 7
Location: Bristol, England
Post: #3
pieh Wrote:when You show that extra info set <onclick>SendClick(10025,50)</onclick> on some buton You focus

Ok I've tried that...

[HTML]
<control type="button" id="7002"> <!--lowlist info-->
<include>HiddenObject</include>
<texturefocus>-</texturefocus>
<texturenofocus>-</texturenofocus>
<onup>SetFocus(50)</onup>
<onleft>SetFocus(50)</onleft>
<onright>SetFocus(9000)</onright>
<ondown>SetFocus(50)</ondown>
<onclick>SendClick(10025,50)</onclick>
<visible>Control.IsVisible(511)</visible>
</control>
[/HTML]

That's what the button code looks like, but when I press enter nothing happens?
find quote
Eddage Offline
Senior Member
Posts: 248
Joined: Jul 2011
Reputation: 7
Location: Bristol, England
Post: #4
Anybody have any other ideas?
find quote
BigNoid Offline
Team-Kodi Member
Posts: 3,138
Joined: Jul 2010
Reputation: 101
Location: Below sea level
Post: #5
Code:
<onclick>PlayMedia($INFO[ListItem.FileNameAndPath])</onclick>
should work.

EDIT: nevermind, tv shows don't work like that
(This post was last modified: 2011-09-10 13:23 by BigNoid.)
find quote