Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
602,640
602,641
javascript bind validators
<p>Ive got some validators in my UpdatePanel. If OnServerZValidate returns false corresponging message is displayed atthe wrong field but all javascript I used to bind some options on click to some classes isnt working.</p> <p>this is the script, it works if the page is loaded for the first time:</p> <pre><code>$(doc...
jquery asp.net
[5, 9]
971,978
971,979
How do I find the current window offset using javascript?
<p>When I open a page, the window offset would be 0 but when i scroll through the page, the offset of the window would increase correspondingly? How can I find the window's offset at any particular point of my web page?</p>
javascript jquery
[3, 5]
3,543,360
3,543,361
android: file does not stay written
<p>Here are the relevant bits of my code</p> <pre><code>public void Toast(String text) { Toast toast = Toast.makeText(this,text, Toast.LENGTH_SHORT); toast.setGravity(Gravity.CENTER_HORIZONTAL|Gravity.CENTER_VERTICAL, 0, 0); toast.show(); } //Within another function File rootPath = new File(Environment.get...
java android
[1, 4]
3,955,195
3,955,196
SetTimeout function still makes UI unresponsive until its operation over
<p>I have wrapped the long running logic(longLoop) with setTimeout function, but still UI become unresponsive until long running execcution over. It doesn't allow to click other UI button. Please look at my below example and let me know if any issue you see.</p> <pre><code>function longLoop () { var startLogTime, ...
javascript jquery
[3, 5]
5,534,786
5,534,787
Changing the sitemap node title
<p>I have a "one for all" 'ProductsList.aspx' which loads all different types of products based on the 'CategoryId' querystring send to it, hence if a user clicks 'Basketball' link, I need the sitemap title in the 'ProductList.aspx' to write 'Basketball'.</p> <p>I tried</p> <pre><code> SiteMap.CurrentNode.ReadOnly = ...
c# asp.net
[0, 9]
2,460,236
2,460,237
ASP.net image processing and adding this image to Image control
<p>I have the following code:</p> <pre><code>bmp = new Bitmap("C:\\resim.jpg"); Graphics g = Graphics.FromImage(bmp); g.DrawString(metin, new Font(metin, 9, FontStyle.Regular), new SolidBrush(System.Drawing.Color.Black), 10, 10); </code></pre> <p>With this code I can create a new image. Now I will be showing my image...
c# asp.net
[0, 9]
2,804,559
2,804,560
get the key value from javascript object with jQuery
<p>i have this object: </p> <pre><code>"{"logEntries":[],"value":"-8","text":"Europe","enabled":true}" </code></pre> <p>how do i get the value of the "value" key in jQuery with minimum code?. in this case "-8".</p>
javascript jquery
[3, 5]
5,805,013
5,805,014
Using OnDraw() Function in Android Conditionally
<p>I want to know if we can call Ondraw() method of Android conditionally based on some flag. For example <code>ondraw()</code> should be called only when a particular frame is decoded.</p> <p>Consider this situation:</p> <pre><code>decoder(); /// @NDK set flag; if (Flag==set) { OnDraw() works and displays ...
java android
[1, 4]
1,136,988
1,136,989
2 IntentServices accessing the same data on file system.. safe?
<p>I'm relatively sure with this, but I need your opinion. I have two IntentServices on Android, both have access to the application's private file system.</p> <p>The filesystem works like a queue - the first IntentService only performs write operations, that means it does nothing other than creating new files. The se...
java android
[1, 4]
4,555,145
4,555,146
How to select consecutive elements that match a filter
<p>Given this example:</p> <pre><code>&lt;img class="a" /&gt; &lt;img /&gt; &lt;img class="a" /&gt; &lt;img class="a" id="active" /&gt; &lt;img class="a" /&gt; &lt;img class="a" /&gt; &lt;img /&gt; &lt;img class="a" /&gt; </code></pre> <p><em>(I've just used img tags as an example, that's not what it is in my code)</...
javascript jquery
[3, 5]
861,810
861,811
what is the right way to set input fields and labels from the properties of the same object in jquery?
<p>I have an object with a bunch of properties. Some properties are to be displayed in input elements, some in labels.</p> <p>So, my code looks like this:</p> <pre><code> var data = getMyData(); var propNames = Object.keys(data); var i, propName, elem; for (i = 0; i &lt; propNames.length; ++i) { propName =...
javascript jquery
[3, 5]
4,808,339
4,808,340
How to embed a new line in innertext
<p>How will I be able to force a newline(or a line break) in innertext</p> <pre><code>HtmlGenericControl li; li = new HtmlGenericControl("li"); li.InnerText = sdr.GetValue(0).ToString()+"\n"+sdr.GetValue(1).ToString(); myList.Controls.Add(li); </code></pre>
c# asp.net
[0, 9]
5,206,788
5,206,789
arithmetics on selected DOM element text
<p>I've got a simple jQuery <code>$("span.value")</code> which select nodes containing text. This text is guaranteed to be an integer. How do I calculate the sum of all selected node's text, and place the sum into another node?</p> <pre><code>&lt;span class="value"&gt;3&lt;/span&gt; &lt;span class="value"&gt;4&lt;/spa...
javascript jquery
[3, 5]
4,731,491
4,731,492
jquery - Block specific links before a page fully loads and binds click events
<p>I have a modal dialog plugin written in jquery, that binds to the click event of all of the &lt;a&gt; elements with a specific class.</p> <p>The modal dialog 'fetches' a page via AJAX, which is declared under the 'href' parameter of the &lt;a&gt; element.</p> <p>Everything works fine, but - when a user clicks the...
javascript jquery
[3, 5]
2,348,212
2,348,213
How do get change value of <input> element?
<p>I have a input in datalist</p> <pre><code>&lt;input type="text" value="1" id="txtcount"&gt; </code></pre> <p>I want get new value of it when text change.</p> <p>I use this code but don't work for me .</p> <pre><code>&lt;script&gt; //look no global needed:) $(document).ready(function(){ // Get the initial va...
javascript asp.net
[3, 9]
5,612,899
5,612,900
Posting label text along with the array checkbox values
<p>I have following checkbox arrays in html form</p> <pre><code>&lt;label&gt;&lt;input name="columns[]" type="checkbox" value="pname" /&gt;Property Name&lt;/label&gt; &lt;label&gt;&lt;input name="columns[]" type="checkbox" value="2000" /&gt;Price&lt;/label&gt; &lt;label&gt;&lt;input name="columns[]" type="checkbox" va...
php javascript
[2, 3]
317,963
317,964
Unable to debug a ResourceNotFoundException
<p>I'm having a little trouble trying to debug a <code>Resources$NotFoundException</code>. I'm trying to add items from an enum to a <code>AlertDialog</code> dynamically:</p> <p>Here's the code from my <code>Activity</code>:</p> <pre><code>final ArrayList&lt;CharSequence&gt; lstChoices = new ArrayList&lt;CharSequence...
java android
[1, 4]
4,991,563
4,991,564
Project topic help
<p>I want some project ideas for my final year project. I have learnt languages like C,C++,Java,HTML &amp; PHP,VB,MySQL as front ends &amp; back ends. I was thinking of developing an online shopping website but that would be too simple, so if anyone could give me some ideas to work on.. that would be very helpful.</p>
java php
[1, 2]
3,482,376
3,482,377
jQuery doesn't work on Safari and Chrome
<p>I'm using the same jquery to show two different things but i don't understand why in the menu on the left it work and on the bar under the picture it doesn't work.</p> <p>E.g. try the bar in archittettura->55 inch/60mq and see the white space that doesn't move when you change the picture. </p> <p>I tryed to change...
javascript jquery
[3, 5]
3,238,187
3,238,188
make dynamic table visible in all page
<p>I'm creating a dynamic table using c# and in one TableCell I have a dropdownlist.I've created an SelectedIndexChanged to my dropdownlist event and now I want to refer to my TableCell.</p> <pre><code> public void CreareTabel() { TableRow row = new TableRow(); TableCell celula = new TableCell(); ...
c# asp.net
[0, 9]
4,842,690
4,842,691
Client-side RadioButtonList validation
<pre><code> function IsChecked() { var rblActive = document.getElementById("&lt;%=rblActive.ClientID %&gt;"); var item = rblActive.getElementsByTagName("input"); var IsItemChecked = false; for (var i = 0; i &lt; item.Length; i++) { if (item[i].checked) { IsItemChecked ...
javascript asp.net
[3, 9]
2,019,660
2,019,661
Checking input box whether it is focused or not
<p>I want to change the appearance of the web page according to an input is focused or not, If it is not focused, it will display something and if it is focused, replace something with another things simultaneously.How can i do that that?Can it be done with PHP? Thanks</p>
php javascript
[2, 3]
5,359,715
5,359,716
How to see if two image sources are equal?
<p>I am trying to see if two images that the user clicked on are the same. I have some code that retrieves the source of an image that was clicked on:</p> <p><code>$('img').click(function() { var path = $(this).attr('src'); });</code></p> <p>I just need a way to compare two sources with each other. I trie...
javascript jquery
[3, 5]
2,287,022
2,287,023
Setting value onClientClick() and Getting that on onClick()
<p>i have a asp:button and a asp:hiddenfield like this..</p> <pre><code>&lt;asp:Button ID="btn_CreateContent" runat="server" Text="Upload" Height="25px" OnClientClick="UploadNewContent(event)" OnClick="btn_CreateContent_Click" /&gt; &lt;asp:HiddenField runat="server" ID="hdn_ContentID"&gt;&lt;/asp:HiddenField&gt; </c...
jquery asp.net
[5, 9]
1,124,857
1,124,858
ASP.NET why Gridview Paging on page 2 and the rest of it are disappear?
<p>I have so many list of ServerName in GridView, so I decide to add paging. The data show list result on page 1 but on page 2 and the rest of it is not display anything. I already have <code>OnPageIndexChanging="GridViewServer_PageIndexChanging"</code> in GridViewServer property. Please help! Here is c# code behind,</...
c# asp.net
[0, 9]
3,421,203
3,421,204
help with literal syntax - not a function
<p>I keep trying to call getMonthDay function. I am passing a pubDate parameter and keep getting error - Break on ErrorXCopyDisableContinue this.getMonthDay is not a function </p> <p>Any ideas?</p> <pre><code>$(document).ready(function(){ alert = console.log; var ns = { init : function(){ ...
javascript jquery
[3, 5]
4,243,711
4,243,712
Asp.net accessing a unix box via ssh
<p>Basically i want to access my unix box via ssh and start executing some commands in there. How is this possible on asp.net web application. Any ideas tnx. Ill be using c#</p>
c# asp.net
[0, 9]
5,179,454
5,179,455
Does javascript have a shorthand way of setting up fields in an object?
<p>I am using the following:</p> <pre><code>var link = {}; link.action = $link.attr('data-action') || ''; link.dialogType = $link.attr('data-dialogType') || ''; link.params = $link.attr('data-params') || ''; link.title = $link.attr('title') || ''; link.viewURL = $link.attr('data-href') || ''; link.entity = $link.attr(...
javascript jquery
[3, 5]
1,929,389
1,929,390
AJAX vs PHP Directly into JS
<p>I have a little bit of a conundrum. Basically I'm developing a WYSIWYG Editor plugin for jQuery specifically for my web application. One of the features will be inserting an inline image tooltip based on the images a user has uploaded. For example:</p> <pre><code>Hello there my name is [i="profile_pic.png"]A. Usern...
php javascript jquery
[2, 3, 5]
776,802
776,803
Send Multiple Values from javascript function to PHP page
<p>here is the sample code.</p> <pre><code>&lt;form id="form1" name="form1" action="phpPage.php" method="POST"&gt; &lt;!--5 diff values in form1 . . . --&gt; &lt;input id="b1" onclick="functionOne();"&gt; &lt;/form&gt; &lt;form id="form2" name="form2" action="phpPage.php" method="POST"&gt; &lt;!-- 5 diff values ...
php javascript jquery
[2, 3, 5]
519,202
519,203
Is jQuery UI tabs broken in rc6?
<p>I've been using jQuery UI v1.6rc2 for a while, and wanted to upgrade to 1.6rc6 to see that they haven't made any breaking changes. It seems they have; all of my tabs stop working whenever I switch to rc6.</p> <p>There seems to be two things wrong. First, the manual advocates using the following:</p> <pre><code>$('...
javascript jquery
[3, 5]
424,944
424,945
How to structure my javascript/jquery code?
<p>I am toying around with a pretty intensive ajax based jquery web application. It is getting to a point where I almost loose track of what events that should trigger what actions etc.</p> <p>I am sort of left with a feeling that my javascript structure is wrong, on a more basic level. How do you guys structure your ...
javascript jquery
[3, 5]
861,199
861,200
add element in certain place
<p>When I use document.createElement javascript will add an element at bottom of body. How can I add an element in certain place ? (with document.createElement property, I mean store in a new variable)</p>
javascript jquery
[3, 5]
1,330,094
1,330,095
Change content based on button clicked
<p>This image sums up quite easily what I'm trying to do</p> <p><img src="http://i.stack.imgur.com/oc5ph.png" alt="enter image description here"></p> <p>The issue is that I can't for the life of me think of what it would be called so it makes it rather hard to google it :)</p> <p>It's where you click on one of the t...
javascript jquery
[3, 5]
6,005,309
6,005,310
android : How to know about a new process start in device?
<p>I am writing a program which respond when a new process got start.</p> <pre><code>private final BroadcastReceiver mBatInfoReceiver = new BroadcastReceiver() { @Override public void onReceive(Context arg0, Intent intent) { // what to write here } }; </code></pre> <p>I do no...
java android
[1, 4]
111,461
111,462
Which technique is better?
<p>Which technique is better:</p> <pre><code>&lt;span onclick="dothis();"&gt;check&lt;/span&gt; </code></pre> <p>or:</p> <pre><code>&lt;span class="bla"&gt;check&lt;/span&gt; &lt;script type="text/javascript"&gt; $('.bla').click(function(e) {} ); &lt;/script&gt; </code></pre> <p>Are there any differences accord...
javascript jquery
[3, 5]
3,664,070
3,664,071
View Position In Layout
<p>Loading class (View):</p> <pre><code>public class Loading extends View { private long movieStart; private Movie movie; public Loading(Context context, InputStream inputStream) { super(context); movie = Movie.decodeStream(inputStream); } @Override protected void onDraw(...
java android
[1, 4]
1,261,013
1,261,014
jquery forward slash escape
<p>how can I escape forward slash <code>/</code></p> <pre><code>$('&lt;script type="text/javascript" /&gt;').prependTo("head"); </code></pre> <p>the outcome is </p> <pre><code>&lt;script type="text/javascript"&gt; </code></pre> <p>but I need it like</p> <pre><code>&lt;script type="text/javascript" /&gt; </code></p...
javascript jquery
[3, 5]
2,718,556
2,718,557
android better save image option?
<p>Currently I am using the compress method to save an image taken with the camera hardware on the android phone to the SD card.</p> <pre><code>try { BitmapFactory.Options options=new BitmapFactory.Options(); options.inSampleSize = 10; Bitmap myImage = BitmapFactory.decodeByteArray(imageData, 0, imageData.length,optio...
java android
[1, 4]
4,372,702
4,372,703
PHP / JavaScript form submit
<p>I've got a form that I'm population with a variable, and then I want it to auto submit. I thought I had it nailed with this code</p> <pre><code>&lt;script type="text/javascript"&gt; gup = function( name ){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&amp;]"+name+"=...
php javascript
[2, 3]
594,454
594,455
hidden field value lost after postback
<p>I have two hidden controls:</p> <pre><code>&lt;asp:HiddenField runat="server" id="pageHeader" /&gt; &lt;asp:HiddenField runat="server" id="pageInformation" /&gt; </code></pre> <p>I am calling following function from master page:</p> <pre><code>show_tip(this, document.getElementById('ctl00_pageInformation').value,...
asp.net javascript
[9, 3]
5,229,488
5,229,489
Jquery getting variable value
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/14052379/how-to-get-a-value-of-jquery-variable">How to get a value of jquery variable</a> </p> </blockquote> <p>JS:</p> <pre><code>&lt;script&gt; $(document).ready(function() { var ma = $("#qty"...
php jquery
[2, 5]
589,422
589,423
If a nested element fires an event, dont let the container handle it
<p>I have a div that contains another div. If the user clicks the inner div I only want the eventhandler attached to this element get executed. Right now first the eventhandler of the inner element and then that of the outer element gets executed. Is there a way to change this?</p> <pre><code> &lt;html&gt; &lt;he...
javascript jquery
[3, 5]
5,329,382
5,329,383
jquery validate form after being cloned.
<p>I have a popup <code>&lt;div&gt;</code> which clones a hidden form and inserts this into the popup. Due to this being dynamically inserted I am not able to get the validate plugin to work.</p> <p>Example: <a href="http://jsfiddle.net/MbNCh/1/" rel="nofollow">http://jsfiddle.net/MbNCh/1/</a> You will see that the in...
javascript jquery
[3, 5]
5,862,941
5,862,942
is there any downside to add content text through javascript other than it will not shown when if javascrit is disabled?
<p>is there any downside to add content text through javascript other than it will not shown when if javascrit is disabled?</p> <p>for example like this <a href="http://stackoverflow.com/questions/1899913/how-to-detect-linked-pdf-on-a-page-and-show-message-to-download-adobe-reader-usin/1899938#1899938">http://stackove...
javascript jquery
[3, 5]
949,130
949,131
Performance of Javascript replace vs jQuery replace
<p>In another <a href="http://stackoverflow.com/questions/7571553/">question</a> I came across two different ways of doing a string replacement.</p> <p>One being the jQuery way $<code>("#element").text().replace(',', '.')</code> and the other being the pure Javascript way of first getting the text and then calling <co...
javascript jquery
[3, 5]
1,514,508
1,514,509
Turning on BBCODES - Javascript
<p>I'm using this chat <a href="http://tutorialzine.com/2010/10/ajax-web-chat-php-mysql/" rel="nofollow">http://tutorialzine.com/2010/10/ajax-web-chat-php-mysql/</a> and I tried to turn on the bbcodes but: <a href="http://imageshack.us/photo/my-images/827/bbcodes1.png/" rel="nofollow">http://imageshack.us/photo/my-imag...
php javascript jquery
[2, 3, 5]
2,111,212
2,111,213
php & so error: class not found
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1502244/how-can-i-use-c-code-to-interact-with-php">How can I use C++ code to interact with PHP?</a> </p> </blockquote> <p>I have the following test.php file:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;titl...
php c++
[2, 6]
5,988,502
5,988,503
Jquery - Difference between internal & external jquery files
<p>I have a html page with 1000+ lines of jquery. The page loads and works fine. </p> <p>Is it correct to write 1000+ lines of jquery within a page? Or should create an external <code>.js</code> file(s) &amp; call these from my html?</p> <p>Which one is best? Thanks in advance...</p>
javascript jquery
[3, 5]
4,687,678
4,687,679
Get URL and pass folder or filename to hyperlink
<p>I would like to capture the folder listed in the url and pass that value into a hyperlink. For example: www.anything.com/123456</p> <p>I would like to capture '123456' and add it to a hyperlink</p> <p>www.anything.com/123456/contact.php</p> <p>The reason for this is that I need to create a menu that will be inser...
php javascript
[2, 3]
5,879,582
5,879,583
Jquery: slideToggle() multiple divs independently using one function
<p>Markup:</p> <pre><code>&lt;div&gt; &lt;h3 class = "trigger"&gt;Heading 1&lt;/h3&gt; &lt;ul class = "toggle"&gt; &lt;li&gt;Line One&lt;/li&gt; &lt;li&gt;Line Two&lt;/li&gt; &lt;li&gt;Line Three&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div&gt; &lt;h3 class = "trigger"&gt;Heading...
javascript jquery
[3, 5]
2,546,011
2,546,012
Date formatting using c#
<p>Hi I am having an application which uses oracle as backend. what is the correct format while passing the parameters to stored procedure from c sharp? If the format is <strong>dd-mmm-yyyy</strong>. i.e <strong>30-jan-2011</strong>. How to convert a date which is in <strong>mm/dd/yyyy (01/30/2011)</strong> to <strong...
c# asp.net
[0, 9]
949,020
949,021
Random Colour Schemes with Jquery
<p>I am creating a website that requires different elements to be styled with a main base colour and multiple associated accented analogic colours randomly. For example, the user gets a colour wheel to select the base colour and based on that input the jquery would then apply a colour scheme based on that input colour....
php jquery
[2, 5]
638,582
638,583
Which method is the best for developing Excel sheet as ASP.NET web application?
<p>In my company, we have a big excel sheet that we use it as a data entry. This matrix is filled with the data by many employees. each employee is required to fill specfic cells in that data entry. Now, we want to automate this matrix by developing a web-based system that contains this matrix. I am new ASP.NET develop...
c# asp.net
[0, 9]
3,013,964
3,013,965
Detect Javascript enabled on server side
<p>I have seen a few ways to detect if javascript is enabled. I have a unique situation. The Global.asax handles all thrown errors</p> <pre><code>protected void Application_Error(Object sender, EventArgs e) { //email development team } </code></pre> <p>Recently, I have had issues with people disabled javascript o...
c# javascript asp.net
[0, 3, 9]
1,504,208
1,504,209
JavaScript does not replace the last symbol of the string
<p>I have try to replace a symbol in JavaScript, but somehow this is always only replace the 1st symbol of the string instead of replaced all the symbol. </p> <p><strong>JavaScript</strong>:</p> <pre><code>var note = "test'test'test'"; note = note .replace("'", "&amp;#39;"); </code></pre> <p><strong>Output</strong>:...
javascript jquery
[3, 5]
1,388,916
1,388,917
The best battery saving method for Location updates
<p>I'm trying to write an Adroid application that should run in background and notify the user when he will be close to the place given in the database. Should I do it by requestLocationUpdates in the extended IntentService class? </p> <p>What is the best way to make it as least battery draining as possible?</p>
java android
[1, 4]
841,757
841,758
Filename filter based on multiple conditions
<p>I am using the following code to return files in the directory where the extension is ".mp4".</p> <p>I want to adapt the code so that it returns files which have .mp4 extension but do not contain the string "temp" in the rest of the filename</p> <pre><code>final String[] vids = dir.list(new FilenameFilter() { ...
java android
[1, 4]
5,487,195
5,487,196
Are there any good reasons NOT to use jQuery instead of plain old JavaScript?
<p>I recently discovered jQuery, and I can immediately see how useful and elegant it is.</p> <p>I'm curious, though - are there any reasons NOT to use it (and just use plain old JavaScript instead)? If there aren't any reasons, should it not be integrated fully into the JavaScript language?</p>
javascript jquery
[3, 5]
5,264,536
5,264,537
jQuery Fade Images on iPhone Issue
<p>I want the thumbnails on my website to fade in when loaded rather than load the traditional way. I'm using jQuery to achieve this by setting the opacity of each img to 0 in CSS, then fading it up to 1 using jQuery like so:</p> <pre><code>image.bind("load", function () { $(this).fadeTo(1000, 1); }); </code></pre> ...
jquery iphone
[5, 8]
472,399
472,400
Making a generic jQuery "addListener"
<p>I'm trying to reproduce Google Maps' <code>addListener</code> except with jQuery listeners for clicks, keypresses, etc.</p> <p>In Moogle Maps, you can write <code>.event.addListener(map, 'click', function()...</code> or replace 'click' with 'drag', 'mouseover', etc. For jQuery, I see a parallel with 'click', 'keypr...
javascript jquery
[3, 5]
4,167,370
4,167,371
How can I access to an HTML control runat server from javascript
<p>I have the following code:</p> <pre><code>&lt;telerik:GridTemplateColumn DataField="JOB_CODE" &lt;EditItemTemplate&gt; &lt;input type="text" ID="JOB_CODETextBox" runat="server" value='&lt;%# Eval("JOB_CODE") %&gt;' readonly="readonly" onclick="$('#basic-modal-content').modal({ ...
javascript asp.net jquery
[3, 9, 5]
1,793,480
1,793,481
Resize script appends object, does it over and over again
<p>I have the following code in a JavaScript file:</p> <pre><code>$(document).ready(function() { detectscreen(); }); $(window).resize(function(){ detectscreen(); }); function windowWidth() { if(!window.innerWidth) { // user is being a git, using ie return document.docume...
javascript jquery
[3, 5]
778,490
778,491
Clear gridview using javascript/jquery
<p>Afternoon all.</p> <p>Another hour, another question!</p> <p>I have the following bit of jquery up and running that essentially 'resets' control contents.</p> <p><code> tbxProdAC.Attributes.Add ("onclick", "$('#txtbxHowMany').val(''); SetRadioFocus('" + radProd.ClientID + "');"); </code></p> <p>I hav...
javascript jquery
[3, 5]
956,797
956,798
Escape single quotes in Jquery or Javascript
<p>I want to display the following text for the <code>&lt;span&gt;</code> tag. How do I escape the single quotes for this </p> <pre><code>$("#spn_err").text($('#txt1').attr('value')+" is not valid"); </code></pre> <p>I want to display the message as '<code>ZZZ' is not valid</code>. Here <code>$('#txt1').attr('value')...
javascript jquery
[3, 5]
1,947,526
1,947,527
How do I pass a R.drawable as a parameter so I can get images parsed
<p>I try to save a unique image to each object but I get this error, how should the constructor look for it to work that way? The constructor Beer(String, int, int) is undefined</p> <pre><code>m_beer = new ArrayList&lt;Beer&gt;(); final Beer b1 = new Beer("Tuborg", 7, R.drawable.tuborg); fi...
java android
[1, 4]
2,902,858
2,902,859
Colorize number pairs
<p>I am using the jQuery Stopwatch plugin to track time on a browser based JavaScript game I am developing. This plugin outputs 00:00:00. I need to have each number pair (hours,minutes,second) in diffrent colors.</p> <p>I also outputs a dummy time before the game starts in HTML (00:00:00). I am able to colorize each n...
javascript jquery
[3, 5]
3,034,587
3,034,588
Checking word variants(stems) in java
<p>I want to search for a word and its variants in a sentence. For example, the variants of word "happy" are "happiest", "happier". Is there a java library support for this?</p>
java android
[1, 4]
1,804,270
1,804,271
Jquery.change firing on page load
<pre><code>&lt;label for="AddList" class="locType"&gt;Select a location&lt;/label&gt; &lt;select id="AddList"&gt; &lt;option value="New"&gt;New Address...&lt;/option&gt; &lt;/select&gt; </code></pre> <p>The Js.</p> <pre><code>$(document).ready(function() { //Location Code $("#AddList").change(function() ...
javascript jquery
[3, 5]
5,819,762
5,819,763
Use build in colors in xml?
<p>How can I make use of <code>android.grapics.color</code> constants? <a href="http://developer.android.com/reference/android/graphics/Color.html" rel="nofollow">http://developer.android.com/reference/android/graphics/Color.html</a></p> <p>This does not work:</p> <pre><code>android:drawable="@android:color/cyan" </c...
java android
[1, 4]
3,072,030
3,072,031
Dropdown1.SelectedValue on page load
<p>I have a TextBox and a DropDownList (dropdown1) with an SqlDataSource.</p> <p>On <code>Page_Load</code>, I want to do the following:</p> <pre><code>textbox1.Text = dropdown1.SelectedValue; </code></pre> <p>But the TextBox is always empty, and the DropDownList is binded.</p> <p>Markup:</p> <pre><code>&lt;asp:Dro...
c# asp.net
[0, 9]
829,026
829,027
equal height columns
<p>I used following JS code to create equal height columns:</p> <pre><code>var colHeight = Math.max($('.3columngallery .col1').height(), $('.3columngallery .col2').height(), $('.3columngallery .col3').height()); $('.3columngallery .gallery').height(colHeight); </code></pre> <p>It's working fine in firefox and safari ...
javascript jquery
[3, 5]
3,855,827
3,855,828
PHP Escaping Characters
<p>I've <em>have</em> done some searching and browsed similar threads but I can't figure out how to escape the characters in the following PHP string:</p> <pre><code>$var = '&lt;a href="'.$confUrl.'/index.php?a=profile&amp;u='.$TMPL['username'].'&amp;r=2"&gt;&lt;/a&gt;'; </code></pre> <p>For some reason the <code>hr...
php javascript
[2, 3]
5,976,465
5,976,466
Download dynamically generated content using jquery
<p>I have an application in turbogears that dynamically generates an excel spreadsheet, meaning it is not saved as a file in the server, I set the content type and other headers, so it works fine, my question is if it is possible to trigger a download using jquery. Here is what it looks like:</p> <pre><code>def get_xl...
jquery python
[5, 7]
773,416
773,417
Copying data from one file to another file very slow in android?
<p>I am copying data from one file to another file.<br/><br/> It takes more time. What's the reason?<br/><br/> My code is here<br/><pre> public void copyData( InputStream in, OutputStream out ) throws IOException { try { in = new CipherInputStream( in, dcipher ); int numR...
java android
[1, 4]
2,182,419
2,182,420
Declaring a var instead of using .find multiple times?
<p>I have been reading on best practices and I have come across this one:</p> <p>Dont do this:</p> <p><code>$("#element .child").hide()</code></p> <p>Do this:</p> <p><code>$("#element").find('.child').hide()</code></p> <p>Now my question is what if i want to hide/show the <code>.child</code> element multiple times...
javascript jquery
[3, 5]
4,260,936
4,260,937
How to bring the close(x) button of jQuery Tools Overlay to the left?
<p>I'd like to use this jQuery plugin: <a href="http://flowplayer.org/tools/demos/overlay/styling.html" rel="nofollow">jQuery Tools: Overlay effect</a></p> <p>It shows a light box in mac style with a black+white x-circle to close it. But it's on the upper right. Since my audience are Mac users, that would suck. How co...
javascript jquery
[3, 5]
3,583,461
3,583,462
setInterval started with a button or started alone
<p>How can i active/fire/trigger the setInterval with a button? and if the button is not clicked how to make it auto fire on 3 second, but if i click on the button it fire it on 0.1 second and restart evrything. please help me out guys</p> <pre><code>$('button').click(function(){ setInterval(function(){ up...
javascript jquery
[3, 5]
4,299,376
4,299,377
xmltv parser by c#
<p>I need information about xmltv for parsing using c# asp.net and extracting some data from it. Is there any links that could help me achieve my goal</p> <pre><code>&lt;channel id="WIN-WA"&gt;&lt;display-name lang="en"&gt;WIN WA&lt;/display-name&gt;&lt;base-url&gt;http://www.oztivo.net/xmltv/&lt;/base-url&gt;&lt;base...
c# asp.net
[0, 9]
3,028,139
3,028,140
Build divs JS functions included in JS or jQuery from ajax & php data
<p>If a user checks a form checkbox I want to create a new div. Dynamic data is loaded from ajax and php. I am asking how to create it with JS or jQuery. A simplified version will look something like</p> <pre><code>&lt;div id="ajaxSRC1" class="CLASS"&gt; &lt;a href="javascript:void(0)" onmouseover="return myFunctio...
javascript jquery
[3, 5]
4,836,460
4,836,461
How to persist an object to a db that contains lists of other objects in asp.net?
<p>We have a class <code>X</code>. Class <code>X</code> contains many lists of different types as shown below. All the lists are child tables in the db. </p> <pre><code>public class X { public List&lt;A&gt; As { get; set; } public List&lt;B&gt; Bs { get; set; } public List&lt;C&gt; Cs { get; set; } pub...
c# asp.net
[0, 9]
5,594,644
5,594,645
Using jQuery's getJSON() method
<p>So I was reading through the code on Malsup's twitter <a href="http://malsup.com/jquery/twitter/" rel="nofollow">plugin</a> and I noticed he'd written his own method to handle jsonp but with timeouts and errors. I can only assume the built in jQuery method 'getJSON' doesn't have this functionality even though it cl...
javascript jquery
[3, 5]
1,350,710
1,350,711
jquery load with inline javascript
<p>I am using jquery load to get a div on a different page and insert it into my page. somthing like this:</p> <pre><code>$('#mydiv').load("/Pages/grid2.aspx" + " #otherpagediv"); </code></pre> <p>In the div on the other page, there is javascript in the div. The javascript is not coming across, only the html content...
javascript jquery
[3, 5]
5,619,090
5,619,091
Empty and append expanding height of element
<p>I'm running this code:</p> <pre><code>$('#storeTable').empty(); $('#storeTable').append("&lt;tr&gt;"); $('#storeTable').append("&lt;td&gt;"); $('#storeTable').append(returnData["1"]["ID"]); $('#storeTable').append("&lt;/td&gt;"); $('#storeTable').append("&lt;/tr&gt;"); </code></pre> <p>However if I run it multipl...
javascript jquery
[3, 5]
925,466
925,467
Accessing and binding events to an ASP.NET Grid view using Jquery
<p>I have an ASP page which displays a text box when it loads. It takes an input number, send it to the server through post back, and then displays some record in a grid view. After a number is input into the box, the server fetches some data from a database and add records to the grid view. It also contains a link col...
asp.net jquery
[9, 5]
4,658,023
4,658,024
How to send multiple gridview rows to another page and populate those rows in the repeater?
<p>I have a repeater showing the rows of data.I have used javascript for user to add new rows to the repeater.</p> <p>When the new row gets added, a image is displayed on one of the cells .Clicking on that image opens up a new screen.</p> <p>New screen has ability to search for the records.The search results are show...
c# javascript asp.net
[0, 3, 9]
2,886,311
2,886,312
Event fire again and again when use response method for export gridview to excel
<p>hello everybody i am using c# .net in my webapplication. i have a method for export gridview data to excel name ExportToExcel(). in this method i use response.contenttype, response.clear(),response.write(),stringwriter,htmltextwriter methods. this method work fine and export data correctly. but when i write button...
c# asp.net
[0, 9]
2,160,045
2,160,046
Adding SqlParameter
<p>I am re-writing a login process I wrote in Console to a web based application and keep getting hung up when I add the SqlParamater. For some reason it doesn't recogize FirstName and gives the error "The FirstName does not exist in current context".</p> <p>How can I solve this?</p> <pre><code>//set the command obje...
c# asp.net
[0, 9]
3,922,910
3,922,911
How to change a hidden value and the text of the
<p>I am currently attempting to make a dropdown menu where selecting one of the links from the menu will change the hidden value as well as the text of the hyperlink. This is based upon Twitter's Bootstrap dropdown, and uses jQuery:</p> <pre><code>&lt;div id="periodChooser" class="btn-group"&gt; &lt;input type="hid...
javascript jquery
[3, 5]
2,406,145
2,406,146
Problem with at sign in div name
<p>I have a page which has some divs. Each div id starts with the word divfor and have a suffix after that. Like divforjohn, divforjim ... etc. These suffixes come from database.</p> <p>My problem is when i try to load something in that div it creates problem if it have the @ sign in it. So, if I do something like bel...
javascript jquery
[3, 5]
5,843,505
5,843,506
$(document).on('click', selector, function() ) combined with :not
<p>I've got several list items, when I click on the item I want the browser to redirect to ".title > a" link (href). But I don't want any event on the "notThis" selector.</p> <p>see the example <a href="http://jsfiddle.net/VTGwV/29/" rel="nofollow">http://jsfiddle.net/VTGwV/29/</a></p> <pre><code>&lt;div class="item...
javascript jquery
[3, 5]
124,371
124,372
In a browser extension, how do I click a specific button of an alert?
<p>So...</p> <p>I need to click <code>[Stay on this page]</code> automatically in such a prompt:</p> <blockquote> <p>Confirm navigation: [Leave this page] [Stay on this page]</p> </blockquote> <p>The code that invokes this is </p> <pre><code>$(window).bind('beforeunload', function() { return 'Leave page?'; //...
javascript jquery
[3, 5]
3,252,993
3,252,994
Prevent javascript function from changing style attributes
<p>I am working with an unnamed javascript plug-in.</p> <p>During a certain operation of said plugin, under a specific circumstance, the plugin changes the style attributes of certain elements on my page. </p> <p>Without delving into the plugin code itself (I want to avoid that if possible), is there a way to prevent...
javascript jquery
[3, 5]
4,829,279
4,829,280
Change the title of ThickBox
<p>I would like to change the text that appears in the ThickBox in the top panel. Right now it looks like this (HTML from Firebug):</p> <p><a href="http://test2.richardknop.com/thickbox.jpg" rel="nofollow">http://test2.richardknop.com/thickbox.jpg</a></p> <p>So I would like to change this part of the HTML:</p> <pre>...
javascript jquery
[3, 5]
3,455,257
3,455,258
display variable within JQuery
<p>I have the following JQuery:</p> <pre><code>fname = "TEST"; lname = "THIS"; spec = "DOCTOR"; addr = "999 vern blvd"; phonen = "999.999.9999"; $('#resultTable tr:last').after('&lt;tr&gt;&lt;td id=first&gt;fname&lt;/td&gt;&lt;td id=last&gt;lname&lt;/td&gt;&lt;td id=specialty&gt;spec&lt;/td&gt;&lt;td id=address&gt;ad...
javascript jquery
[3, 5]
520,215
520,216
Is it possible to connect C# Windows Form to Online Database?
<p>We are planning to develop our company accounting software Online. We have chosen C# for this task, and i would like to know, Can we do coding in C# Windows Form and connect with Online remote Database? or We should do coding in Asp Web pages instead of Windows forms.</p> <p>Please tell me what are the Pros &amp; C...
c# asp.net
[0, 9]
3,549,266
3,549,267
Javascript $.Map() & Math.Max.Appy() to find maximum height
<ul> <li>following code is working code used to find maximum height</li> <li><code>$.fn.</code> is used to add this method as jQuery Plugin.</li> <li><code>$.Map()</code> return new array </li> <li><p><code>Math.Max.Apply</code> return max number from array</p> <pre><code>$.fn.tallest = function(outer, margins) { ...
javascript jquery
[3, 5]
3,136,509
3,136,510
Point Of Sale by JCM
<p>I need to create small application for POS. But i can't find enough information for this=( What i have: 1)Cash-reader - Japan Cash Machine. Model EB-200-RUS. It connecting to comp. by Serial cable RS232.</p> <p>2)Coins-reader - MFT 08V01. Connecting same.</p> <p>I can write soft on Java,C#,C++. But Java is prefera...
c# java
[0, 1]
3,412,940
3,412,941
jquery: not selector problem?
<p>The following snippet applies a #breadcrumb hash to each link once it's clicked. That works fine.</p> <pre><code>$('#main a').live('click',function() { $(this).attr('href', $(this).attr('href') + "#breadcrumbs"); }); </code></pre> <p>Now I want to make sure that happens just if a link does not already hav...
javascript jquery
[3, 5]
146,365
146,366
How to call a sever side contol on Jquery Model pop up click
<p>I want to call a server side grid control on jquery model pop up's OK button click. Could some body tell me on it, i have been toiling for long.</p> <p>as i have following model pop up code</p> <pre><code>&lt;script type='text/javascript'&gt; $(function dressing() { var v; $("#dialo...
jquery asp.net
[5, 9]