By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

javascript problem when creating frame

P: 1
i am struggling from last 3 days creating frames using javascript, it works fine on IE but not on firefox, when displaying language other than english, here is the code
Expand|Select|Wrap|Line Numbers
  1. self.newWin ='about:blank','cal','dependent=yes,width=180,height=180,titlebar=yes,top=243,left=232');
  3.     newWin.document.write
  4.     (
  5.      "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+
  6.       "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"\"\">"+
  7.       "<html xmlns=\"\">"+
  8.         "<HTML>\n" +
  9.         "<HEAD>\n" + 
  10.         "<META http-equiv='Content-Type' content='text/html; charset=UTF-8'\/>" +
  11.         "<TITLE>Select your date<\/TITLE>\n" + 
  12.         "<\/HEAD>\n" +
  14.         "<FRAMESET ROWS='40,*' BORDER='0' FRAMEBORDER='0'>\n" +
  15.         "<FRAME NAME='topCalFrame' SRC='javascript:parent.opener.calDocTop' SCROLLING='no'>\n" +
  16.         "<FRAME NAME='bottomCalFrame' SRC='javascript:parent.opener.calDocBottom' SCROLLING='no'>\n" +
  17.         "<\/FRAMESET>\n" + 
  19.         "<\/HTML>"
  20. }
where calDocTop is the HTML for top area of calendar and calDocBottom is the HTML for bottom frame, both variables are in String format. it works perfect on Firefox but not on IE.

your help will be grateful
Sep 12 '09 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Does it work in IE or Firefox (you've said both!)?

The frame src should be a file really, so I would suggest you create two files and point to them instead.
Sep 14 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.