Bots Hitting AJAX Scripts
Apr 21, 2007
I was wondering how people are able to create ajax applications like star ratings scripts without having bots hit the scripts. I have a star rating script on my site which was getting hit by bots. After I put in rel="nofollow" into the link part that cut down on the nice bots but I just started getting hit by some bots again.
I have had a good amount of experience dealing with bots in the past with them sumitting my forms that were open to all visitors. After I created a "What is 1+1" hack as a check on the forms then the problem was solved. But I like my ajax scripts to conform to the ajax philosophy of keeping everything as quick and simple as can be so having confirmation on a star-rating script would be kind of weird. When you look at sites like bash.org with their + and - voting, Craigslist with their flagging, or the tons of sites that now use ajax star-rating scripts I am wondering how they are able to keep bots from contaminating the input? The only thing I can think of is that they ban them totally but this seems like it would be hard.
I should mention that I know about the various ways to deal with bots:
1. site wide - IP banning & robots.txt
2. page specific - meta tags
3. link specific - rel="nofollow"
But the problems are:
1. Site-wide: It would be a pain to constantly ban all non-good bots. Or I am wrong about this?
2. Page specific: For a site that has a couple hundred static PHP pages it would be hard to manage the creation and editing of meta tags.
3. Link specific: This doesn't keep bad bots, and sometimes good bots, from not following the link. (Some people even say the good bots still hit the link but just give it no PageRank, but it doesn't really matter)
View 3 Replies
ADVERTISEMENT
Jan 29, 2010
I came across a document online for distributing content online via Javascript and to test it out I put together a simple JS file that has instructions to build an HTML link inside a div. I can call the function remotely from sites hosted on other servers. This would allow me to change the HTML snippet at any time without having to manually change it on a bunch of sites, I would just need to change it once in the JS file.
[Code]...
View 1 Replies
View Related
Mar 29, 2010
I wan't to know what is the best way for hitting a given URL whit javascript.I just need that that page hitted know that it was hitted.
View 1 Replies
View Related
Nov 18, 2011
My sister has made a web site with a web counter and want to get the counter up by a few hundered. She cannot alter the number manually.
Is there a script i can use to get the web counter up by a few hundred?
So in other words a web page with java on so it gones on to her site (adds a count) leave it Or refresh it then reload it.
View 7 Replies
View Related
Apr 7, 2009
Im working on a real basic image viewer and im finally making some headway on this project. It works if I click search but not if i hit enter... heres my code:
<html>
<head>
<script Language="JavaScript">
[code]...
View 7 Replies
View Related
May 20, 2009
I have a form that I built, and I replaced the submit button with an image.When you click the image, it calls the .submit() jQuery function and submits the form.Because I am not using the normal submit input button, hitting enter in most browsers won't submit the form.I think that users are used to this happening, so I would like to replicate this.Can I trigger the .submit() function when the enter button is hit?
View 2 Replies
View Related
Oct 31, 2011
I have this code, but the second button is the default when the huser hits enter on their keyboad.How can I set the first button to be default?
PHP Code:
<form action="" method="post" id="form">
<input id="value" name="value" type="text" value="">
<button id="search" type="button">Search</button>
<input id="reserve" name="reserve" type="submit" value="Reserve" />
</form>
View 3 Replies
View Related
Nov 3, 2011
I am having trouble with figuring a way to set my loop up to reset values of the different coin values. Example, when I put in 78, and click calculate, it tells you how much of each coin would be given back. My problem is that I set it up and run it, but when I put different values in back to back to calculate, some of the fields don't reset.
var change_out = function(){
do {
var money = document.getElementById("cents").value;
[code].....
View 6 Replies
View Related
Feb 17, 2011
I'm trying to create an internal web app to work with Opera Mobile (in this case I am able to restrict the user base to just one browser, so not too worried about other cross browser issues). I need to be able to capture when the user hits the Enter key in a form field. I was intending just to use the standard Javascript event.keycode/which == 13 method. The issue I am having is that hitting the Enter key doesn't seem to trigger as a keypress, keydown, keyup event.My guess is it has something to do with the keypad that automatically pops up. I'm happy for any work around here, whether it is able to be done in Opera Mobile settings or by doing something different/firing a different event in Javascript.Example code:
<form name="myform" method="post" action="next.php">
<input type="text" id="mtID" onkeypress="alert('ok');"><br>
<input type="text" id="mtID" onkeydown="alert('ok');"><br>[code]..
View 3 Replies
View Related
May 20, 2011
HTML CODE BELOW (JAVASCRIPT CODE FOLLOWS);
[Code]...
This program below switches what is entered into the text filed to caps when hitting the enter button or the tab button.
[Code]...
View 2 Replies
View Related
Oct 12, 2011
I have Validation working across a form (I fire it several times before Submit to check sections of the form), and a tinyMCE editor working in 1 textarea.I want to move the contents of the tinyMCE iframe into the textarea before (that's the key here - before) the Submit button is pressed so that the contents can be validated in the section before Submit. I've used tinyMCE.triggerSave(); in several ways to move contents and then fire Validation before Submit. None work. I am beginning to believe that tinyMCE contents cannot be moved by any Javascript other than Submit, but I don't see that stated anywhere. In tinyMCE, I've tried onchange_callback: and handle_node_ change_callback: to fire functions with triggerSave and other saving commands. I can get the contents of tinyMCE to validate when I press Submit twice (others have noted this peculiarity), but not in any other way. Also, when errors are corrected in tinyMCE, Validation does not revalidate until Submit is pressed.
2 questions - how to move tinyMCE contents into the textarea without hitting Submit? Does CKEditor allow updates other than via Submit, and if so, where's a tutorial or example? Here's an example of code that is supposed to be triggered by tinyMCE's onchange_callback, but only triggers upon the second click on Submit.
function tinyMCESetValue(inst)
{
var content = tinyMCE.activeEditor.getContent();[code].....
View 1 Replies
View Related
Mar 15, 2009
I am a graphic designer who has been stuck with creating a voting system for my son's school newspaper website.
Here is what I have so far: [url]
You will see that it is a 1-10 voting system where the user drags the choices into the order of his preference then hits submit. It is working on on a functional level, but I have no idea how to make it work on the backend. I need to somehow accomplish the following:
1. Either get rid of the numbers on the left or somehow stop them from all becoming "1" when dragged.
2. Upon hitting "submit" the votes should be added to a database. I can create a database but I have no idea how to get these numbers into it.
3. The 10 choices will change each week for at least 13 weeks so the database needs to adapt to this.
Here is a zip file with all of the files used on the voting page: [url]
View 2 Replies
View Related
Nov 10, 2009
I'm using Firefox 3.5.5 on Vista 32 Home Premium SP2 and only recently noticed that (javascript/jquery being enabled) link focus is lost when you tab through a page, follow the link to another page and then hit the backspace key to come back. Tab navigation continues at top of page, not with the next link after the one in focus before.
No problems in this respect with IE8 and Opera. As soon as you disable javascript with noscript, the problem disappears and link focus stays, so that tabbing brings on the next link instead of starting on top of page again.
Just confirmed it on jquery/com (following navigation link to Plugins and hitting backspace) and on learningjquery/com (navigation links). A Google search didn't yield any answers nor even any similar reports on this particular problem.
It's even more irksome in my particular case, since I have just implemented a stylesheet switcher in order to enhance certain accessibility aspects, but ironically this particular bug leads to a loss of accessibility.
Does anybody know what might be the reason (version 1.3.2.min related?, cookies related?, etc.) for this and how to solve it?
View 7 Replies
View Related
Apr 14, 2009
I'm creating an AJAX page that is built using a PHP Class, ie the php looks a bit like this: PHP Code:
$wp_page->addjs('../var/savepolicies.js')
$wp_parser->page = "userpolicywindow.php";
$wp_parser->addlink("Home","../index.php","");
$wp_parser->addlink("Logout","javascript:logout();","");
$wp_parser->getpageid("501");
[Code]...
within this page that has been created, there is an AJAX tree folder which calls another page to be loaded into a DIV by AJAX again. Code:
[Code]...
I don't know why it doesn't work because the page has been loaded with the JS file, but as soon as the link is added afterwards it doesn't work. I take it this is because it doesn't know where to find the JS, but how can I overcome this?
View 4 Replies
View Related
Mar 24, 2010
jquery provides ajaxStart() and ajaxStop() events. Those two events do not seem to be triggered if the ajax requests are made by Microsoft Ajax tool Kit (from ASP.Net code). Is there any way to bridge those two event models? If not currently possible, is there any future initiative or plan out there to make this happen?
View 2 Replies
View Related
Jun 21, 2010
i was using $.ajax method to get my ajax page on my main page,which is working great.But now if i have links in that ajax page then i can't open them in that same div,the links are opening in new window,but i want to open in same part,i tried google it and then found, i have to use iframe instead of div.how to do with only use jquery and div.
View 3 Replies
View Related
May 31, 2010
i have a series of <select> fields. The first one, via ajax(), generates a 2nd one, based on the first ones' data with the .change() method. there is then a 3rd <select> - who's data will depend on choice of the second one although step 1 works, and i can generate the 2nd one, i still can't generate the 3rd one.
when i test the script on its own, both the 2nd and 3rd <select> fields are fine - but not via the ajax, which leads me to believe that the .change() from the 2nd one, isnt triggering the ajax call - its not being picked up (even the 'hello' alert isnt working).
[Code]...
View 2 Replies
View Related
Oct 12, 2010
I am using jquery for getting ajax responses from server side functions.
I am in a situation where I need to make two ajax calls one after another and the second one is dependent on the response of the first one.
I have tried to use a code which is similar to this one?
$.ajax({
type: 'GET',
url: 'myURL',
success: function(data)
[Code]....
Is it possible to get two have two ajax calls , one dependent on the other?
View 1 Replies
View Related
Jul 27, 2011
Am calling Webservice in one ajax post, In the success funtion am calling another another method in same webservice through another ajax post method. First ajax post is getting called and returning the string from the webservice method but the inner ajax call is not getting called. I have placed the code here.
[Code]...
View 1 Replies
View Related
Oct 17, 2006
Am trying to set up a very simple AJAX script for my website. The
javascript i have in an external file which reads as below.
This works perfectly in firefox but IE doesn't display anything at all.
No error messages, just a blank IE window. If you look at the IE source
this html is all there it just won't show it! Code:
View 5 Replies
View Related
Nov 21, 2006
I was playing a little bit with a lot of ajax frameworks. I have even
wrote one small by myself. But one thing still drives me crazy: Whenever
I'm doing an ajax call I need to specify handler to handle data coming
from a server script. That means that almost for every action I need two
functions.
Since I'm still new to all of this I'd like to ask how can i achieve
something like this:
function function_name(el) {
var i_need_this = get_what_i_need(el.id);
return _i_need_this;
}
where get_what_i_need function is returning some information using ajax
from a server.
View 2 Replies
View Related
Dec 14, 2006
I want to update part of a XML output (generated by Perl CGI). I'm using XSL to transform the XML.
Can I use this approach?
I need to resort the contents of a table, that gives me the results
from a query, when someone clicks on one of the names of that table.
View 4 Replies
View Related
Jan 16, 2007
Is there any books i can buy from local shops or any websites that can help you learn the basics up to advanced ajax?
View 8 Replies
View Related
Mar 5, 2006
I've noticed a strange behavior with Ajax in internet explorer. In my page I've four links, that call four different pages by using XMLHttpMethod. By entering for the first time in the page and selecting the various links, all work correctly (the 4 pages are called and displayed into the page), but if I click again on a link previously clicked, trying to repeat the call, the responseText won't to appear!
View 2 Replies
View Related
Feb 25, 2010
I'm new in javascript and ajax and I need a IDE to write and debug my codes and I want it to be something like phpdesigner or dreamwawer that have snipper and suggest me when I write some of the code.
View 2 Replies
View Related
Apr 15, 2006
I would like to have suggestion on which ajax library (open source) is the best to try, in term of:
1) ease of use
2) best support
3) best future (huge community)
View 1 Replies
View Related