How to send an asp control to javascript
I am trying to send an asp control (textbox) to a javascript function. onblur="CalculateLossRatio(this.value,<%=txtLossRatioCurrentYear.ClientID%>)" Is is the right way to do this. ...
I am trying to send an asp control (textbox) to a javascript function. onblur="CalculateLossRatio(this.value,<%=txtLossRatioCurrentYear.ClientID%>)" Is is the right way to do this. ...
I am working on an online education website that frequently uses pop up windows. This is part of a learning management system from a third party provider so not possible to change the way this works. We get lots of helpdesk calls with users stuggling with popup blockers - in their OS, browser settings and additional toolbars. I am us...
while using window.print() the background colors for table cells not printing Thanks for any help/solution ...
I'm using a context-menu jquery plugin and I need to detect what browsers support this. How can this be done? I heard some versions of opera and safari don't support this right-click overriding business ...
What happens if a user looks at my JavaScript file, copies the content of a function and sends a request to my server using AJAX? And is there a way to properly protect against this from happening? ...
Hi All, I m using typeface.js to convert my font to specific volta regular font in my web site but it gets blury when i increased a resolution please tell me how to do it sharp at any resolution code: (function() { var _typeface_js = { faces: {}, loadFace: function(typefaceData) { var familyName = typefaceData.familyName.to...
Hi, I have been monitoring the parameters a website receives when a file is uploaded (via an input type="file"). Surprisingly, the parameter and its value were looking like this : parameter: upfile value: filename="this is the name of the uploaded file.png" Content-type: image/x-png Now in this POST request to the server page...
Hi all, I have a link in a Gridview that I want opened in Windows Explorer (or explorer.exe). <asp:GridView ID="GridView1"runat="server" > <Columns> <asp:TemplateField> <ItemTemplate> <asp:LinkButton ID="DeploymentLocation" runat="server" CommandName="OpenLink" Text='<%# Eval("Dep...
Hi there, I am passing hidden value, and getting it into javascript function. I want to pass this value to another page. Before passing when i print it, it gives me [object HTMLInputElement] $var4 = 1; echo "<input type='hidden' id='var4' value='$var4'>"; and accessing it in javascript var y = document.getElementById('var4');...
Hi Folks, I have a scenario in which I have 2 Submit Buttons in a form for going back and forward. Both the buttons have different JavaScript associated with it. It is working great if we press these buttons to navigate. But when in Google Chrome, when someone press enter on any of the text box within the Form it does not calls the on...
this one a code for read two character behind text "KD-R411ED" var code = data[0].substr(data[0].length - 2); how to read ED character if text like KD-R411H2EDT? i want a new code can combine with code above..please help!! look this: <script type="text/javascript"> $("#tags1").change(function() { ...
Hi, I'm using jsTree and I have 2 textboxes: <input type="text" id="previous_tree_id" value="" /><hr /> <input type="text" id="current_tree_id" value="" /> In the jsTree callback I have: $("#demo_1").tree({ callback : { onselect : function (NODE, TREE_OBJ) { var selected_tree_id = $(NODE).attr('id'); ...
Based on http://mark.mymonster.nl/2009/02/28/integration-of-browsers-unloading-with-silverlight/ I know when the user closes a browser window containing Silverlight, by use of javascript. This basically creates a popup window, where the user can stay on the page(by clicking CANCEL), or exit the page (by clicking OK). I am interested in ...
Hi forum, I have two head-scratchers here: #1- IE8 not seeming to like my javascript; #2- a CSS alignment issue in all IE6 & 7s. Thanks so much for the various suggestions (to use javascript) on my last question - really helpful. I have been able to get the double nested behaviour of the CSS-only page (see team.html in Firefox when you...
Hey, say I have a text node via XPath. How would I replace the text node with a new DOM node? For example, this little patch of code will go through text nodes, and if text matches something, it will replace it with a corresponding image via img element. I wanted something faster then a global page regex or even a element innerHTML rege...
Is there any way I can parse a chunked response through AJAX as the chunks are being received? For example, server.com/ping is set up so it sends a new chunk with some javascript in it, something like ping(), every 10 seconds which updates a number on the web page visible to the user. Is there a way to parse the individual "chunks" of i...
I recently attended a conference on future of the web and web development and it was a lot of focus on HTML5 and how it will impact the way we look at the web and how we will use it. The majority of the speakers meant that it will replace native application on your desktop as well as in your mobile phone. I agree that you will be able ...
Hi, Just curious to know that if my pc is infected with trojan or any other virus, is it possible that my website will be infected along with that I have made up in asp.net with visual studio 2008. I am not sure that it is the right place to put this question or shall I have to put it to http://stackapps.com/ or any other site linked ...
I have a problem with dojo.xhrGet (dojo 1.3) in IE8 where: 1. I have a set javascript files that must satisfy some dependecies proj4js.js depends on OLprototype.js while lcc.js and EPSG3308.js are needed if proj4js.js is used. 2. if I execute the script below, funLoad("/proj4js/lib/proj4js.js") fails on IE8, while it works on FF3.6.3; f...
So I think jStorage is what I need to solve one of my problems. It needs JSON to be working with jQuery, so I've tried including it, but it doesn't seem to work. I have no idea what JSON is actually. Here's my code (jQuery is loaded higher). It doesn't even show the alert window. <script type="text/javascript" src="jquery.json-2.2.min.j...