Results 1 to 16 of 16

Thread: Title Help Please

  1. #1
    Member
    Real Name
    Keith Hart
    Join Date
    Aug 2010
    Location
    Calgary, AB
    Posts
    109

    Default Title Help Please

    Hi Everyone

    I'm opening a a5w page with a dialog embedded in it by using the window.open method

    My issue is the title of the opened window just says "Dialog" and not the title in the title tags in the a5w page, ie: <title>MyTitle</title>

    If I open a a5w page without a dialog in it the title tags work as they should.

    Can someone point in the right direction to fix this.

    Kindest regards,

    Keith

  2. #2
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,109

    Default Re: Title Help Please

    Somewhere in the <head> section you need <title>your page name </title>.
    I put mine just before the </head> tag just to make it easy to find.
    Hope this helps.

    title_example.png

  3. #3
    Member
    Real Name
    Keith Hart
    Join Date
    Aug 2010
    Location
    Calgary, AB
    Posts
    109

    Default Re: Title Help Please

    Hi Gregg

    Thank you for your quick reply

    Yup, that's where I put it, but it doesn't show when opened via the window.open method, the title says "dialog"

    As I said, when there isn't a dialog embedded it works just fine.

    Regards,

  4. #4
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,109

    Default Re: Title Help Please

    I should have known that was too easy.
    Here is the real answer.
    The published .a5w file needs to be edited.
    If you did it like me, there is a line a few lines up that looks like
    Code:
    ?x_<dialogName>.Output.Head.Title
    .
    Comment the line out by put a ' to the left of the ?, save the file, and it should put your title on the tab.
    Hopefully, I did better this time.

    title_example2.png

  5. #5
    Member
    Real Name
    Keith Hart
    Join Date
    Aug 2010
    Location
    Calgary, AB
    Posts
    109

    Default Re: Title Help Please

    Hi Gregg,

    That did the trick!

    Thank you

  6. #6
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,109

    Default Re: Title Help Please

    Glad I could help.
    I had an afterthought.... Instead of commenting the line out I think it would be easier to adjust that line to include the title you want for the tab.

  7. #7
    Member
    Real Name
    Keith Hart
    Join Date
    Aug 2010
    Location
    Calgary, AB
    Posts
    109

    Default Re: Title Help Please

    Hi Gregg,

    Hmm, I'm thinking that's above my pay grade.

    Not sure how that's done but if you could give an example...

    Regards,

  8. #8
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,109

    Default Re: Title Help Please

    For some reason I can't find what I thought I saw.
    Maybe it was just part of a dream.

  9. #9
    Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,582

    Default Re: Title Help Please

    I know in v12, the UX has a title option set to "UX" by default. It overrides the page title like crazy so you have to change it in the UX. Not sure if v11 dialogs have the same property? Can't remember.

  10. #10
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,109

    Default Re: Title Help Please

    The solution I provided absolutely works with V11, but I haven't messed around with it using V12 yet.

  11. #11
    Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,582

    Default Re: Title Help Please

    No one said it didn't work. Was merely offering a possible point of interest.

  12. #12
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,109

    Default Re: Title Help Please

    Peter,
    You said you weren't sure about V11. I simply confirmed the solution works in V11.

  13. #13
    Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,582

    Default Re: Title Help Please

    Good. I misunderstood you. Thx

  14. #14
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,109

    Default Re: Title Help Please

    Now that we got that part cleared up, where in the UX with V12 do you adjust the title ?

  15. #15
    Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,582

    Default Re: Title Help Please


  16. #16
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,109

    Default Re: Title Help Please

    That would have been nice to have in V11.

Similar Threads

  1. <title>UX</title>
    By bob9145 in forum Mobile & Browser Applications
    Replies: 3
    Last Post: 09-15-2015, 10:33 PM
  2. Alpha Window Title SDI Form Title
    By Davidk in forum Alpha Five Version 11 - Desktop Applications
    Replies: 3
    Last Post: 02-24-2013, 02:03 PM
  3. To many <title></title> tags on page
    By Toby Locke in forum Application Server Version 11 - Web/Browser Applications
    Replies: 0
    Last Post: 03-27-2012, 03:39 PM
  4. A5 Title
    By Clunes in forum Alpha Five Version 10 - Desktop Applications
    Replies: 23
    Last Post: 04-11-2011, 10:49 PM
  5. Help w/ title bar
    By lmarini in forum Alpha Five Version 5
    Replies: 5
    Last Post: 07-28-2002, 02:35 PM

Bookmarks

Posting Permissions

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