Current location: Hot Scripts Forums » General Web Coding » JavaScript » webtv redirect problem using javascript


webtv redirect problem using javascript

Reply
  #1 (permalink)  
Old 07-13-09, 02:20 PM
tbarko tbarko is offline
New Member
 
Join Date: Mar 2009
Location: Nashville, TN
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
webtv redirect problem using javascript

Anybody have any ideas how I can make this site The Piano Factory at Dyersburg work for webtv viewers. The client has nearly given up on the idea (thank God - he's a webtv user himself) but I promised I would try to get it to work. I tried a redirect javascript I found on the net somewhere but it does not appear to be working. My client claims most other sites look at least passable on webtv, including some of his competitors, but mine breaks up rather badly. From what I can tell msntv supports Flash only up to version 6, but my header is Flash 9. I used the SF object script to replace the header with a .jpg and that works in all other browsers, but apparently not in webtv. I contacted webtv, explained my situation, & in 3 attempts to get some info from them as to what javascript/css etc they support I got 3 replies from some bimbo who obviously never even read my e-mails since she's asking me questions that were explained in my letters to begin with. After 3 emails she still thinks I am a user after I explained in each letter that I was a designer not a user. Finally gave up trying to get any info from them. Thought I would try this forum. Please help if you can.
Thanks,
Tom
here's the script I found:
Code:
<script type="text/javascript">
<!- hide from older browsers
if(navigator.appName.indexOf("WebTV") != -1)
//WebTV detected
window.location='http://www.webtv.thepianofactory.net/index.htm';
else
//non-WebTV detected
window.location='http://www.thepianofactory.net/index.htm';
//->
</script>

Last edited by Nico; 07-14-09 at 03:40 AM.
Reply With Quote
  #2 (permalink)  
Old 07-14-09, 07:48 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
There should be two dashes in the comment tag.

<!-- and //-->

Otherwise the browser will interpret it as invalid tag and ignore it.
Reply With Quote
  #3 (permalink)  
Old 07-14-09, 10:38 AM
tbarko tbarko is offline
New Member
 
Join Date: Mar 2009
Location: Nashville, TN
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
thanks,
Tom
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript expand list problem Miben PHP 1 10-28-08 03:15 AM
Problem intergrating ASP output to Javascript module Roy Vandersteen JavaScript 1 01-06-06 10:01 PM
Mixing some HTML into some JavaScript thatonedude JavaScript 2 12-30-05 11:04 AM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM
Javascript vs PHP, problem with arrays Chuff JavaScript 0 10-03-03 04:01 AM


All times are GMT -5. The time now is 01:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.