Is Internal JS Secure? (is External?)
Dec 19, 2005
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.
View 8 Replies
ADVERTISEMENT
Dec 8, 2011
I should write a script which should distinguish internal and external links with JS. The links can be absolute or relative. I thought the best guess would be to first check if it is a relative link by checking the first character of the string is a /. (but how do you do this?) Then it will be always an internal link.
Then I thought to check if the URL (this.href) starts with the current protocol + location.host . If YES, it is an internal URL, else it is an external URL.
So does anybody know how to check if a URL starts with '/' or '[URL]
View 1 Replies
View Related
Aug 11, 2009
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.
View 1 Replies
View Related
Oct 22, 2009
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.
View 1 Replies
View Related
Mar 16, 2010
I have a master.html where i have navigationDIV and bodyDIV, and on every click of nav tabs i am loading external html page into bodyDiv using following .load() function. $('#bodyDiv').load('home.html') Now I have some basic JQuery functions in external JS file which i have linked in master pagewhere i am using toggleSlide(), hide(), addClass() so and so forth, first time when page is getting load all these functions are working alright but the moment i am loading another tab page all functions stop working even on first tab also. Tab onClick script from where .load() function is getting fired:
<li id="one"><a href="#first" onclick="javascript:$('#bodyDiv').load('home.html')" >Home</a></li>
<li id="two"><a href="#second" onclick="javascript:$('#bodyDiv').load('trade.html')" >Trading</a></li>
Note FYI: I have used Jquery Tab UI on this page, the scrip is as below:
[Code]...
View 5 Replies
View Related
Aug 28, 2006
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.
View 3 Replies
View Related
Aug 23, 2007
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.
View 1 Replies
View Related
Dec 12, 2011
I would like to secure a link with a password.
Upon entry into the link(selected) appeared to pop up a password.
After entering the incorrect order were moving to the home page .
If true, would redirect to the example thread.
I would also like to not be able to type a password time to look into the source of the page.
View 2 Replies
View Related
Apr 30, 2011
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.
View 2 Replies
View Related
Oct 12, 2006
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?
View 3 Replies
View Related
Jul 26, 2011
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:-
<div id="item_<?php echo $row['item_id'];?>" onclick="like(<?php echo $row['item_id'];?>)"></div>
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?
View 3 Replies
View Related
Jul 30, 2010
I am trying to get rid of this warning over and over.
My pages are located in directory WEBSERVERAPPLICATIONSWC
Master pages in WEBSERVERAPPLICATIONS
CSS and Javsasripts are in WEBSERVER
And in css I have background:url no-repeat right top;
Dont know even though the image gets accessed by Https. why it is still giving that warning.
View 2 Replies
View Related
Jul 30, 2010
I am trying to get rid of this warning over and over.
My pages are located in directory WEBSERVERAPPLICATIONSWC
Master pages in WEBSERVERAPPLICATIONS
CSS and Javsasripts are in WEBSERVER
And in css I have background:url no-repeat right top;
Dont know even though the image gets accessed by Https. why it is still giving that warning.
View 1 Replies
View Related
May 19, 2010
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.
View 8 Replies
View Related
Oct 4, 2010
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.
View 3 Replies
View Related
Feb 26, 2010
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.
View 1 Replies
View Related
Oct 20, 2009
I am new to Javascript and I downloaded JSE internal search engine v 1.0a from CodingForums. It works fine in all browsers other than ie6 and ie7. Have confirmed that other javascripts are working in these browsers so it is not my browser settings.
View 1 Replies
View Related
Apr 1, 2009
I've been doing this for a while and I cannot get the "Contact Us" link to work from this page. It works in the Home page. I'm probably missing something stupid but I can't see it.
[Code]...
View 1 Replies
View Related
Aug 3, 2004
I'm doing a site and want to have a scrollable menu area so that more links can be added at a later date. I need to know how to do this without resorting to flash as its a HTML only site. The whole thing needs to look as close as possible to the attached GIF.
View 2 Replies
View Related
Sep 27, 2005
Not sure if this is the best place to post this, but can I set the internal color of a radio button? Basically the background color inside the circle.
View 3 Replies
View Related
Dec 14, 2006
Does anyone have a reputable reference about internal string storage in
JavaScript? (for some particular implementation I mean).
Say having 1,048,576 characters long string from the geometric
progression:
function generateLargeString() {
var s = 'a'
for (var i=1; i<21; ++i) {
s = s.concat(s);
}
return s;
}
- the internal size should be 2 mebibytes and not 1 (?) if strings are
indeed stored as Unicode 16-bit. From the other hand it would be
tempting for an engine developer do not spend extra bytes on ASCII
chars...
So does anyone know of any documented engine optimizations on the
matter? Would be expected on some engine to have the string from above
twice smaller than say
function generateLargeString() {
// 1200 ETHIOPIC SYLLABLE HA
var s = String.fromCharCode(0x1200);
for (var i=1; i<21; ++i) {
s = s.concat(s);
}
return s;
}
View 2 Replies
View Related
Jun 30, 2009
I have never done this before and I need some help. Can someone tell me how can I create a search engine within my website to search through the text on a certain page? This is the site I am talking about:http://www.21stcenturyworld.com/community.html
View 9 Replies
View Related
Apr 1, 2011
I am fairly familiar with the concept of Objects and their properties and methods, but javascript being object based as opposed to object oriented has me stumped on how to access an object's properties from an onclick event handler created for another object created within the original object.
In the example below, I have a constructor function called anyObj. to which I pass an object reference to an element.
anyObj has 3 properties and one function increaseWidth()
increaseWidth() creates a new button with an onclick event handler and this is where I have a problem.
The onclick function needs to increase the value of anyObj's this.width property. I originally had a line this.width += 10; in the onclick but quickly realised why this wasn't working because the this in the onclick function refers to the new button object and not the this.width property of anyObj.
The workaround I have used, and it works, is to make a copy of all the this.xxxxx properties. eg. width = this.width; and use the width variable in the onclick as you can see below. This "workaround" works fine but doesn't feel ideal to me.
So is there a better way to access the anyObj()'s properties from within the onclick function than the way I have done it? Obviously I would prefer to not have to make copies of all the anyObj() properties like I have to make them accessible to the onclick function.
function anyObj(divObj){
this.elem = divObj;
this.width = 50;
this.height = 50;
[Code]....
View 5 Replies
View Related
Sep 22, 2011
I'm trying to add an internal site search to my website, and it only work for some search items, not for everything. For example, if I search for Bud Light, Budweiser, Bud Light Lime, it finds them. But if I search for Stella Artois, Paulaner, or Hoegaarden, it doesn't find anything. I'm thinking there's something wrong with the javascript code, I'm just not sure how to fix it.Here's the code in the head region:
[<script type="text/javascript">
// Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
[code]....
View 1 Replies
View Related
Jan 5, 2011
My company uses a software to manage and collect data for equipment. They have a dedicated server to host the software and an internal website that shows all of this data. Though it is an internal website, it can be accessed externally. The website displays data by taking a snapshot of the data from the software and displaying it as a jpeg. It refreshes itself every 30 seconds or so. Here's the problem: When viewing the website externally, the jpeg that shows the data doesn't show because for some reason the webpage thinks you are viewing the site internally, therefore it is trying to pull the image from an internal directory, I think. Now I am familiar with HTML but not with javascript, and the site uses javascript to pull the snapshot image on to the webpage everytime it refreshes.
[Code]...
View 2 Replies
View Related
Jan 23, 2002
My company has 2 email apps. One for external (MS Outlook) and one for internal (GroupWise). On my Intranet, I need to connect the mailto tags to the internal system. Does anyone know how to do this? I can't make GroupWise everyone's default email program because many people use both frequently. I would greatly appreciate any help or direction.
View 1 Replies
View Related