Background  I've been using the C preprocessor to manage and "compile" semi-large javascript projects with multiple files and build targets. This gives full access to C preprocessor directives like #include, #define, #ifdef, etc. from wit...
Is there a way that I can define a macro similar to C/C++ macros in Javascript?   I want to use this for debug statements: Something like   #ifdef TEST__ #define MYDEBUG(##x) debug(__FILE__,x) #else #define debug #endif   Not necessarily similar, but...
i did everything handled. but no luck it is returning "undefined" data. i tried many differnt ways to get data from this site. not successful. I posted this in other forums no one able to solve this to handle full data extract.  i need data s...
Using Acrobat Professional 9.0 I added a Page Open action to Execute Menu Item: File->Exit.  However, when I open the page I get the popup: "This action cannot be performed".  I tried enabling all security checkboxes in Preferences I could...
I have stumbled into several methods of looping in JavaScript, what I like the most is:  for(var i = 0; i < a.length; i++){     var element = a[i]; }   But as tested here (http://www.robertnyman.com/2008/04/11/javascript-loop-performance/), it sho...
I'm brand new to Sweet.js. My first simple macro is the following  macro test {   rule {     $className($entityName)   } => {     function test$className()     {       console.print("$className");       console.print("$entityName&#...
One of the items on my TODO list is creating a fun coding language that 'compiles' to JavaScript. I would like to try out Sweet.js for this, but I'm wondering if it is possible to write a rule that targets keywords that are before the rul...
I am building a web application which I would like to contain a macro recorder, like the one demonstrated here: http://blog.metawrap.com/2007/06/22/javascript-macro-recorder/  The problem with this macro recorder is that isn't maintained any long...
I've written a Scheme-ish language compiler/vm in JavaScript. http://github.com/z5h/zb-lisp Dybvig's "Three Scheme Implementations" paper (available on my github) was hugely important in getting stuff like tail-call-optimization, call...
I'm trying to reference a dataLayer variable in a custom html tag in GTM that is part of a product array, but my supplier has informed me that the variable keeps returning as "undefined". In the tag I defined the variable as {{transaction...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.