I have a simple PHP script that I am attempting a cross-domain CORS request: Yet I still get the error: Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers Anything I’m missing? Answer Access-Control-Allow-Headers does not allow * as accepted value, see the Mozilla Documentation here. Instead of the asterisk, you should send the accepted headers (first X-Requested-With as the
Tag: javascript
Import RSS feed from LinkedIn?
Is there any way of getting the RSS feed of a LinkedIn group (like this: http://www.linkedin.com/groups/Behance-Creatives-55523) to show on a webpage? I would like to display the most recent discussion on a page. Answer There is no RSS feed for LinkedIn groups, as they all require the viewer to be a LinkedIn member to join (at a minimum). You could
PHP to Javascript Arrays and GPS locations
I’m making a script that will hopefully be mainly PHP so it doesn’t require Javascript later on, but right now I’m stuck on a few things. What is the best way to store GPS locations, and then compare them? I could use to store them in a database (currently using MySQL), and then find people nearby with some code, but
Communicate between pop up window and the parent window
I’m working on a PHP/MySQL project using Codeigniter framework. The user fill a form with many data, and give me also FTP access to his web hosting, I want to POST FTP details to a popup after clicking Browse button, user will select a path (I’m using Codeigniter FTP Class), then I’ll grab the path after the user click Save,
What’s the simplest way to navigate through a list of images?
The purpose of this is to view remote images with a browser. I already have set apache and I can see the folder of pictures with directory listing. The bad thing, is that I have to click each image, each time I want to see one. What I want is to navigate through the images in the folder using the
Ajax and Jquery in Symfony
I’m a beginner in Symfony (version 2), I have a project achieved with plain basic PHP, and now I’m redoing my pages in dealing with Symfony framework, and arrived to my jquery ajax functions, surely, …
How to convert video to mp4,webM,ogv while uploading ?
i am using videojs to play video on my website(it’s a HTML5 website) so for a better support i need to make 3 formats of each video mp4,webM,ogv. But in my website user can upload video also. So please tell me how can i automatically convert videos after/while uploading to these formats. I am using PHP5+JS for development. Answer As
hash in JS == hash in PHP
I need to make a hash with JS and PHP but I need them to both work out to be the same hash. I am just wondering what the best idea would be to go about it. it needs to be secure, but its not hashing …
Sending Javascript Object to PHP via Ajax
I’m learning Ajax by failure and have hit a wall: I have an array (if it matters, the array is storing number id’s based on what checkboxes the user checks) that is written in Javascript. I have a function that is called when the user clicks the ‘save’ button. The function is as follows: My question is: What can I
How to separately validate each simple HTML radio form, created through a PHP loop, using Javascript and Jquery
I made a number of html forms containing only radio buttons and a submit button. However, I cannot get them to validate properly–independently of each other. Here is my code: PHP/HTML code for the form: Here is the javascript/jquery I have been trying, but has not worked: When I do this, it always thinks I have not chosen a radio