Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

AshishTijare

@AshishTijare
About
Posts
8
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cursor can not move through all the characters within textbox after textbox.select()
    A AshishTijare

    I want to highlight text in textbox on focus of it. I have called textbox.select(). The problem after execution of textbox.select() is, cursor can only move to begining of the text or to the end of text in textbox. It is not going through the characters which are in the middle. Cursor directly jump to begining or end character in the textbox when moved. Can somebody suggest the solution over this (I am doing all this stuff in javascript, so javascript solution is most welcome). Thank you.

    Ashish Software Engineer, Pune

    Web Development javascript help

  • Chrome shows Silverlight plugin control transparent initially
    A AshishTijare

    I don't know whether it is officially declared as supported. We are using it and works on google chrome. (There can be the issues like the one I mentioned).

    Ashish Software Engineer, Pune

    WPF help

  • Chrome shows Silverlight plugin control transparent initially
    A AshishTijare

    In google chrome, when page containing silverlight plugin is loaded, it shows silv. control as transparent. If I click somewhere on the page or any other window, it shows it correct (with colors) as expected. IE and FireFox do not have this problem. Can anybody suggest me the solution. Thank you.

    Ashish Software Engineer, Pune

    WPF help

  • URL in action attribute is converted to page name only (for FireFox)......?
    A AshishTijare

    I have a frame. I am creating a new form object in javascript. I have set action attribute to "TestMyPage.ashx" During runtime, FireFox converts action attribute to full url containing protocol, host name, virtual dir. name and page name. e.g.: "http://localhost:4768/MyApp/TestMyPage.ashx" It is expected that FireFox should load the url in action attribute on submit when it have the full url. But when I add the form object to frame, it converts the action attribute to "TestMyPage.ashx". I don't know what is causing this. Because action attribute now has page name only, it can not load the page (it do not have full url now). Code for FireFox:

    this.innerDocument = document.getElementById('MYFRAME').contentWindow.document;
    var \_form = document.createElement('form');
       \_form.id = 'MYFORM';
       \_form.name = 'MYFORM';
       \_form.method = 'post';
       \_form.enctype = 'multipart/form-data';
       \_form.action = 'TestMyPage.ashx'; //Here, at runtime, action attribute gives full url.
        this.innerDocument.body.appendChild(\_form); //Here, at runtime, full url in action 
    

    attribute is converted to page name only ...?.

    When this is done for IE, during runtime it shows full url in action attribute, so it loads the page successfully. But FireFox is converting url to page name in action attribute. Code for IE:

         var \_form = this.innerDocument.createElement('<form id = "MYFORM" 
    

    method="post" enctype="multipart/form-data" action="ImportHandler.ashx" />');
    var formHTML = _form.outerHTML;
    document.getElementById('MYFRAME').contentWindow.document.body.innerHTML = formHTML;

    Can anybody suggest what is the problem for such behavior. Any guesses are welcome. Thank you.

    Ashish Software Engineer, Pune

    Web Development question javascript help

  • Dynamically generated URL could not be opened in FireFox
    A AshishTijare

    When I tried using below code it correctly worked. FireFox opened webpage mentioned in action attribute (page name without protocol, domain and virtual directory).

    var f1 = document.createElement("form");
    f1.id = 'MYFORM';
    f1.name = 'MYFORM';
    f1.method = 'post';
    f1.action="TestPage.aspx";
    alert(f1.action); //This shows complete url of page instead of only page name, as expected - correct.
    this.document.body.appendChild(f1);
    f1.submit();

    I could not guess why in my main application's code (posted before this post) is not showing complete url when "alert" is done. In that it shows only the page name and not the complete url. Can anyone guess what might be the reason for this... Thank you.

    Ashish Software Engineer, Pune

    Web Development question help tutorial

  • Dynamically generated URL could not be opened in FireFox
    A AshishTijare

    Same code as above reply is posted again since comments added by me were not viewable (sorry for inconvenience). -------------------------------------------

      if( isIE ) //Execute for Internet Explorer.
      {
         var \_form = this.innerDocument.createElement('<form id = "UPLOADMYPAGE" method="post" enctype="multipart/form-data"  action="TestMyPage.ashx" />'); 
         //The above 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 above 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

    Web Development question help tutorial

  • Dynamically generated URL could not be opened in FireFox
    A AshishTijare

    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

    Web Development question help tutorial

  • Dynamically generated URL could not be opened in FireFox
    A AshishTijare

    * I have a code that generate form dynamically (form on a webpage is generated through code). The action attribute is set to 'TestMyPage.ashx'. When run, this URL is opened successfully in IE. * But when same value ('TestMyPage.ashx') is set for action attribute for FireFox, it do not load the said page. * When checked, for FireFox it loads the page only when it is prefixed with protocol, host and virtual directory information, like "protocol://localdomain/virtualdirectory/pagename.ashx" Example: "http://localhost:8795/myapp/TestMyPage.ashx" This url is successfully loaded by FireFox. But I don't want to set those prefixes (protocol, host, virtual dir.) myself. When searched on, it found that FireFox should also behave like IE in this case. So I could not guess what is the problem for such behaviour in my application (Is it because the form is generated dynamically?..) Any suggestion is welcome... Thank you.

    Ashish Software Engineer, Pune

    Web Development question help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups