JavaScript alert box with timer.
I want to display the alert box but for a certain interval. Is it possible in JavaScript? ...
I want to display the alert box but for a certain interval. Is it possible in JavaScript? ...
Does JavaScript create an issue when we implement master pages? It seems to me that it is quite tough to maintain and implement JavaScript on an application where we have used master pages. Is there any shortcut or the other way round to it? I referred this link, http://jai-on-asp.blogspot.com/2009/12/master-pages-in-aspnet-35.html, t...
Hi! I need to combine a ajax-driven RIA frontend, using for example JQuery layout plugin (http://layout.jquery-dev.net/demos/complex.html) or ExtJs (http://www.extjs.com/deploy/dev/examples/layout/complex.html), with... a php mvc backend, using for example Zend MVC, CodeIgniter or Kohana Where can I find info on how to set up the a...
I used jslint on a javacript file of mine. It threw an error: for( ind in evtListeners ) { Problem at line 41 character 9: The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype. what does this mean? ...
Hi I tried compressing a JavaScript file of mine using YUI compressor, but somehow it did not do what was expected. The JavaScript file is here. The compressed output looked like this: !window.$j&&(function($){$.jswaf={};$j=$.jswaf;var resources={},modules={},depends={},events={},eventfired={},modulepath={},themepath={}; [...] ...
Hello all, please help! I need use two jquery scripts - dynamic select box and clone row. Each of them work fine but I cannot find the way to use it together in one script. Thank you for any suggestion! Petr //SCRIPT ADD ROW $(function(){ // start a counter for new row IDs // by setting it to the number // of existin...
Are validation server controls better than javascript in any way ? Do they restrict us as we are only able to use the functionality that is provided by them. Please help me on this. I read about validation server controls from http://jai-on-asp.blogspot.com/2009/12/validation-controls-in-aspnet.html ...
What compressor is the best for javascript and css minified ? I am using YUI compressor , now. Any other best than YUI compressor ? ...
The following code was working very well. Suddenly, the Edit button click stopped working. When the user used to click Edit button, a JSON code executed. But it is not recognizing the click now. Something happened accidentally? Please assist. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <...
So i’v been going though the tutorial on: http://jqueryfordesigners.com/play-school-easy-ajax-load/ (site seems a bit slow at the moment BTW) I’v tried using: if(this.value.length > 0) { But it doesn’t seem to work. When I type something into the input forum it will load the test1.php every time even if I just press say shift. (this ...
My question is: function Foo() { this.foo = "bar"; // <- What is "this" here? } From what I can tell it depends on how Foo is used, i.e. as a constructor or as a function. What can this be in different circumstances? ...
Hai, I have a form with multiple date fields, Can anyone suggest me simple date picker in jquery or in simple javascript? Note: My form contains multiple date fields ...
Hi, I'm looking to get the complete text of the current row (defined by caret position) in a contenteditable iframe. What is the javascript/jquery code for that? Thank you in advance. ...
I'm getting my feet wet with Google's Closure Library. I've created a simple page with a Select Widget, but it clearly needs some styling (element looks like plain text, and in the example below the menu items pop up beneath the button). I'm assuming the library supports styles -- how can I hook into them? Each example page in SVN see...
Is there a way to set focus to the embed HTML element using JavaScript? Test case: embedded YouTube videos on a page. I have no control over the embedded Flash element. So, is there a way to set focus on it by using only JavaScript? I read somewhere that calling the element.focus() method works only in IE. I need a browser-independent...
Controller public ActionResult GetCategories() { var htmlText = new StringBuilder(); var scriptText = new StringBuilder(); htmlText.Append("Hello world"); scriptText.AppendFormat("document.write({0});", htmlText.ToString()); var content = new ContentResult(); content.Content = script...
I want to show some JavaScript array values in another document Input Boxes. Previously, I was using: document.getElementByID('....').value = .... Now I want to know how to replace the 'document' with another page. Edited: My page opens two tables side-by-side. First table contains controls and the second contains and IFrame and ins...
I am debugging someone else's web page. There is a link on it which tries to open itself in a popup window, the reason for this is unclear -- there is nothing obvious in the HTML (onclick=foo) to cause this. Disabling JavaScript means the link opens normally. I have Firefox/Firebug/Dom Inspector and would like to trap whatever JavaScrip...
For example: 1) In webBrowser1 page index.html is loaded. 2) This page has the following code: ... <a id="activity_text" href="#" onclick="activity_editor.show();return false;">now status</a> ... 3) As I can in the program way to change "now status"? I tried so: HtmlElement collH1 = document.GetElementById("activity_text"); collH1.I...
I have a LoadingStatus Function that has two options SHOW or HIDE. The Show triggers to display when the JQUERY POST is made, the HIDE happens after the RESPONSE comes back. The issue I'm having is that sometimes this happens so fast that it makes for a bad experience. What I thought about doing was putting in a JavaScript PAUSE, but i...