Loqate address suggestions for Chinese countries - javascript

working on project where requirement is to show Chinese address in English(US). I went through the documentation found nothing helpful. requirement is whenever user starts typing the suggestion of address should be in english instead of chinese. Using loqaecte for address suggestion.

Are your sure you use UTF-8 in the GET request?
All you need is to specify the charset in your request.

Related

Custom email validation Firebase Action code

I am working on a Application with firebase. I want to validat a users email, but since Firebase doesn't allow to change the verification message (To help prevent spam, the message can't be edited on this email template), i can't use this. I don't want to serve English text to my users.
Is there a way to get/generate a custom ActionCode? I used this tut https://firebase.google.com/docs/auth/custom-email-handler it might solve the problem is i can get the temp actioncode somewhere.
I found applyActionCode and checkActionCode (seems the same) but not something like createActionCode
Ask for it...
Nowadays the best procedure (with just 1 step) was for us to develop an HTML file with the exact content for each of your templates (Email-Verification and Email-Change, including even the snippets %...% in the right place) and send them as attachment in the Troubleshoot form as mentioned by Alfonso in the comments of this question.
If you send the exact email HTML template file, you leave Google's people with no questions for spamming purposes other than quickly validating your HTML content and approve.
you can change the language for all the templates, at the bottom...
also you can edit manually the body and the subject for the forgot password template
You can customize the email validation template text as you wish? Right?

How to find or create a questionnaire with the function of the prohibition on the same answer?

I need help.
We need to find a questionnaire in which the answer to the question (for example, telephone number) may not be the same for two users.
For Example:
Enter a phone number:
First the user enters a phone number: 123456789
And completes the survey.
The second user starts to question and answers the same phone number 123456789.
He receives an error message or a request to enter a different answer.
Or is there any easy implementation of this problem using php or javascript.
Maybe it is possible to implement with surveymonkey api.
I would be glad of any help or advice.
Google forms writes to a spreadsheet database, allows regular expression fields and attached scripts. Set the field to mach your required format, then validate the response with a script.
Your requirement is persistent storage. You will either require a database, such as MySQL, and use PHP to access it, or a third party application such as SurveyMonkey. However, I can't tell you the limitations of SurveyMonkey, you will have to check their documentation.
I realize that this late and this thread is limited but for others looking for same answer. Here is how I did exactly the same thing for one of my coworkers using Examinare Framework and Examinare Survey Tool.
First, create a html form that sends the phone number to a form.
Inside that PHP file call Examinare PHP Wrapper and check if a recipient has this phone number on their recipient profile.
https://developer.examinare.com/apidocs/listrecipientsbygroup/
A tip: And loop through it the results.
If the recipient not exist, create the recipient. Make sure you add a fake or real email to prevent getting an error.
https://developer.examinare.com/apidocs/addrecipient/
Mark the recipient as a active in the survey.
https://developer.examinare.com/apidocs/markrecipientstosurvey/
Redirect to the survey.
If you want the recipient to return to a certain path then add redirect_url variable to the url with a valid url.
Hope it helps you and future seakers.

Facebook Commenst Box: can't add comments

I'm adding Facebook-commenting functionality to the site. It doesn't have domain name yet, so I'm accesing it by numeric IP.
I've succeeded in showing the box with the comment adding form, and I can log in and send something. But after each send the comment just is not added.
Is numeric address a source of the problem?
I had the same situation and when I used it on a real domain, it works. Somehow it does not work on ip server. Better you move the site to live domain and try again and it should work :)

Java script for tracking Keywords used by Visitor which Leads to my website

I really want a script which fill my needs for knowing the keywords which were used by the visitor ... thanks in advance and please if you can help me with Visitor page tracking as well it would be icing on top :)..
Visitor Page tracking means to track the page or Log the information about the pages which visitor hits or landed in
Try signing up for Google Analytics: http://www.google.com/analytics/
This will work for Google at least (non-instant search), and probably other search engines:
searchTerms = document.referrer.match(/[?&]q=(.*?)[&$]/);
searchTerms = searchTerms && decodeURIComponent(searchTerms[1]);
I second Google Analytics. You can also check out http://Piwik.org, an open-sourced alternative.
-- EDIT --
With respect to your comment. If you're using PHP you might want to check out $_SERVER['HTTP_REFERER']. As that will help you begin to decode the search parameters included in the query string.

How to create a link that has a textbox "auto-filled"?

How do I create a link that when the user clicks, it will bring him to the Google page as shown below (with the To field completed):
Right now, what I've managed is to simply link him to https://mail.google.com/mail/#compose and this is what he will see:
Similarly, is there a way to achieve this on hotmail as well?
https://mail.google.com/mail/?view=cm&tf=1&to=someone#gmail.com&fs=1
This shows the composition screen. To get the whole gmail interface, remove &tf=1.
If you also want to preset a subject, just add &su=YourSubject to the query string
The data is sended by POST, I think. Try to trace the HTTP Header when clicking on the link that redirects to the already filled page, with the Firefox Addon "Live HTTP Headers" for example. If the third line starts with POST, look at the last line before "HTTP/1.1 200 OK", this is the sended POST data. You will probably find the auto filled mail adress there. If so, you can do a javascript POST request to the given URL: http://www.bennyn.de/programmierung/javascript/http-post-request-mit-javascript.html, or you can use a framework like jQuery.
This does not answer your question but if you are to request a person to send an email then it is best to use the mailto: in your links so that it uses the computers default mail service. I am unaware if this uses web-based mail but it will open up the computers default mailing program (And it stops you from having to account for every different email service).
And I tested Dennis's answer, and it does work for me. What do you mean by 'It ain't working', any error messages? anything that can help solve the issue?

Categories