Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 5 of 5

This is a discussion on Cannot submit correctly form within a browser action? within the Plugins Development section, part of the Chrome Plugins category: I'm trying to move my extension from toolstrip to a browser action. Everything is working fine, except the fact that ...


  1. #1
    NicholasPufal is offline Senior Member
    Join Date
    Jun 2009
    Location
    Porto Alegre, Brazil
    Posts
    109

    Default Cannot submit correctly form within a browser action?

    I'm trying to move my extension from toolstrip to a browser action.

    Everything is working fine, except the fact that when using browser actions I'm not able to actually refresh the popup (created automatically by the browser with HTML content) after a form submit.

    It's like it's frozen.

    I press the submit button, and it acts like void - nothing happens, page doesn't get refreshed.

    Also, many accessibility resources are lost, i.e tab doesn't change form fields.

    Is there any way to make the popup mode of browser actions, refresh after a form is submitted within it?

    What I have is basically a form to change settings. After the users submit, it must be refreshed with the new settings chosen by them.

    This is limitating a lot the function of my extension

    Thanks

  2. #2
    Apache787 is offline Junior Member
    Join Date
    Nov 2009
    Posts
    5

    Default

    Just as a heads up, don't store your variables in the popup html as the values do not persist. Instead, store the variables in the background html and have the popup poll the background each time it is created(Whenever you click the action button)

  3. #3
    NicholasPufal is offline Senior Member
    Join Date
    Jun 2009
    Location
    Porto Alegre, Brazil
    Posts
    109

    Default

    In fact I'm using cookies to store the values.

    So they are being saved already.

    Problem is with browser actions, forms are kind of useless - well, the whole basics of a HTML are. Everything is static, useful only to display content ready, and not to interact with it (as was able with toolstrips).

  4. #4
    Apache787 is offline Junior Member
    Join Date
    Nov 2009
    Posts
    5

    Default

    Ok, I understand what you are trying to do sorta. Well for mine, I only need to submit 1 field, so its a bit easy:
    Code:
    In background.html:
    
    var is_background = true;
    function submit(param1){ ... }
    Code:
    In browseraction.html:
    
    <script>
    function background(){
    	var v = chrome.self.getViews();
    	for(var i in v){
    		if(v[i].is_background){
    			return v[i];
    }	}	}
    
    function getParam(){
    	return document.getElementById('param1').value;
    }
    </script>
    
    <div><input type="text" id="param1" /></div>
    <div onClick="background().submit(getParam());">
    Submit
    </div>

  5. #5
    Kimosnaifx is offline Junior Member
    Join Date
    Mar 2011
    Posts
    1

    Default torebki

    sklep internetowy torebki damskie torebki z zamszu papierowe torebki damskie torebki torebki david jones torebki ccc batycka torebki http://whatsupvon.com/talk/index.php...rofile;u=73885 http://forums.dontpressstart.com/pro...ofile&u=144342 http://skeeterzrumbar.com/talk//memb...profile&u=8219 http://ns1.peru-vacation.org/member.php?u=13063 http://forums.catchyhost.com/member....02-Santigeleth torebki przez ramie sportowe torebki zamszowe torebki torebki z nike torebki damskie włoskie torebki filcowe torebki batyckiego filcowe torebki go to http://www.2-spyware.com/remove-maca...irus-2009.html it will show you lui viton torebki puma torebki torebki allegro

Similar Threads

  1. Google Bookmarks Page Action
    By Wossname in forum Chrome Plugins
    Replies: 6
    Last Post: 08-11-2009, 10:18 PM
  2. Chrome Won't View My Website Correctly
    By Downswinging in forum Chrome Troubleshooting
    Replies: 1
    Last Post: 07-20-2009, 08:02 PM
  3. Subscribe as a page action
    By rock_galore in forum Chrome Plugins
    Replies: 19
    Last Post: 06-23-2009, 04:27 PM
  4. javascript form submit
    By Shreesh kaushik in forum Bugs and Vulnerabilities
    Replies: 0
    Last Post: 02-17-2009, 03:59 AM
  5. Web pages not displayed correctly
    By briloop in forum Bugs and Vulnerabilities
    Replies: 0
    Last Post: 10-25-2008, 02:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •