Replacing diacritics in Javascript
How can I replace diacritics (ă,ş,ţ etc) with their "normal" form (a,s,t) in javascript? ...
How can I replace diacritics (ă,ş,ţ etc) with their "normal" form (a,s,t) in javascript? ...
Hello, I am trying to design a file hosting website template, the problem is i have redesigned the radio buttons to div elements to have custom image instead of default circles with javascript, This is image 1 when default page loads <script type="text/javascript"> <!-- //script to change background-color of the selected //button and ...
I have code like this var MyObj = { f1 : function(o){ o.onmousedown = MyObj.f2;}, f2 : function(){ MyObj.f1(); } } I would like to know how to refer to MyObj without hardcoding it (i.e. this), so I can change object name without changing the code. I am interested only in litteral object notation. EDIT: I didn't get it rig...
Hi there, I have built UI, its like a search engine for BioProcess/Disease--> Genes. e.g., User can query: "Stem Cells" or "brain tumor"and in result it will give 50 to 5000 GeneIDs (essentially those are Numbers representing a uniqe Gene at NCBI database) . Its free, you can try at : http://proteogenomics.musc.edu/genemesh/ Now, the ...
Hi, I am simply looking for a way of using drag and drop without jquery or any other library. If a dragged object is dropped on another element the later element should start an event (in FF - better would be browser independent). I know that drag and drop for JavaScript was discussed sometimes before but the previous postings didn't h...
I have an .ASP page that uses the “onChange” event to trigger a database lookup of information. (After a Code is entered, the system validates the code and places the description next to it. I.E. GP1234 returns GP1234-Rubber Duck or GP1234-Invalid Code). The problem I am having is that my users that have the AutoComplete active get a lis...
I have an application that requires the user to reenter their password between 15 and 30 minutes of inactivity to allow them to carry on with what they were doing. My current idea is to have a piece of javascript that calls a popup after 15 minutes, asking the user to log in again. The site as a whole has a 15 minute forms authenticati...
I am getting a javascript error "missing = in destructuring declaration" What could be the problem? ...
I have an .ASP page that uses the “onChange” event to trigger a database lookup of information. (After a Code is entered, the system validates the code and places the description next to it. I.E. GP1234 returns GP1234-Rubber Duck or GP1234-Invalid Code). The problem I am having is that my users that have the AutoComplete active get a lis...
Hello, I have a cookie set as yab_uploadmode and it has numeric value ranging from 1-4 and 4 div elements named btn1, btn2, btn3 & btn4, how can i retrieve the value of cookie and apply style to that particular element without use of any framework. Thank you very much. Regards, Shishant Todi ...
I would like to print scrollable div as WYSWYG. Is there a way? ...
Hello guys, here is my problem: I have a ASP.NET appl. In the appl, there is a page (page A) that brings up a second page (page B) Page b is a simple form that fills a dataGrid that is located in Page A. I have tryed many approaches (IDisposable, creating methods for it...) but it does not give me the correct functioning. I have been loo...
I've a static html file that is generated from docbook5 sources. Now I need to add feedback buttons, at the end of each section, so I'm appending (using jQuery) a link after each title: $(document).ready(function() { $("div[title]").append('<a href="mailto:me@host?subject=XXX">feedback</a>'); }) how to insert the div[title] into ...
Hi, It's my first time dealing with cookies in JavaScript and the below script works fine on my local PC but when I upload it here: example it fails. $(document).ready(function(){ // Get Cookie var getCookie = document.cookie; if(getCookie == "stylesheet=blue") { $("[rel=stylesheet]").at...
The dillema is like this: If I try to fit all the scripts blocks on the masterpage (include page in some frameworks), every page gets a copy of every script (including the ones they don't need) and these quickly adds up and bloats the page size. If I include/insert script blocks where needed, javascript will be spread all over the proj...
Hi guys, Can anyone please recommend the best and easiest way to include multiple Javascript files on a (PHP based) web page? I have a website that uses jQuery, and anything up to around 10 plugins on any one particular page. I'm not entirely sure of the best way to go about including all these files to make life simple for me as a dev...
What is JavaScript garbage collection? What's important for a web programmer to understand about JavaScript garbage collection, in order to write better code? ...
In testing document.location.href, I have observed that when the user initiates an action that results in javascript that assigns to document.location.href, the new URL is added to the history. However, if the call is initiated by javascript that is result of, say, state change of an XMLHTTPRequest, the entry for the current page in the...
Using PHP against a UTF-8 compliant database. Here's how input goes in. user types input into textarea textarea encoded with javascript escape() passed via HTTP post decoded with PHP rawurldecode() passed through HTMLPurifier with default settings escaped for MySQL and stored in database And it comes out in the usual way and I run un...
In Javascript, I have this function to display the current date on our page header: <SCRIPT language="Javascript"> var today = new Date(); document.write(today.toLocaleDateString()); </SCRIPT> I would like to do this via JSTL, but I'm not sure if it's possible. So far, I have this fragment of code: <jsp:useBean id="date" cla...