I'm somewhat new to Javascript, not HTML/CSS or PHP/MySQL, just JS. I have a quick question. If I were to try to make my own RTE Text editor for a system that I'm building, does anyone know where I would start out? Books, tutorials, whatever is fine. Thanks.
...
We are in the process of migrating an IE application to Firefox. Do you recommend a tool that can automate to a certain extent this process. Perhaps this tool could help us identify code that is browser specific. Do you see this as possible?
...
I use a hidden variable (input type=hidden) to store ID information on a page. To prevent attackers, I decided to encrypt the data stored using System.Security.Cryptography.
The hidden variable is accessed in JS and executes validation logic. I will need to decrypt the data before executing the validation logic. Is there a way to decry...
What is a good way to measure code execution time in VBScript?
Or failing that how to do it in JavaScript?
...
Using Prototype, the Form.Element.disable is said to be disabled the form as a whole. Is there any way to disable only one single input element at a time?
And when I try this:
$$('#signup .button')[0].disbled = false; ## didn't work
Updated
Sorry for all. Actually it works. But I have defined a disabled style
in a stylesheet and the...
Can someone point me to a javascript to enable/disable few buttons on an ASP.NET page on the client side. I didnt want to do postbacks for responsiveness
...
Anyone have any experience with why this happens:
sIFR 3 runs fine til I click add to cart and I get a javascript notification that it's been added to the cart. Upon click, the sIFR text disappears: http://loadedgranola.valitics.com/_product_83484/blackberry_lime. Try it out and let me know if their is something wrong with wht I'm doing...
I need to simulate a mouse click using IE on a client side image map. Which object should invoke the fireEvent()? It cannot be simply the <area> object since it could be referenced by 2 different <img>s. It cannot be the <img> since we need a way to tell which part of the img is clicked which is defined in the <area> tag?
I've done som...
For example, I have the following string:
var string = 'watch this video http://vimeo.com/8122132 and then see this picture http://www.flickr.com/photos/pmorgan/32606683/';
I wish to find all the valid URLs and place them in an array, done in JavaScript (and jQuery), so in this case:
url[0] = http://vimeo.com/8122132
url[1] = http://...
Is it possilbe to work with Russian characters, in javascript's regex?
Maybe the use of \p{Cyrillic}?
If yes, please provide a basic example of usage.
The example:
var str1 = "абв прв фву";
var regexp = new RegExp("[вф]\\b", "g");
alert(str1.replace(regexp, "X"));
I expect to get: абX прX
...
I am disabling a dropdownlist when a button is clicked
function disableDropDown(DropDownID)
{
document.getElementById(DropDownID).disabled = true;
return false; <---------tried with and without this, no luck
}
and a onClick call to
disableDropDown('DropDownID');
I see it disable the dropdown and then immediately there is a post...
I have the following JavaScript to disable a dropdownlist in a ASP.NET page , which gets called when I click a button.
function disableDropDown(DropDownID)
{
document.getElementById(DropDownID).disabled = true;
return false;
}
I wanted to use the same button to toggle between enable and disable for that dropdownlist. How do I do ...
I have an iPhone version of my website. Is it possible to detect, using JavaScript, when the iPhone is shaken? Something along the lines of:
<script> function shaken() { alert("you shaked !!!"); } < /script >
<body onshake="shaken()">
...
What is MooTool's equivalent of this jQuery snippet:
jQuery.fn.doSomething = function() {
};
...which allows me to do this:
$("#myElement").doSomething();
...
Question 1)
Assuming a user has a timezone setting saved as 'America/New_York' in my application, would I just use this on a page where I need to
show the correct time with timezone offset and daylight savings applied
<?php
$time_zone = 'America/New_York';
date_default_timezone_set($time_zone);
echo date('D,F j, Y, h:i:s A');
?>
OR s...
How do we implement the AJAX HTTPObject to update a textbox on click of a button in ASP.Net and javascript. Would the same code apply if the updation would be done on a datagrid ? A implementation of HTTPObject that I read is given at http://jai-on-asp.blogspot.com/2009/12/ajax-classical-way.html
...
I have the following JavaScript to toggle a dropdownlists in a ASP.NET page , which gets called when I click a button. I have like 4-5 dropdownlist/Toggle button pair. Each toggle button toggles the enable/disable property on the associated dropdownlist.
function toggleDisableDropDown(dropDownID) {
var element = document.getElementByI...
Hello,
I would like to get the current date/time stamp of the server or client in ISO8601 format (ex. 31 Dec 2009, 02:53). I know that server time can be observed using PHP and brought into the DOM using jQuery $.getJson. Client side time can be recorded from the browser using javascript/jQuery. I want the time stamp to be static (not d...
I'm tryping to use JSON to update records in a database without a postback and I'm having trouble implementing it. This is my first time doing this so I would appreciate being pointed in the right direction.
(Explanation, irrelevant to my question: I am displaying a list of items that are sortable using a jquery plugin. The text o...
We have an ASP.NET custom control that lets users enter HTML (similar to a Rich text box). We noticed that a user can potentially inject malicious client scripts within the <script> tag in the HTML view. I can validate HTML code on save to ensure that I remove any <script> elements.
Is this all I need to do? Are all other tags other th...