Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 09-02-2009
Member
 
Join Date: Feb 2009
Posts: 62
Problem Submit Form in Firefox [javascript]

Hello! I'm developing un'extension for firefox to speed up some operations.

Virtually the context-menu of Firefox add a link to translate a selected word.
The site on which I support requires a form with POST method to submit requests, and then using the javascript I created a special form.

I tried the javascript through an html page for testing and everything works, while the same function call extension firefox hangs before myForm.submit ().

Code:
 sendForm function (search_p) / / search_p is the selected word 
  (  
    / / I create my FORM 
      var MyForm = document.createElement ( "form"); 
      myForm.method = "POST"; 
      myForm.action = "SITE URL"; 
      myForm.name = "FORM NAME";   
  
      myselect = document.createElement ( "select"); 
      myselect.name = "language"; 
      option = document.createElement ( "option"); 
      opzioni.value = "ingita"; 
     
      / / Etc etc ... code not important 
      / / .... 

      myselect.appendChild (options); 
      myForm.appendChild (myselect); 

      / / This line I removed because it blocked what ..  
      / / Document should refer? 
      / / Document.body.appendChild (MyForm); 
  
     / / Without the above line to here coming Zenza problems  
     / / But does not make the request 
     myForm.submit (); 
  )
It could be that the test page I have an actual document from which to start the application while firefox .. no .. (click the context menu that calls the javascript) .. and does not handle well the form.submit?

I hope to be clear .. any ideas?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Problem Submit Form in Firefox [javascript]"
Thread Thread Starter Forum Replies Last Post
How to Submit a Form Using JavaScript? Damien25 Software Development 4 07-02-2010 07:05 AM
Problem of html form with multiple submit buttons ASHER Software Development 4 20-10-2009 05:31 PM
Problem of javascript and form with validation key entry Sandy22 Software Development 3 16-10-2009 04:51 PM
How to submit form without "Submit Button"? AK_Chopra Software Development 3 10-09-2009 08:44 AM
Several submit buttons in the same form ? Wiro Software Development 5 14-02-2009 10:29 PM


All times are GMT +5.5. The time now is 11:37 PM.