Click here to Skip to main content
15,388,892 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: drop down menu tree in html Pin
Ashfield16-Jan-09 1:33
MemberAshfield16-Jan-09 1:33 
QuestionMultiple Cookie Sessions Pin
hdsouza115-Jan-09 17:38
Memberhdsouza115-Jan-09 17:38 
QuestionDynamically generated URL could not be opened in FireFox Pin
AshishTijare15-Jan-09 3:22
MemberAshishTijare15-Jan-09 3:22 
AnswerRe: Dynamically generated URL could not be opened in FireFox Pin
TylerBrinks15-Jan-09 8:10
MemberTylerBrinks15-Jan-09 8:10 
GeneralRe: Dynamically generated URL could not be opened in FireFox Pin
Anshumas16-Jan-09 0:19
MemberAnshumas16-Jan-09 0:19 
GeneralRe: Dynamically generated URL could not be opened in FireFox Pin
TylerBrinks16-Jan-09 4:58
MemberTylerBrinks16-Jan-09 4:58 
GeneralRe: Dynamically generated URL could not be opened in FireFox Pin
Anshumas16-Jan-09 18:49
MemberAnshumas16-Jan-09 18:49 
QuestionRe: Dynamically generated URL could not be opened in FireFox Pin
AshishTijare16-Jan-09 21:37
MemberAshishTijare16-Jan-09 21:37 
Below is the code for the same I am finding the solution.

-----------------------------------
  if( isIE ) //Execute for Internet Explorer.
  {
     var _form = this.innerDocument.createElement('<form id = "UPLOADMYPAGE" method="post" enctype="multipart/form-data"  action="TestMyPage.ashx" />'); //The action attribute for IE requires to be pagename only. IE loads it properly.
     var formHTML = _form.outerHTML;
     document.getElementById('MYFRAME').contentWindow.document.body.innerHTML = formHTML;
  }
  else //Execute for FireFox.
  {
   var protocol = document.location.protocol;
   var host = document.location.host;

    var _form = document.createElement('form');
    this.innerDocument.body.appendChild(_form);
   _form.id = 'UPLOADMYPAGE';
   _form.name = 'UPLOADMYPAGE';
   _form.method = 'post';
   _form.enctype = 'multipart/form-data';
   _form.action = protocol + '//' + host + virtualDirectoryName + '/TestMyPage.ashx'; //The action attribute for FireFox requires to be prefixed with protocol, host and vir. dir. name to create url. Then only FireFox loads it properly, otherwise it could not load the page.
  }

document.getElementById('MYFRAME').contentWindow.document.getElementById('UPLOADMYPAGE').submit();

-------------------------------------------

//This is requirement from Code Testing Team. So I have to make it possible without using prefixes.
//Please suggest how can this code be modified to provide only page name for action attribute in FireFox as in case of IE. I would like to know why FireFox is not doing it (as I have came to know that FireFox loads as that of IE).

Ashish
Software Engineer, Pune

AnswerRe: Dynamically generated URL could not be opened in FireFox Pin
AshishTijare16-Jan-09 21:43
MemberAshishTijare16-Jan-09 21:43 
QuestionRe: Dynamically generated URL could not be opened in FireFox (It worked for different code...any guess) Pin
AshishTijare17-Jan-09 0:42
MemberAshishTijare17-Jan-09 0:42 
AnswerRe: Dynamically generated URL could not be opened in FireFox Pin
Anshumas19-Jan-09 21:33
MemberAnshumas19-Jan-09 21:33 
QuestionMenu bar, address bar ect Pin
Armandt__15-Jan-09 1:45
MemberArmandt__15-Jan-09 1:45 
AnswerRe: Menu bar, address bar ect Pin
Not Active15-Jan-09 2:08
mentorNot Active15-Jan-09 2:08 
Questionanti flood DB for my site Pin
haibec14-Jan-09 4:13
Memberhaibec14-Jan-09 4:13 
QuestionIIS Connection Capping or similar... Pin
markymark8213-Jan-09 23:37
Membermarkymark8213-Jan-09 23:37 
Questionflash with javascript Pin
shack201013-Jan-09 6:35
Membershack201013-Jan-09 6:35 
AnswerRe: flash with javascript Pin
Mohammad Dayyan13-Jan-09 19:51
MemberMohammad Dayyan13-Jan-09 19:51 
QuestionHow to use a cookie domain and subdomain Pin
haibec13-Jan-09 5:05
Memberhaibec13-Jan-09 5:05 
QuestionTime Dependent Events in Browser Games Pin
il_manti13-Jan-09 0:26
Memberil_manti13-Jan-09 0:26 
AnswerRe: Time Dependent Events in Browser Games Pin
Paddy Boyd14-Jan-09 3:00
MemberPaddy Boyd14-Jan-09 3:00 
GeneralRe: Time Dependent Events in Browser Games Pin
il_manti14-Jan-09 3:30
Memberil_manti14-Jan-09 3:30 
Question"Top Rated Video" Sorting algorithm Pin
Siddarth Gaonkar12-Jan-09 11:51
MemberSiddarth Gaonkar12-Jan-09 11:51 
AnswerRe: "Top Rated Video" Sorting algorithm Pin
Henry Minute12-Jan-09 13:06
MemberHenry Minute12-Jan-09 13:06 
GeneralRe: "Top Rated Video" Sorting algorithm Pin
Siddarth Gaonkar13-Jan-09 9:31
MemberSiddarth Gaonkar13-Jan-09 9:31 
GeneralRe: "Top Rated Video" Sorting algorithm Pin
Henry Minute13-Jan-09 9:43
MemberHenry Minute13-Jan-09 9:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.