Is it possible to make the Eclipse-Javscript-Editor recognise Mozillas JS 1.7 constructs and do the syntax highlighting properly?
Examples:
"let", "for each", "yield" are not highlighted
No support for E4X
I'm using an updated Helios + WDT-Plugin and I can't choose a different validator than ECMAScript3.
I tried to find some inform...
this is my code:
var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
alert(minutes+"/"+hours+"/"+month + "/" + day + "/" + year)
but , i think it hard to compare with two t...
I'm developing a page that pulls images from Flickr and Panoramio via jQuery's AJAX support.
The Flickr side is working fine, but when I try to $.get(url, callback) from Panoramio, I see an error in Chrome's console:
XMLHttpRequest cannot load http://www.panoramio.com/wapi/data/get_photos?v=1&key=dummykey&tag=test&offset...
I need to display a mobile-phone compatible popup menu when user left-clicks a HyperLink control. A menu will contain various options for this link, so its handler had to be aware of the clicked link data (actually, each link corresponds to a nickname).
What do I need to make that work?:)
...
Both JS and AS3 implement RegEx as defined in the ECMAScript edition 3 language specification (ECMA-262).
Although I may not have any trouble converting the regular expressions themselves, in javascript I see the string.replace() function used.
AS3 only has exec() and test(), are they equivalent to replace()?
...
I'm new to web-design and javascript, and I don't understand why it's common for web designers to use the void(0) syntax below:
<a onclick="this.blur();return false;" href="javascript:void(0);" class="btn">
Since this actually shows itself in the lower left hand corner of the browser, why not come up with a way to make it more user f...
I use the following jQuery code to access functions in my SWF (FP 10.1 SWF embedded via SWFObject):
$('#FlashApp')[0].someFunc();
This works fine in every browser.. except for Internet Explorer (surprise!). Surely, the point of jQuery is to make this code work across all browsers? I'd really rather not write extra code to check for IE...
What languages/techniques are used for letting the web browser interact with the desktop, e.g. dragging files to the web browser, dragging files from web browser to desktop, and maybe more features that I'm not aware of.
I think flash and silverlight allows you to do that but I'm not sure.
Does javascript do this?
...
I made little jquery script for checking if input box value bigger than 5 .but I have 2 tag with an id and only one of them works.
<div id="register">
<form id="register">
<input id="first" type="text" /> <a id="first" ></a> <br />
<input id="second" type="text" /> <a id="second" ></a>
</form>
$('input').keyup(function(){
...
If I decided to use Silverlight, does this mean that I'm no longer working with html/css/javascript on the client side?
...
How can I search for an element within a nested array. Following is what the array looks like
arr = [
["choice1", ['a', [2, 4]], ['b', [1, 3, 4]], ['c', [3, 4]]],
["choice2", ['b', [1, 4]], ['c', [1, 3]]],
["choice3", ['b', [1, 2, 4]], ['c', [1, 2, 3, 4]]]
]
if 'a' is equal to '2' then the following function has to return "ch...
I know PHP and MVC but when I work on Joomla I dont want to learn Mootools for AJAX , I rather include jQuery which I know thoroughly. I think IMHO jQuery has the largest mindshare in AJAX Libraries.
When I work on Magento , instead of using bundled prototpye , I use jQuery . Same is the case with SocialEngine where I dont use the bund...
I use requestAction with parameter return $this->requestAction (....,array('return');
request action in plugin . plugin render view has $js->submit('Save',array('updade'=>'#fsjkfsj');
but it dont show any javascript when i view source code. I tested with code $js->alert('ksldjflkjs'); but it dont , too
how make requestAction width JS ...
or have it both ways?
...
<img src="images/icon2.png" border=0 onClick="window.document.getElementById('loadimg')">
<a href="images/img.jpg" id='loadimg'></a>
i want when click the image will active the link by id='loadimg'
how can i do i try write onClick="window.document.getElementById('loadimg')" but not work
Than you
...
var text = '#anything {behavior:url("csshover.htc");}'; //iam using " with url
text += "#anything {background:transparent url('img.png') no-repeat;}"; //iam using ' with url
text += "#anything {background-image:url('ok.jpg');}";
result
#anything {
behavior:url("#");
}
#anything {
background:transparent url('#') no-repeat;
}
...
I have many existing scripts that I need to debug, all embededed from code behind.
I would prefer to use Visual Studio 2008 client side debbging features, but breakpoints can only be set inside the aspx file withing a script block.
The problem is I can't put a breakpoint on the scripts because they are all registered from the code be...
I have a piece of jQuery code which appends an input button to the body and then assigns an onclick function to it. The function that is meant to be called has been defined elsewhere and takes two arguments which are variables that have been defined just before.
This is the code I'm currently using:
$("body").append("<input type='submi...
I'm trying the find a xml node with xpath query. but i cannot make it working. In firefox result is always "undefined" and chrome throws a error code.
<script type="text/javascript">
var xmlString = '<form><name>test</name></form>';
var doc = new DOMParser().parseFromString(xmlString,'text/xml');
var result = doc.evaluate('/form/name'...
http://www.rollinleonard.com/projects/abfs/dropceiling/index2.php
I really need Lazy Load or something similar because this page will have 10,000 images. Is there any way to make this work? Did I miss something simple?
...