I have found a lot of posts on hashing at the client but none that quite answer my question.
I would like to hash user passwords at the client so that I don't have to send a plain text password across the web but I have a question as to how i might do so successfully when using a salt.
The normal procedure of validating a password is.....
Possible Duplicate:
How to access javascript variable value by creating another variable via concatenation?
In PHP I can have:
$theVariable = "bigToe";
$bigToe = "is broken";
such that:
echo "my ".$theVariable." ".$$theVariable;
would display
my bigToe is broken
How would I go about doing something similar to that in Ja...
Hi,
Could anyone tell me why my $_SESSION variables are not being carried over to my other PHP page that is called with ajax.
All pages have session_start();
It works on my local machine, but when I upload it to my server, it doesn't work, and on refresh it takes me back to the login screen...
EDIT:
The session variables saved once...
There are many MD5 JavaScript implementations out there.
Does anybody know which one is the most advanced, most bugfixed and fastest?
I need it for this tool: http://www.bruechner.de/md5file/js/
...
While browsing the code of some websites I sometimes notice that some JavaScript files are included like this:
<script type="text/javascript" src="javascripts/jquery.js?1252521516"></script>
But I don't see what the jquery.js ?1252521516 part of the src parameter does. Can anyone explain this to me please?
...
I'm having some trouble to figure out how to make the "page load" architecture of a website.
The basic idea is, that I would use XSLT to present it but instead of doing it the classic way with the XSL tags I would do it with JavaScript. Each link link should therefore refer to a JavaScript function that would change the content and menu...
Interfacing with legacy code, and I've got something like this:
Event.observe(some_form, 'submit', [some anonymous function])
I'd like to grab that anonymous event handler back out, is there an easy way to do that in Prototype?
...
using drop down list box in html
...
I'm resizing something inside a tab. I want to also resize a different element in the same tab. However, selecting that element is relatively slow, using :visible to figure out which tab panel is visible, and so on. I want to cache the selection, but how? Does alsoResize even accept an object?
// The actual selection is more complex tha...
given a parent, how can i get its descendants so that their hiearchy is kept.
parent > des1 > des2 > des3
parent.find('*') simply returns not in order. it gives
find('des1, des2. des3')
what i expect was
find('des1 des2 des3')
...
I'm having a problem with getElementbyId as follows:
<script type="text/javascript">
<!--
function show_links(locale) {
var box = document.getElementById(locale);
if(box.style.display == "none") {
box.style.display = "inline";
}
else {
box.style.display = "none";
}
}
//-->
</script>
...
If you enter an invalid video id in YouTube (e.g. http://www.youtube.com/watch?v=XXX) it will redirect you to a page saying it is a malformed video ID. Is there a way to get the original URL (in this example "http://www.youtube.com/watch?v=XXX") in javascript?
(I'm talking about Javascript that will run on the browser after the redirect...
Context: HTML widgets generated using a Django ModelForm and template, jQuery 1.3.2, JavaScript on IE8, Firefox 3.5 or Safari 4. Procedures: An ordinary JavaScript function with some jQuery inside, or jQuery Enlightenment, Cody Lindley, "Adding new functions to the jQuery namespace," p. 116.
I have a jQuery construct that is repeated se...
In the following code, I can call baz. Also somewhere else I read "JavaScript has function-level scope". I know, Im confusing myself somewhere. Can somebody make me understand please?
/* An anonymous function used as a closure. */
var baz;
(function() {
var foo = 10;
var bar = 2;
baz = function() {
return foo * bar;...
var somestring = "mary(3) apple(2) sky(1)";
$("#removelaststring").unbind("click").bind("click",function(e){
somestring = somestring.replace(/\(\d+\)*$/, "")
alert(somestring);
});
i should get
mary(3) apple(2) sky
then if i run it agan
mary(3) apple sky
if run again
mary apple sky
however this doesn't happen, no matter how...
Work on asp.net vs05. I have three type of value Like:IsDesign,IsPrinting,IsInstall they are bit type. To represent this bits values on my gridview I use three checkbox columns, GridView control with three header checkbox and checkbox for each individual record. When you click the header check all checkboxes when the header checkbox is...
Im using the following JS
<a href=# onClick="if($(this).next('div').css('display') == 'none') { $(this).next('div').show('fast'); } else { $(this).next('div').hide('fast'); } return false;">Add a Street Address</a>
and the following html
<div id=entry>
<div id=label>Street</div>
<div id=input><input name="" type="text" class="lon...
I have a 2 dropdown lists side by side. When user selects from the first list, i need the second list's options to be displayed.
The sub-options will be retrieved from a database. I have a page that will return the necessary html given the specific parent. I just need the first list's selection to trigger an update of list #2.
Whats th...
I have the following code
<div id=form>
<div id=viewimage>
<img src="placeholder.png">
</div>
<div id=upload>
<form action="upload.php" method=POST enctype="multipart/form-data">
<input type=file name=image>
<input type=submit value=Upload>
</form>
</div>
</div>
I need th...
Hello, before this I wrote all jquery-code into main fail. Now I want to move it into another js-file. The problem is that it doesn't want work correctly.
Here is an error by FireBug:
$ is not defined
$(document).ready(\n
So, as I understand, I have to initialize $-var... But how?
Thanks.
...