Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

IE stripping out my form controls on first load

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    IE stripping out my form controls on first load

    Can anyone tell me what is causing Internet Explorer 10 to remove all the tags inside the form + closing form tag on load, but include them on subsequent refreshes? This is driving me batty.

    UPDATE: It's possible the WAS is stripping this stuff out, too. The response from the server on GET doesn't include my form bits.

    Code:
    <!DOCTYPE HTML>
    <html>
    	<head>
    	</head>
    
    	<body>
    		<div id="wrapper">
    			<div id="content">
    					<h2>Pay Invoice</h2>
    		
    					<p>To pay an invoice, fill out the requested information and click on the button 
    					below.  You will be taken to a secure PayPal form to complete your payment.  You
    					do not have to have a Paypal account.</p>
    					<p>A reminder - please do not email credit card information.</p>
    					<p>Thank you.</p>
    				
    					<form name="payme" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    						<table>
    							<tr><td>Invoice Number:</td><td><input size="20" type="text" name="os0" /></td></tr>
    							<tr><td>Amount to Pay:</td><td><input size="20" type="text" name="amount" /></td></tr>
    						</table>
    						
     						<input type="hidden" name="on0" value="Invoice Number" />
    						<input type="hidden" name="cmd" value="_xclick" />
    						<input type="hidden" name="business" value="omitted" />
    						<input type="hidden" name="item_name" value="An outstanding invoice" />
    						<input type="hidden" name="item_number" value="Services" />
    					
    						<input type="hidden" name="currency_code" value="USD" />
    					
    						<input type="hidden" name="no_shipping" value="1" />
    						<input type="hidden" name="return" value="pay_invoice_thanks.a5w" />
    						<input type="hidden" name="no_note" value="1" />
    						<input type="hidden" name="tax" value="0" />
    						<input type="hidden" name="lc" value="US" />
    						<input type="image" src="images/pay_now_paypal.png" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" />
    					</form>
    		
    				</div>
    	
    				<div class="clearfix"></div>
    			</div>
    		</div>
    	</body>
    </html>
    Last edited by TheSmitchell; 06-18-2014, 01:48 PM.
    Alpha Anywhere latest pre-release

    #2
    Re: IE stripping out my form controls on first load

    Is it IE8 or earlier? I came across this suggestion from stackoverflow:

    "I ran into the exact same problem today and managed to fix it by inserting an empty <pre></pre> right before the <form>, which somehow stops IE8 (haven't tested in other versions) from removing the <form>."

    "If I write some text, or $nbsp; on a line above the form tag, the form will render".
    Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

    Comment


      #3
      Re: IE stripping out my form controls on first load

      IE 10.
      Alpha Anywhere latest pre-release

      Comment


        #4
        Re: IE stripping out my form controls on first load

        I just opened it in IE11 and I think it works fine here...

        Test.jpg
        Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

        Comment


          #5
          Re: IE stripping out my form controls on first load

          New Project + Security On + code above = no form/missing form in IE 10. See Attached Project.
          Attached Files
          Alpha Anywhere latest pre-release

          Comment


            #6
            Re: IE stripping out my form controls on first load

            Originally posted by iRadiate View Post
            I just opened it in IE11 and I think it works fine here...

            [ATTACH=CONFIG]38356[/ATTACH]
            Well, that's great for IE 11 users. But my clients use IE 10, so yeah.
            Alpha Anywhere latest pre-release

            Comment


              #7
              Re: IE stripping out my form controls on first load

              If it's any consolation I'm seeing the same thing using your example in IE9 and also in Chrome. Firefox is OK.
              Jim Coltz
              Alpha Custom Database Solutions, LLC
              A5CustomSolutions.com
              [email protected]

              Comment


                #8
                Re: IE stripping out my form controls on first load

                Originally posted by Jim Coltz View Post
                If it's any consolation I'm seeing the same thing using your example in IE9 and also in Chrome. Firefox is OK.
                No. No, it isn't. Just more frustrating than it was before.

                I've discovered that Alpha is injecting an invisible field with the name 'A5WSessionId' into the form --- or is trying to do so. I added a second form tag and LOOKIE LOOKIE:

                sessionid.png

                What. The. Kitten.

                If I use an iframe to load the content, it will load --- but then the submit to paypal part doesn't work at all or only kinda works. WHY IS THIS SO DIFFICULT!

                Update 1: Upon further inspection, I've found this only happens on the first visit to the server --- as in, this is your landing page to the web application server. If you visit any other page first, it loads.
                Last edited by TheSmitchell; 06-19-2014, 09:30 AM.
                Alpha Anywhere latest pre-release

                Comment


                  #9
                  Re: IE stripping out my form controls on first load

                  AH! I got a fix! Adding this code to the head section fixes the problem!

                  Code:
                  <%a5
                  if Session.IsNewSession
                      Response.Redirect(Request.ScriptName)
                  end if
                  %>
                  Extra thanks are in order to Selwyn and the Alpha team for helping me out.

                  Now I can get back to breaking other stuff.
                  ---
                  Sarah
                  Alpha Anywhere latest pre-release

                  Comment


                    #10
                    Re: IE stripping out my form controls on first load

                    I've had this happen to me also.
                    What I did was navigate to the page and view the source code.
                    I had an OMG moment when I saw that my links were local to my hard drive.
                    Turns out my html editor at the time (Frontpage) was trying to be overly helpful.

                    The moral of the story is: If the output doesn't match your input, then look at what the browser sees.
                    Last edited by mvaughn; 07-01-2014, 02:32 AM.
                    Rapid Development, Training, Support
                    http://data2web.network
                    903-740-2549

                    Comment


                      #11
                      Re: IE stripping out my form controls on first load

                      Originally posted by mvaughn View Post
                      I've had this happen to me also.
                      What I did was navigate to the page and view the source code.
                      I had an OMG moment when I saw that my links were local to my hard drive.
                      Turns out my html editor at the time (Frontpage) was trying to be overly helpful.

                      The moral of the story is: If the output doesn't match your input, then look at what the browser sees.
                      Ha ha ha! Yes. You have no idea how many hours I combed through the HTML on both ends. I even ran everything through a validator (thinking that maybe someone screwed up somewhere) and stripped it down to just an .a5w page with an empty <form> tag, but it was still coming back messed up! I've since resolved the problem. Alpha was responsive and very prompt with the assist. They fixed the issue in 12 and gave me a solution in v11! Happy happy.
                      Alpha Anywhere latest pre-release

                      Comment


                        #12
                        Re: IE stripping out my form controls on first load

                        The problem seems to be in forms action tag. If you leave that away and insert onsubmit event instead:

                        Code:
                        <form id="payme" name="payme"  method="post" onsubmit="mySubmit()">
                        and then add to the bottom of page just before body end tag:

                        Code:
                        <script type="text/javascript">
                        function mySubmit(){
                        document.getElementById('payme').action='https://www.paypal.com/cgi-bin/webscr';
                        };
                        </script>
                        This way you avoid double page load solution.

                        Comment


                          #13
                          Re: IE stripping out my form controls on first load

                          Originally posted by kkfin View Post
                          The problem seems to be in forms action tag. If you leave that away and insert onsubmit event instead:

                          Code:
                          <form id="payme" name="payme"  method="post" onsubmit="mySubmit()">
                          and then add to the bottom of page just before body end tag:

                          Code:
                          <script type="text/javascript">
                          function mySubmit(){
                          document.getElementById('payme').action='https://www.paypal.com/cgi-bin/webscr';
                          };
                          </script>
                          This way you avoid double page load solution.
                          Nope. That won't work. The problem was that if the first visit to the server was an .a5w page with a <form> tag on it, the application server was returning mangled HTML. If you visited any other page on the server before visiting the form, it loaded fine. The form tag can be empty - no properties. Has nothing to do with the script.
                          Alpha Anywhere latest pre-release

                          Comment


                            #14
                            Re: IE stripping out my form controls on first load

                            Originally posted by TheSmitchell View Post
                            Nope. That won't work
                            I can also confirm all your original problems.

                            I suppouse you did test my example. To me it did work.

                            Comment


                              #15
                              Re: IE stripping out my form controls on first load

                              Originally posted by kkfin View Post
                              I can also confirm all your original problems.

                              I suppouse you did test my example. To me it did work.
                              I still get mangled HTML on my end.
                              Alpha Anywhere latest pre-release

                              Comment

                              Working...
                              X