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
5,181,066
5,181,067
how to open a aspx page inside a div with Jquery
<p>I'm building an asp.net app to avoid the most possible the postbacks using JQuery, the problem that I have is that I'm trying to show pages inside a div, but the only way that i can to show them is like this: </p> <pre><code>$('#HomeUrl').click(function() { $('#dvContent').load('Page_Documento.aspx', Load_Completed...
jquery asp.net
[5, 9]
382,443
382,444
Rename Pdf from Pdf title
<p>Dear all: I want to organize my pdf file downloaded from the internet. It is clear that many of them are ill-named. I want to extract the real title from the file. Here many of them are generated from Latex and I think from the compiled pdf we can find the \title{} keyword or something like that. I want then use thi...
java c++ python
[1, 6, 7]
2,824,946
2,824,947
getting a clicked elements id with jquery
<p>I have a series of Delete icons displays as such:</p> <pre><code>echo '&lt;img id="'.$items['id'].'" src="images/delete.png" /&gt;'; </code></pre> <p>Where <code>$items['id']</code> is a reference to the id of the DB item I would like that icon to delete.</p> <p>How can I access this id in jquery when the item is...
javascript jquery
[3, 5]
1,721,382
1,721,383
Listview DeleteButton onclick broken?
<p>I don't know if I'm just being stupid but I can't get bloody Javascript in my asp buttons onclick event :(</p> <pre><code> &lt;asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="Delete" onclick="Javascript:returnConf();" /&gt; </code></pre> <p>I've tried variations including things like:</p> ...
javascript asp.net
[3, 9]
1,636,261
1,636,262
Javascript not working in IE and Chrome
<p>Please help! I have a thumb image link swapping out on hover. It works fine in Firefox and Safari but doesn't show on IE and Chrome. I'm new to Javascript so please excuse me if I'm missing the obvious. Thank you in advance.</p> <p>Here is the script:</p> <pre><code>$(document).ready (function(){ var fadingImage;...
javascript jquery
[3, 5]
4,827,904
4,827,905
Identify which checkbox was clicked
<p>I have a set of checkboxes on my page. Code for one of them:</p> <pre><code>&lt;div&gt; &lt;label for="ViewAsWebpage"&gt; {{#if this.ViewAsWebpage}} &lt;input type="hidden" id="ViewAsWebpage" name="ViewAsWebpage" value="true"/&gt; &lt;input type="...
javascript jquery
[3, 5]
801,697
801,698
JQuery. Finding div which has specific data() associated to it
<p>Using the <code>data()</code> function I add two values to some <code>divs</code> (<code>$oRow</code> points to divs)</p> <pre><code>$oRow.data("more", {moreValue: 750, moreIndex: 4}); </code></pre> <p>Later on I'm trying to find the <code>div</code> (there is only one) which has a specific value for <code>moreInd...
javascript jquery
[3, 5]
5,049,696
5,049,697
How do I load a variable number of scripts with jQuery.getScript() before running javascript code?
<p>I need to load a variable number of javascript source files before running javascript code that depends on them. Sometimes 1 script needs to be loaded, other times 2. The getScript() method allows one script to be loaded - how could I use it to load x number of scripts before running its inner code?</p> <pre>$.getS...
javascript jquery
[3, 5]
4,323,293
4,323,294
Login to .aspx from C# NET
<p>I don't use C# NET as often as I would like, but I am trying to make a small application that will basically let our clients have access to certain features in our game panel. Most of my experience is not web related so I am a bit new to this.</p> <p>Right now I just need to figure out how to let them login via my ...
c# asp.net
[0, 9]
3,375,177
3,375,178
Trying to set value on hidden parameter on click of submit button in form
<p>Trying to set a parameter on a hidden field on click of submit button.</p> <pre><code> $('.delete').on('click', function() { $('#id').val('1000'); }); </code></pre> <p>This is the hidden field:</p> <pre><code> &lt;input type="hidden" name="itemId" id="id" /&gt; </code></pre> <p>And this is one ...
javascript jquery
[3, 5]
888,918
888,919
Uncaught ReferenceError when executing on different computer
<p>The below script works fine on one of my computers but when executing it on another I get <code>uncaught referenceerror $ is not defined</code>. It is the same error on another similar page. Also it says unable to load resource of the ajax.google... source.</p> <pre><code>&lt;script src="http://ajax.googleapis.com/...
javascript jquery
[3, 5]
5,801,971
5,801,972
Redirect from subdomains to pages in global.asax
<p>I would like to redirect from subdomains:</p> <pre><code>alpha.mydomain.com beta.mydomain.com *.mydomain.com </code></pre> <p>to </p> <pre><code>http://mydomain.com/alpha.aspx http://mydomain.com/beta.aspx http://mydomain.com/*.aspx </code></pre> <p>in the </p> <pre><code> void Application_BeginRequest Event ...
c# asp.net
[0, 9]
2,431,705
2,431,706
If one page executes a Response.Redirect() to a different web page, can the new page access values in asp.net controls from the original page?
<p>I have a text string value that I'd like to persist from one web page to another without using query strings or the session/view states. I've been trying to get the ASP HiddenField control to pass information from one web form to a <i>different</i> form.<br><br> All the hiddenfield control examples that I've seen i...
c# asp.net
[0, 9]
5,728,166
5,728,167
How can I prevent button-mashing when using anchors instead of buttons?
<p>I'm using buttons to submit data via Ajax. I'm using jQuery to disable and enable the buttons. This is to prevent "button-mashing," where a user can fire multiple requests either maliciously or unwittingly. </p> <p>Is there an "element-agnostic" way to prevent this behavior in jQuery? For example, say I wanted to u...
javascript jquery
[3, 5]
1,766,801
1,766,802
Javascript escape Asp.net encoding
<p>I have an html textbox and am entering double quotes in the text box.</p> <p>E.g </p> <pre><code>I "a a person </code></pre> <p>I am using the Javsacript escape function and it encodes the quote to <code>%22</code> which is correct</p> <p>To the last point before hitting the server I have <code>%22</code> but wh...
javascript asp.net
[3, 9]
895,947
895,948
Make scrollTop to always check
<p>I'm doing a scrollTop jQuery function, and it is working very nice, see it below:</p> <pre><code>$(function() { $(window).scroll(function() { var top = $(document).scrollTop(); if (top &gt;= 1225) { // Do something } }); }); </code></pre> <p>However, if the user have his...
javascript jquery
[3, 5]
5,005,363
5,005,364
Getting "invalid assignment left-hand side"
<p>In my JavaScript file I'm trying to load an external API JavaScript and calling function in callback. Its returning "invalid assignment left-hand side" on second line <code>window.loadApi = function(callback) {</code>. Totally confuse because syntactically it is looking okay.</p> <pre><code>var apiUrl = window.loc...
javascript jquery
[3, 5]
4,457,292
4,457,293
jQuery checkbox and span that share a click event
<p>So I have a checkbox and a span</p> <p><code>&lt;input type="checkbox" class="checker"&gt; &lt;span class="something"&gt;Label&lt;/span&gt;</code></p> <p>From which the span already has some functionality based on clicking it, I am adding a checkbox to the equation for visual aid. What I am trying to do is, when t...
javascript jquery
[3, 5]
1,225,339
1,225,340
Listening in Javascript to back button in Android
<p>I have a HTML5 app in Android. I would like to override this</p> <pre><code>@Override public void onBackPressed() { } </code></pre> <p>so the js file, which has a method called back(), can "listen" when the user taps the back button in Android, in order to replicate the navigation behaviour that is currently in m...
javascript android
[3, 4]
3,261,863
3,261,864
How to create array of a particular field of json string through collect() method of objx
<p>my json string is as follows:</p> <pre><code>var data = [{"first":"3","second":"1"},{"first":"5","second":"5"},{"first":"7","second":"1"}]; </code></pre> <p>Now i am calling - </p> <pre><code>objx(data).collect("first") </code></pre> <p>and expecting to get an array like [3,5,7]. But i am getting javascript err...
javascript jquery
[3, 5]
1,606,123
1,606,124
pnotify refuses to work
<p>I downloaded the pnotify jquery plugin from <a href="http://pinesframework.org/pnotify" rel="nofollow">Pines Notify</a></p> <p>Simply it tells me to add the required js and css files and on document ready the following should work !</p> <pre><code>$(document).ready(function() { $.pnotify({ type: 'erro...
javascript jquery
[3, 5]
5,503,362
5,503,363
During Javascript printing, the formatting not preserved
<p>I want to print an aspx page content. The page has several asp.net labels which display data. I am using javascript to print the page. It prints but the problem is the formatting is gone. For example, the first few rows of the page look like as shown below:</p> <p>Field name Old Value New Value</p...
javascript asp.net
[3, 9]
1,679,951
1,679,952
How do I obtain information from the cell that was clicked in the GridView?
<p>I need to obtain information from the cell that was clicked in the GridView.</p>
c# asp.net
[0, 9]
4,513,408
4,513,409
Adding google account to my website in asp.net using c#
<p>i have a job portal website project in that i need to signup user by using his google account .. so that i can retrieve his/her account details like firstname,lastname,emailid, mobile number etc .. similarly to yahoo also in asp.net using c# with sql server 2008</p>
c# asp.net
[0, 9]
124,844
124,845
How do I combine check all script and filtering?
<p>I am new to JavaScript and jQuery, but have used HTML and CSS before. In any case, I appreciate the help. I have implemented the script discussed here <a href="http://net.tutsplus.com/tutorials/javascript-ajax/using-jquery-to-manipulate-and-filter-data/" rel="nofollow">http://net.tutsplus.com/tutorials/javascript-aj...
javascript jquery
[3, 5]
1,869,335
1,869,336
How to determine given file is a class file?
<p>I need to determine that whether a given file is a class file or not. Suppose I change the extension to .exe/.xml or some other, I need to determine whether that given file, if a class file will be parsed differently and if it would be some other, it'll be parsed in that manner.</p> <p>How can I read the class file...
c# java
[0, 1]
3,778,671
3,778,672
Need to access <input> data from a <form>, that has been appended with Javascript
<p>I have an admin page where I add and delete table rows on the fly. The page comes loaded with the existent data in the database (mostly consisting in a sku_code and 5 different prices) but when I add rows on the fly, and fill them with the corresponding skus and prices, I want to save them as well in the database.<...
php javascript
[2, 3]
2,872,842
2,872,843
Parsing a string with Jquery or Javascript
<p>How do i pull out the 30 or the 55 basically the number before the last number</p> <pre><code>http://something.com:9090/general/35/30/205 http://something.com:9090/general/3/55/27 http://something.com:9090/general/36/30/277 </code></pre>
javascript jquery
[3, 5]
4,543,902
4,543,903
Is there any way to get "global" events when working with nested iframes?
<p>My problem is I need to capture a keypress but at any given time the user can be inside of an iframe inside of an iframe inside of an iframe.</p> <p>At first, I thought I could just put the listener on document but that doesn't work if the user is inside of one of those iframes.</p> <p>Next I thought of attaching ...
javascript jquery
[3, 5]
4,812,526
4,812,527
Open file in C#
<p>In my Aspx page I have two buttons, btnGenerateReceipt is for generating receipt and btnAddNew for adding new receord. OnClick event of btnGenerateReceipt I am generating and opening a receipt as below.</p> <pre><code> protected void onGenerateReceipt(object sender, EventArgs e) { try { ...
c# asp.net
[0, 9]
5,894,179
5,894,180
Set object param tag from code-behind
<p>I want to embed video in object tag and I want to put the value of param from code-behind. But I'm not able to put the value from code-behind. Any idea where I'm getting wrong?</p> <p>This is my code so far:</p> <pre><code>&lt;object runat="server" id="object1"&gt; &lt;param name="param1" value="www.youtube.co...
c# asp.net
[0, 9]
1,768,708
1,768,709
Get value of asp:textbox with javascript .net 4 framework
<p>I thought I heard that in .net 4 we would be able to reference asp:textbox's by id and not have to use clientid to get the value. I can't find this documented anywhere. Just wondering if anyone knows if this works and what the syntax is? </p>
javascript asp.net
[3, 9]
5,552,681
5,552,682
ASP.Net: Using UpdatePanels in a GridView
<p>I'm trying to build a sort of Accordion effect using a GridView and UpdatePanels. And I have problems with tieing everything together:</p> <pre><code>&lt;asp:GridView ID="gridMain" runat="server" ... &gt; &lt;Columns&gt; ... &lt;asp:TemplateField ShowHeader="False"&gt; &lt;ItemTemplate&gt; &l...
c# asp.net
[0, 9]
4,911,402
4,911,403
Listview RollOver RollOut
<p>What events do I need to listen to imitate rollover and rollout on a listview item. I want to change the colour of some text on rollover and change it back on rollover.</p>
java android
[1, 4]
5,561,032
5,561,033
How do I encapsulate a tag within another tag using jQuery or JavaScript?
<p>I have a container <code>div</code> that contains some <code>img</code> tags. When I click on a <code>img</code> tag, it returns me the index position of that <code>img</code> tag within the <code>div</code> tag. I would like to wrap this <code>img</code> tag within another <code>div</code> tag either using jQuery o...
javascript jquery
[3, 5]
481,636
481,637
run jquery code on loaded page via jquery ajax request (load)
<p>I am loading an entire middle div via JQuery Ajax call and I simply want to run $(document).ready on the loaded page </p> <p>header.php loads part of the page </p> <pre><code>var $next = $("&lt;div class='nextab center'&gt;").insertAfter('#content .current'); $next.load($this.attr('href')+ ' #content .cent...
javascript jquery
[3, 5]
4,116,463
4,116,464
c# Convert string into URL friendly
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/37809/how-do-i-generate-a-friendly-url-in-c">How do I generate a Friendly URL in C#?</a> </p> </blockquote> <p>By URL friendly I mean turning:</p> <blockquote> <p>Convert string to DateTime in c#</p> </blockq...
c# asp.net
[0, 9]
5,553,760
5,553,761
Multiple parents with the same class with siblings with the same classes
<pre><code>&lt;div class="example"&gt; &lt;div class="test"&gt;Some text&lt;/div&gt; &lt;div class="whatever"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="example"&gt; &lt;div class="test"&gt;Some more text&lt;/div&gt; &lt;div class="whatever"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>How can I make each <...
javascript jquery
[3, 5]
1,013,739
1,013,740
jquery optgroup selection according to label
<p>Hello i am getting value dynamically which is my label in optgroup. now using jquery i want to show only that optgroup which matches with my dynamic value. </p> <pre><code>&lt;select class="form-select" id="test"&gt; &lt;option value="_none"&gt;- None -&lt;/option&gt; &lt;optgroup label="Personal / Web C...
javascript jquery
[3, 5]
4,698,280
4,698,281
Show the element if it has a class whose name is tested
<p>I got a class name after I clicked a element in the document. And then I want to select all elements that has this selected class. For example;</p> <pre><code>$('.tabs1 li a').hover(function(){ var clicked = $(this).attr("class"); // this doesnt work $('a[class="clicked"]').css("display","block"); }); </code></p...
javascript jquery
[3, 5]
3,607,177
3,607,178
How can I set a percentage width for my box that will be constant across devices?
<p>I have become confuddled, I'm trying to set a minimum width of a box, for all devices I want it to have a minimum width of say 20% of the screen width. how can I achieve this?</p> <p>I've gotten the dpWidth of two screens from a tablet and my XHDPI Galaxy S3. The S3 has a dpWidth of 300 and the tablet 800. In which...
java android
[1, 4]
5,302,082
5,302,083
Is there a way to bypass or throw away a mouse event?
<p>I was wondering if there was a way to "throw away", if that is the right term, or ignore a mouse event when it occurs.</p> <p>For example,</p> <p>Say I have a mouseenter bound to an object and I have a specific handler attached to it. Is there a way to ignore certain mouseenter events on that object so that the ha...
javascript jquery
[3, 5]
4,542,374
4,542,375
converting c#.net application to andorid
<p>I know this is very vaque question but still I am asking.</p> <p>Is there any one I can convert my existing WinForm built in c#.net and DB as SQLSERVER 2008, to andorid application ? If no, then is thr any easier way to built an app as I am not familiar with any Mobile Application tools.</p>
c# android
[0, 4]
2,701,053
2,701,054
why does location.reload() break my $.post?
<p>I have a select element, that posts (just fine) when changed using $.post. But if I want to reload the page, and add a <code>location.reload()</code> then it doesn't post. If I remove the line, it posts fine. Any ideas?</p> <pre><code> &lt;script type="text/javascript"&gt; $('#target').change(funct...
javascript jquery
[3, 5]
3,025,537
3,025,538
auto complete on asp.net control
<p>hey I want to use autocomplete jquery in asp.net on a control which is used on a default1.aspx page. My control is searchinput.ascx which is in Registration folder. My ploblem is I have written web method (getmylist) on code file of searchinput control. but that method is never called. can anyone help me </p>
c# asp.net
[0, 9]
2,131,997
2,131,998
Delete one row from DOM built table
<p>I have a table that is dynamically built using DOM. It has 10 cols, and on each row i have some data that i get from a websocket, text boxes and a submit button to add each row to the database.</p> <p>How can i remove a row after i submitted it?<br> Someone mentioned jQuery but can't figure it out how to do that.</...
javascript jquery
[3, 5]
335,778
335,779
How do you convert JQuery event target to a wrapped set?
<p>In my recent project, I am using the click event like so:</p> <pre><code>$(".nav-item").click(function(evt){ do something here... }) </code></pre> <p>Inside the event handler function, I want to look at the children of the event target using jQuery selectors. Something like</p> <pre><code>$(event.target + " &...
javascript jquery
[3, 5]
3,815,987
3,815,988
opening a specific section on an accordion from another page link
<p>I have a homepage that has two titles on. these titles link to another page (news.aspx). The news articles on news.aspx are stored in an accordion style. </p> <p>What I want is: When the title of the news article is clicked on the homepage, it will redirect to that news.aspx page and the accordion section relating ...
javascript jquery asp.net
[3, 5, 9]
3,935,118
3,935,119
How Can I Override A Function In Javascript
<p>I have the following scripts:</p> <pre><code>&lt;script ... jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script ... dataTables.js"&gt;&lt;/script&gt; &lt;script ... columnFilter.js"&gt;&lt;/script&gt; </code></pre> <p>The following code exists in columnFilter.js:</p> <pre><code>(function ($) { $.fn.columnFilte...
javascript jquery
[3, 5]
1,368,870
1,368,871
How can I embed a static HTML page in a aspx page?
<p>I have a static HTML page complete with client-side scripts and css (both are included in the html). I was wondering if it would be possible to embed this HTML page into an ASPX page and have the ASPX page be able to respond to javascript events that are raised from within the static html document? Does asp.net pro...
javascript asp.net
[3, 9]
16,725
16,726
Sharing an object between methods in same class (with postback)
<p>I have a user control with a number of methods. I also have a dataset object that I'm filling in one method, but I also need to access that same dataset (and the data in it) in another. </p> <p>I am filling the dataset from some xml that I get from a webservice when someone clicks on a button. The data from the dat...
c# asp.net
[0, 9]
1,652,513
1,652,514
Replacing the content of a div with the content of another hidden div in Jquery
<p>i am trying to replace the content of a div with the content of another div(which is hidden). The code works for the first time only but the second time doesn't work at all. I have a div where the titles of some articles are scrolling. I want to achieve that:everytime i am going to click the title of an article its ...
javascript jquery
[3, 5]
630,283
630,284
How to go back to previous page and preserve the previous page data in c#
<p>I am working on a Retail Website which is developed in Asp.net 3.0. I have a cart system so when user add some items to their cart they are being redirect to Basket page. And i have a button on Basket page for them to go back add some more items. i am not sure how to do that.</p> <p>here is the case.</p> <pre><co...
c# asp.net
[0, 9]
1,367,234
1,367,235
use javascript to test if server is reachable
<p>I have a javascript application that loads data asynchronously from a server within my company's firewall. We sometimes need to show this application outside of the firewall but it is not always possible to get on the VPN. For this reason, we configured the firewall to allow public requests for this data on a spec...
javascript jquery
[3, 5]
3,532,485
3,532,486
Android WebView with Javascript calls behaving oddly
<p>I understand how to call Javascript from my WebView, that isn't the issue.</p> <pre><code>if(javascriptCall!=null){ String hardCodedexample = "1959602"; webView.loadUrl("http://myappexample+ username); webView.loadUrl("javascript:" + "window.application.relocateTo({location:'patients/detail...
java javascript android
[1, 3, 4]
972,513
972,514
PHP error and JavaScript validation
<p>I have an error in my PHP on this line:</p> <pre><code>var strRooms = &lt;?=$js_var?&gt;; </code></pre> <p>It is saying that this has an invalid markup, what does this mean?</p> <p>You can look at the application here: <a href="http://jsfiddle.net/YYMJS/" rel="nofollow">application</a></p> <p>Now if you type in ...
php javascript
[2, 3]
3,676,450
3,676,451
how to get value of more than one text box in a loop
<p>I have some text boxes in my page. I want to get all text box values in an array and insert in to table of database.</p> <p>Is there any option to work by loop</p>
c# asp.net
[0, 9]
5,369,435
5,369,436
Set HTML <param> element via jQuery?
<p>JS/JQuery Newb here!</p> <p>I have a value stored in variable, and I need to plug it into a particular <code>&lt;parameter&gt;</code> element associated with an <code>&lt;object&gt;</code>. Here's an example of what I was hoping I could do:</p> <pre><code>&lt;script&gt; function SetParam(incomingValue){ ...
javascript jquery
[3, 5]
4,418,286
4,418,287
How would you draw a matrix in Android Development?
<p>The size of the matrix would be input by the user with variables h, w.</p> <p>Given this how would I create a matrix of that size on the screen allowing the user to enter in values inside the matrix.</p>
java android
[1, 4]
3,566,232
3,566,233
jQuery 'Enter' and 'ESC' simulation
<p>I want to simulate a couple of clicks. A 'Save' and 'Cancel' anchor clicks.</p> <p>I have this as my enter simulation</p> <pre><code>$('.group').live('keypress', function(e){ code = e.keyCode ? e.keyCode : e.which; if(code.toString() == 13){ $(this).find('a.saveChanges').click(); } }); </code>...
javascript jquery
[3, 5]
2,234,489
2,234,490
How to call a function inside a function in Jquery?
<p>I am using <a href="http://flesler.blogspot.com/2008/02/jqueryserialscroll.html" rel="nofollow">jQuery.SerialScroll</a> so I can have a slider. In the code it has a function that looks like this:</p> <pre><code>var j=jQuery.noConflict(); //some code here jQuery(function(j) { //code goes here. //Then i need...
javascript jquery
[3, 5]
1,867,710
1,867,711
Does jQuery support html escaping of data retrieved from ajax call?
<p>Most <code>MVC</code> frameworks support escaping of server data, before putting them on the web page. I couldn't find any option in <code>jQuery</code>'s <code>ajax</code> method to do the same. In fact, I couldn't even find a native jQuery function to escape strings for proper display on the page (Putting the cont...
javascript jquery
[3, 5]
2,244,502
2,244,503
Keep value of input which is generated by Javascript after submitting
<p>I have this code to append the input panel <code>#yearPanel</code> after the select box <code>#before</code> changed.</p> <pre><code>$("#before").change(function() { var selected = $('#before option:selected').text(); if(selected == bankShowYear) { $(yearPanel).insertAfter("#yearAnchor"); v...
php jquery
[2, 5]
2,083,975
2,083,976
How can I ensure at least one checkbox is checked in a particular div?
<p>I have a <code>&lt;div class="answer" id="yesOptions"&gt;</code> and I need to check that at least 1 checkbox inside this particular is checked. If not, I need to return <code>alert('At least 1 checkbox must be checked from this div!');</code></p> <p>How can I do this? </p>
javascript jquery
[3, 5]
389,565
389,566
Change filename on file upload in .net (asp)
<p>How to change file name on upload ?</p> <p>I have such code :</p> <pre><code>&lt;%@ WebHandler Language="C#" Class="Upload" %&gt; using System; using System.Web; using System.IO; public class Upload : IHttpHandler { public void ProcessRequest(HttpContext context) { HttpPostedFile oFile = context.Reques...
c# asp.net
[0, 9]
4,256,865
4,256,866
Drawing Tournament Brackets
<p>I have have written some software that produces the draw for a tournament the problem i have is how to display the draw on a website. Are there any open source libraries that can draw tournament brackets in the right places and the line feeding to the next match in the tournament ? If not can someone recomend a way ...
c# asp.net
[0, 9]
1,845,980
1,845,981
ASP.Net, Copy image from clipboard using javascript for IE
<p>How to copy clipboard image to web browser. Consider below sample. On button click , I would like to copy the clipboard image to div id , but this does not work. If I paste text from clipboard it works, Pls suggest.</p> function PasteFromClipBoard() { var _selection = document.getElementById('p...
javascript asp.net
[3, 9]
5,466,643
5,466,644
Rewinding HTML 5 video each time the page is loaded
<p>I want to make sure my HTML 5 videos start running from the beginning when the user enters a page.</p> <p>At the moment, the first video is running fine, but if the user closes the pop-up while playing the video will start from where the user left it when they open the pop-up again.</p>
javascript jquery
[3, 5]
3,207,215
3,207,216
Auto Calculating for input field values
<p>My Html is like this:</p> <pre><code>&lt;input class="gbTransform" type="text" name="maxdl" value=""/&gt; </code></pre> <p>And javascript like this:</p> <pre><code>$('.gbTransform').change(function(){ var sz = $(this).val().match(/(\d+)gb/i); if(sz.length &gt; 1){ $(this).val(parseInt(sz...
javascript jquery
[3, 5]
4,721,443
4,721,444
Sending an array to a function in codeigniter
<p>I have the following codes which sends an array to the function /chat in codeigniter</p> <pre><code>$(document).ready(function () { $('#submit').live('click', function (eve) { eve.preventDefault(); $.ajax({ url: "http://localhost/fq/index.php/splash/chat/", type: 'JSON', ...
php javascript jquery
[2, 3, 5]
3,745,058
3,745,059
javascript $ followed by curly braces
<p>I read a book called "Javascript web application" and it has the following lines of code:</p> <blockquote> <p>The example below, which includes logic inside views, is something you shouldn’t do:</p> </blockquote> <pre><code>&lt;div&gt; &lt;script&gt; function formatDate(date) { /* ... */ }; &lt;/script&gt; ${ fo...
javascript jquery
[3, 5]
1,365,009
1,365,010
about older android versions on google market
<p>I have developed my app in android 2.2, and put it on google market (munspel-appen). I could see in the statistics that 4% are using android version 2.1 i dont have access to such device, so I wonder if my app will still work on that older version device if downloaded from market too or is it only working from 2.2 a...
java android
[1, 4]
1,224,806
1,224,807
Do the simplicity of PHP is in the languge itself or is there anonter thing that make it simple?
<p>Everyone says that PHP is simpler than ASP.NET and C#, why it is easier ans simpler?</p> <p>Considering C# and PHP for web development, what is the thing that make PHP easier exactly? I want to understand this point please. </p>
c# php
[0, 2]
2,918,711
2,918,712
Is there a way to let a user view an image they are about to upload client side before uploading to the server?
<p>When a user is uploading an image, is there a way I can load the image client side and show it to them first, before uploading it to the server? Preferably using javascript/jquery only, but using flash would be acceptable too.</p>
javascript jquery
[3, 5]
2,466,356
2,466,357
insert array into an array
<p>Hello In my android application i need to insert an array into an array and access its values. Is there any way that i can get this done.</p> <p>Please share your valuable suggestions Thanks in advance :)</p>
java android
[1, 4]
2,340,574
2,340,575
How to implement __get __set methods PHP in Javascript?
<p>How to implement __get __set PHP in Javascript?</p>
php javascript
[2, 3]
4,587,418
4,587,419
Javascript space function
<p>I have a JS code that the function is to validate the form, now what I want to do is add 1 function to prevent space in textbox username with message too, "No space allowed". Here it's my JS code so far :</p> <pre><code>$().ready(function() { $("#signupForm").validate( { rules: ...
javascript jquery
[3, 5]
1,181,589
1,181,590
Getting information from a form (textbox, combobox) and writing to an xml file (PHP/JAVASCRIPT)
<p>Hi how would i GET information from a form that a user enters into a textbox combobox or w.e and write it to a xml file.</p> <p>either HTML javascript or php will be appreciated.</p>
php javascript
[2, 3]
4,433,999
4,434,000
Android How to get Last Focused Activity after "Force Stop" the Application
<p>I am developing android Application having number of activities. The requirement of the application is <strong>When i "FORCESTOP" the application manually(Settings->Applications->ManageApplication->APP_NAME->FORCESTOP), the last focused activity(UI Page) to be displayed.</strong> Can i get the Last focused Activity ...
java android
[1, 4]
1,572,624
1,572,625
Microsoft JScript runtime error: Can't execute code from a freed script
<p>I am getting this error Microsoft JScript runtime error: Can't execute code from a freed script in my telerik's webresource.axd file.in this page there is a html page embedded in aspx page and we are firing page methods present in aspx page.it is not giving exceptions but errors in browser which is hampering other ...
javascript asp.net
[3, 9]
3,804,378
3,804,379
jQuery: Update the value in one text box based on the value entered in another text box?
<p>I am trying to write a jQuery syntax that will Update the value in one text box, say txtInterest% based on the value entered/changed in another text box called txtAmt?</p> <p>May some one please help me with the scenario?</p> <p>Thanks!</p>
javascript jquery
[3, 5]
111,340
111,341
Use with XMLVM to convert android app to iphone app
<p>Do you know some good tutorial to use XMLVM for convert android app to iphone app?? I was watch a movie on youtube about this cross but there is not a tutorial for this.</p> <p>Thanks! Saar</p>
iphone android
[8, 4]
4,019,415
4,019,416
How to pre select radio button using AlertDialog?
<p>can someone help me with this? I have an AlertDialog box and its working fine, but what I want is when the alertdialog pops up, it will automatically check one of the radio button. </p> <p>For an example "10 minutes" is checked when the alertdialog box pops up.</p> <p>How to do that?</p> <p>Below is my working c...
java android
[1, 4]
5,410,555
5,410,556
Where not working in LINQ operation
<p>I have a problem where when I run the below, even if the call to OptionsMatch returns false (that method returns a bool) I still get the item in the resulting list finalItems</p> <pre><code>public List&lt;SavedItemOption&gt; GetValidOrderOptions(OptionsList itemOptions, List&lt;SavedItemOption&gt; savedItemOptions)...
c# asp.net
[0, 9]
1,885,067
1,885,068
Sending user results by Email
<p>Hi I am wondering is there a way of sending the user an email (from my Gmail address) with results of calculations that occurs within the app itself?</p> <p>For example a form is filled out with values for electricity rates and these rates are then computed and processed into information on savings for a particular...
java android
[1, 4]
2,578,808
2,578,809
How to use MediaPlayer for this VideoView example
<p>So I've spent the past couple hours looking through the APIs and examples on here but I've still got a couple unclear topics. How exactly does one go about displaying the media player? I understand the SurfaceView and the buttons, but what about the actual video file so that I can make it clickable. I'm basically tr...
java android
[1, 4]
2,228,276
2,228,277
jQuery: Hovering over an element brings fades in another element, but when hovering over that element it disappears
<p>I have a class called .description that shows up when ever the mouse is hovered over a class called .image HTML:</p> <pre><code>&lt;div class="image"&gt; &lt;a href="?page=page1&gt;"&gt;&lt;img src="images/1.jpg" width="80" height="80"&gt;&lt;/a&gt; &lt;/div&gt; &lt;div class="description" style="display: none...
javascript jquery
[3, 5]
2,617,031
2,617,032
How to dynamically Order a listbox with a dropdown?
<p>I have a listbox with 20 colors. It looks something like this:</p> <p>1:Red 2:Green 3:Blue 4:Orange 5:Red 6:Yellow 7:Orange 8:Red 9:Green ....</p> <p>It gets the data from an ObjectDataSource which in turn gets it's data from a method which returns a datatable. I want a dropdown which basically has 2 items, Orde...
c# asp.net
[0, 9]
2,495,003
2,495,004
How do I disable or enable 2nd dropdownlist in aspx based on selected choice of the 1st dropdownlist box
<p>I am having a problem with disabling DropDownList based on the chice of 1st DropDownList, there is no post back occuring, and it is a template based web app here is the current code:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function() { var dropDownList1 = $('#&lt;%= ddlUserType.ClientID %&gt;'); ...
c# asp.net javascript jquery
[0, 9, 3, 5]
766,442
766,443
add dynamic element into array
<pre><code> var x = 0; var counter = 0 ; $(function () { $('#addBtn').click(function () { x++; if (counter &lt; 5) { counter++; $('#content').append('&lt;input type="text" id="mytxt' + x + '"&gt;'); $('#con...
javascript jquery
[3, 5]
3,963,582
3,963,583
How to encode text using jquery?
<p>I'm using ajax() to send POST request to a php page. This is the code:</p> <pre><code> date = $.trim($('#date').val()) expiry = $.trim($('#expiry').val()) priority = $.trim($('#priority').val()) note = $.trim($('#note_text').val()) $.ajax({ type: "POST", url: "client?method=addNote&a...
javascript jquery
[3, 5]
3,715,232
3,715,233
Why is opacity not added to divs that are added?
<p>I am having that problem that opacity is not added to tfrhe selected divs.</p> <p>Here do I have a fine working example what I am trying to do: <a href="http://jsfiddle.net/PRZ5J/13/" rel="nofollow">http://jsfiddle.net/PRZ5J/13/</a></p> <p>Here have I added the code from the first example with some other Jquery: <...
javascript jquery
[3, 5]
4,378,675
4,378,676
How to make a checkbox checked in a gridview using DataBinder.Eval
<p>I am trying to make a checkbox checked if the value is 1 or 0 basically in my database i have a field called <code>Active (bit, not null)</code> and i can pass the value to the gridview.. but now i am trying to make it checked if the bit is 1 or not checked if the bit is 0 but its not working.. it just shows uncheck...
c# asp.net
[0, 9]
5,301,778
5,301,779
jQuery toggle question
<p>I have a question concerning using the toggle function. I have a template that is being populated at the end of an AJAX call with data returned from a web service. What I'm trying to accomplish is load the onClick function so that a hidden textbox will be shown and toggled to be hidden on the next click. </p> <p>Wh...
javascript jquery
[3, 5]
5,173,839
5,173,840
Jquery get text value of option on change
<p>I have code like this:</p> <pre><code>&lt;select name="caffe" id="caffe"&gt; &lt;option value="5"&gt;Red&lt;/option&gt; &lt;option value="6"&gt;nmfxnsdnx&lt;/option&gt; &lt;/select&gt; &lt;div id="gll_select"&gt; &lt;script&gt; var caffe = $("#caffe").val(); var cff_name = $("#caffe...
javascript jquery
[3, 5]
2,403,586
2,403,587
can't access C# method using jquery
<p>I am trying to call a C# method from java script ,I am new to web development and after a bit of searching decided on using jquery to do the same,the way I try to call the method is:</p> <pre><code>$.ajax({ type: "POST", url: "Default.aspx/IncrementJ", data: "{}", contentType...
c# jquery asp.net
[0, 5, 9]
5,509,177
5,509,178
How to timestamp with jQuery based off user's selection
<p>I'm attempting to produced a timestamp based off user's selection.</p> <p>I have a form with an input value that will be empty:</p> <pre><code>&lt;input type="hidden" name="sub_enddate" value=" " /&gt; </code></pre> <p>I need to have the empty value filled in with a time stamp based a certain value of time in the...
javascript jquery
[3, 5]
1,531,909
1,531,910
Android/Java Getting Exception : java.util.MissingFormatArgumentException: Format specifier: w
<p><br>I Am newbie to MissingFormatArgumentException..Can anyone help me when will it me thrown.. <br>i am getting Exception as in below code </p> <pre><code> public String getIpAddress() { try { for (Enumeration&lt;NetworkInterface&gt; en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();...
java android
[1, 4]
4,575,148
4,575,149
Finding out what's slowing down ASP.NET pages
<p>I have a rather 'heavy' ASP.NET page, and currently the speed is fairly unacceptable - there is a <em>lot</em> of database communication, and displaying large grids. But I effectively want to find out what's actually causing the most slowdown, and working from there.</p> <p>Are there any tools built into Visual Stu...
c# asp.net
[0, 9]
3,384,778
3,384,779
Strip away all HTML tags and formatting (RegEx)
<p>I have RSS feed that I want to modify on fly, all I need is the text (and linefeeds) so everything else must be removed ( All images, styles, links )</p> <p>How can I do this easily with ASP.NET c#</p>
c# asp.net
[0, 9]