I want to make a JavaScript application that's not open source, and thus have two questions:
What's the best way to obfuscate the code?
What's the best way to obfuscate the strings themselves within the application (assuming that the answer to #1 does not handle this)?
I want show an information page after success db opartions. And after the info I want to close each pages (information page and main page)
I wrote this in button oncommand event:
//but this code does not work
Response.Write("<script language='javascript'>setTimeout('self.close();',3000);</script>");
at the same time, I want to show an information message. And then I want to close all, after three seconds.I hope I could explain :)
Thanks.
Hello,
I am not developer so I need help from you guys.
My Problem is simple.
I just want javascript to hide word before "."
Example :
say for google.com
I just want word ".com" tobe print.
Please note that my content is dynamic so google.com will keep changing everytime to google.net or yahoo.com...... so on..
Thanx in advanced.
Hi, i am detecting images on my webpage with javascript document.images function which returns an rray of images. Is there any way to get the mime type of the image from this since i am not using any extension names on images which are loading?
I have unix timestamps from time zone X which is not known,
the current timestamp(now()) in TZ X is known 1275143019,
how to approach a javascript function so that it can generate the datetime in the users current TZ in the format 2010-05-29 15:32:35 ?
In my db I have saved every links in the form:
www.example.com or http://www.example.com
Is there a way to turn this text links into HTML links at the client side ( e.g. javascript ) with tag and parameter like this ?:
<a href="http://www.example.com" rel="nofollow">www.example.com</a>
I want to know is it possible to insert additional text in HTML elements using jquery or javascript?
If there is already a text "Down" in paragraph elements, then I just want to append text "full", so that it would be "Down full". Is this possible? Which method should I use?
Hi everyone,
I'm looking to find the Javascript Event I need to put into jQuery's .bind function in order to have the function triggered when a selection is made from a <select> element.
At the moment I'm using .bind('change',function() { ...}) but I need the event to trigger when the selected option is chosen again.
Any suggestions?
I have a asp.net textbox(textarea which is in a repeater have single texarea for each record which are read only) I have button (open in new window) when i click on it the content of the text area needs to be rendered in a new window using javascript .
I'm looking for a way to create variables dynamically in javascript
eg
I have a loop
for (i=0;i<15;i++){
}
now I need to create variables dynamically eg var "a"+i for eavh value in the loop. Is this possible and how?
How can i handle a link which doesn't have a id, it just has a classname like "classbeauty".
Now i need to know if a user has clicked the link.
If the link is clicked i just need to call the alert("yes link clicked");
I don't know how to handle events in Javascript.
How can i do that?
I have a long task in Javascript that should be performed before the web page content is displayed. During the execution of this task I would like to show an image whose opacity will grow up to 100% (when the task is done).
How this can be achieved ?
Hey,
I'm having some issues trying to decode some javascript.. I have no idea what kind of encoding this is.. i tried base 64 decoders etc. If you can please help me out with this, here's a fragment of the code:
\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x61\x70\x70\x34\x39\x34\x39\x3
Any ways I can get plain text from that?
Thanks!
I am in need of date picker javascript which allows date in mm/dd/yy format.
And also it should have good resolution and should be non-popup based.
I searched in google but not getting my exact requirements.
Plz suggest me the proper source.
Thank You.
Hi, i'm pretty new to Javascript and PHP so please bear with me if i'm asking some really dumbed down questions.
Ok, say i need to use values stored in a PHP $_GET or $_SESSION, is it advisable to just do something like
var something = PHP echo $_SESSION or $_GET
I have an HTML table which may contain thousands of rows (number of columns is not a problem here).
I would like to be able to browse this table easily and be able to do the following:
Decide how many rows will be presented
Jump to the next/previous X number of rows
Scroll the table using the scroll bars to any desired line
Be able to customize/extend easily this Javascript/jQuery code
Has anyone seen something similar ?
Thank you very much !
I want to make sure I understand callbacks properly, and javascript timing etc. in general.
Say my code looks like this, is it gauranteed to execute in order?
SetList(); // initilizes the var _list
Some.Code(_list, function(data) {
// update list
});
DoSomething(_list); // operates on _list
How do I test to see if links are external or internal? Please note:
I cannot hard code the local domain.
I cannot test for "http". I could just as easily be linking to my own site with an http absolute link.
I want to use jQuery / javascript, not css.
I suspect the answer lies somewhere in location.href, but the solution evades me.
Thanks!
I'm not that good with regular expressions...
I need a JavaScript regular expression that will do the following:
The string can contain letters (upper and lower case), but not punctuations such as éàïç...
The string can contain numbers (0..9) anywhere in the string, except on the first position.
The string can contain underscores (_).
Valid strings:
foo
foo1
foo_bar
fooBar
Invalid strings:
1foo -- number as first character
foo bar -- space
föo -- punctuation ö
Many thanks!
I'm new to Java and I'm doing a project with Ext JS and Java. I'm using Eclipse Java EE IDE for Web Developers (Build id: 20100218-1602). Can anyone suggest any Javascript debugging plugin for this build? Links appreciated
I am looking for the best way to augment multiple javascript associative arrays.
For example the following code
a = { "one" : 1, "two" : 2 };
b = { "three" : 3 };
c = { "four" : 4, "five" : 5 };
d = Collect(a,b,c)
Should result in value of d being:
{ "one" : 1, "two" : 2, "three" : 3, "four" : 4, "five" : 5 };
What is the best way to do this?