In this AJAX based voting sequence the output is always being displayed in the last div tag, no matter which div or form the input information is coming from. I would like the result to be so that when a user clicks on the first question, the result is displayed in the first div tag, and for...
there are two things that you can do for this. you can either modify the css of the div that it's in, or something simpler:
[code]
<body>
<p align="center">
<img src="...your image">
</p>
<body>
Ok, so with the server side technology and everything in place, and the database and table created for all this stuff, it is STILL not working. The code updates and php are as follows:
function ajaxFunction(count) {
var xmlhttp;
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
}...
I have the server side technology, and access and all, but I don't have the code. I'm using PHPmyAdmin and MySQL through my hosting service. My main problem is just storing and recalling the data for all users to see.
thanks for all the help guys. I am really new to this, and though it is just an experiment i feel like i have to make this work.
are there any tips on how to store the info into a text file and recall it or something that you might be able to give me? i've tried that with some samples and...
I'm having some trouble storing data for a click counter. Every time someone clicks on "Good" or "Bad", the number next to it will count this, but the problem is that as of yet the count gets reset to zero whenever the page is reloaded. The code is as follows:
<script>
function...
Hi all,
I am really new to all this, and any help with my problems would be awesome. I am working on a function that allows the user to click on a "Good" and "Bad" link, and a number next to it will count the number of times that different users have clicked on each piece of text. Here's the...
Awesome, i really appreciate your help on this. How would I input and recall the data though? I've searched this like crazy and gone through a ton of books, and I can't really find anything that points me in the right direction.
i'm assuming then to store the count in a file, the file will have to be a page on my site, and i would modify the "document" text. and that if I wanted to make separate counts on a line or on a page, i would modify the "mycounter" and "counter_score" functions? am I close?
thanks a ton, i really appreciate it. if i can get a few more specifics from you possibly i would appreciate it (i'm new to javascript).
Where would I insert this code specifically? There a few places I would like to see this happen specifically.
--and--
I'm assuming that I need to...
I am looking to add a function to my site where a user is able to click on a line of text, and the number next to that text will go up by one. I would prefer it if the user was limited to one click, but that's not entirely necessary. For two examples of something similar to what I'm requesting...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.