hi friends,
I am developing a website with php, i'm also using javascript in it.
I have to refresh captcha in my website with a refresh button when a captcha is unreadable to a user.
how can i do this.
please share any idea or codes to me
Thanks
...
Instead of me hitting the database each time someone types a character into the search box, I want to create static .js files.
What are some techniques I can use to create static .js files that are basically arrays to load the jquery autocomplete plugin with.
My product sku's look like:
ABC1234
or
Alpha Beta C 1234
(abc is the...
I don't know much Javascript - just little of core language, but that can be learnd - no problem. I want to get started writing simple demo animations/games with canvas.
What I'm not sure about is correct ways of embedding Javascript in pages to make resonably cross-browser (say without IE). Should I just start with vanilla JS or use s...
hello
i have a Select input and it's name is "item" for example
<select name="item">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
i want to add a button that will copy this Select and removed Selected value if any and then append tha...
hi,
I need some ajax code to assign value to a session
for example
$_SESSION['verif_code']
i am generating a random number to assign value to this session
i need some ajax code to refresh this random number function and assign value to this session.
does any one have an idea please share it with me
Thanks
...
Ok, so I'm trying to make a form that will take given text and direct you to a chosen search engine with the text as the query. I'm having problems getting the javascript to (re)direct.
What's interesting is that if you make the submit input a button and do onClick="searchForm" and then click on it, it will work. But then you can't type...
Given the following code:
function a() {}
function b() {}
b.prototype = new a();
var b1 = new b();
We can stay that a has been added to b's prototype chain. Great. And, all the following are true:
b1 instanceof b
b1 instanceof a
b1 instanceof Object
My question is, what if we don't know the origins of b1 ahead of time? How can we d...
How To know if content of the ckeditor is changed. I need to call a function in javascript whenever the content of the ckeditor is changed.
...
having an issue with simple JSON parsing, wondering if someone could quickly spot any errors in this syntax?
function getFavs() {
$.getJSON('http://www.example.com/scripts/test.json', function(data) {
$('#main-content').html(data.foo);
});
}
the JSON file is as follows:
{
"foo": "The quick brown fox jumps over the ...
I have a classified website which uses MySQL, PHP, Solr (java) etc etc...
I wonder where I should start after purchasing a VPS package from my provider.
There are first of all several packages, I am going with Linux because as far as I know it is the most stable system.
But I have never used Linux before!
What is Ubuntu, and which ver...
<div id="view"></div>
<div class="bar" style="padding:0px;" id="bar">
<script>
var bar = '<img class="myclass" src="button.png" >  ' ;
$view = jQuery('#view') ;
$view.dialog({
height: 650,
width: 650,
buttons: { "welcome" :
function() { msg() ; }
...
This question is specific to the iMacros suite in particular.
What is the best way to go about automatically starting a javascript file that controls my macros inside firefox?
Basically, I have an imacros.js file that calls a series of imacros.iim files. How can I run this javascript automatically?
...
Hello folks, I'm writing a custom ATL ActiveX component, but I'm having this little weeny problem: Visual Studio insists that every function defines in the *.idl file has to have a HRESULT return type, even though I want to have a ULONG return type.
[id(3), helpstring("method addh3h3")] ULONG addh3h3([in] ULONG x, [in] ULONG y);
It gi...
Okay,
so I have this script which works fine with IE but won't work with Firefox. So I was wondering if anyone has had this problem and maybe got a solution.
$.ajax({
type : "POST",
url : "../php/insertUser.php",
data : dataString,
success : function(msg, status)
{
var repl...
When I try to get an XML file (RSS feed) from a site I can't
get it.
The browsers IE and Firefox tell me that I have no authorization.
Now I'm behind a proxy but maybe does that message meaning
that from a site (mine) I can't get other resource of another site (domain)
for security reasons?
...
Hello,
I have a dropdown which lists heights, like this:
5' 9"
5' 10"
5' 11"
6' 0"
Etc.
When I view source, it looks like this:
<option value="5' 9"">5' 9"</option>
<option value="5' 10"">5' 10"</option>
<option value="5' 11"">5' 11"</option>
<option value="6' 0"">6' 0"</option>
How can I se...
I am using jqgrid with edit cell options. Both methods getRowData and getChangedCells returning [object, Object]. Please help what could be problem.
...
Hi,
Can someone tell me why the code below doesn't work. I think my theory is sound, I am just missing some vital component.
'#tweet' is the id assigned to the form submit button. I want it to check whether the input has less than 141 characters, if it doesn't, alert the user and do not submit the form.
Currently it does nothing.
...
hi,
I using 3 .asp pages
Page 1 :Parent.asp
page 2 :Subparent.asp
Page 3 :Child.asp
using javascript in the child.asp. I wand to pass data from Child window(iframe) to Parent window
<title>parent.asp</title>
<html>
<body>
<iframe name="I1" frameborder="0" scrolling="no" src="Subparent.asp" width="100"
height="100">
<title>s...
I am a c# asp.net developer and need to implement a number of flash website banners. Previously for static image banners I have implemented on_click code behind or javascript to log the banner has been clicked back to a database and process the re-direction.
I don't have much knowledge of flash other than I know that a flash program ca...