Authentication / Access
Jul 23, 2005
I have been trying to find some kind of authentication method or
script (PHP/perl/javascript or other) to achieve the following, with
no luck.
Say there are 100 files at a site. A person can choose which file to
download from a list, and to do so has to enter a code or password.
When a valid code or password is used they are redirected to a page
with a direct link to download the file.
Once that code or password has been used to download that one file
(and the same code/password can be used to access any one of the 100
files), it is then expired/deleted/made invalid and can't be used
again to download any other file.
View 3 Replies
ADVERTISEMENT
Nov 28, 2010
I have to come up with a user authenication page the logs the user in and also gives them access to do the right things. I have attached the code and the access file and have got started on a few things.I first need to create a login page with the fields username and password have that check the access database and then proceed it to a page to do the following depending on the user access. For The Login button to even be enabled the username and password must have a value in it. I have no idea how to do that
Add A User [No duplicate Users]
Modify A User
Delete A User
[code]....
View 4 Replies
View Related
Feb 17, 2010
I'm using XHR to make some REST requests. Right now I need to handle HTTP 401 responses.When a resource is requested such as a Javascript file or CSS file the browser will popup a prompt for username and password, which is normal behaviour.When I make an XHR request for POST,GET or PUT I get an XHR response which includes a status of 401 and no popup from the browser, this is also normal.The problem is when I make a DELETE request, I get the expected XHR response AND also the browser still pops up the username and password prompt.
View 1 Replies
View Related
Mar 17, 2010
How to do Basic authentication using Ajax
View 1 Replies
View Related
Jan 31, 2007
I am building a form where registered users will put their employment histories. Each employment history will need to be associated with an employer ID, which is in my database. Instead of having tons of page reloads as users enter each employer in their histories, I figured I'd use Ajax to do it much more quickly.
Then I realized that I wasn't sure if Ajax sent the user's cookie to the server and if it didn't, then I wouldn't be able to tell what the person's authentication status is, what they have access to (only their own records), etc.
So I would like to know if Ajax sends cookies to the server. And if not, is it possible to send the cookie to the server with the Ajax request so I can ensure that people are adding and deleting from their own profiles only?
View 1 Replies
View Related
May 24, 2007
I have this following strange problem on Firefox.
When i try to request something from the HTTP server, the http server
throws a authentication dialog box, where i need to enter the username
and password.
My problem is I don't see the dialog box coming in, the moment i
request the page....sometimes it comes ....sometimes it
doesnt......and when i click on the refresh button repeatedly .... it
comes after may be 5-6 tries.... one the server side i see the
following with every request.
"[3041766304] HTTPServer::authenticate: Returning WWW-Authenticate:
Basic realm="
I also tried to set the browser.cache.check_doc_frequency parameter to
1 and 2 ....still the problem persists..
View 1 Replies
View Related
Mar 14, 2011
A client of mine is trying to integrate one of his Web systems with my system. In an essence, he wants to embed my system's web UI into his "master" web page, and display it in a sub-frame whenever a user requests my system display.My system (JBoss AS) has Basic Authentication enabled. So if a user attempts to access my system he/she is prompted to provide username/password. If correct credentials are provided, then user is allowed access to my system / web pages.Now, the client is trying to automate the login. He wants to provide the login information automatically, through JavaScript in his master page (this is needed so that users of his system don't provide any credentials - all user/pwd information is passed under the curtains).What is wrong in the approach above and do you know if there is a better way to properly implement this seamless logging (knowing that Basic Authentication is the only option)?
View 1 Replies
View Related
Mar 14, 2010
A bit of a lame request - I just don't have a lot of time to look it up. I need a script to login to a website (outside my domain) and then make a very simple web request. How do I go about doing that?
View 1 Replies
View Related
Sep 23, 2010
I am sending a url request to the network using jquery.get(). The problem I am facing is that the server is having an http authentication, so when i pass the request url directly on the browser, it will show the authentication window and i can pass the username and password, but what to do when i am passing the same request using get() method.
This is what i am using currently
Anybody knows a work around for this problem, which can be used for every browser. the current error code is 401..
View 2 Replies
View Related
Sep 27, 2005
I've got a page that creates a new div and assigns it a new div id (via a counter) and adds it to the page via the DOM.
I'm trying to duplicate a particular div based on user selection and need to pass it's div id to the duplicate function.
I can't figure out how to either print the div id to screen or enable it to be passed back to the function.
Manually its fine : onClick="dupDivCont('stuff3')" and it just duplicates the div with that id.
Is there any way to get the div id into that onclick function to replace 'stuff3'?
View 7 Replies
View Related
Jul 13, 2010
I am quite new to javascript. I tried searching for this question, couldn't find it.
I want to access my url bar by running the script so that i can type a new url at runtime. How do i access it and change it. I don't want to move to a new url until and unless user hits the enter key. I only want to type it.
View 3 Replies
View Related
Jan 22, 2011
i have div that will contain numerous other div (products in a shopping cart), say up 50.of these contained divs, i need to access every 5th div begging with 1, so it'd be div # 1, 6, 11, 16, 21 etc. and then use jQuery to Add Class to these divs.can someone point me in the right direction on how to do this?
View 4 Replies
View Related
Jul 23, 2005
I think, it's very simple to do, but i don't know how ?!
i've got a html page which contains :
<div id="myDiv">
<hr />
<hr />
<hr />
<hr />
</div>
And in a javascript (client side), i want to access to the dom model of the
div :
i wan't to be able to use selectnodes on "myDiv" :
be able to do something like that :
var myDiv = document.GetElementById("myDiv");
var xmlDoc = myDiv.implementation ; // to obtain dom of mydiv ?!
var nodeList = xmlDoc.selectNodes("hr") ;
is it possible with "microsoft internet explorer" ? (it works on gecko based
browsers)
View 9 Replies
View Related
Jul 23, 2005
The browser shows the alert but causes an error "access denied" and
fails to set the upload.value to null.
for(var i=0; i < fileName.length;i++) {
if (fileName.charAt( i) ==' ' || fileName.charAt(i) == '*') {
document.forms[0].upload.value=''
alert("No spaces/wildcards allowed in file names"
+ f.upload.value);
return;
}}
View 3 Replies
View Related
Apr 17, 2007
Is it possible to read the DOM of an iframe if the iframe's src is
from another domain?
I realise I can't manipulate the DOM from another domain for security
reasons, but can I access the DOM and just read object's values?
This is what I've tried so far without any success:
document.getElementsByTagName("iframe").contentWindow;
document.getElementsByTagName("iframe").innerHTML;
document.getElementsByTagName("iframe").childNodes[0].innerHTML;
document.getElementsByTagName("iframe").childNodes[0].nodeValue;
document.getElementsByTagName("iframe").documentElement;
document.getElementsByTagName("iframe").contentDocument.
document.getElementById("testIframe").innerHTML;
document.getElementById("testIframe").childNodes[0].innerHTML;
document.getElementById("testIframe").childNodes[0].nodeValue;
View 4 Replies
View Related
Apr 20, 2007
I have a DIV with various elements eg:
<div ARID="8" ARType="Char" ARDBN="Short Description">
<label class="label f9" for="arid8"Short Description</label>
<textarea class="text sr " wrap="off" id="arid8" rows=1></textarea>
</div>
I have a variable, divs, which contains the DIV's and divs[x] contains
the actual DIV I need.
What is the best (or most robust) way to access the inner textarea -
because I want to add some text to the textarea field. I know how to
add the text but want to know best way to access the textarea.
View 23 Replies
View Related
Jun 28, 2010
access a smarty value with javascript?
my smarty value is = {$value.url}
i want to access it like
<script type="text/javascript">
function load()
{
[code]....
i tried with wrapping code with {literal} {/literal} but it isnt working.
View 2 Replies
View Related
May 30, 2006
have made a homepage with nvu and works good but want to restrict access to all pages except the main page. i want everyone that tries to access a subpage directly to be redirected to the mainpage.
is there any simple way to achieve that ? must be in html or javascript.
View 1 Replies
View Related
Aug 26, 2006
It would appear that it is not possible to retrieve CSS properties such as min-width if they have been set from a class. However, I don't want to have to style everything directly with the style attribute whenever I need these properties. Is there a reliable method of getting these properties as applied to element from a CSS class?
View 2 Replies
View Related
Mar 7, 2008
How do we access class names?
For example, this code...
If you want to parse html and find the title element you can find the class name "the-title". That's what I am trying to do.
How do I do that?
View 7 Replies
View Related
Nov 23, 2011
How can I access class name without using id. I have following div tag:
<div class="aa bb cc">
</div>
Their are three classes if I access class then which one will be access.
View 1 Replies
View Related
Mar 5, 2009
I have <asp:LoginName ID="LoginName1" runat="server" /> control on my masterpage. How can I access LoginName1 value in javascript from child page which is the currently logged in user name.
View 4 Replies
View Related
Aug 16, 2011
I have a javascript code that tries to access form value in an IFRAME
the following code works perefectly in both IE and OPERA but FireFox always give me this error message:
"window.daftar.formku is undefined"
I have also tried
alert(window.frames[1].formku.email.value);
but it doesn't work too
I always get ""window.daftar.formku is undefined"
Where did I make mistake? code...
View 2 Replies
View Related
Jun 28, 2004
I've been asked to build a small ecommerce site using this free shopping cart. However, the shopping cart designer did not tag all the elements with IDs. How can I access specific elements such as tables and forms without IDs? Most of the form elements have name attributes. Is there a method to access that? All I want to do is add some styling to the free cart so it integrates into the existing site design. The free cart allows me a header and footer so scripting is available. I can change tables and forms globally with css and tagNames but I would like to access a specific table.
View 1 Replies
View Related
Jul 11, 2004
I have a javascript variable containing the return value from a call to showModalDialog(...)
var rval = showModalDialog(...)
I can display the contents of rval using alert or in an iframe, so I know it isn't null, but I want to save it to a mysql database using php.
View 10 Replies
View Related
Jul 29, 2010
I cannot seem to fix this problem; I get an access denied error with the line colored red below. I am not calling this up from another domain, it is simply a popup that has a few parameters. Works fine in Firefox. code...
View 3 Replies
View Related