Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
alexwise
Regular
Regular



Joined: Oct 15, 2005
Posts: 80

PostPosted: Tue Apr 25, 2006 2:45 pm Reply with quote

... well it does but not to everyone.

We run a radio station, and we had a iframe with a java script page in it that displayed a diff page according to the day of the week, for example Mondays page that will display the DJ's and Shows that are going to be on that day. Now we though it was working fine until we had a few people email saying they couldn't get onto the site, and after the process of elimination we found it's whas the schedule block to be the problem.
Since then we have tryed LOTS of diff type of javascript's inside the iframe to display the page of the day and it's same with every script, most people are fine but there are few that cant get onto the site because of it.

By testing it we found that the javascript on its own is fine, it's just when it's insdie the iframe block it screws people's browsers up, again not ALOT but some people.

After trying so many diff javascript codes Im thinking the only option to get something compatible is to do something in flash, but I don't want to go down that road as its a pain to update and Im rubish at flash.

Anyone got any ideas?

Thanks.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Tue Apr 25, 2006 5:21 pm Reply with quote

any way of showing what you have been using?
cause a simple iframe cannot realy cause such a problem..
 
View user's profile Send private message
alexwise







PostPosted: Tue Apr 25, 2006 6:49 pm Reply with quote

The IFrame block code is....
Code:
$content  =  "<iframe src=\"http://www.MYSITE.com/d4w/day.html\" width=\"100%\" height=\"400\"scrolling=\"no\" frameborder=\"0\"></iframe>";


Which works fine with static pages, but the problems start when we have javascript inside it.

This is one that im using at the moment but I have used around 10 or so diff javascript codes and they all have the same problem ....

Code:
function initArray() {

this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i];
}
var DOWArray = new
initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var today = new Date();
var day = DOWArray[today.getDay()+1];
window.location = day + ".html";


Again this works fine for most people and with all firefox users, but some IE users have problems.
Some are people with new ver of IE some are old, infact I tried it with IE on my old 98 computer and it crashes IE Shocked
 
hitwalker







PostPosted: Wed Apr 26, 2006 3:02 am Reply with quote

looks normal,but its hard to satisfy everybody.
what you should do is try to find out what the people have in common.
I mean for those it doesnt work..
 
alexwise







PostPosted: Wed Apr 26, 2006 4:31 am Reply with quote

Yeah I understand what you mean but this has been going on for about a year now I don't have time anymore.

1. It's not just one Windows version, its happens on 98 & XP & XP Pro.
2. It does it to old and new Versions of Internet explorer.
3. Some people crash, some people just freeze, and ive asked them all what other software they run, anti vir / firewall etc ... non have anything in common.

The other thing is it doesn't do it to anyone with Firefox, just a few IE users, so it sounds like some random bug in conjunction with something else... who knows.
 
hitwalker







PostPosted: Wed Apr 26, 2006 6:12 am Reply with quote

well a link to your site would be great,so i can try.
 
alexwise







PostPosted: Sat May 06, 2006 7:42 pm Reply with quote

Sorry ive deleted the all the scripts ive been using all 20 + of them.

Again it only effects very few people, I do belive it's a bug.
I have been working on this problem for ages now and can't find anyting that dosnt crash these certain people.

The only thing I havent tryed is puttting the java code inside a block, but I can't get to work.
Ive read the sticky on this site to do it but I'm at my wits end, so gave up on that.

So now the radio station just has a link to a static Schedule page Crying or Very sad
Oh well at lest it's compatible with evryone now.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©