I'm developing very advanced web-based intranet application that uses a lot of very complex JavaScript for interface, including charting via ActiveX components and other processing.
Obviously I'm tempted to make the analysis of the javascript code very hard for people who may wish to steal my code and/or ideas.
Is there is anything I can do to make analysis of .js code difficult for *professionsals*?
In practice you can't. While you could create a suitable encryption system with a password in the page, the level of support you need to do this means it's always simpler to do it server-side. Anything that "protects" a page other than the current one is definitely flawed.
IM new to all this but the following code will deter visitors to your site, who have limited knowledge, copying your content. where nothing is 100% it will stop the chancers taking your hard work and using it as their own, I hope.
<script language="JavaScript"> <!-- var popup="Sorry, right-click is disabled.
I once came across some sites that prevent saving their pages by disabling the 'save' option in the File menu. I remember it was done. But I forgot the url.
How are they doing this? Is it possible to do so with Javascript? It will be great if someone provide me with links for such articles or scripts.
I have a website where i sell items. I need to make it so a customer can go to the site and place a password to purchase a item. Customers sees a item and clicks on "buy now" It can not be a inconvenience where it will prompt for a user/password.
I would like to place a password box, and once a password is entered they will be able to select the "buy now" button. Simple...yes. But i search for 3 hours via the power of google and have yet to find a solution. I want everything to stay on the same page...if possible.
I have seen places like wordpress and joombla do password protect content but i guess it is because the use frames. I would like to do this with just JS and HTML.
where temp.php - [URL] On temp.php I use requests for DB with param from $.ajax - data=123456. How I can protect page temp.php? For example, somebody typing [URL] and then he can get all results. I found one solution - using if($_SERVER['HTTP_REFERER'] == "http:// mysite.com/content/") {....} But Am not shure that it can realy protect my page?
I made this JavaScript that password protects a page. But the password you type in is completely visible! I want it so that the password are those black dots for each letter....
I wanted to know is it possible to password protect some files in web page?For example, If someone wants to download file, browsers requests password(one for all visitors), idea is that some files and/or sections of web site is accessible to those who know the password..
I would like to know how to write javascript such that, a part of it isnt considered as script, & rather as HTML. Code:
Ok, the layer div can be written using document.write. But, Google ad itself is a javascript isnt it. How can it be written into this? How does this work?
Let me start out by saying that this is for a small-time page with absolutely zero valuable information. PHP or server-side is way beyond the scope of my goals for the project.
Basically, I have a form on a page which I want to use to submit a password. However, I have realized that using the form submit always makes the browser return to the page with the form.
Well, that's not good when I want to redirect using javascript!
My javascript is:
Code:
My form HTML is:
Code:
How can I get this to stop going back to the page with the form after I submit it?
I am working on a piece of code for an academic experiment and it puzzled me for days, any help?
I use javascript to sort a table in a html page. bascially, a user can click on any attributes and the javascript code will rank the contents of the table based on that attribute. This is done.
Now I want to record the click information into an access database. basically, wheneve the user click an attribute, I want to use asp code to insert the click information (userid, attribute_clicked) into an access database.
My current solution is use window.open in javascript and in the open function, I insert the url of the asp. something like this:
I have copied from a site a javascript code for my web site to create a pop up. This works fine on older versions of browser but not the most recent. Whilst I have been searching for some new code to replace the old code I have also learnt that the javascript will not always work as it may not be enabled.
Therefore does anyone have some code that I could copy that will work fine on all browser and if the javascript is not enabled.
I am looking at doing a asp.net web-page in VB code with java-script as well. I want to pull the information from the database(SQL server or Access) and then feed that information to my java-script code. Is that the way to do it or can you do Access or SQL in java-script pretty easy?
First part I'm banging my head against the wall on is about the amounts of the Amount fields along the right to automatically equal the PETTY CASH SUB-TOTAL field. So, the amount in this PETTY CASH SUB-TOTAL field comes up automatically. Also, I need to have the amount in the TOTAL AMOUNT field come up automatically as being the sum of the PETTY CASH SUB-TOTAL and the PER DIEM SUB-TOTAL fields. Please see the following as an HTML document to see what I'm talking about......
I need to add some javascript code block dynamically to a web page. I looked into the various postings at various groups but none seems to be solving my problem.
Among the approaches suggested first one is to create a script element and set its properties (src etc) and then adding this script element to the head element.
This works good for a dynamically including the files. But, in my case I do not have any files but generating the content dynamically which should be available to other javascript functions in the page. The script that I need to add dynmically is given Code:
AIUI, it was not all that long ago when the threat to personal users, was attachments that when executed compromised machines with keyloggers, trojans, etc.
Now it seems that the big problem is reading a webpage or an HTML e-mail and getting affected through the scripting. My understanding is that the script downloads the malicious program from the web and sets it to run on start up through the start-up folder or in the registry.
I don't know much about this; can someone suggest a good web site to start learning a bit more about these threats. I have googled, but I am not quire sure of the best search terms, and since there is so much information out there, a site that experienced people endorse would be a lot of help.
In particular, it seems as if JavaScript dowloading a trojran without the user clicking an attachment is a big problem.
Is an index page. I have javascripts to open up submenus. But tehre are quiter a lot of them, all simialr. Is there a way to unify all that javascript into a single function?
Should I code for users without javascript? I don't know of anybody who doesn't have javascript turned on, but I have seen stats that say users without javascript run as high as 10%. I went to music.yahoo.com, I saw that they didn't code for no-javascript users, leading me to believe the no-javascript is a highly rare group.
Can anyone give me the code or point me in the direction of a simple javascript certificate maker so that users can input there name and date so as to use on my site?