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

Iframe with A5w page forwarding url

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

    Iframe with A5w page forwarding url

    I have an iframe on a page of one of my ZebraHost sites, and it works as expected. When I log onto http://XX.XXX.XX.XXX/ABC/test_iframe.a5w the page from
    http://XX.XXX.XX.XXX/XYZ/login.a5w

    shows in the iframe and the url in the browser stays at http://XX.XXX.XX.XXX/ABC/test_iframe.a5w which is exactly what I want to happen.

    Here is the html on page http://XX.XXX.XX.XXX/ABC/test_iframe.a5w


    ***************************************************************************************************************************
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <title>Web-site Title Here</title>
    <META name="description" content="Put your description here">
    <META name="keywords" content="keywords go here, separated by a comma,">
    </head>
    <body>
    <iframe scrolling="no" width="1000" height="800" src="http://XX.XXX.XX.XXX/XYZ/login.a5w"></iframe>
    </body>

    </html>

    ***************************************************************************************************************************

    However, when I replace the src code in the iframe with another page which is hosted on ZebraHost, namely:
    http://XX.XXX.XX.XXX/QRS/login.a5w

    the url in the browser changes to http://XX.XXX.XX.XXX/QRS/login.a5w, when I want it to stay at
    http://XX.XXX.XX.XXX/ABC/test_iframe.a5w


    Do you have any idea why this is happening? Could it be Xbasic or javascript that is causing that problem? I will post the html from the offending page (http://XX.XXX.XX.XXX/QRS/login.a5w) later this evening if that is relevant. It probably is, because from what I can tell, it is the only variable.
    Thanks,
    Jay
    Jay Talbott
    Lexington, KY


    #2
    Re: Iframe with A5w page forwarding url

    Jay,

    What do you mean by "replace the src code in the iframe with another page which is hosted on ZebraHost, namely: http://XX.XXX.XX.XXX/QRS/login.a5w"

    If at first that scrc was "http://XX.XXX.XX.XXX/XYZ/login.a5w" and you simply edit it to be "http://XX.XXX.XX.XXX/QRS/login.a5w" then I see no reason as to why this would happen.

    Could it be that you are breaking out of the iframe into the parent window of the iframe ?
    Frank

    Tell me and I'll forget; show me and I may remember; involve me and I'll understand

    Comment


      #3
      Re: Iframe with A5w page forwarding url

      Frank,
      Yes, I put the first url in the src to test it, and then replaced it with the real url I want to use. It apparently is breaking out of the iframe, so my question is, "How can i prevent that from occurring?
      Thanks so much for your assistance.
      Jay

      P.S. I found this on stackoverflow.com. Do you think that this will work?
      After much searching I developed a simple trick. I created a dummy page in my own site which the i frame called for. I then had an i frame in the dummy page which called for the site breaking out of the frames. It broke out of the first frame, but since the dummy page was on my site it stayed neatly in the frame of the top page. violla
      Last edited by Jay Talbott; 03-13-2014, 08:35 PM.
      Jay Talbott
      Lexington, KY

      Comment


        #4
        Re: Iframe with A5w page forwarding url

        Jay,

        It is difficult to say without knowing the contents of the QRS/login page; something must be different ? Can't you create a super simple mini project that demonstrates the problem and that you can share somehow ?

        Look for stuff like window.parent because that breaks out of the iframe
        Frank

        Tell me and I'll forget; show me and I may remember; involve me and I'll understand

        Comment


          #5
          Re: Iframe with A5w page forwarding url

          I tested the iframe src page with just straight text ("Hello World") and the original url remained. Good, that's what I want.
          I then replaced the text with the login component.
          My src page looks like this (after adding the body and head tags for the login component):
          <!DOCTYPE html>
          <html>
          <head>
          <%a5
          'The componentAlias MUST be UNIQUE for each component on the page. It must not have spaces in the name. Keep name as short as possible
          dim componentAlias as c
          componentAlias = "LOGIN"
          Delete tmpl_LOGIN
          DIM tmpl_LOGIN as P
          tmpl_LOGIN = a5w_load_component("Login") 'SYSTEM GENERATED COMMENT - PLEASE DO NOT REMOVE (LOAD:Login)
          'Following code allows you to override settings in the saved component, and specify the component alias (componentName property).
          'Tip: Keep the componentName property short because this name is used in page URLs, and it will help keep the URLs short.
          'Each component on a page must have a unique alias (componentName property).
          with tmpl_LOGIN
          componentName = "LOGIN"
          end with
          '=======================================compute the HTML for the Component=======================================
          delete x_LOGIN
          dim x_LOGIN as p
          x_LOGIN = a5w_run_Component(tmpl_LOGIN) 'SYSTEM GENERATED COMMENT - PLEASE DO NOT REMOVE (RUN:tmpl_LOGIN) (EDIT:Login)
          '=============================================================================================================
          if x_LOGIN.RedirectURL <> "" then
          response.redirect(x_LOGIN.redirectURL)
          end
          end if
          ?x_LOGIN.Output.Head.JavaScript
          ?x_LOGIN.Output.Head.CSS_Link
          %>
          <!--Alpha Five Temporary Code Start - Will be automatically removed when page is published -->
          <!--CSS for tmpl_LOGIN -->
          <link rel="stylesheet" type="text/css" href="file:///style.css">
          <!--Alpha Five Temporary Code End -->
          </head>
          <body>
          <br>
          <table>
          <tr>
          <td><%A5 ?x_LOGIN.Output.Body.Login_Errors %></td>
          </tr>
          <tr>
          <td><%A5 ?x_LOGIN.Output.Body.Login_HTML %></td>
          </tr>
          </table>
          <%A5
          ?x_LOGIN.Output.Head.JavaScript
          %>
          </body></html>
          Now it keeps changing the url to the url of the scr page. I cannot figure what is causing that. It looks like this section might be doing it:
          if x_LOGIN.RedirectURL <> "" then
          response.redirect(x_LOGIN.redirectURL)
          end
          end if

          but when I commented that out, it had no effect.
          Any thoughts?
          Thanks,
          Jay
          Jay Talbott
          Lexington, KY

          Comment


            #6
            Re: Iframe with A5w page forwarding url

            Jay,

            I think a5w_run_Component() is causing the issue combined with the fact that your webroot is 1 level up ? I believe that when security all stuff should be in the webroot not in subfolders. Must be something along that path
            Frank

            Tell me and I'll forget; show me and I may remember; involve me and I'll understand

            Comment


              #7
              Re: Iframe with A5w page forwarding url

              I got the answer from Jerry Brightbill that:
              The security does not allow cross domain authentication
              You can't login on one URL and then move to a completely different folder or even subfolder
              So I will stop tilting at windmills and work on something productive.
              Thanks for your help.
              Jay
              Jay Talbott
              Lexington, KY

              Comment


                #8
                Re: Iframe with A5w page forwarding url

                Jay, the page in the IFrame (that you gave me in a PM), does not contain an Alpha Five login component. It has a normal HTML Forum with login-type fields. It also has javascript on the page that appears to redirect the page to the new URL. It also has a body onload function that runs js when the page is loaded, even if in an IFrame.

                I don't know for sure that this is what thwarts your attempt to show the child in an IFrame, but it is suspect.

                An example of an Alpha Five website inside an IFrame is on Alpha Software's website, last link under Support. That implementation allows login to the child Alpha Five application and all navigation, the URL still says www.alphasoftware.com.
                Steve Wood
                See my profile on IADN

                Comment


                  #9
                  Re: Iframe with A5w page forwarding url

                  I found a site with the answer called html5rocks.
                  Here is the page.
                  http://www.html5rocks.com/en/tutoria...boxed-iframes/

                  Here is the iframe line

                  <iframe
                  sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
                  src="http://myclikclok.com/whitelabel/"
                  style="width:1000px; height:1000px; border-style:none;">
                  </iframe>
                  Thanks to all who assisted here, especially Steve Wood.
                  Jay
                  Jay Talbott
                  Lexington, KY

                  Comment

                  Working...
                  X