Should web developers still learn JavaScript?
Now that frameworks like GWT, Morfik etc exist which compile Java client side code into major JavaScript dialects, is it still worth learning JavaScript? ...
Now that frameworks like GWT, Morfik etc exist which compile Java client side code into major JavaScript dialects, is it still worth learning JavaScript? ...
We're developing a web application that is going to be used by external clients on the internet. The browsers we're required to support are IE7+ and FF3+. One of our requirements is that we use AJAX wherever possible. Given this requirement I feel that we shouldn't have to cater for users without javascript enabled, however others in the...
I used JavaScript to open a new window(child) when user clicks on button from parent window. On new window(child), I have textbox and button, I need to get the value of the textbox and pass to parent window when user clicks on button, while closing the child window, I need the updated value inserted into parent window (without refres...
I'm testing a flash script that calls a JavaScript function (both, the swf and the HTML file are local). The flash movie is not allowed to access the HTML file that contains the js-function. I've learned that I have to put both files into a security sandbox, so I added the path to both files (HTML+swf) to a file test.cfg in C:\WINDOWS\s...
Hello, I have an XML file in a string in this format: <item> <name>xxx</name> <id>yyy</id> <view> <name>view1_name</name> <view_attrs> <view_attr> <name>Age</name> <values> <value>18-36</value> <value>55-70</value> </values> </view_attr> <view_attr> <name>Status</name> <values> <val...
I'm trying to make a calendar page where you can click and drag to select multiple calendar days at once. Everything works fine in Google Chrome, but in Firefox, when I try to start dragging, it fails. The reason for this is that each calendar day is contained in a link (<a></a>). When you try to drag links in Firefox, it does its own...
Hello all, I have a JS script, in this JS script I have 1 functions which creates an Object or an instance. Is the object/instance created when the page loads or is it created when I call the function? If the latter, how can I make it so that it creates the instance when I want it to? Apologies for a nooby question. Thanks all Upda...
Attempting to deserialize JSON data and update each object's prototype and inherit a common function. However, the following script throws error "people[0].getFullName is not a function". The prototype for deserialized objects appears to be undefined after assignment. <html> <head> <script> var json = '[ {"firstName": "John", "lastName...
Is there a way to style (or script) <input type=file /> element to have visible only "Browse" button without text field? Thanks Edit: Just to clarify why to I need this. I'm using multi file upload code from http://www.morningz.com/?p=5 and it doesn't need input text field because it never has value. Script just adds newly selected fil...
Hello all, I keep getting this error everytime I make an AJAX (iFrame) request to upload a video to viddler. Permission denied to get property XMLDocument.readyState ajaxupload35.js (line 455) [Break on this error] if (doc.readyState && doc.readyState != 'complete'){ Line 455 to 460 is this: // fixing Opera 9.26 if (doc.readyS...
In the django function showRelatedObjectLookupPopup, I'd like to bind a function to a button in the newly popped up window, but I don't know how to refer to the new window. Here is what I have tried: function showRelatedObjectLookupPopup(triggeringLink) { // other function stuff omitted var name = triggeringLink.id.replace(/^lookup_...
Why does the the RegExp /^\w+$/ match undefined? Example code: alert(/^\w+$/.test(undefined)); This will display true in Firefox 3 (only browser I tested it on). ...
I am trying to show an image if a call to http://localhost:someportnumber/icon returns a zero size 200 response. in most browsers, the following (cut down) works: jQuery.$('#myImage').load(function() { jQuery.$(this).show(); }); if the image doesnt load, the img element is never shown, and its all good. however, safari decides to...
I've found a "database" of many XSS attacks and while this list provides quite a big list of attacks are there are any other attacks that didn't fall in the XML, what to look out for and most unexpected? ...
Hi all, I am a proficient C++/Qt coder, having worked only on desktop projects till now. I wanted to extend my knowledge base into the web realm. In this regard, can some of you suggest good reading material for C#,JavaScript and php? And are there any standards for these languages as there are for C,C++ like ANSI C,C99,C++0x etc. ...
$('.textedit').editable('/challenge/skeleton/textedit/textedit/process', { loadurl: '/challenge/skeleton/textedit/textedit/loadraw', loaddata: {id: $(this).attr('id'), client: $(this).data('client')}, submitdata: {id: $(this).attr('id'), client: $(this).data('client')}, .... }); $('#textedit_footer').data('client', 5); $...
Hello, I have a generic question about javascript specification or implementation of functions pointer (delegates?) which are points to object methods. Please, read the following code snippet. Here we have an object with a method using 'this' to access an object field. When we call this method as usual (o.method();), returns value of ...
Hi In javascript how to enable Internetoptions/Adavanced/Enable client scripts Programatically.. Intention is, If web client has disabled the client Script, our code need to programmatically enable... Can you please suggest..? Thanks Karthik ...
Hi, I have a method: myMethod() {} that I want to make accessible to javascript. I've done a bit of research and found out you need to add a callback to ExernalInterface, so here's what I have done: ExternalInterface.addCallback("invokeMyMethod", myMethod); Now when I load up my web page with the flash on it, I get an error: Referen...
How to dynamically, via javascript, delete a session cookie, without manually restarting the browser? I read somewhere that session cookie is retained in browser memory and will be removed when the browser is closed. // sessionFooCookie is session cookie // this code does not delete the cookie while the browser is still on jQuery.cooki...