Can I have object with the same name as class in javascript?
Can I have object with the same name as class in javascript? ...
Can I have object with the same name as class in javascript? ...
Zoom.addEventListener('click', function(){$(document).ready(function(){$("#draggable").draggable({containment: '#imgContainer', scroll: false});});}); let me first explain the code. Zoom is a handler/button on clicking which i am enabling the dragging of an image object. the above code works fine with Chrome but FF is finding errors. ...
Hello, I have a div which has width of say 200px. It does not show horizontal scroll bar. Now if anyone types any word more than 200px worth, it is simply hidden. I am wondering if its possible to automatically put a newline tag after every word reaches 200px length? Thank you for your time. ...
I'm getting no Javascript errors, but the code does nothing... function registerValidator(target, validator) { var element = document.getElementById(target); if (element) { var validationID = element.id + "_validationResult"; var validationSpan = document.createElement('span'); validationSpan.id = validat...
I am trying to access a page that has certain javascript that causes errors and prevents the page from fully rendering. <script language="Javascript"> parent.hidden.vPageState = parent.hidden.NEW_LIST; </script> and <body onload="top.menu.activateCell(3);"> Both of these errors are related to the fact that I am accessing the page ...
Hey folks. I know this issue has been touched on here but I have not found a viable solution for my situation yet, so I'd like to but the brain trust back to work and see what can be done. I have a textarea in a form that needs to detect when something is pasted into it, and clean out any hidden HTML & quotation marks. The content of t...
I have javascript file which contains a lot of global vars that are commented, but JSDoc keeps telling there is "Nothing to document, exiting". Here is a sample: /** * Name of the clients list * @type String * @final */ var CLIENTS_LIST_NAME = "Client"; Is there a way to generate documentation for such a .js file? ...
I'd like to programmatically build an HtmlTable/Table in the code behind of a webservice and have it return as a string of HTML so that it can be written with JavaScript to the innerhtml of a span/div/whatever Something similar to the following: //webservice.amsx.cs Build the table, called by another/different method protected string ...
I have a page with an iframe like this: <iframe runat="server" id="rsPrintFrame" src="framedPage.aspx" height="0" width="0"></iframe> I need to get access to a component on the 'framed' page from the parent page, as one would typically do with $find() or Sys.Application.findComponent(). But obviously I can't simply do: myFrame.conte...
It works in IE6, and FireFox; but for some reason not in IE7. Using ASP.NET on the Page_Init I populate a list of chapters that are links to the image in the book as well as a javascript array which holds the pageIDs. ex. Chapter 1 --> href="javascript:seePage(4);" here is the actual code I am using: var availablePages = ['1002_001...
I am getting the following error in FireFox only: Error: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: ""] I know it has to do with calling CSS from another domain but I can't find any references to any domains! How do I debug this? Thanks! Greg Wilson PS: If this is a...
Hey guys!, Does anyone know what might be causing this to happen? The file is uploaded correctly, it has the right permissions, and the <script> tag points to it correctly. The command I ran on the file was: gzip file.js What could it be? ...
I have a web page where I want to switch the background image of a div in response to user interaction. What I have so far is: function updateImg() { imgurl=buildImgURL(); // constructs a URL based on various form values $('#mainImage').css("background-image", "url("+imgurl+")"); } This works exactly like I want it to except f...
I compress my own JS using YuiCompressor, but is there any reason why MicrosoftAjax.js not minified? Or is there some setting to say run the compressed version of it (if there is a compressed version). Or do I need to decompile it and minify the script resource myself? ...
In a web app that I am writing there is web page (dashboard) which gets refreshed every 10 seconds. On refresh if there is any new data then I have to draw users attention. According to me the only possible solution for this is to draw users attention by flashing browser's window. So if browser's window is not the active window then th...
I a web application that I am developing (being developed in PHP) when a user posts any request for service the user has to fill in a very length form. Once user fills in the form and submits it another page (confirmation page) is loaded in which all values filled in by user are show. I must point out that at this stage the data is not ...
I'm looking for an event which will fire whenever the user switches away from the page to another tab, and another event which fires when the user switches back to the tab again. window.onblur and window.onfocus don't seem to work correctly across all browsers Is there a proxy I could look at in order to synthesize this event? ...
I have a directory of images that reside outside the context of my web application that I need to serve to the user. Currently I'm using an IHttpHandler to serve the images and using some javascript to navigate through a set of images (the navigation is primitive for now). I followed examples for using IHttpHandler to serve images closel...
I am trying to enable communication between Javascript and Flash via ExternalInterface across domains. The Javascript works great when it is located on the same domain as the SWF. But in one case, the HTML resides on domain A, the javascript and the flash both reside on domain B. I have done all of the following: The embed tag has allo...
I want to start a timer when the user clicks on a object, and stop it when the user releases the click. All using javascript/jquery. ...