YAFLogo

kingsley
  • kingsley
  • 54.8% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Hi,

I download the latest code from SVN and publish it to my server.

When I access the site with IE6.

There will be two error when i try to open a topic.

The first is Expected identifier, string or number, I solved this by removing the last comma in text block from the following code. It's in YetAnotherForum.net\App_Code\YAF\Utilities\JavaScriptBlocks.cs

public static string LightBoxLoadJs
		{
			get
			{
				return
					@"jQuery(document).ready(function() { 
					jQuery.Lightbox.construct({
						show_linkback:	false,
						show_helper_text: false,
				text: {
					image:		'" +
					YafContext.Current.Localization.GetText( "IMAGE_TEXT" ) + @"',
					close:    '" +
					YafContext.Current.Localization.GetText( "CLOSE_TEXT" ) + @"',
					download:    '" +
					YafContext.Current.Localization.GetText( "IMAGE_DOWNLOAD" ) + @"', <-- this one
					}
				});
			});";				
			}
		}

And the second is syntax error and the line number is 2. I tried to debug this, but i have not find the cause. The interest thing is the error occurred in the say.no.to.ie.6.js :lol:

I test in FF and IE7, all things works well.

But i don't want the IE6 user feels bad, so is there anyone met this before and how to deal this?

Thanks very much~ 🙂

Sponsor