|
Hi,
I am developing a donation website and I want to use paypal as the payment method, this is my first time to use paypal as a receiver, so I have a few technical questions:
1. How can I automatically accept payments?
2. How can I programmatically detect that someone has paid "some amount"?
3. I want the user to provide some information with his payment, such as Name, Gender, Country so how can this be done and how can it be linked to the payment??
any help please?
Thanks alot!
And ever has it been that love knows not its own depth until the hour of separation
Mohammad Gdeisat
|
|
|
|
|
see if there is any thing on paypal website to answer you question.
|
|
|
|
|
Hi,
answer to your question:
1. You must have a member of paypal and your country must have a paypal unless you have a creadit card that accept paypal payment.
2. If you have a database that detect if someone pay you. But the quickest thing to know if someone paid you, logon to your account in paypal.
3. In your account at paypal.
Hope this one can help.
Thanks
Hi, Please select Good Question if my answer are fit to your Question.
|
|
|
|
|
1) You can make buttons in the "merchant" area of the paypal website.
2) You can use ipn and pdt. This is quite a big task so set aside some time - there are free scripts which you can find on paypal & google to help you. Involves using basic sockets.
3) ONce again you can use ipn &/or pdt. Alternatively you can make all the forms on your site and POST the info to Paypal.
IPN = Instant Payment Notification
PDT = Payment Data Transfer
|
|
|
|
|
I have html which contain iframe in it.
I have a button in my html which will call javascript(ajax) function and I will get server response from php script.
Normally if I want to display it in my main html, I can use:
var spantag=document.getElementById("displayCamera");
spantag.innerHTML=xhr.responseText;
How can I display the result into other html file/my iframe(let say I have span id in html of the iframe).
|
|
|
|
|
try window.iframeID.spanID
where iframeID is the id of your iframe and spanID is the id of your span.
|
|
|
|
|
Its done by
window.frames["displayCatalog"].document.getElementById("displayCamera").innerHTML = xhr.responseText;
So I have to change the iframe's attribute to name and not id.
Thanks though for the heads up.
|
|
|
|
|
Dear All
I need your help about fading news in javascript.
Thanks
|
|
|
|
|
Dear Ahmed,
Please describe what you want in detail.
Thanks
|
|
|
|
|
Dear Yusuf
There is a column for news in the website that i am working on, in the past i used to use marquee for news or sliding news but now i want to make it alittle cool and attractive when i searched i found out that fading is fair to have in my website that automatically it disappear and after short time it appear
i found out some codes but they were not working properly.
it will be better to include links that when one message fade in it should be link to a page and the same for others.
if you dont undrestand wht do i mean, plz check here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3065&lngWId=2
Thanks
|
|
|
|
|
try jquery or similar frameworks - easier than making your own scripts.
|
|
|
|
|
Hi,
i have an ocx file in webserver and i included it in my html page ..
and when client requests for that html the ocx gets installed with his permission but the issue it"s getting successfully installed on Admin machine..but in non-admin machine even the message box that prompts to install ocx is not displaying.....is there any limitation for non-admin...
pls help me out...
|
|
|
|
|
|
I have an Internet Radio application based on c#, and I want to publish it using UDDI.
How can I do it?
thanks for any help I don't know where to begin...
|
|
|
|
|
|
I want to use a script on my website that scores a multiple choice test, and what I have works pretty well. Before I use this script I want to make sure I understand everything it's doing. I understand most of what is happening, but I don't understand this particular loop:
for (i = 0; i < numberOfQuestions; i++) {
currentElt = i * numberOfChoices;
for (j = 0; j < numberOfChoices; j++) {
currentSelection = form.elements[currentElt + j];
if (currentSelection.checked) {
if (currentSelection.value == correctAnswers[i]) {
numberCorrect++;
break;
}
}
}
}
I understand that the first for loop is running through each question, but what is currentElt and why is it equal to the question times the number of answers? What is the second for loop doing with the numberOfChoices variable. The full script is below:
<script type="text/javascript">
var numberOfQuestions = 10;
var numberOfChoices = 4;
var correctAnswers = new Array(10);
correctAnswers = ["a", "b", "b", "a", "d", "a", "b", "b", "a", "c"];
function scoreQuiz(form) {
if (outOfTime == true) {
window.alert("You have exceeded the time limit of the test." + "\n" + "Please try again.");
return true;
}
var numberCorrect = 0;
var currentElt;
var currentSelection;
for (i = 0; i < numberOfQuestions; i++) {
currentElt = i * numberOfChoices;
for (j = 0; j < numberOfChoices; j++) {
currentSelection = form.elements[currentElt + j];
if (currentSelection.checked) {
if (currentSelection.value == correctAnswers[i]) {
numberCorrect++;
break;
}
}
}
}
form.correct.value = numberCorrect;
form.percentage.value = ((numberCorrect / numberOfQuestions) * 100) + "%";
}
var remainingTime = 600000;
var outOfTime = false;
function timeLeft() {
if (remainingTime <= 0) {
outOfTime = true;
}
else {
setTimeout("timeLeft()", (remainingTime));
remainingTime -= 1;
}
}
</script>
If anyone can help me understand this, or show me a better (simpler?) method of achieving the same thing I would greatly appreciate it.
|
|
|
|
|
dude,
your code is pretty wonky,
try this out to make a quiz
http://www.cj-design.com/products/free_downloads/javascript/cjmultiplechoicequiz[^]
your time calculation will never work since it is declared at the end of the function.
cullentElt is "current Element"
you are navigating to all the controls in your form and cheking one by one if they are checked or nor, if they are they shall be matched with the correct answer.
i would rather suggest you to use event, for change in option, calculate the score at that time itself,
it will make your code hardly 5-10 line.
read about "events" in javascript.
|
|
|
|
|
Thanks for the help. I know that timer isn't working; I will probably fix it today. Thanks again.
|
|
|
|
|
hello,
I am trying to develop a project using smart card.
I am using SCardX_easy activex control in my webpage to extract info from my smart card.
what i recieve in DataBuffer is a string of hex values separated by a white space and without a leading zero.
for example
ReceivedDataBuffer = "5B 50 0A 3E 5C 77 D8" and so on.
now i need to convert this to a meaningful string
say "test"
how do i do that.
this is what i am currently doing:
------------------------------------------
var data = new Array();
data = ReceivedDataBuffer.split("0A");
for (i=0; i<data.length;> {
AddSubLine(data[i]);
}
--------------------------------------------
but instead of the data[i] containing hex i need string.
"0A" is the newline character in hex
i intend to separate data using newline as data length is variable in nature which is being stored in the card.
thanks
also any suggestions regarding my approach would be appreciated as i am basically a c programmer and have been taked javascript.
i have gone through the basics but am stuck
|
|
|
|
|
what's wrong with Myeclipse7(all in one)???too slow,always stuck when I open a file
Undeniable:More information,more abilities,more energies,more time!
http://www.blogjava.net/tidelgl
|
|
|
|
|
I think you are in the wrong place...
|
|
|
|
|
The Post you have submitted has three Critical Errors. Please check the log for errors.
LOG:
<error 6765=""> Not Enough information br mode="hold" /><error 8765=""> Wrong Forum br mode="hold" /><error 7876=""> Try Eclipse Website br mode="hold" />
SUGGESTIONS:
<suggestion 0001=""> Try Google br mode="hold" />
End of post.
|
|
|
|
|
Hi,
I was unable to login in my help-desk intranet site eventhough i have supplied correct password..
Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Pls help me out...
|
|
|
|
|
Are you sure? Did you contact the person in charge (who i really hope is not you)?
|
|
|
|
|
There is nothing we can help you with this issue. You need to contact the system administrator of your help desk intranet site
|
|
|
|