View Single Post
Posts: 29 | Thanked: 5 times | Joined on Jun 2008
#12
Originally Posted by MysticKatDaddy View Post
So, you want EventGhost to send a command to your xbox to turn it on and then turn on the reciever and switch it to the correct input? I'd program a macro in eventghost to do all 3 things.
I did that. That's the event I called HTTP.REC_PWRON_DVD

Originally Posted by MysticKatDaddy View Post
If you actually need to navigate to the xbox page use the onclick event to call the eventghost page with your eventghost command and then use javascript to navigate the page to the xbox page.

e.g....

onclick="clickbutton('index.html?HTTP.REC_PWRON_DV D');window.location.href='http://192.168.1.6/default.asp'"
I thought it would be easy but I'm totally clueless when it comes to java. The onclick event I bolded above, is that in Eventghost or html/java code? Where exactly does this code go? Does it all go in my href=" line?
Here's the code for that button that just sends the IR commands. Can you show me where your code would go?

<div style="position: absolute; top: 270px; left: 30px;"><a
href="index.html?HTTP.REC_PWRON_DVD"><img
style="border: 0px solid ; width: 350px; height: 80px;"
alt="listen to music" src="images/button_listen_music.png"></a><br>
</div>

If I'm using Java don't I need to add something in the <head> part of my page? I did a search on java and onclick and get something different on every link.

Thanks,

J