Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support


Go Back   Australian Media Center Community > XP Media Center 2005 > XP Media Center 2005 - Plugins & Addons > Other MCE Addons

Community Information

Reply
 
Thread Tools
Old 3rd August 2006, 10:32 PM   #1 (permalink)
MCE Graduate
 
lcrowhurst's Avatar
Status lcrowhurst is Offline:
ActivityPosts: 79
Reputation & Thanks Support Rating:
lcrowhurst
Points Earned: 30

lcrowhurst has been Thanked 3 times in 3 posts
Mce Ajax

Hi Guys

has anyone written anything in Ajax and run it inside MCE. Ive witten a simple test program that works fine inside a browser (IE), but when in MCE it doesnt update the page.

1) does ajax work inside MCE
2) if it does is there something special you have to write
3) has anyone got any sample (simple) code - simple as its a long time since Ive called myself a good programmer :P

thanks
  Reply With Quote
Old 3rd August 2006, 11:45 PM   #2 (permalink)
Newbie
No Avatar
Status benji0000 is Offline:
ActivityPosts: 9
Reputation & Thanks Support Rating:
benji0000
Points Earned: 18

benji0000 has been Thanked 0 times in 0 posts
Re: Mce Ajax

yep works fine (its IE after all).

My plugin uses AJAX - http://www.streamalicious.com
  Reply With Quote
Old 4th August 2006, 11:52 AM   #3 (permalink)
MCE Graduate
 
lcrowhurst's Avatar
Status lcrowhurst is Offline:
ActivityPosts: 79
Reputation & Thanks Support Rating:
lcrowhurst
Points Earned: 30

lcrowhurst has been Thanked 3 times in 3 posts
Re: Mce Ajax

I must be doing something wrong still doesnt work, are you using atlas for you development.

here is the link to the test sample

http://www.intellihome.com.au/apsx/test.htm

works in browser , not in mce


Could you take a look at code as see where im going wrong

getcubs.js

var xmlHttp

function GetCBus(str)
{
if (str.length==0)
{
document.getElementById(str).innerHTML="99"
return
}
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="state.asp"
url=url+"?q="+str+Math.random()
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}


function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{

a=(xmlHttp.responseText).substring(0,8)
b=(xmlHttp.responseText).substring(8,30)
document.getElementById(a).innerHTML=b
}
}

function GetXmlHttpObject()
{
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}


state.asp

<%
response.write(ucase(request.querystring("q")))
%>
  Reply With Quote
Old 4th August 2006, 02:01 PM   #4 (permalink)
Newbie
No Avatar
Status benji0000 is Offline:
ActivityPosts: 9
Reputation & Thanks Support Rating:
benji0000
Points Earned: 18

benji0000 has been Thanked 0 times in 0 posts
Re: Mce Ajax

No, I'm not using Atlas, but I am using a third party AJAX interface.

It's not that hard to write yourself, but why bother when there are good ones out there.

I picked the Yahoo! UI one. The Yahoo! one was easy to setup, relatively lightweight and just works.

http://developer.yahoo.com/yui/

Atlas is probably an option, but its a bigger thing than I wanted. Google also has one.
  Reply With Quote
Reply

Bookmarks

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
MCE with AJAX euss Other MCE Addons 2 16th May 2006 01:34 AM
Restart after entering MCE interface Lester_Burnham Other Hardware - XPMCE 13 29th April 2006 07:06 PM
EPG Internals musictalks XPMCE 2005 EPG Support 10 10th April 2006 07:26 PM
Ahh! Twin DNTV! DVB-T cards in MCE. How ?? Moby58 Tuners - XPMCE 10 6th April 2006 02:41 PM
Dual cards and MCE TV Signal settings. Ishryal XP Media Center 2005 - The Software 10 12th October 2005 04:13 PM


Advertisers




Terms Of Service - Contact Us - Advertise With Us - Archive - Privacy Statement - FAQ
Microsoft©, Windows XP©, Windows XP Media Center© & Windows Vista© are registered trademarks of Microsoft Corporation.
www.xpmediacentre.com.au has no relationship with, nor is affiliated in any way with Microsoft Corporation.
All original content on this website © 2004 - 2008 xpmediacentre.com.au, All rights reserved
Forum by vBulletin Version 3.7.3 - Copyright Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
Local time now is 09:46 AM AEDT.