So, I feel like I'm really close to a breakthrough here but moving forward is going to require some help.
I have a survey, we will call it "test".
To get to the survey, you click a link that has your email included as a jscript passthrough (e.g., https://osu.az1.qualtrics.com/SE/?SID=SV_abcdefg&ID=john.doe#emailtest.com)
I want to autoauthenticate john doe against a panel.
What I mean by that is that I want to use an authenticator that doesn't require a person to enter any data, but uses the data in the URL as an authenticator. You would think this can't be done, but I've also learned that you can run javascript in the description field by looking at:
https://sites.google.com/a/cognitivescience.co/research-using-qualtrics/home/functions-capacities-in-qualtrics/using-qualtrics-as-a-personalized-web-service-with-the-authenticator
However, all that does is change the label for the field and doesn't actually authenticate. It does, however, process the next button. This suggests that if I can fill in the authenticator with the embedded data passed through the URL using JavaScript, I should be able to autoauthenicate.
Any ideas?
Strange example; I don't see how it ever would have worked. Anyway, if you add the embedded data field ID to your survey flow before the Authenticator, then you could put a script like the following in label field:
<script>Qualtrics.SurveyEngine.addOnload(function(){$$('.InputText').first().value="${e://Field/ID}";$('NextButton').click();});</script>
Related
I have a simple postcode search in my wordpress site. The user enters a postcode, clicks search and the browser directs to a new URL based on the postcode entered.
Presently, I have a large switch statement in the onclick handler of the button, which parses the postcode input in a text box and generates some display text and a URL which I then launch using window.open.
It works OK, but as I add more and more postcodes its bloating the code loaded into the browser and it's all visible in dev console. I'm also limited when it comes to making changes as I'm having to go in and modify the code to implement logic directly in my onclick handler. It's a bit of a mess!
What I would like to achieve is to store all of the relevant information in a mysql database, query the DB when the form button is clicked, and then launch the URL which will be returned by the db query (well, there'll be a bit more logic in the server script than that but ultimately I'll just be returning a URL and some text).
I'm struggling to get my head around how to implement this. It appears the DB queries need to be in PHP on the server and has to be queried asynchronously? I'm getting lost down a rabbit hole of AJAX which I'm struggling to understand!
I'm not looking to asynchronously update content on my page - at the point that we're running code in the onclick handler, we're ready to launch a new page based on the postcode entered. It appears the required solution is a little more complex than I hoped it might be.
Can anybody suggest how I might implement this? Do I have to use PHP & AJAX?
Thanks
I have a very simple HTML form which is for pre-registering for my car show. Unfortunately it has attracted the attention of spammers because there's an "address" field which they use to inject their spam URLs into.
I've added javascript form validation which says if the address field contains any slashes (like "http://") then it pops up a box telling spammers to go away.
I've added htaccess that I thought was supposed to stop users from being able to hit the PHP file which is used to submit the form into the DB without coming from my domain first.
I had recaptcha, but they were able to get around that as well so I removed it since it wasn't effective.
I know one flaw is that I can browse directly to my PHP file and it will insert a blank row into the database - how can I prevent this as well?
Does anyone have a good site or steps to take to stop these bots from hitting my form?
ReCaptcha, if well configured, should have solved your problem. There's no easy way to "go around that".
I've added htaccess that I thought was supposed to stop users from
being able to hit the PHP file which is used to submit the form into
the DB without coming from my domain first.
That's probably your problem. The bots are problem just calling the registration page with the right parameters. One way to get around it would be to display a hidden input field on your form, populate it with some random value, and check that you get the same value when the form is submitted.
But again ReCaptcha should work... if it doesn't you should ask a specific question about that.
first of all, validate the data that are send from the Form, check them if are valid, not empty. etc. If you are using a framework those have validation classes(use it), else create some,
second put back the captcha and don't send any data to the server if this isn't valid
Here is the thing, I have a form in my web site looks like something like this:
Name: ----
Last name: ----
.
.
.
something like this, I work with a site that I have to send this information and type this requests again in that site with the same fields.
It means I want to copy my forms data to the target website's form with the same fields.
I do not have the access to target website's codes and I'm just a user there.
So I want to know if there is a way using Jquery, javascript or anything help me make a button that When I click that the data copy from my site to the target website.
Is it possible to access another browser's page tab inside another one??!! with jqyery?
Thank you in advance
I haven't tried your problem, and this is just an opinion.
If that website is using a get() method, you are saved. You can form a query string in the same format and execute it, else if you are trying to do something like that automatically if there is some captcha check you may fail, and the server will be blocking you thinking it's a DOS attack.
And this is something which may be helpful to you.
Javascript communication between browser tabs/windows
var w2 = window.open("Website you need to fill the form");
Now use w2 as owner window, in order to access the elements.
Kindly excuse me if I am asking a simple question. Please don't hesitate to edit my question to do the correct approach.
I am doing the java Chat project.
I think You are all aware of that in facebook and GTalk , when your friend is typing the message, You can able to notify that the User is typing message will be in your displayed in your end.
When he sent the message or completed the message typing , the User is typing message will be hidden.
How they are identifying that the other user is currently typing or not ?
Good answers are definitely appreciated.
Since your question doesnt include any code. This answer has to stay basic.
If your using JavaScript there many ways you could watch if the users typing:
For example if the user is focused on the input box and there is a key down event then send an ajax message saying "USER ID TYPING" then the server can handle that.
I think this is a similar question: "User is typing" function in chat
Please give some code so we are able to help!
-PLEASE ALSO NOTE-
Your implementation depends on what server side platform your using and how you want to interact.
I've done something similar in PHP where every 10 seconds i would see if there's a change if there i would send a AJAX request to PHP then update the clients that need to know that information
And for the message hiding or showing you can use:
JavaScript to change the visibility of the span that contains the message.
If you use jQuery then its $('#spanID').hide() or $('#spanID').show()
I'm trying to create a work flow that will send an email to the users in the contact field for the page that the initial link was followed from.
In other words, a user clicks a link on page ../top/sub/pages/page1.aspx which takes them to a form here: ..top/lists/feedback/newform.aspx. Once they submit the form on the top level page it starts a workflow (at ..top/lists/feedback/) which will email the users in the meta data for the referrer page (../top/sub/pages/page1.aspx) and finish by deleting the feedback item.
My problem lies in trying to email the correct user. I have tried to make a work-flow on the sub-site, but it seems like the work-flow has ZERO access outside of its directory.
My next idea would be to try and send the user as a parameter (as part of the form) using a script, but I'm unsure of how to access the information I need.
How would I access the page's contact user? Am I even on the right track?
ps. I dont have access to the server and therefore am unable to use visual studio
Probably there might be some dirty workaround.
add a hidden field to you top/lists/feedback/
add a delegate control that stores the contact on the page the user came from i.e. in the user session (or somewhere in SharePoint or in DB) and place the control on the pages ../top/sub/pages/ (or place it everywhere but make it work only on the pages)
add an itemeventreceiver in the list ..top/lists/feedback/ that grabs what the delegate control saved and inserts it into the hidden field in the item that is created in the ..top/lists/feedback/newform.aspx
use the hidden field in the wotkflow.
I hope you can either accept it or generate you own idea reading my answer.
Good luck!