Elucidate an obfuscated javascript code block
Is there a way to elucidate an obfuscated javascript code block??? ...
Is there a way to elucidate an obfuscated javascript code block??? ...
On a page with Ajax event, I want to disable all actions until the Ajax call returns (to prevent issues with double-submit etc.) I tried this by prepending return false; to the current onclick events when "locking" the page, and removing this later on when "unlocking" the page. However, the actions are not active any more after they are...
I would like to check whether a variable is either an array or a single value in JavaScript. I have found a possible solution... if (variable.constructor == Array)... Is this the best way this can be done? ...
Hi, how can i disable a set of controls while waiting for a certain Ajax call to end? I'm aware of the method: Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(onSubmit); but this will be triggered for every updatepanel, not only the one I want to control. Also, an UpdateProgress (maybe with an overlying semitransparen...
Friends, I'm new to both Javascript and Regular Expressions and hope you can help! Within a Javascript function I need to check to see if a comma(,) appears 1 or more times. If it does then there should be one or more numbers either side of it. e.g. 1,000.00 is ok 1,000,00 is ok ,000.00 is not ok 1,,000.00 is not ok If these...
I have a couple of CSS selectors like this: table.SearchCustomerResults > thead > tr > th[sortOrder="0"] {} table.SearchCustomerResults > thead > tr > th[sortOrder="1"] {} then I set the sortOrder extension attribute for each of the cells in JavaScript. However, the changed style is not visible in the browser (IE7, perhaps other) unti...
The solution to this question suggested the use of John Resig's class implementation. This solution covers all my needs except: How to declare a public global variable inside this class that can be accessed from outside? I would like to establish something like the following: var MyClass = Class.extend({ EVENT_NAME : 'eve...
I'm curious how to solve this in a clean way. I've read a few forum posts but couldn't do something that works. I have a dropdown which — on change — should change a value for a remote_function. The remote_function only needs to be called when the propriate radio button is enabled. select: download <-- should affect rjs call to get a...
Hi there. I want replace some string within Word Document using ActiveX and JavaScript, now I have something like this: var text = Selection.Text; Selection.Text = text.replace('somesting','somevalue'); But after that I loose all formaing. If I record macros in WinWord I get this: With Selection.Find .Text = "somestring" .Rep...
Hi, can anyone help me in trying to check whether JavaScript is enabled in client browser using Java code. Thanks in advance ...
Conkeror has changed the way I browse the web: it's basically Emacs + Firefox with javascript based configuration in .conkerrorc rather than elisp configuration in .emacs. I've built up a huge library of .emacs customizations over the years by getting little bits and pieces from others. I'm just starting with Conkeror but the fact that...
It is recommended that js files be included on the bottom of the page. I'm using Telerik Rad Ajax controls that emit js includes on top of the page. Is there a way to force it to emit js includes at the bottom of the page? ...
Is there any way to calculate the md5 hash of a file before the upload to the server using javascript? ...
I have a javascript function that calls a generic function to make an ajax call to the server. I need to retrieve a result (true/false) from the callback function of the ajax call, but the result I get is always 'undefined'. A super-simplified version of the generic function without all my logic would be: function CallServer(urlContro...
How can I set an environment variable in WSH jscript file that calls another program? Here's the reduced test case: envtest.js ---------- var oShell = WScript.CreateObject("WScript.Shell"); var oSysEnv = oShell.Environment("SYSTEM"); oSysEnv("TEST_ENV_VAR") = "TEST_VALUE"; oExec = oShell.Run("envtest.bat", 1, true); envtest.bat ---...
Hi, I have a flash file menu i am having problem while link it to my other web pages the code is below. <div id="flashcontent"> <a href="http://www.Yahoo.com.com">Home</a>| <a href="http://www.gmail.com">Products</a>| <a href="Home.htm">Downloads</a>| <script type="text/javascript"> var so = new SWFObject("10.swf","10...
I am currently using a javascript code to make an entire row in my table clickable. Once the row is clicked a function is ran, I am wondering what I can use to redirect to a PHP page and preferably send a post variable along with it. My guess is AJAX but I am not sure how or if it would work. My Javascript Function: function DoNav(t...
I have an application that allows a user to view details on a specific case w/out a postback. Each time a user requests data from the server I pull down the following markup. <form name="frmAJAX" method="post" action="Default.aspx?id=123456" id="frmAJAX"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" /> </div> <div> <i...
I have a bit of JavaScript in one of my pages that avoids the problem of users double-clicking buttons on a form and causing double submissions during asynchronous postbacks: var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_initializeRequest(InitializeRequest); prm.add_endRequest(EndRequest); var btn; function...
It would seem that regular expression questions are common as each question seems to apply to a specific case. With that said, here is my specific case... I need to validate that an employee id is in one of two specific formats. The first format (and one that I have working reliably) is (w/o the quotes): "A000000" , where "A" can be ...