How expensive are local variables (var v), global variables (window.v) and cross-global variables (parent.v) in JavaScript, in the major browsers? Has anyone performed any good tests on this one?
I was hoping to keep cross-browser compatibility and afaik this is the only issue so far.
.setAttribute("onclick", "return showRapidText("+itemnum+");");
This works PERFECT but I'd like to make it IE compatible by putting it in this syntax
.onclick = new Function("fnDisplay_Computers('" + alines[i] + "')");
so... I tried
.onclick = new Function("showRapidText('" + itemnum + "')");
and
.onclick = new Function("return showRapidText('" + itemnum + "')");
and about 40 other ways but nothing works
if one of the main benefits of jquery is cross browser javascript support, does that become less valuable as more browsers aim to become standards compliant and the same javascript works on all browsers?
sub items of dropdown can be increased and decreased. angle only needed at last item's right bottom corner.
Edit:
I Know how to make dropdown menu and how to give cross browser transparency , my question is about to make transparent dropdown with right bottom angle.
Most of the applications that I'm finding, inncluding LiveHelp and PHP Live Chat! feature terrible, un-commented, non-cross-browser compatible Javascript.
I'm looking for chat software that uses a Javascript framework to avoid some persistent and common bugs related to the DOM.
I would like to make a draw application. I want to enter user names until eg "end" is entered and then the program to split them in groups of two. Can you suggest any examples? I don't know from where to start! If possible, I want to be Cross-platform, if not I want it for linux.
I want a portable C++ IDE for general development, and too to develop basic Windows GUI applications.
In my research, I've found this (with latest version date):
CodeLite IDE (2010-04-02)
Code::Blocks (2008-02-28)
Bloodshed Dev-C++ (2005-02-22)
NetBeans (2009-12-10)
Ultimate++ (2010-03-16)
Qt Creator (2010-02-01)
But I don't know if some these IDE's supports Windows GUI development (or Cross Platform GUI development) or if can be Portable (NetBeans can be portable).
Hi,
Why does the Javascript function call isNaN(123.) return false? Is this a universally acceptable number or will it cause errors downstream?
I'm validating whether a value is a valid decimal using isNaN along with split. Are there cross-browser issues with isNaN? Should I use a bespoke implementation?
Thanks.
hi.
I need to decorate all the activities shown in designer with some icons or other pictures.
is there any way to show all activities with some decoration (lets say cross "X" as picture )
I have some data tracked and I want to show that this activity finished OK and this failed because of ... etc.
do someone of you know? It would really help me a lot.
Hi,
I often cross this kind of code transformation (or even mathematical transformation)
(python example, but applies to any language)
I've go a function
def f(x):
return x
I use it into another one.
def g(x):
return f(x)*f(x)
print g(2)
leads to 4
But I want to remove the functional dependency, and I change the function g into
def g(f):
return f*f
print g( f(2) )
leads to 4 too
How do you call this kind of transformation, locally turning a function into a scalar ?
Given a file tree - a directory with directories in it etc, what software would you recommend to create a diagram of the file-tree as a graphic file that I can embed in a word processor document
I prefer vector (SVG, EPS, EMF...) files.
The tool must run on Windows, but preferably cross-platform.
The tool may be commercial but preferably free.
Hi all,
I came cross a question in my interview.
Question:
Array of integers will be given as the input and you should find out the middle element when sorted , but without sorting.
For Example.
Input: 1,3,5,4,2
Output: 3
When you sort the given input array, it will be 1,2,3,4,5 where middle element is 3.
You should find this in one pass without sorting.
Any solutions for this?
sub items of dropdown can be increased and decreased. angle only needed at last item's right bottom corner.
Edit:
I Know how to make dropdown menu and how to give cross browser transparency , my question is about to make transparent dropdown with right bottom angle.
Heading says it all really. Using Windows 7 and latest stable gvim, whenever I save (:w) a file it's marked executable. I'm doing cross-platform development and it'd be nice if this didn't happen.
Say I have a dataframe df with two or more columns, is there an easy way to use unique() or other R function to create a subset of unique combinations of two or more columns?
I know I can use sqldf() and write an easy "SELECT DISTINCT var1, var2, ... varN" query, but I am looking for an R way of doing this.
It occurred to me to try ftable coerced to a dataframe and use the field names, but I also get the cross tabulations of combinations that don't exist in the dataset:
uniques <-
as.data.frame(ftable(df$var1,
df$var2))
Hello,
I'd like to know if the executing thread is the one that created a given control instance (to prevent cross-thread if it's not).
Is that possible ?
Thx.
It is said here:
http://blogs.msdn.com/b/mikeormond/archive/2010/12/09/writing-cross-platform-xaml-applications.aspx
Within Visual Studio, if you add files to the project via “Add Existing Item”, and select the “Add As Link” option you can work on the same file from multiple projects.
Oh my I'm on a project which have multiple countries, brands, components layers and each time I will add a file you want me to "Add as Link" ? This is a nightmare maintenance !
Is there any other solutions ?
I am looking for a cross platform RAD IDE with GUI building. NetBeans looks right (or am aI wrong?).
However, I may want to code somethings in C++ and some in Python.
It looks like both are supported, but I am not sure if I need to install two copies of NetBeans or if one can handle both programming languages.
Sorry it's such a st00pid n00b question - can anyone tell me quickly? Thanks
Quoted from here:
BW = edge(I,'zerocross',thresh,h)
specifies the zero-cross method, using
the filter h. thresh is the
sensitivity threshold; if the argument
is empty ([]), edge chooses the
sensitivity threshold automatically.
If you specify a threshold of 0, the output image has closed contours,
because it includes all the zero
crossings in the input image.
I don't understand it,can someone elaborate?
hi,
what's the best way to customize html-css tooltips ? (I mean an easy cross-browser solution).
I need to reduce the fade-in delay and change the style. (also, could you suggest a good jQuery plug-in for it ?
thanks
Hi
Complete novice question. I've used jQuery a bit, YUI not at all and know very little about it.
I work on a website thats IE specific, we're now looking at making it cross browser. jQuery seems great at hiding the differences between browsers from a javascript point of view. However in terms of css layout is it YUI that I should really be looking at?
thanks
What is the jQuery alternative to the following JavaScript code?
var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
I believe a jQuery alternative would be more cross-browser compatible?
If you have 2 cross classifying variables you can use rowSums and colSums to produce margin totals on an xtabs output. But how can it be done if you have 3 classifying variables (ie margin totals in each sub table)?