What's the first thing I should try to learn before learning to program?
I'm coming from an XHTML/CSS background. I don't know much about JavaScript. Would you recommend learning JavaScript before learning a server programming language? ...
I'm coming from an XHTML/CSS background. I don't know much about JavaScript. Would you recommend learning JavaScript before learning a server programming language? ...
I don't think a function/method should ever return voidinstead, it should return this. That's why I was surprised to find out that this doesn't work: $('buttonContainer').getElement('input').set('value', this.get('value') + ' '); What the code is suppose to do is find an <input> that is a child of the element with id attribute value ...
how to apply java script with zend form.how to create zend form using zendframework including java script validation example: blur,focus,click events etc ...
I've been learning more about javascript's prototypal inheritance. I know there is a somewhat fierce debate on whether to extend native objects and I'd like to side step that whole debate entirely in this question. Is it possible to extend only descendent object in javascript? To extend all objects I can do this: Object.prototype.size...
I have been writing javascript for one or two months , I never used Function keyword , like Function.method(); when I define function , I simply define it as : function fooBar () {}; Can you give me an example when using Function is more convenient ? ...
I want to write a action method returning Javascript. How to run javascript using MVC controller? I tried the following, but it fails to work properly. It shows file download - security warning? [AcceptVerbs(HttpVerbs.Post)] public ActionResult About(clsABC param) { string message = "Hello! World."; System.Text.St...
i am new user to php and i have a html page which is devided into two frmaes left frame and right frame and i am showing a tree list page in left frame and what i want to do is that when i click on a node of tree related link page should be open in right frame. how can i do this. plz help e out. ...
Hi guys, I am accessing a WCF service using a JavaScript code <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"> <Services> <asp:ServiceReference Path="ForumService.svc" /> </Services> </asp:ScriptManager> in web.config <system.serviceModel> <diagnostics> <messageLogging l...
I am facing a tricky situation here...this is the problem...I have a flash object over which i want to display an image These are the tricks that i tried...1.Playing with z-index(no use) 2.Setting the wmode parameter to transparent/opaque(again no use)3.Using javascript and displaying image only after the page is loaded(still no use) I t...
The ultimate goal: pretty pages for mouse users, accessible pages for keyboard users. The effect I want is for clicking an anchor to produce no outline during and leave no outline after. Further, I want keyboard tabbing to move the focus and thus surround items with an outline. The following code works in FF (and I assume the other mo...
all, How to create an element in javascript, say <div></div> and i want to assign a javascript value to it say var a=3; Example: <script> var ele=create element('<div>'); ele.add(a) </div> </script> Thanks.......... ...
How to build a "class" (with properties and methods) upon which will be created a lot of instances? ...
I want to be able to deliver music/mp3 using a flash player but I'd like to make it so that the mp3 files cannot be sniffed... i.e. you can't use safari, firebug..etc. to find out the mp3 location using the activity window. I don't have a streaming server. Any idea? If I go with a streaming server, any suggestions on how to go about it...
I'm trying to acces a swf function from javascript using External Interface given by adobe and I get the following error. SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://media.varheroes.com/flash/flashtest.swf cannot access http://apps.facebook.com/feline-frenzy/flashtest/. at flash.external::Exte...
I would like to prompt the user for some input on a webpage. I can't use the builtin Javascript prompt function as it is creates security warnings in IE. Is there a best practice/method/example that people use to recreate this? The Javascript would need to be embedded in the page, so I'm looking at avoiding weighty external libraries....
I have a Windows Communication Foundation service which queries the Entity Framework and retrieves data in the form of Entity objects. I'd like to serialize these objects to JSON and send them back to the client to be interpreted in Javascript. It seems this is tricky, according posts like these: http://bloggingabout.net/blogs/progr......
Hi, I am developing an MVC application. I want to call a javascript function on page load event of a page. Also I want to pass some string parameters to this function which i want to show as confirm message content. On confirm's OK click, i want to show an alert. How can i do this? Thanks, Kapil ...
I got a jQuery prompt that is a password validation. I use a ajax webservice for this task. now my confusion is how should I handle the ajax call and make function bool? I started with ajax and webservices about a 2 hours ago so be nice. $(document).ready(function() { $("#sayHelloButton").click(function() { jPro...
I need to round up to the nearest 0.10 with a minimum of 2.80 var panel; if (routeNodes.length > 0 && (panel = document.getElementById('distance'))) { panel.innerHTML = (dist/1609.344).toFixed(2) + " miles = £" + (((dist/1609.344 - 1) * 1.20) + 2.80).toFixed(2); } any help would be appreciated ...
I would like some variables from my settings.py to be available in every javascript running across my project. What is the most elegant way of achieving this? Right now I can think of two: write a context processor and declare those globals in a base template. All templates must extend the base template. declare those globals in a dy...