My Google-fu is apparently pretty weak today. I'm unable to find a good reference for this problem I'm having on a client's site.
They have a script on their remote, secure server and our pages (some of which are secure and some which are not) call it.
The problem appears to be on the unsecure pages calling the client's remote, secure JS file. I'm told that on FireFox and Chrome, it times out and produces an error on our back-end.
My site is secure but also contain non secure items from google adsense. users have the options to view secure only or secure and non- secure item. I would like to be able to identify what that user chose so I can show some other things if they choose to only see secure items.
I would like to implement a login functionality to my website.
I've written a login form like this:
The problem is: how can I send the username and password to the server in a securely way? I mean, if the server sends the whole page in HTTP then the user wants to log in, he would not be able to send it in HTTPS, unless the server sends the login page to the user in HTTPS. But I would like this thing to happen with no full page refresh.
I am using a Jquery/PHP/MySQL login script which is supposed to display an error or success message when the user enters their username/password and also if the username/pw is successfull go to a secure page. Right now as I have it coded, this isn't working properly. Basically nothing is displayed either way.Also,wasn't sure if I just needed to replace, the ?secure-page part with the file name of the page I want to go to if successful?Here is the code as I have it now.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html>[code].....
The data that needs to parsed is on an asp page secured by a login form. I have access to the site, but I was wondering how one would go about writing a script that would automatically access the page and grab the HTML.
Garbing the HTML then parsing the information I understand. I just don't know if its possible to access the data through an external script (run from another server) even though we have access rights to the page requiring login that is situated on another server.
The reason for this is because we don't have direct access to the database.
I have a page that is on a secure server, lets say https://server.com and I have a link on a page /somelink.html. I am trying to use jQuery to change the link to http://server.com/somelink.html
Here is the code I have come up with: $(document).ready(function() { $("a[href^='https://server.com']") .each(function(){ this.href = this.href.replace(/^https://server.com/,"http://www.server.co"); }); $("a[href^='/']") .each(function(){ this.href = this.href.replace(/^//, "http://www.server.co"); }); });
However, my code only seems to work in Firebug after everything has rendered. I assume that the links are changes when the Document is Ready but before the server address is attached to the links.
I am working on a web application and have run into a problem. From a main window (Window1) I open a child window (Window2), and from that child window I open a grandchild window (Window3). I need to call a funcion that resides on Window1 from Window3. I do this successfully by calling a function with window.opener on Window3, which calls a function with window.opener on Window2, which calls a function on Window1.
My problem comes in with the case of a user closing Window2, and trying to carry out the function on Window3 that calls the function on Window 1. I have already tried window.top, but it doesnt seem to work. window.opener of course returns the error "window.opener has no properties".
I have been a mainframe programmer for over 20 years - I have a new project that requires browser pages written in JavaScript. I currently begin with a HTML page that assigns the values retrieved from a third party vendor's API to an array. I pass this array to another page to build a table full of links - when a client clicks on one of the links, two variables are put into yet another array and a third page is called, successfully passing the required data. Ultimately page 1 and page 3 will be .asp pages so that additional third party vendor API's can be called. The problem is this: after the third page is called from the second page, it displays for a second and then returns to the second page. When I click back I can see the third page, followed by the second page, and finally the first page. My question is this: why is the third page not displaying in the browser? I'm sorry if I have not posted this correctly as I really am a mainframe programmer and this is my first time doing anything code related with web pages
I like having scripts external, but I wonder about the security of internal anyway. Someone could save and change the HTML, right? But is that possible with an external script? I always thought not (unless there was an error), until a person on this forum was able to grab the script I was working with at the time. No problem with that, but it brings up the question in my mind about security in general surrounding java-script.
My idea is to create a safety system that indicates the safety of the password. I have a field in a form called PASSWORD and I want that if the person writes only letters by means of a document.write there appears a phrase that says: easy password. If more than 8 letters appear: medium password. And if writes letters and numbers appear: high password.
Is there any type of script or plugin out that has a secure, DropBox-like interface? I wanted clients to have a username and password, and that username and password to be tied to a mysql db of sorts that allows them access to their specific FTP space without them knowing the actual server info.
I've got two seperate websites that I'm working on. I am doing the design of the main website and the second site is a secure login area which another person has created.
My question is... can I put a login form on the main page, and then have it transfer the information into the secure login? The purpose being so that people can login directly from the main page instead of having to click to go to the secure area and then log in?
I'm trying to create a button similar to Facebook's 'Like' button which is applied to each item in a list. When a user clicks the like button this item is favourited for the logged in user. For the moment I do this in the following way:-
Obviously this is very unsecure because anyone can easily modify the item id stored in the like() function in the onclick property and like any item thes guess the id of.
My question is how do I make this secure by either not displaying the id of the item but still having it accessible to my like function or via some other method?
i do not know much javascript, but i am trying to call several different scripts from the same web page and it is not working. Is there something i can do or is this not a thing that is do-able?
I have a single webpage that contains information on all 50 U.S. states. There are 50 links at the top to jump down to the state you want, and at the bottom of the information for each state a Back to Top link.
I'm making the Back to Top link into something more complex, and it will require three or four lines of code.
So that I don't have to repeat the code 50 times, and create a burden when I need to edit it, I want to place it in a .js file and call it x. Then below the information for each state I'll simply have:
Does calling code from a .js file 50 times slow down the page load? Which method would load faster?
Is it possible to call a WSDL document behind authentication with an existing SOAP service to pull data from a database behind authentication in Javascript?
Ultimately, I want to insert script into a spreadsheet to aggregate data from a database behind authentication.
I'm trying to do something simple: find out which page had the link which got me to the current page. I am using window.referrer, in IE6, but it never has anything but blank in it. The scenario is that the user must go though a sign on page to get to the goodies. If they go direct, they get bumped to login:
if (window.referrer != "login_page" { window.location.href = "login_page" }
But the referrer is no present. I've also tried looking at window.history but to no avail. Are these all netscape specific and if so, what is an IE equivalent?
I have an iframe inside of a parent page. How do I call the onChange function in the parent page from the ddlProfileNames dropdown in the iframe page? Thanks.
where EnableCheckboxes is a javascript function on the page. This doesn't work (doesn't disable the CheckBoxList), although the EnableCheckboxes function DOES work when I call it in other ways, so I'm sure that the problem is that I'm not calling it properly on page load.
But what I wanted to do is, says I have two pages: page1.html and page2.html, and in page2.html I have a few JS functions namely myFunc1(), myFunc()2 and myFunc3(). Then I am inserting a few links in page1.html with an iframe below all the links with the name="my_frame", and what I want to do now is for the 3 <a> links I want to open up page2.html into the iframe (e.g. <a href="page2.html" target="my_frame">open Func 1</a>) but also when the page is loaded, one of those 3 functions would be invoked correspondingly depending on which link on page1.html I clicked.
I have to call the script below from my html page. How would I do that? Do I need to modify the script at all? Put in a function that returns the random title to the html page?
Suppose there is a function myFunction() defined in a web page. Now how can a visitor call this function manually, using the JS console or Firebug etc.Is this possible?