Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question I have a Dutch Radio Station called FinioxFM and I would like to get infor…
Tag: javascript
The gzuncompress of php equivalent on javascript
I have a php file that do: and on javascript i do a request on php and i want a function that do the same of gzuncompress(data) for take the result = “TEST COMPRESS” again on client side. EDIT: Thank you @aaronk6, zlib worked! If someone ready this question, the zlib will works if the php is with …
How to do form submit the PHP way with Angularjs?
I found out that AngularJS sort of blocked the original form’s way of submit and here is another one. Myself, found its troublesome because I need to work with many legacy submit form which use PHP …
Does JavaScript have a language construct similar to the php list command?
Does JavaScript have a language construct or something similar to the php list command? http://php.net/manual/en/function.list.php This command will assign the values of an array to variables in a …
Hide html content based on radio selection
Hi I’m fairly new to php/html and Im having trouble with hiding the inputs based on my radio input selection. I want to be able to hide the rest of the inputs if “yes” is selected but nothing happens. Any help would be greatly appreciated. Thanks. Answer Make sure your function block is clos…
PHP: How to block the http referer for an image request?
Due to hotlink protection I’m having difficulty displaying images. The http request send in order to obtain the images contains a non empty referer header. This causes the hotlink protection to kick in. Using a referer control tool, I can block the referer, which bypasses hotlink protection. However now…
update_order_review( ) on button click
I have a custom button on my checkout page, on click I’m adding a product to cart via AJAX. JS: PHP: After that, I’d need to refresh the order review, so it displays my newly added product also. How can I do that? Answer All you need to do is call a trigger on the body to update the cart.
How to await the ajax request?
I am trying to write a JS code that will cancel the “btn_submit” buttons .onclick event if the given number already exists in the database. I use AJAX to query the DB for the given number and to …
Javasacript Countdown timer in Days, Hours, Minute, Seconds
I’m trying to create a time-based count down clock. It is not based upon current_dates. The initial time that will be pulled will be from a separate php file. This will be for a browser based-game. When someone clicks the button to initiate this script. it will check if certain requirements are met and …
CryptoJS encrypts AES with passphrase but PHP decrypt needs a key
I am using CryptoJS to encrypt a string: As I understand it, CryptoJS uses the passphrase to generate a key, which is then used to encrypt the data. However I’d like to decrypt the cipher using a PHP function, or maybe an online tool such as this: http://aesencryption.net/ The issue is that these expect…