I've looked at free javascript html editors, and I haven't found any that I feel handle links intuitively. I like the way the gmail editor does it (also the same way blogger.com) does it.
Does anyone know if there is an open source editor that handles linking that way? Jquery would be preferable.
I am developing a ff extension. On one menupopup, the onpopupshowing calls a javascript function. Tha JS function extracts a list of names. Now these names have to be displayed in the same popup.
How can i get this? Basically i will need to pass the data (just as we use beans in java) to the browser from the JS function. The data can change everytime the popup is called.
Let's say using Javascript, I want to match a string that ends with [abcde] but not with abc.
So the regex should match xxxa, xxxbc, xxxabd but not xxxabc.
I am utterly confused.
A simple example using a built-in javascript object:
navigator.my_new_property = "some value"; //can we detect that this new property was added?
I don't want to constantly poll the object to check for new properties.
Is there some type of higher level setter for objects instead of explicitly stating the property to monitor?
Again, I don't want to detect if the property value changed, but rather when a new property is added.
Ideas?
thanks
Suppose I have a function in code behind like:
Public Function Calc(ByVal ID As Integer) As Boolean
'......
End Function
I can call this function in javascript like
var isSuccess ='<%=Calc()%>';
but how to pass the parameter in for this case? Following code not working:
var ID = 1;
var isSuccess ='<%=Calc(ID)%>';
I have a checkbox Birthdate which shows the mm/dd only.And below it there is another checkbox called ShowYear which shows the year and this checkbox is only visible if the Bithdate checkbox is checked.
Now I want to uncheck the ShowYear checkbox automatically if the Birthdate checkbox is
unchecked through javascript.
Objects in javascript throw me for a loop!
In this set up...
var obj = {
someVar: "my awesome variable",
foo: {
bar: function(){
alert(this.someVar);
}
}
};
How would I get obj.foo.bar to correctly alert the value of someVar?
For instance, I have a url like this : www.mysite.com/my_app.html
How do I pass a value " Use_Id = abc " to it and use javascript to display on that page ?
http://www.tiddlywiki.com/
The above site provide a wiki tool which essentially is just a .html file,but it can save files via javascript,anyone knows how is it implemented?
I am using javascript to populate data in a table which return everything fine. I would like to make a string bold. See code below
$tr.find('.data').val($('#txtName').val() + ' <strong>Address:<\/strong> ' + $('#txtAddress').val());
How do I make only the word "Address" bold?
Using Javascript I'd like to get the domain value for a specific cookie.
Is this possible? If so, how?
To clarify: I'm not looking for the value of the cookie. I'm on "subdomain.domain.com" and I need to remove a cookie whose name is known but its domain value is something like ".domain.com". In short: I'd like to get the value of ".domain.com".
Hi is there an equivalent ruby method to JavaScript encodeURIComponent method? i am using the URI.unescape(str) but it recognizes the "£" (after encodeURIComponent it becomes "%C2%A3") as a "?" sign. any solution's? thanks
How to know without having iphone and ipad, any javascript/jquery effect/plugin which is working fine on all desktop browsers, will work on iphone and ipad also?
Is it enough to check on Latest Safari for Windows? I don't have MAC OSX .My os is Windows.
Hi, I'm wondering, is it possible to collect the height of a specific div container from a separate page with JavaScript? I'm using jQuery btw and I'm in need of comparing heights of div containers.
How to distinguish between blank areas and non-blank areas in a webpage with JavaScript? Blank areas including:
areas that are not occupied by DOM elements.
margins, borders and paddings of DOM elements.
I would like to compare two dates in javascript. I have been doing some research, but all I can find is how to return the current date. I want to compare 2 separate dates, not related to today. How do I do that.
var startDate = Date(document.form1.Textbox2);
I'd like to initialize an object in javascript calling directly a method that belongs to it:
var obj = (function(){
return{
init: function(){
console.log("initialized!");
},
uninit: function(x){
console.log("uninitialized!");
}
};
}).init();
//later
obj.uninit();
obj.init();
This specific example doesn't work, is there something similar?
I read at many tutorials that the current best practices to create a new javascript array is to use "var arr = []" instead of "var arr = new Array()".
What's the reasoning behind that?
I'm aware of timing issues in Javascript, how its not exact/off by milliseconds etc, but I need something to at least attempt to do browser-based scheduling.
In terms of features, I'm thinking something along the lines of scheduling patterns described here: http://www.sauronsoftware.it/projects/cron4j/manual.php#p02
Anything out there? I've done google searches and haven't found any implementation worth nothing.
I want to create multiple versions of print-friendly pages from a single page. I am considering to do it in this way: placing several buttons on the original page and, clicking one button will popup a new window with the same html as its parent window, but with some modifications (e.g., set display attribute of some DIV's to none).
It is possible to use javascript to do this?