Search results

  1. TonyBenedetti

    Get table name & form name from common code invoked by form_XX.js

    Thanks again, Hugh! You're my hero! You have given me extraordinary support even though I am just a "hobbyist programmer" who is developing a website that likely will have only one user -- me! I encourage you to ignore my postings unless you think that answering will aid those folks who have...
  2. TonyBenedetti

    Get table name & form name from common code invoked by form_XX.js

    If I had thought it through I would have realized that what I really needed is simply the "form number" and not "form name". Even my limited JS skills include the ability to concatenate 'form_' to 23 to come up with 'form_23'. I am such a dimwit! Given that -- is there a way to get that pesky...
  3. TonyBenedetti

    Get table name & form name from common code invoked by form_XX.js

    I've already learned from Hugh over in another thread how to load that common code. Thanks again, Hugh. But I would like my form_XX.js files to be as "skinny" as possible so that I can use a crop of functions in a single "common.js" file. I have several similar forms (with the possibility of...
  4. TonyBenedetti

    Using common Javascript code in several form_xx.js files

    Thanks startpoint ! Thanks Hugh !! I used Hugh's suggestion and it works a treat. Now I just need to write some Fabric elements to use those 60+ functions so that I can convert dates from the Julian calendar to the Hebrew calendar or to the French Revolutionary calendar or, or, or. Who said...
  5. TonyBenedetti

    Using common Javascript code in several form_xx.js files

    Super! Thanks! I'll give it a crack later today and post my results here. I'm sure that it works but I'm unsure nowadays about my ability to follow simple directions. Thanks, Tony
  6. TonyBenedetti

    Using common Javascript code in several form_xx.js files

    I'd like to use a chunk of public domain code in several form_xx.js files. But if possible I'd like to have only 1 copy of the js to avoid maintaining it several times over. It is a rather elaborate set of 60+ functions that converts dates expressed in one calendar system to another (Gregorian...
  7. TonyBenedetti

    Fabric 3.8 element Javascript problem

    Hope the JA folks are helpful. Not a big deal for me -- remember I'm just a "hobbyist programmer". Good luck and thanks.
  8. TonyBenedetti

    Fabric 3.8 element Javascript problem

    Looks like the Purity III template might have the same problem as described in the "fabric 3.8 element javascript problem" thread over in the Standard Support forum. The inline Javascript doesn't fire if the radio button is a button group. I started out with a call to my form_##.js and...
  9. TonyBenedetti

    form_X.js

    Ahhh ... the good old days
  10. TonyBenedetti

    form_X.js

    Ah, things were so much simpler when I was coding IBM System/360 Basic Assembler Language back in the 1960s. You would code, then assemble, then link modules together to produce an executable program. Then watch your program go up in smoke, the spend some hours debugging, then race to a...
  11. TonyBenedetti

    form_X.js

    Super! Slick! Simple! I love simple because I am simple! And THANKS for the explanation of the require.js code. If only the explanations I found on Web had been as clear as yours. But then again, I have been accused of explaining how to build a watch when asked "What time is it?"
  12. TonyBenedetti

    form_X.js

    I'm a bit confused about how to arrange the code in my form_23.js file. I would like to move the JS from each of the "on" events into the external file. My confusion stems from: Why do examples in the forum use:requirejs(['fab/fabrik'], function() { but the wiki shows "Fabrik" as a...
  13. TonyBenedetti

    setLabel

    Thanks once again, Hugh! Yours is, as always, sage advice. Others listening in on this thread would be well advised to take heed. But, unfortunately, most of the time I'm working "blind" -- using Chrome on an Android tablet. Only when I used the deskside Windows machine at home over the...
  14. TonyBenedetti

    setLabel

    Well, it turns out it was a Real Dumb Blunder ... but I now have things working! I had an error in some JS in an "on load" elsewhere -- same form, different tabbed group -- and out of sight, out of mind! Apparently, that error stopped any/all JS on the form from running. Now back to making...
  15. TonyBenedetti

    setLabel

    Looks like I've dug a pretty deep hole for myself with the altered default.php. It appears that the "on click" JS isn't invoked at all. I replaced the code with the simple single line "window.alert ('yikes');" -- no go! Must be something in the way I implemented Hugh's suggested "don't tab...
  16. TonyBenedetti

    setLabel

    Thanks for your generous offer, Hugh. But your setLabel works perfectly under normal circumstances. I placed similar code in another (simpler) form -- with the element fullnames "changed to protect the innocent". It works great -- "just as advertised". But my troublesome form is not simple...
  17. TonyBenedetti

    setLabel

    I have the following code in both the "on load" and "on click" events of a radio button group. The value and label are identical for each button (e.g., "Month", "Quarter", etc.) -- adding "_raw" doesn't make any difference. The element whose label I am trying to change is a...
  18. TonyBenedetti

    Is it "elements" or "formElements"?

    Of course it was "formElements" -- it says so right in the wiki entry I so carefully quoted. New life lesson -- "Tony, don't try to engage in rational discourse after 11pm."
  19. TonyBenedetti

    Is it "elements" or "formElements"?

    In the Wiki entry for Elements, it looks to me like "elements" has replaced "getElements" but I continue to see code examples in the forums that use "getElements". Does it make a difference or is one simply an alias for the other?
  20. TonyBenedetti

    Is there a "right" directory to place XXX.php ?

    Thanks, Hugh. For now inflector.php will continue to live in my "_gollynums" directory. When/If the "user_code.php (or whatever)" sees the light of day, I'll move the code. Thanks again ... now off to think up some more trivial conundrums.;)
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top