Preventing Source Code Stealing?
May 28, 2009
Ok I made a post yesterday for a calculations script and I figured it out.Now the problem I have is as soon as I put it on my website a competitor is going to steal the code and put it on his/her/their page.Is there a way that I can put in my html a call to the javascript so that it just gets the script runs it and then displays it to my page without actually having the source displayable anywhere? Here is the code I made that I want to protect:
Code:
<html>
<head>
<script type="text/javascript">[code].....
View 13 Replies
ADVERTISEMENT
Sep 26, 2004
I have some code that gets executed in a document onload event.
I display an alert message box saying that some action was performed successfully.
However the following annoying issue is bothering me.
Whenever someone bookmarks the page, or go back to it, or even refreshes it, then the onload event gets fired again and the alert box appears.
Is there a safe way to make sure that the code in onload will get executed only once? and that cosecutive triggering of the page will not trigger any code execution.
The most important thing to note, is that I pass a parameter in the URL indicating that the code should be triggered in the onload event.
Obviously when I refresh the screen, the parameter is passed again and the code gets executed..
View 6 Replies
View Related
Dec 5, 2011
Until now I have used the javascript function eval(), wrapped it in a try / catch block and showen him the error message if the javascript code was flawed.But this comes with the problem that if there is no error the script will be executed.So what I´d like to is use the jquery function globalEval(), wrap it in a try / catch block and display the error message if the script does not run sucessfully as I have done before,BUT:if the script would execute without an error I´d like to use some kind of preventDefault so that the script would not be executed at all and instead I could show the user a message that the script passed validation.I know that the way I propose is not possible as the script has to be executed somehow so that possible errors are generated...does anyone have an idea how to do what i propose ?
View 8 Replies
View Related
Jan 29, 2009
i am doing project where i need to convert recorded voice to text format means that i can convert mp3 or wav to text
View 1 Replies
View Related
Jul 23, 2005
It's possible to protect the source code of a js file? With PHP?
View 15 Replies
View Related
Mar 22, 2006
I've a problem: I need to retrieve (in javascript) the soure HTML code
from a url without loading the page then put the HTML source code in a
string variable to manipulate it. From this variable I need to get all
the links to perform some operations.
View 4 Replies
View Related
Oct 6, 2004
"No right-click" scripts only end up annoying the users... Is it possible to hide the source code..... without showing the JavaScript source!!!!!
View 14 Replies
View Related
Jan 27, 2009
I'm working on a site that uses an iframe to load cross domain sites.The problem is that some sites use javascript to say put focus into an input field.I have managed to prevent this by using setInterval that continuously gives focus to an input on my page but this causes the problem of not being able to click into the location bar.So basically, is it possible to to only regain focus when an element inside of the iframe takes focus? Or even just solving the location bar problem with my current solution would also work. (And I have tried things such as applying onfocus events to the iframe element - but they simply don't work because it's not the iframe that's gaining focus, but elements inside of it)
View 2 Replies
View Related
Feb 22, 2001
i want the browser to test wether or not a page that is
called is beieng called from within the specified window
the script is originally used to prevent a page within a frame to be called alone it redirected the user to the main window if i can call it that so that parts of
your frames could not be viewed alone
i have managed to secure most of my site
no rightclicks can be performed and no options to view
source code by using a chromeless window the problem now
is that i wanna make sure that someone cannot call a page
into a normal browser window by using shift while clicking
on links thus preventing anyone from getting to my source code.
View 10 Replies
View Related
Sep 20, 2006
On most EVERY commercial site (including the pages on comp.lang.javascript) I find the following code, word for word.
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
Is this some "standard" code that every Web page should have. Does it
control the opening of new windows when a user clicks on a newsgroup
message.
View 2 Replies
View Related
Apr 19, 2009
Is there a function in javascript to get the source code of a page and contain it in a variable, or automatically obtain information from it in some way?For example, if I needed to get the title of a certain page, would I be able to somehow implement document.title to get the title of a webpage?
View 4 Replies
View Related
Sep 16, 2009
I made a table that retrieves some Data from the Database also I did some calculations for this data using Javascript and It works fine , but I can't see the calculated values in the source code. That's the Problem , cause I can't print it or export it without these values and the source code doesnt show it. So , what can I do , to view the generated values from JS in the source code? I'm using IE 6 only as a web browser and the Javascript Calculations are functions and Classes in a seperated file and I linked it to the Report page ...
View 2 Replies
View Related
Nov 15, 2009
I have a e-mail on my myspace account and I didn't write it. How can I find out the IP addresse from where it originated? I have looked at it and looked at it but I can't find anything except my myspace account addresse on it. I want to know basically where to look to find out the computer or IP addresse that it originated from.
View 1 Replies
View Related
Aug 15, 2010
How do I create a JavaScript script to save a web page's source code to a file?
Example: I will go to a website, it automatically from the web page's source code will be saved to a file.
View 4 Replies
View Related
Jun 27, 2006
I would you grab the source code from an IFRAME and display it in a textarea?
I'm trying to create a sort of preview page that both shows a rendered page, then shows the source code next to it.
[edit]: I'm thinking that using OnLoad JS event in the HTML body tag would allow this to work. The page loads, the OnLoad event calls a JS function that pulls the innerHTML from the IFRAME and inserts it into the textarea.
View 4 Replies
View Related
Jul 24, 2008
how can i write the sourcecode of the page to a textarea?i thought about something like
Code:
function dump()
{
[code]....
View 14 Replies
View Related
May 17, 2011
I'm wondering, I've looked at several examples of this, but none seem to work. I can get POST functions to work (posting data to a certain URL is no problem). However, I can't get the source code of a page. Here's the function I've got so far:
Code:
I'm wanting to use this to use certain settings in the script on my web site that I have stored on another page. The usage is like this:
Code:
And then googlesource should be populated with the source code of [url]. Just an example. why the above function is not working? I've tried messing around with all kinds of request headers and everything.
All the function returns is "undefined".
View 5 Replies
View Related
Oct 6, 2011
I have a good HTML markup parsing function which uses DOM methods to create element nodes with attributes and contained text nodes. But for some reason I am having difficulty getting the event handler attribute value (which is javascript code) converted to actual source.
[Code]...
But when I click on the button in Firefox, nothing happens. Using a Javascript debugger, the trace doesn't even enter the handler code, which effectively means the event listener has no script.
So converting the code-as-string to code-as-source using the Function constructor is not working. Or else the event handler setting function or assignment is not what it should be.
View 7 Replies
View Related
Jun 26, 2011
Is it possible to get a websites source code using ajax?
View 1 Replies
View Related
Aug 25, 2011
I am using fadein and out of jquery, but size of jquery file is high for me. so i should replace it.do anyone know, how can i write fadein and fadeout functions? is anyone know its source code?
View 3 Replies
View Related
Mar 11, 2009
I have a small script that creates and removes elements from an html form. This script also renames some elements upon deletion of another element. But this does not seem to be working properly. The problem is that i can't really figure it out so i was wondering if there is a way to see the source code that is created by JavaScript,in order to track down where the problem is.
function removeDiv(divNum){
var container = document.getElementById("container");
var removedID = document.getElementById("div" + divNum);
container.removeChild(removedID);[code]....
// the code below works if i delete the "for" above, and doesn't work if the "for" is there. specifically, if the added elements are 5 or more and i delete the last one, the value of y remains the same. if i delete the first or one in he middle, it works. if i delete the last and reduce the elements to 1,then add another 5 and delete the last one (as it would not work initially) it works!
var y = parseInt(document.getElementById("totalElements").value);
document.getElementById("totalElements").value = y - 1;
}
<input type="hidden" name="totalElements" />
The value of totalElements increases every time an element is added and this works well.
View 3 Replies
View Related
Nov 24, 2010
Adding a new plugin page only has Project resources section which only has links to refer.Is there any way by which I can just attach/upload my plugin source code instead of linking to some website?
View 1 Replies
View Related
Apr 13, 2009
After lot of research I found that its impossible to disassemble the source code view in the window toolbar.. but finally I found this site that have the function that I am describing..
Start addy here:
mortgagecalculators.ws
/
mortgage-payment-calculator
.
php
End of addy:
The address is separated in pieces because I cant post links and don't forget to include the extension php with the dot at the end of the address but note that if you click on the back history button and then the forward. The java does not work. I get into the source looking for some java call... but nothing found related to security disable source code...
View 14 Replies
View Related
Nov 28, 2003
are there any scripts on the web that could disable visitors from viewing my web source code? (can java script do this? if not any recommendations?)
View 14 Replies
View Related
Feb 18, 2010
Does anybody have regex engine source code? Any link on javascript engine. Really interesting to look at.
View 1 Replies
View Related
Jun 2, 2010
I am passing an araryList from c# code to javascript, but if i do viewsource on page i can see the value of Array, is there any i can hide it, dont what the user to see the values of javascript array if userdoes view source on the opage
View 2 Replies
View Related