First time question here and a prog-newbie aswell so i will try to be as clear as possible with my question.
I have Sharepoint 2010 Online and i've been trying to found out a way to connect some site to a third-part-ticket website.
My company have different customers and these customers have a specific customer-site in Sharepoint, aswell as a specific contact person who should be contacted when a ticket is raised.
What i do have at the moment is this;
Specific Customersites in Sharepoint(so the URL for Customer y is like CustomerY.aspx and for Customer X CustomerX.aspx).
I also have a third party web-site with the ticketsystem. The first part of this url is static, whereas the second part is based on what customer is trying to reach that ticketsystem.
I also have a specific contactperson for the specific customers.
Would it be possible(with javascript) to in an hyperlink, link to the customer's specific ticket-system website and at the same time send an e-mail to the choosen contact-person?-
I hope i have made my self as clear as possible.:)
If you have any further questions, please ask.
No, it is not possible. You cannot send an e-mail by executing javascript in the browser.
Related
I am trying to develop a site which allows user to create developer profiles. I would like to link it with spoj, so that, I can show his submissions, passed/failed in the profile page .
I would like to know Does spoj has any REST api support to fetch the user statistics. or any URL patterns like /stats/username which will return a Html page upon which I can scrap for useful data .
Note : I have checked the tools from spoj make and none of them are working with the new version. I am able to get my user data by visiting /status/username/signedlist. But that only works for logged in users and it is not public.
As of now there is no way to know spoj user stats through rest call .
Although you can scrap /users/username/problem_code page to know valid submissions.
Example of the project is located here .
https://github.com/aravindballa/MRNDLeaderboard
I am working on a something similar to Disqus, and I created a third-party javascript snippet which the user will embed in the website and have a rating widget for each article. Users can rate the article using the widget. Everything is working, the server is making the request, but I am making the article object instance explicitly.
I need to automate this, like for a new article on the website, checking the request is coming from the authenticated website and create a new rating widget in the Database in Django and Django-rest-framework.
I am using Python 2.7.
Question:
How do I automatically save the headline of the new article, if its new and authenticated in the database?
I know that I need to use a model to implement this, but I am unsure how to do the actual implementation.
EDIT:
Let's say this is the query
https://example.com/embed/comments/?base=default&version=edb619270a92c3035c453faa7c9444d1&f=example&t_i=article_2431522&t_u=http%3A%2F%2Fwww.firstpost.com%2Fbollywood%2Flatest-trailer-of-spectre-is-out-james-bond-is-back-all-guns-and-cars-blazing-2431522.html%09&t_e=Latest%20trailer%20of%20%27Spectre%27%20is%20out%3A%20James%20Bond%20is%20back%20all%20guns%20and%20cars%20blazing&t_d=Latest%20trailer%20of%20%27Spectre%27%20is%20out%3A%20James%20Bond%20is%20back%20all%20guns%20and%20cars%20blazing&t_t=Latest%20trailer%20of%20%27Spectre%27%20is%20out%3A%20James%20Bond%20is%20back%20all%20guns%20and%20cars%20blazing&s_o=default
In my model I need save the following, like f to forum (where forum=models.CharField("short name", max_length=30, unique=True)
I know I need to parse the url for every &, but don't know how. I checked the documentation of rest-framework, but I didn't get the gist of it.
`f ---->forum,
t_i----> identifier,
t_u----> url
t_s----> slug,
t_e----> title,
t_d----> documentTitle,
t_t----> title || documentTitle,
t_c ---->category,
s_o----> sortOrder,
l----> language`
What's the best practice to save?
Hope this helps
I'm going to just answer the question you stated at the end: "How do I automatically save the headline of the new article"
You're right, you'll need to create an Article model that mirrors the 3rd party site's articles.
It'll need to have a field for the title/headline (probably CharField), make sure you make it big enough and/or deal with cases where the title is bigger.
You'll also need a unique ID for each article. Ideally, rather than using Django's default, you'll use whatever the 3rd party site is using as the unique ID as a One to One mapping.
Then whenever a request comes in you can use the get_or_create method to ensure the article exists in your DB.
I'm playing around with Apache Cordova and I want to implement a search box that can search in a list or something similar (local database?). I want it to be local so that the app does not require an internet connection to search.
The way I want it to be set up is that it need to be able to search for both the name of the item and a number.
Example 1:
A user searches for: "Honda". He will then be sent to a page where information about "Honda" will be diplayed.
Example 2:
A user searches for the id: "1337". He will then be sent to the page containing information about "Honda".
So "Honda = 1337" and "1337 = Honda" if you guys understand?
The question:
I'm wondering what solution would suite my needs for this project?
or there any frameworks out there for this?
Thanks in advance!
It depends on what you want to have the search box and submit to be like.
One way is to use this really great tool http://ivaynberg.github.io/select2/ it can load data from database (using either ajax or load all of your data and only filter them) and shows them in selectbox. You can have submit button or something like that next to your selectbox.
Other way might be to use http://www.datatables.net/ it has search box, which can load data to table using ajax where you can have additional information and submit button for sending user to specific page.
There is plenty of other tools for this kind of problem, I used these two and I can say
I've looked at a couple different analytics programs (like Google Analytics) that will tell me what URL my users have entered my site from, and which URL they are going to when they exit.
It certainly must be possible to gather this data somehow, I just can't find any code examples of how to do it. I would imagine that it involves the javascript function onBeforeLoad, I just don't know how to get the URL from that point on. This is a pretty important feature, as it will help me to tailer my website more towards my users specific needs.
I appreciate the help,
Sorry, I think I was unclear originally.
One of my other sites uses a service called StatCounter, and they have a section called "Came From". This shows where users were at directly before they visited your page. So, for instance, if someone google'd "Inside Out Ministry", and found the link to my site www.insideoutministry.com, my stats page would show that the user Came From www.google.com .
What would be the code to do this?
A simple approach would be to have a db with ip, time, lasturl and firsturl fields. Every time someone calls a page, it get's checked if his IP is already in the db. if not, a new entry gets written with firsturl as the actual url and i with his ip. Every time now he loads a new page on your site, the lastpage field gets updated. I don't know how exactly to determine that he's left the page, e.G. if he hasn't accessed any page on your sithe within 10min.
To track the first/last page your users visit, you just track all pages the user visits, and the one with the earliest timestamp is the first, and the one with the latest timestamp is the last.
I need a script that can handle the following tasks.
Take user data from my database and fill in and submit / post data to forms
located on third part websites.:
So I want to know if is it hard to create or do somebody knows if does exists some script for mass form submissions in PHP -Javascript-Ajax ?
I run Dancers & Hostess & Model jobs website, I would like to find some script which allows the girls automaticly submit to hundreds websites forms (other 3rd part model agencies) with their similar model application form info on my website previously specified,
1).Firstly the girls will fill out my
agency portfolio very detailed form ,
like this i will get all the model personal info
from them ,
2) Secondly i would like to allow
for example models to submit to
100 and more other model agencies
forms (I will find those websites before, and I
will get their field names = values
and thanks to some script would like
to connect them with every girl data
already created in my website to
submit .
I would like to implement it to my wordpress website where the girls has their portfolios instead of my pages .
I would like to offer this service especially to models , it should work like some directory submitters , The script knows names - values and fill it out itself, but I want it online - browser side, where the girls should only fill out captcha if there is and click the button "submit".After succesful submit it should offer other form to submit.
I would be very happy if you know the answer or if you can redirect me to some article
example website :[SEMI AUTOMATED LINK DIRECTORY][1]
[1]: http://www.onewaytextlink.com/links.php?type=free&pagenum=1"SEMI AUTOMATED LINK DIRECTORY"
Sorry, but it ain't gonna work. Cross-domain ajax is forbidden. Although you can avoid this restriction more or less by various techniques, many sites won't accept cross-site requests due to security reasons.