Help with javascript error... null or not an object

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Help with javascript error... null or not an object
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
If I go to this link directly the page loads with out errors (http://cbs.sportsline.com/mlb/box-scoreboards). However when I try to load it in an IFrame I get the following error:
<iframe src="http://cbs.sportsline.com/mlb/box-scoreboards"></iframe>


Line:779
Char:2
Code:0
Error:'parent.tabSet.saag' is null or not an object
URL:http://www.sportsline.com/mlb/box-scoreboards


How would I go about getting rid of that error?


Back to top Reply with quote
#2   re: Help with javascript error... null or not an object
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.16 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
Hi JR,


I could be wrong but what is happening is the page you are loading in the iframe is looking for an object that does not exisist on the page that loading it.

Even if you created a n object for it to find you still would recieve an error but the error would be "permission denied". Your browser will not let the script from one framed page access another for means of manipulation if the pages in the frames are on different sites.

I am not hip and up on the trend of all the new features to the newer Iesp2/3 browsers but in OLD days you can override this at user level by accepting the your site as a trusted site, this does you the webpage developer no good tho.



Back to top Reply with quote
#3   re: Help with javascript error... null or not an object
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
Thanks for the reply I appreciate it. I will have to look into a way around this. Maybe I could read the page with file_get_contents....



Back to top Reply with quote
#4   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.16 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
np but like I said I could be wrong and hopefully if I am someone will post with correction. I believe net scape is the only browser that will allow it but the script needs to be a signed script and that cost money lol



Back to top Reply with quote
#5   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
I was able to get around it by using file_get_contents and then str_replace to remove the code that was causing the error. Thanks for the explanation above, I really appreciate it.



Back to top Reply with quote
#6   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.16 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
Just for future readers, file_get_contents and str_replace are function that are used in Php scripting and altho you can jump in and out of the 2 while writing your scripts you will need to find out if the host you are using allows you to use php especially if you are using one of the free hosting sites.



Back to top Reply with quote
#7   re: Help with javascript error... null or not an object
ohiodarter
CZ Newbie
Status: Offline
Joined: Oct 06, 2003
0.00 posts per day
Posts: 1
Points: 270
   
What "exactly" did you change or delete? I see TONS of people using this script and they have ALL given up on trying to get rid of this error. MANY sites that still give the error. We'd all be indebted to you if you told us how to fix it. Thanks in advance.
Mike



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum