How to use decodeURIComponent in JS in Facebook? - php

I am trying to use decodeURIComponent in a JS function inside Facebook instead of using urldecode in PHP. But I keep getting the following error :
Error: a194182563946198_decodeURIComponent is not defined
Can anyone kindly help ?
Thanks.
-
Ahsan

On a second thought, I am using a PHP intermediate file that does the work on ajax call. :)
-
ahsan

Related

How to use PHP variables in Soap requests?

I am using a soap element in my code, and now I am facing a problem.
I want to add a PHP variable in the soap element:
<HotelRef HotelCode="00001659"/>
Here instead of 00001659, I have to use dynamic PHP variable like below:
$hotel_id
I have tried directly by putting the variable in place of HotelCode, but it is not working.
How can I do this? Please help me.
Thanks in advance
<HotelRef HotelCode="<?php echo $hotel_id ?>"/>

Flash lite 1.1 Actionscript and PHP

i need help on getting data from my database using php on actionscript?
any advice on how i can use loadVariables() or getURL()
i know PHP but im new with actionscript.
Here's the process:
Use loadVariables to call the PHP script:
loadVariables("params.php", target_mc);
URL encode the output from the database:
echo urlencode($resultset)

Wikipedia getting Infoboxes With PHP

So I am trying to parse content from an infoboxe template in a wikipedia page. But I have to use PHP because I cannot configure my server alone and I haven't the permission to do that.
(So i cannot use the framework Dbpedia)
I need help because I am trying to understand how I can parse this object Infoboxe.
Example on this url : http://fr.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&rvsection=0&titles=Roger_Federer
Plz Don't tell me to look the documentation, it's boring and not very usefull.
I keep going trying to parse this content but I don't understand how I can do with PHP ?
THhhhhxxxx to help me !! :)))
You can call this python script using exec():
https://stackoverflow.com/a/9208881/956397
exec() manual: http://www.php.net/manual/en/function.exec.php

FBML to PHP variable

hello how to set a value in php variables from fbml(facebook markup language)
<fb:comments-count href=http://domain.com/view/24></fb:comments-count>
please share your idea :)
I think what you're trying to do is get the number of comments for a certain page. In that case you shouldn't do it via FBML but instead make a REST call: http://developers.facebook.com/docs/reference/fbml/comments_(XFBML)/
You'll see that you can do a call along the lines of https://api.facebook.com/method/fb:comments?access_token=https://api.facebook.com/method/fb:comments?access_token=FOO

Help with PHP and AJAX

Suppose i need to invoke a function (php) from inside a js function using AJAX, is the
following syntax correct:
$.post("phpReceivingFile.php", {func: (name: "james")}
....
....
No, it won't work, you can't invoke specific php functions like that. I suggest sending a get parameter and inside your php do something like:
if($_GET['func'] == 'yourfunction') yourfunction($_GET['name']);
You might want to have a look at this short php/ajax tutorial to see how you get the variables sent to a php script.

Categories