sinious
LEGEND
sinious
LEGEND
Activity
‎Sep 13, 2019
08:02 AM
Not everything is for business! I have dozens of older projects creating things for myself that have useful old data in them. revdave~ Did you get your code working? And do take notice to what was said he regarding old code and security if this is something publicly accessible.
... View more
‎Aug 17, 2019
10:42 AM
One of the most important things in any multipurpose forum is to tell us what product you're using to calculate this. Only then can we help you. In your brief example, the format of the resulting number seems to be the purpose of the script. It needs validation that one is even selected, which a radio would be better at (one literally must be selected by default). After that the JavaScript is usually fairly simple, but it depends entirely on what this is. A website, PDF, etc..
... View more
‎Aug 12, 2019
08:06 AM
It is not a 404 for me, the link works.
... View more
‎Jul 29, 2019
01:35 PM
PHP has definitely changed but the real meat and potatoes have remained tried and true. Such as mail() in some ways. First thing to do is grab any of the "complete" examples to try on your server. If you can't even get those simple emails and this is some kind of local server, I'd consider your php.ini file having the wrong SMTP settings and can't send mail at all. Please let us know if the simple examples on the page linked above work first.
... View more
‎Jul 24, 2019
07:23 AM
1 Upvote
What is the value of $success after you send, TRUE or FALSE? I'm assuming this is going to be strengthened before ever using. You never put raw user input data in anything with some kind of sanitization. Also you're going out of your way to echo the content to the user when you could just output the page and sprinkle the PHP where needed to be much easier to debug. If you find $success === FALSE, you should start by making sure your php.ini has the correct mail values. One quick way is send a test email, like any of the top examples on PHP's mail page: https://www.php.net/manual/en/function.mail.php If that email works then it's time to look at what all your var values are. Example #5 is sending a simple HTML email, take a look at that.
... View more
‎Jul 02, 2019
01:01 PM
2 Upvotes
The <select> </select> expects <option> </option> values inside it which is why it is behaving oddly. Doing as mentioned above corrects that problem. Optionally you can use vanilla JS to insert the items, e.g.: var sel = document.getElementById('demo5'); ... for (i = 0; i < cars.length; i++) { var opt = document.createElement("option"); opt.text = cars; opt.value = cars; sel.add( opt, sel.options ); // add option at index i }
... View more
‎Jun 14, 2019
08:31 AM
The dynamic data binding option in the video Joahnnes provided a link to is your key asset. He he using an Access DB and chances are you are not but I think you get the general idea that you create your connection how you need to and this will guide you on how to drop the values into the drop-down. If you need a primer on JSON (if you prefer not to have a DB) you can find it here. If your problem is solved please let us know. I am marking Joahnnes answer as helpful.
... View more
‎May 22, 2019
01:23 PM
Just curious what UID might look like. Your urla ends with ...F_NewForm1/ (it adds the forward slash), then you append your UID, then you append urlb which doesn't have a prefix of a forward slash, it just starts as freedomIdentifyKey=00. Does UID solve this possible URL pattern issue? I'm assuming yes since you say it works in a browser but I'm curious to have a more complete example from you. We can't see the structure of UID.
... View more
‎May 02, 2019
08:45 AM
1 Upvote
Are you using a framework or are you using vanilla JavaScript? The timestamp is a traditional way to force anything performing a 'load' (AJAX, browser, etc) to download it again since the number in cache will never match. You said you are changing some values but what 'exactly' do you expect to happen when you click and change the hash? Frameworks often have their own 'router' and use the #path/to/var setup to redirect SPAs between different controller/views. We need to know more however.
... View more
‎Apr 12, 2019
04:06 PM
I'm with Fritz. If you ever find yourself needing to use !important then either something isn't correct, is getting injected inline or you just structured it wrong. It should be avoided.
... View more
‎Apr 02, 2019
02:10 PM
You can select any of the items in that network panel list to get more information but the bottom line is the "Result" column states a "404", which is the file that URL is attempting to reach does not exist. Start with that problem.
... View more
‎Mar 29, 2019
01:18 PM
Are you getting the same error? Use the "Network" panel inside the Developer Tools. It might seem a little complicated at first but it's straight forward. Find your AJAX request and examine the request and response. Since this is on the same domain (that I know of) there probably won't be a call for "OPTIONS" which returns the available request types (GET, POST, PUT, DELETE, etc). Try changing the method you're using to GET and see if you get that error. e.g: // GET request $.get("export.php", function( data ) { alert( 'success: ' + data ); console.log( 'success: ' + data ); // please also do this and examine it }) .fail( function( err ) { alert( 'err: ' + err ) console.log( 'err ' + err ); // please also do this and examine it especially }); The alert() function may receive a complex object and it's not able to display it. If it is a simple success then you have no further investigation to do. If not, checking headers like mentioned above and also looking at the value in the console will give you better debugging tools to find the problem here.
... View more
‎Mar 28, 2019
12:05 PM
There are a number of JavaScript issues going on here but I'm assuming you are excluding a bunch of code for brevity. Aside all the missing code, the two items that stand out here are the response export.php is sending along with not setting any headers for the content type you are handling, sending or receiving. Sticking with the receiving part since you are not sending any data, export.php is sending back a <script> trying to alert a value. It could just as easily send the value and the .success() portion of the AJAX request could handle that. e.g.: export.php header("Content-Type: text/plain"); echo "in php"; The POST request will receive that header and know how to handle the data: test.cfm var request = $.ajax( "export.php" ); request.done(function(data) { alert(data); }); // success, compatible with jQ 3.x+ request.fail(function( jqXHR, statusText ) { alert('Error: ' + statusText); }); // error, compatible with jQ 3.x+ Finally your try/catch has a return on the catch, "return err;". It's not inside a function so it has no place to return anything. You're also going after err.message which it's more useful to just alert(err) and not a specific property. Overall to get better feedback on what is going on, open your browsers developer panel (different way in each browser but for example in Chrome it's Triple Dot->More Tools->Developer Tools or CTRL+SHIFT+i on Windows for example). Inside this panel you can easily inspect values, better than alert(). There are a bunch of tabs across the top of the panel with different tools such as Elements, Sources, Console (where I'm referring to), etc.. If you open up Developer Tools and select the Console option, using the JS function console.log(anything) will output whatever you drop inside it into your console. Much better, complex objects, properties and values can be examined far easier than alert(). You can also type code directly in the console to give it a try, e.g. console.log(window); Try to use that on all the errors, data returned, data being sent, etc. It should help you diagnose things far easier.
... View more
‎Mar 15, 2019
08:17 AM
On the Form Close did you try simple nilling like acrpdf1.Src := ''; acrpdf1.Free; acrpdf1 := Nil; ?
... View more
‎Jan 29, 2019
05:09 AM
At the top of your post you are concatenating a date to the request string and saving it to a file. I'm not sure what that has to do with the question itself so I'm just going to the meat of the question, using the JSON response. Your 3rd quote has one way to handle it, $form_data = json_decode($_REQUEST); which will decode all form (GET/POST) as well as $_COOKIE data, if that's what you want. I would be more specific myself. especially If the entire request is hitting an endpoint that is only ever going to give you an application/json type response. In that event I'd rather pipe the input like: $response = json_decode( file_get_contents('php://input') ); // read/decode standard JSON response After you get the content, it's really just about understanding the object hierarchy itself. Something that can validate the response and help it appear a bit visual to you is just using a service like https://jsonlint.com/ to paste your response (the top of your second quote, not after print_r). It will help you visualize the data a bit better. e.g.: You can also get one of many extensions for your browser and look directly at an endpoint URL that hands back a JSON response and let it parse that information and display it the same way. Using what you see above, you'd access the object following the structure you see. It is an object overall which immediately contains 2 properties, "riddleId" and "data" (object). Use them accordingly. echo $response->riddleId; // 179849 echo $response->data->riddle->title; // test1 Just make sure you pay attention to the structure. If you try to access it like your final example, $form_data->riddleId[0], you are expecting "riddleId" to be an array and you want entry 0 in the array. It's not an array. It's a numeric value. If the response had brackets surrounding the value for riddleId, it would be an array value. e.g.: ... "riddleId: [ 179849 ], "data": { ... The brackets, as you know, indicate an array. You don't have that which is why your code isn't displaying what you expect. For more information on JSON, see here: JSON
... View more
‎Jan 22, 2019
05:44 AM
Aside using the mobile gestures, this kind of thing would fall back to AS3 traditionally tracking one key at a time. One event will fire per key but not at the same time. Here is an older post where Ned mentions a way how to handle something like this: Recognizing multiple key presses in As3 It'd be useful to handle this within a Timer so here is some example code that initialized a timer but did not fully use it, but it should get you more than started: actionscript 3 - Multiple key press conditionals in AS3 Both are doing essentially the same thing except if you set the Timer to a short amount of milliseconds as they did (100), and both keys are found to be pressed that close together, it's a bit more realistic to expect they were pressed together. You'll want to clear anything you were looking for either when the Timer end fires or on KEY_UP so you are ready to trap the next. Here's the API just for reference: KeyboardEvent - Adobe ActionScript® 3 (AS3 ) API Reference
... View more
‎Jan 11, 2019
06:14 AM
1 Upvote
I can verify I cannot see it only on iOS iPad, Android phone/tablet works fine. However, off topic, you have some work to do on the menus. At a certain screen width your main menu disappears. On iPad portrait there is no menu but if I turn it to landscape a full/desktop menu appears. On Android phone I get a black bar with MENU in it portrait but if I turn it landscape the entire menu disappears just like iPad portrait. Might want to look into that.
... View more
‎Jan 01, 2019
09:58 AM
What you're looking for is keeping the HTML structure out of the site flow (usually) and then using the CSS position property, setting it to fixed. That will allow you to use the properties top/bottom/left/right and adjust how many pixels away from those edges you want your content. Finally, if it should be on top of other content, you can use the z-index property, setting it to a higher value than the content below it to assure it visually appears on top. For example, to stick it 50px below the top and 0px from the left edge, you can do this: HTML: <div class="your-class-name"> ...content... </div> CSS: .your-class-name { position: fixed; top: 50px; left: 0; z-index: 100; } The bar will now stick to the left side of the screen and will not scroll with the page. Edit: If you do want it to scroll with the page, simply change the CSS above from postiion: fixed; to position: absolute; .. And make sure your HTML is directly inside the container you want to position it with. For the browser window, just make sure it's at the <body> level.
... View more
‎Dec 06, 2018
08:28 AM
Sorry for the late responses, it's been err, seasonal.. I always used Adobe Native Extensions. That's what they're designed for. To nearly unlimitedly extend AIRSDK on platforms using native code. I used to use a docLauncher.ane and I purchased it so I could have the source code and update it how I saw fit. I have the ANE, I just can't find the source ANE to see what is assured to be a different intent these days. I do see other plugins that offer this and a wide variety of other capabilities. It's always your job to take a look at the updated version and test it out if possible with any code you find. I'd recommend solutions that have the correct license and grant you source code so you can read/modify it. Sometimes the tiny cost is entirely worth not losing days worth of time. I myself like to dig in and figure it out but I've used Java and AndroidSDK before. For this issue, if you don't know Java/AndroidSDK or the ANE process, I'd suggest you decide if that's what you want to do. If so, there are unlimited video and tutorial resources out there to help and feel free to come back with any very specific questions!
... View more
‎Nov 28, 2018
12:39 PM
Did you try that? You mentioned above you are going into File.applicationStorageDirectory.
... View more
‎Nov 27, 2018
09:45 AM
Just as a quick fix, try putting it in the public documents folder so you can be assured it's not a file permission issue.
... View more
‎Nov 14, 2018
04:18 AM
Yes and as late as this reply is, all of the above languages can do it because Adobe was kind enough to make the format open source. So, please pick a language and add your requirements to your question to get a better answer.
... View more
‎Oct 31, 2018
03:34 AM
Extending upon what David has said as a timeless way. One thing that's typically saved on the filesystem, away from prying eyes, is the salt used per your given encryption choice. The salt alone will be what you store in that file. When a user logs in, you'd take the password they supply in a login form, read your 'secret salt file', encrypt that value and then compare the encrypted value against a password you stored for them in your database. Since the salt is the same, the one-way encrypted value will match it. Then you can store those passwords in the database and have a way to quickly check against them in a login. Another way PHP offers is password_hash(). This function handles the salt for you automatically based on time. It then encrypts whatever string you give it and embeds a salt into the encrypted string it returns as well. Then you can skip the step of putting the salt on the filesystem altogether. You use PHP's password_verify() function which will compare what the user sends as the passwords while auto-reading it's own embedded salt. It is doing the same salting method as above, only every password has a unique salt already inside it, encrypted. Take a look at the pages, the functions are very simple to use. e.g.: $hash = password_hash( "aStr0ngp@$swoRd", PASSWORD_DEFAULT ); // hash created using a generated salt for you if ( password_verify( "aStr0ngp@$swoRd", $hash ) ) { // validated! do stuff.. } The documentation recommends that you do not provide a salt, but you may. the PASSWORD_DEFAULT is also a CONST specifying the type of encryption you want. There are other options you can read about to suit your needs. This is all in the realm of a basic setup.
... View more
‎Oct 15, 2018
09:11 AM
I'm sorry this reply is late, I've been on a business trip. Have you considered the natural HTML5 method of the built in date input field? More on this
... View more
‎Aug 27, 2018
02:58 PM
Do you have any access to the API you're POSTing to which is generating the content? We've all done this kind of thing tons of times and sometimes the answer might be to refactor how your API is sending you data so it's correct everywhere it's sent. However I do not know if that endpoint is used by anything else that expects the format you currently have. Otherwise you have it correct. You can nest loops although if it's a lot of results you can needlessly loop giant lists and slow down performance. If I have no API control, I'd typically generate a whole new object structure that matched what I wanted to display. Many of the frameworks today (Angular, etc) make use of data structures like this. ES5 e.g., looping and building a structure you can work with var results = [ { category: "category name/id", products: [ { name: "product name", SKU: "ABC123", ... }, { ... }... ] }, { category: "category name/id 2", products: [ ... ] }... ];//end results I don't know how long you end up keeping it in memory however. Since I do more Angular I tend to keep these things in memory and use angular repeaters to automatically build views based on hierarchies of data. If you do that, be sure to clear out the memory used from your original results after you build the structure you can work with.
... View more
‎Aug 21, 2018
05:05 AM
You mentioned scripting but are you looking for a JavaScript or SDK means of accomplishing this? Here's are the correct InDesign forums to ask this question: JavaScript: InDesign Scripting SDK: InDesign SDK
... View more
‎Aug 12, 2018
03:03 AM
I'd encourage you to head over to the product specific forums (if they exist), such as the here: Acrobat - JavaScript That aside, you'll need to consider how the javascript will interact with your site. The searching of all content should be performed by "something" on your website, or a 3rd party, such as utilizing Google APIs to search a website for you. Here's a link to a Google JSON API for searching a site: Custom Search JSON API | Custom Search | Google Developers The scripting you write will need to "talk" to something, get a response and then handle it by displaying it however you decide to do that.
... View more
‎Jul 24, 2018
12:05 PM
1 Upvote
In the 15 years of compliance (19 total) of dev I've done professionally, I've found almost nothing that is a 100% solution capable of handling it perfect. I always knew the languages individually myself and had to develop workflows to assure compliance. You need the workflow because when you inevitably want to update what you made, tweaks necessary to fix the compliance need to be reapplied, depending on the IDE. My vote will always be to learn HTML/CSS at minimum. JS is only necessary when your site gets highly dynamic, generating any kind of element in the flow that needs compliance such as in order screen reader support. It won't take you as long to learn as it will to find a solution that doesn't require it. You will feel better about every project and any product producing perfect compliance right now is bound to fail in the future at some point, or cost a heap to upgrade. Knowledge trumps all!
... View more