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

Problem with includes

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

    Problem with includes

    Has anyone else tried to use the a5w_include statement? I am having problems with the final release. It worked fine in the beta but now it no longer works.
    Kevin Tucker
    Innovative Computer Solutions


    #2
    RE: Problem with includes

    Hi Kevin,

    I use include files all over the place. What is the difficulty you are currently having? I will be happy to attempt to duplicate it for you.

    Cheryl
    Cheryl
    #1 Designs By Pagecrazy
    http://pagecrazy.com/

    Comment


      #3
      RE: Problem with includes

      Just so there is no confusion, I tested all of my include files and they are working properly with the 2001 build as they did during the BETA.

      I have had a ton of experience breaking include files (just ask Lenny, LOL) so if you can give us the error message and perhaps your code pages in a zip file ... if anybody can duplicate it, it will probably be me :)
      Cheryl
      #1 Designs By Pagecrazy
      http://pagecrazy.com/

      Comment


        #4
        RE: Problem with includes

        I to have a lot of experience breaking the includes. That is how Lenny and I got aquainted. I have attached the .a5w file if you can look at it and see if you see anything that would cause it not to work correctly. This very same file ran perfect on the beta.
        Kevin Tucker
        Innovative Computer Solutions

        Comment


          #5
          RE: Problem with includes

          Sorry about the .txt extension I copied it from the server via VNC and pasted it into notepad. It does not have that extension on the server of course.
          Kevin Tucker
          Innovative Computer Solutions

          Comment


            #6
            RE: Problem with includes

            Kevin

            I don't see anything wrong with the includes. However, I have run into one problem using them in testing. When you run a page from the html editor, it is "published" to the Live Preview folder. If the page you want to include is not in that folder, the include will fail. I get around that by "previewing" each page or code snippet used in an include first. That also validates that each piece runs alone and doesn't have a problem. Be sure to save the page before you run it or the page previewed has a temporary name instead of the real name.

            Jerry

            Comment


              #7
              RE: Problem with includes

              Jerry,

              I actually hand coded all of that. I did it in Dreamweaver. However all of the files do reside in the same folder. It seems that if you just have for else if statements it works like a champ but you add that fourth one and it no longer works. I can't figure out why like I said before this exact code worked fine in the Beta versions after Lenny got me the patch to get it working.
              Kevin Tucker
              Innovative Computer Solutions

              Comment


                #8
                RE: Problem with includes

                Good morning Kevin,

                Unfortunately I was unable to open the file you attached :(

                You mentioned that it works without the fourth but it worked fine before. Perhaps to help determine if the problem is definitely with the include, have you tried to take the content of your include file and place it directly in your page? Does it work that way with the fourth?

                Cheryl
                Cheryl
                #1 Designs By Pagecrazy
                http://pagecrazy.com/

                Comment


                  #9
                  RE: Problem with includes

                  It will load the page outside of the Include, it is not necessarily just that include, if you change the order or have a different one (more than three) it will not work. There are about 10 else if statments that generate the proper include.

                  I have attached the file as a text file.
                  Kevin Tucker
                  Innovative Computer Solutions

                  Comment


                    #10
                    RE: Problem with includes

                    OK, got the file this time. I apologize for all the questions here. Is it only if you are using the else if statements that you run into this problem? If you simply have include statements in general such as your navigation, do they work if you have 4, 5, or more? I also remember during the BETA one issue being with spacing and formatting. Whitespace is NOT supposed to be an issue and obviously would be a bug if that is the problem here. I noticed looking at your file that the format is not consistent throughout the else if statements. Maybe if you open it up in a text editor (notepad, textpad) re-format it so that it is consistent and see if that resolves the issue. If so then maybe whitespace is our problem which would need to be corrected.
                    Cheryl
                    #1 Designs By Pagecrazy
                    http://pagecrazy.com/

                    Comment


                      #11
                      RE: Problem with includes

                      I also noticed the following in your code:

                      %A5 else if div = "dest" then %

                      Your first four statements have 'then' whereas all others following them do not.
                      Cheryl
                      #1 Designs By Pagecrazy
                      http://pagecrazy.com/

                      Comment


                        #12
                        RE: Problem with includes

                        Cheryl

                        The "then" is optional and should have no effect. However using that many nested levels in an if statement has proven in the past to be a recipe for trouble. A select case construction would make much more sense. Case statements are much more efficient since once a true is found, the rest of the case expressions are not evaluated. If the most likely hit is the first one, this will make the select case much fgaster.

                        Also, in the code, each if statement turns the a5 code on and off, which seems like a bad idea. A better method would be to use select case and place the desired page name in a variable. Then use one include to add the desired page. I have attached a text file with a sample that should work.

                        Jerry

                        Comment


                          #13
                          RE: Problem with includes

                          Sorry. The last line

                          "%A5 end if%"

                          should not be there.

                          Jerry

                          Comment


                            #14
                            RE: Problem with includes

                            I understand that the then should not cause a problem, was just pointing out the coincidence that he had four of them and that is where he was running into difficulty. The fact that it all worked in BETA but does not now just had me looking for anything that may not be consistent.

                            I also agree with the use of case statements, they are normally my first choice over if statements. I have learned a lot about Alpha from reading your posts :)
                            Cheryl
                            #1 Designs By Pagecrazy
                            http://pagecrazy.com/

                            Comment


                              #15
                              RE: Problem with includes

                              Good point about the code working in the beta, but not the production build. I wonder if the issue is related to the speed issue in build 2001 since the code used so many embedded a5 xbasic code segments.

                              I am just getting into web page building with WAS, but I like putting as much code into one a5 code segment as possible, rather that the method shown in some of the early examples. In the examples one segment was the "if" statement, followed by html, then another a5 segment with the "else" part, then more html, and so one. I have been putting the whole if statement or select statement into a single a5 code segment and placing the resulting html into a variable. Then I output the variable at the end of the code. I don't know if that is more efficient code, but I can follow the logic easier.

                              Jerry

                              Comment

                              Working...
                              X