Alpha DevCon 2018
Results 1 to 2 of 2

Thread: How does a web page get the UDF code it references?

  1. #1
    Member
    Real Name
    Irwin Cohen
    Join Date
    Oct 2009
    Location
    Brooklyn, NY, USA
    Posts
    145

    Default How does a web page get the UDF code it references?

    My database name is npap and I compile my UDFs into the file npap.aex located in the working directory (folder name is npap). I do not copy the aex file to the npap\npap.webprojects\default.webproject folder. I have many UDFs referenced in my web components and web pages. I have been loading the compiled UDFs on every page with the standard function: a5w_load_aex("[PathAlias.ADB_Path]\npap.aex") but have discovered that it adds 8 seconds to the page load time. Since I do not care about hiding the code in my UDFs I removed the a5w_load_aex command from all web pages and every thing runs fine. But I am confused. I assume that the UDF code is loaded into the web page or component when the page or component is published and not when the page is generated by the server before sending to the client. I assume this because I can not see how the server would know where to find the UDF with out the reference to [PathAlias.ADB_Path]. I would appreciate it if someone could enlighten me as to how a web page gets the UDF code other then by using a compiled library.
    Thanks,
    Irwin

  2. #2
    "Certified" Alphaholic
    Real Name
    Govindan Gandhi
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    4,294

    Default Re: How does a web page get the UDF code it references?

    take a look at xbasic aex files in miscellaneous at the bottom in grid properties, I think that's how.
    I do not have many udf to compile to aex. I am not sure you need to load, the component will load for you.
    thanks for reading

    gandhi

    version 11 3381 - 4096
    mysql backend
    http://www.alphawebprogramming.blogspot.com
    ggandhi344@gmail.com
    Skype:ggandhi344@gmail.com
    1 914 924 5171

Similar Threads

  1. Ophaned Code when inserting a web component to a5w page
    By bradleyward in forum Application Server Version 11 - Web/Browser Applications
    Replies: 7
    Last Post: 08-25-2013, 09:10 AM
  2. XBasic Code Appears on Web Page if Grid is opened more than Once
    By CJMcGrath in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 09-17-2011, 12:45 AM
  3. Why inline-javascript code fires before ajax callback UDF xbasic code?
    By eritovs in forum Application Server Version 10 - Web/Browser Applications
    Replies: 6
    Last Post: 10-29-2010, 07:46 AM
  4. Xbasic code on Web page - Change Font?
    By byte1inc in forum Application Server Version 8
    Replies: 4
    Last Post: 08-01-2008, 05:41 PM
  5. can't find WEB sample page code
    By Peter.Greulich in forum Web Application Server v7
    Replies: 5
    Last Post: 01-18-2006, 11:51 AM

Posting Permissions

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