Skip to content
Advertisement

Tag: javascript

Cross-Origin Request Headers(CORS) with PHP headers

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

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

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

Advertisement