Multiline strings in Javascript
Sorry, can't seem to find the syntax. Trying to look for the equivalent of text = <<"HERE" This Is A Multiline String HERE [from Ruby] in Javscript ...
Sorry, can't seem to find the syntax. Trying to look for the equivalent of text = <<"HERE" This Is A Multiline String HERE [from Ruby] in Javscript ...
How do I unbind "hover" in jQuery? This does not work: $(this).unbind('hover'); ...
The main point to make "<" to "\<" and ">" to ">" is to make avoid below inline script: <script> var foo = "</script><script>alert('bug');</script><script>"; // the value of foo is generated from server </script> The string value of foo is generated from server side. So, we plan to change "<" to "\<" and ">" to ">". (I know there i...
Hi, I want to use JavaScript to restrict input on a text box to currency number formatting. For example: <input type="text" value="2,500.00" name="rate" /> As given above, the text box should accept only numbers, commas and a period. But, after the period it should accept two digits after numbers. How do I accomplish this? Please ...
This question is a followup to my previous one: Previous Questions. So I setup my page to initiate an ajax call to initiate processing some records. And after each record it updates a row in another table to keep track of the status of this process. After that first ajax call is made, I have another start up. It's a Ajax.PeriodicalUpdat...
Does anyone know any way that I can use javascript to check when the browser window is close and pop-up a confirmation dailog to ask whether the user is confirm to exit the browser or change his mind to stay? ...
What are the options for something that will let users make text bold/italic/underline/etc as they are writing in a textarea and work in all browsers? ...
I'm using ASP.NET user controls. I'm passing values to another user control via command arguments through a link button as follows: asp:LinkButton ID="ZoomPhotoLinkButton" CommandArgument='<%#(Eval("conid"))%>' CommandName="PassItemId" runat="server">Zoom It What I really want is to make the entire background cell of my table clickab...
OS: Linux Browser : Firefox I need to read a html file content into a string variable through JavaScript ? Is it possible in javascript ? If yes, Kindly help me with syntax/method to do this ...
for a current webapp i need a "outlook-like" calendar... Here are some requirements for the calendar: week-view for the appointments different appointment types direct display of the length and time of the date (like in googleCalendar) multiple appointments for the same time only using javascript, php and any DB We need the calendar ...
Following on Steve (YSlow) Souder's evangelism, my site (LibraryThing.com) splits requests across domains to facilitate parallel loading. We do CSS, JS and images; you can also do Flash, etc. We also use Google's version of Prototype, which is cross-domain, not just cross-subdomain. This is all great for speed, but for a small percent o...
Is there any setting in Coda, or hackable solution, to get the JavaScript Console log to automatically clear itself after page reload? I often stumble when I see old errors in the log, that doesn't still exist. ...
I'm using JSLint to verify most of my external Javascript files, but the largest amount of errors I'm getting is from functions being used before they're defined. Is this really an issue I should worry about? It seems FF,IE7,Chrome don't care. Functions like the popular init() which I use often, normally stick at the top as that makes ...
I'm trying to change the value on a <textarea> element. This code works great in Firefox, but IE claims there's an error onblur and doesn't set the value. <textarea name="comment" id="comment" rows="8" cols="80" style="color:grey;" onfocus="if(this.value=='Add a comment...') {this.style.color='black'; this.v...
i have a json object in a javascript file. i have to pass this object to a jsp file.the jsp picks up this object and processes it. how can i do it? ...
HI Folks, I'm using the Struts 2 validation. And for displaying the custom error messages I'm overriding the css_xhtml.. and the validation.js for client side validation. Every thing is going well but the validation is on form submit.. can i do it for all the form fields Onblur event.. Any suggestion highly appreciated Thanks in Adava...
To prevent impatient users from clicking on a link to a webstart application too often, I tried to disable the hyperlink for some seconds after it has been called the first time. <a href="file.jnlp" onclick="if (!this.clicked){this.clicked = true; setTimeout('this.clicked = false' ,10000); return true;} return false"> The code above ...
I have a werid situation where a modal popup gets hidden automatically when it is opened via javascript (either by doing a .open or by doing a .click on the opening button). Everything is fine when the opening button (ie TargetControl) is used. To rephrase the question - what keywords should I use to search the ScriptResource.axd or any...
I'm currently trying to create a macro to help me debug an annoying JavaScript issue. There's a function that's getting called and it's throwing an exception. I've tried stepping through to find out what code is calling this function (because it shouldn't be called) but the third-party controls we're using and jQuery are creating a mount...
What's the best way to implement Meebo-style floating windows? I'd prefer to use Prototype (but if there's a good Jquery implementation I'd be happy to look into it as well). I'd like windows to be draggable/resizable and generally "lightweight" and responsive. ...