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,843,681
5,843,682
Block characters from input text field, mirror input into span or div
<p>I have some html</p> <pre><code>&lt;input type="text" name="name" value="" id="name"&gt; &lt;div id="preview"&gt;&lt;/div&gt; </code></pre> <p>The rules for entry into the field:</p> <ul> <li>Letters A-Z a-z 0-9 space and dash, no other characters allowed<br /></li> <li>Entry of forbidden characters should do not...
javascript jquery
[3, 5]
3,322,049
3,322,050
send data from Android app to local server
<p>i want to send data from android application to local server (PHP) but it doesn't work this is my code (it is work with remote server ):</p> <p>String path ="http://localhost/sd.php"; HttpClient client = new DefaultHttpClient(); HttpConnectionParams.setConnectionTimeout(client.getParams(), ...
php android
[2, 4]
1,857,014
1,857,015
show only Error message of asp validators by javascript
<p>i trying to pop up only error message's for validation's control not text. The code which i tried is showing null for error message's. </p> <pre><code>function fnOnUpdateValidators() { for (var i = 0; i &lt; Page_Validators.length; i++) { var val = Page_Validators[i]; va...
javascript asp.net
[3, 9]
1,663,583
1,663,584
Javascript running improperly?
<p>I have a Javascript function that is called from the onchange method in a DropDownList. However I'm getting the error "Cannot have multiple items selected in a DropDownList." on line 14. This happens when the page is reloaded for other purposes. Why is it getting hung here when the method shouldn't even be getting c...
asp.net javascript
[9, 3]
4,810,831
4,810,832
How do I take string values from a list of objects and add them to a drop down list?
<p>I want to take a list of employees with 3 parts, employee id, last name and first name and add them to a drop down list showing last name, first name. </p> <p>What I have so far is that I created a class for the employees:</p> <pre><code> public class Employee { public int emp_Id; public string lastName;...
c# asp.net
[0, 9]
5,702,057
5,702,058
jquery selection for starting with something and ending with something
<p>I need to select the elements with id which starts with 'start-' and ends with 'end-' string. How to get this done using jquery selector? One line selector please?</p>
javascript jquery
[3, 5]
4,447,285
4,447,286
href inside loop javascript jquery
<p>i want to loop trough all my delicious.com bookmarks and wrap a link arround them...</p> <p>here's my testsite: <a href="http://dev.thomasveit.com/json.html" rel="nofollow">http://dev.thomasveit.com/json.html</a></p> <pre><code>$(document).ready(function(){ $.ajax({ url: "http://...
javascript jquery
[3, 5]
2,523,131
2,523,132
Toast Notification From FileObserver Class
<p>I have an issue similar to <a href="http://stackoverflow.com/questions/5963438/toast-from-fileobserver">Toast from FileObserver</a>. However, I do not understand how to properly implement the Handler.</p> <p>Currently, I have a <code>FileObserver</code>-class and I am passing it context and a handler (context come...
java android
[1, 4]
1,760,310
1,760,311
Config file is appearing in bin folder after publishing
<p>I currently have a configuration file located in the root folder of my project. For some reason, whenever I go to publish the project, it creates two instances of this configuration - one in my root folder and one in my bin folder. Why is this happening and how do I change it so that it doesn't appear in my bin fo...
c# asp.net
[0, 9]
5,459,055
5,459,056
Connect via Bluetooth
<p>I have been working on a bluetooth app for android.I can select a Bt-device from vaible-device-list. How can i connect with the selected device? Could you please help me? Thank you very much </p> <p>Here is my code:</p> <pre><code>public class ScanActivity extends ListActivity { private static final int RE...
java android
[1, 4]
910,998
910,999
Creating unique id for textbox
<p>i like to have unique ids for textboxes and hidden filds .is there any property which will give unique id in asp.net ? </p> <p>something like </p> <p><code>&lt;asp:textbox id="ctr001_1" runat="server" uniqueid="textbox" /&gt;</code></p>
c# asp.net
[0, 9]
3,313,043
3,313,044
Correct usage for Page.ClientScript.RegisterForEventValidation
<p>i have the following method in a usercontrol</p> <pre><code> protected override void Render(HtmlTextWriter writer) { base.Render(writer); Page.ClientScript.RegisterForEventValidation(DataList1.UniqueID); if (DataList1.Items.Count &gt; 0) { foreach (DataListItem it...
c# asp.net
[0, 9]
1,537,547
1,537,548
Error: uncaught exception: Syntax error, unrecognized expression: $
<p>I need help on this.</p> <p>This is my code:</p> <pre><code>function addEntrance(ent) { ent.parent('tr').after($('.entrance.default').clone().removeClass('default')); } $('.add-entrance').click(function() { addEntrance($(this)); }); </code></pre> <p>And this is the error when I click <code>&lt;a href="#...
javascript jquery
[3, 5]
5,218,538
5,218,539
How to dynamically set align property for td in javascript?
<p>Here is my code, my question is in the comment:</p> <pre><code>function (align) { var column = $(`'&lt;td&gt;'`); // now i need syntax to set align property to this td element // column.align = align (not working) } </code></pre> <p>As shown, <code>column.align = align</code> is not working.</p> ...
javascript jquery
[3, 5]
4,927,271
4,927,272
logging application requests
<p>I have several web services that logged-in user interact with. Currently they're running on ASMX but pending an upgrade to WCF. I'm going to write a logger that tracks the name of the request, the user ID, the parameters, the time processing time, if there was an error and a few other things. I'm thinking of somethi...
c# asp.net
[0, 9]
3,853,714
3,853,715
jquery onclick run
<p>I need to run all onclick events on page load. how can I do something like this:</p> <pre><code>$('.upload').foreach(function(){ //execute onclick for found element (ex: test(this, 'var') ) }); &lt;div class="upload" onclick="test(this, 'var')"&gt;text&lt;/div&gt; </code></pre>
javascript jquery
[3, 5]
2,293,750
2,293,751
Single page temporary PHP file upload
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery">How can I upload files asynchronously with JQuery?</a> </p> </blockquote> <p>What are the best practices (if any) for allowing a user to select a file an...
php javascript jquery
[2, 3, 5]
4,333,747
4,333,748
Run PHP code inside JavaScript? Would this be ok to use?
<p>I am not sure if a line of PHP could be run inside of a JavaScript function. For example:</p> <pre><code>&lt;script language=javascript&gt; var int=self.setInterval("message()",1000); function message() { &lt;?PHP mysql_query("SELECT * FROM example"); ?&gt; } &lt;/script&gt; </code></pre> <p>I haven't tried to...
php javascript
[2, 3]
4,209,857
4,209,858
javascript: Switching one pair of class
<p>On Stackoverflow site, the voting arrow initially it can be "vote-up-off"/"vote-down-off" if a user hasn't voted. It can also be one up / another down if the user voted before. Start from this 3 cases, upon the user click, I want to switch class. With help of nice people on this site, I arrived this code so far:</p>...
javascript jquery
[3, 5]
3,601,909
3,601,910
PHP: Delete from a Database with some prompts from javascript
<p>My code is below, I am trying to delete records from mysql database but before deleting the browser has to prompt the user whether the deletion should continue. My problem is my logic is not working its deleting the record no matter what. Any help will be appreciated.</p> <pre><code> if (isset($_POST['outofqcellc...
php javascript
[2, 3]
4,377,980
4,377,981
How to set ImageUrl based on the value of a field in a gridview
<p>I have the following line of code which evaluates whether the value is true or false, if its true it will show an image if its false it shows a different one.</p> <pre><code>&lt;itemTemplate&gt; &lt;img alt="" id="Img1" src='&lt;%# MyAdmin.GetCheckMark((bool)DataBinder.Eval(Container.DataItem, "ShowImg"))%&gt;' ...
c# asp.net
[0, 9]
2,146,341
2,146,342
The 'MapPath' method cease to work as soon as it's procedure is moved to a C# class file
<p>I'm using C# ASP.NET VS2010.</p> <p>I have a procedure on an .aspx.cs that reads a XML file and works just fine.</p> <p>It goes like this:</p> <pre><code>string fileName = "~/App_Data/" + filename + ".xml"; DataSet ds = new DataSet(); ds.ReadXml(MapPath(fileName)); </code></pre> <p>I use this procedure alot to r...
c# asp.net
[0, 9]
4,022,493
4,022,494
How to load javascript function on page load ?
<p>I have used javascript to generate 2D bar-graphs in a HTML page. When i am trying to load this HTML page containing bar-graph in to a div tag of some other HTML page using jQuery <code>.load()</code> function bar-graph (i.e, scripts) are not loading.</p> <p>Please help on this issue.</p> <p>For example i have bar-...
javascript jquery
[3, 5]
5,725,451
5,725,452
how can I display dynamically generated bmp in browser
<p>On a .aspx page I am creating a bmp using the System.Drawing namespace. When the bmp is finished I am sending it to the browser using:</p> <pre><code>using (MemoryStream ms = new MemoryStream()) { bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp); byte[] buffer = ms.Ge...
c# asp.net
[0, 9]
6,020,203
6,020,204
JavaScript Button Enable and Disable with PHP
<p>I have a while loop that fetches data from a database. I have made three buttons:</p> <pre><code>&gt; Open &gt; Hold &gt; Close </code></pre> <p>The first time when the page loads, only the open button should be enabled, and the others should be disabled.</p> <p>After I click the open button, the open button...
php javascript
[2, 3]
5,879,715
5,879,716
javascript unexpected token < , is there any way I can escape the errors(or atleast skip those useless characters)
<p>In php, I have an array like this : </p> <pre><code>$arr['a'] = "some big data so may contain some chars that bring us headache" $arr['b'] = "some big data same as above" $data = json_encode($arr) echo $data </code></pre> <p>My javascript code containing a jquery ajax call, $.ajax . It calls the file containing t...
php javascript jquery
[2, 3, 5]
4,922,851
4,922,852
How to Update in the GridView if the headers are not databound
<p><img src="http://i.stack.imgur.com/Y4qHm.jpg" alt="enter image description here"> I have a <code>GridView</code>, and the header field of the <code>GridView</code> are the items from a <code>ListBox</code> in my program. Therefore the number of columns generated is dynamic every time I run. So when I click on <stron...
c# asp.net
[0, 9]
4,864,749
4,864,750
Android Bitmap to List View
<p>I am trying to pass a bitmap from a url to my list i pass my bitmap as an object but my image wont display</p> <pre><code>for(int i=0;i&lt;CarsArray.length();i++){ HashMap&lt;String, Object&gt; map = new HashMap&lt;String, Object&gt;(); JSONObject e = CarsArray.getJSONObject(i); map.put("InventoryID"...
java android
[1, 4]
4,967,878
4,967,879
jQuery navigation bar not working in?
<p>In my mobile application, I use navigation bar. and i use beta version 1.</p> <pre><code>&lt;div data-role="navbar" id="navibar"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#" id="searchNav1"&gt;Search&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#" id="shoppingNav1"&gt;Shopping&lt;/a&gt;&lt;/li&gt; ...
javascript jquery
[3, 5]
5,294,490
5,294,491
test failed loading of Google Analytics
<p>I noticed that stackoverflow has some JS code which generates: a warning with "Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.". This happened to me a moment ago when Google Analytics didn't load correctly. </p> <p>How would I do something like this? </p> <p>Not...
javascript jquery
[3, 5]
4,718,553
4,718,554
Simple JQuery Flip-Card animation customisation
<p>I have a working Jquery flip card animation. When you click the front panel, it flips to the back panel and vice versa. Now I added 3 links onto the front panel, and I want each link to flip to its own back panel and back, but I'm not getting it to work. My working example: NOTE: I attached the flipcard js file as a...
javascript jquery
[3, 5]
5,339,881
5,339,882
How we can attach the unobtrusive validation with the id of the field?
<p>I am using <code>unobtrusive validation</code> in jquery. My problem is that the validation is attach with the <code>name</code> of the element, is there any way to attach it with <code>id</code> of the element? </p>
javascript jquery
[3, 5]
4,647,902
4,647,903
How to count elapsed time
<p>I have this counter below. I have a 10 and 20 questions game. I need to count how much time is passed when a user finish the game.</p> <pre><code>Timer T=new Timer(); T.scheduleAtFixedRate(new TimerTask() { @Override public void run() { runOnUiThread(new ...
java android
[1, 4]
5,062,439
5,062,440
How to specify string parameters in C# using webservice
<p>Hello I recently used a weather asmx web service here is the link as well <a href="http://www.webservicex.com/globalweather.asmx?op=GetWeather" rel="nofollow">http://www.webservicex.com/globalweather.asmx?op=GetWeather</a> , im wondering though how can I only show off what I need. this is the result I get:</p> <blo...
c# asp.net
[0, 9]
6,010,581
6,010,582
How to split the header of an image?
<p>I have designed a website which users upload some images and I store them in a folder.but anyone else can access the uploaded file via URL. However I want to split the header of Uploaded images and insert the header in the database and store the rest of file in the folders. How can I split the header of image? If I ...
c# asp.net
[0, 9]
2,356,244
2,356,245
jquery addClass adding subclass not working
<p>this is my 1st time posting here, so thanks to everyone who can give me some advice!</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style&gt; &lt;/style&gt; &lt;script src="jquery-1.5.2.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="super" style=" border: solid black 1px; height:10...
javascript jquery
[3, 5]
2,729,859
2,729,860
ASP.NET Classes Question
<p>Could someone tell me the difference between </p> <pre><code>static public public static </code></pre> <p>and </p> <pre><code>private int _myin = 0 public int MyInt { get{ return _myInt; } private set {_myInt = value; } } </code></pre> <p>the private set part is what I want to know</p>
c# asp.net
[0, 9]
70,378
70,379
The constructor AdPreferences(int, int, String) is undefined startapp?
<p>I'm trying to use Startapp for my app, i keep on getting this error i don't know why ! the error is at this line</p> <pre><code>AdPreferences adPreferences = new AdPreferences(developers ID,App ID,AdPreferences.TYPE_INAPP_EXIT); htmlAd = new HtmlAd(this); htmlAd.load(adPreferences, this); </code></pre> <p>...
java android
[1, 4]
2,116,765
2,116,766
redirecting to other page with value in javascript via click
<p>I want to create a Javascript file to do these operations:</p> <ol> <li>Pass the current link to the other page</li> <li>Click on hypertext or image that is created dynamically in JavaScript file to redirect</li> </ol> <p>Just I want to have a Javascript link in the html body and not other thing same this :</p> <...
javascript jquery
[3, 5]
5,897,336
5,897,337
How to ADD days to selcted date in asp using ajax calendar extendar?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/13006280/how-to-add-or-subtract-dates-in-c-sharp-using-ajax-calendar-extender">How to add or subtract dates in C# using ajax calendar extender?</a> </p> </blockquote> <p>I have two textboxes in which i have used...
c# asp.net
[0, 9]
5,751,334
5,751,335
The best way to copy the the input values between two view
<p>I have two different views which have the same number of fields (checkbox type) to be filled out.</p> <p>I need to copy the values from one view to the other when clicking on the copy button..</p> <p>Here is my code which works:</p> <pre><code>$('button').on('click', function () { var firstInputSet = $('#cont...
javascript jquery
[3, 5]
2,473,066
2,473,067
Can running 2 document.ready make them conflict?
<p><br> In my application i am running <code>$(document).ready(</code> twice on on the same page is there going to be a conflict between them?<br> Thanks in Advance,<br> Dean </p>
javascript jquery
[3, 5]
4,910,098
4,910,099
Change Text on click
<p>Ok so if I was doing a form, I could use:</p> <pre><code>&lt;form method="get" action=""&gt; &lt;label for="textinput"&gt;Text:&lt;/label&gt; &lt;input type="text" value="" name="textinput" id="textinput" /&gt; &lt;input type="submit" id="submitbutton" value="Search" onclick="return changeText('submitbutton');" /...
javascript jquery
[3, 5]
2,588,491
2,588,492
How to check if the any of my textbox is empty or not in javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1854556/check-if-inputs-are-empty-using-jquery">Check if inputs are empty using jQuery</a> </p> </blockquote> <p>I have form and textboxes, how will I determine if any of these textboxes is empty using javascrip...
javascript jquery
[3, 5]
4,034,611
4,034,612
Make function execute after user hovers over link for 2 seconds
<p>Yes, I know this question has been asked before, but I can't find an answer that works. This is an accepted answer from one of the other questions:</p> <pre><code>$('#element').hover(function() { $(this).data('timeout', window.setTimeout(function() { alert('hovered for 2 seconds'); }, 2000)); },...
javascript jquery
[3, 5]
3,165,283
3,165,284
Equivalent to PHP's include in C#
<p>What is the equivalent command to PHP's include() in C# ? </p> <p>For example, PHP's include is used as so : include("ex.php");</p> <p>Can I do the same in C#?</p>
c# php
[0, 2]
410,132
410,133
jQuery: How to calculate the maximal attribute value of all matched elements?
<p>Consider the following HTML:</p> <pre><code>&lt;div class="a" x="6"&gt;&lt;/div&gt; &lt;div class="a" x="9"&gt;&lt;/div&gt; &lt;div class="a" x="2"&gt;&lt;/div&gt; ... &lt;div class="a" x="8"&gt;&lt;/div&gt; </code></pre> <p>How would you find the maximal <code>x</code> value of all <code>.a</code> elements ?</p> ...
javascript jquery
[3, 5]
5,501,661
5,501,662
How can I know when a certain iframe gets removed from a page
<p>Let's say I have an iframe on a HTML page:</p> <pre><code>&lt;iframe src="/script.php"&gt;&lt;/frame&gt; </code></pre> <p>The iframe is inside a modal box window (I'm using a jQuery plugin for modal window: <a href="http://opensource.steffenhollstein.de/templates/modalbox/" rel="nofollow">http://opensource.steffen...
javascript jquery
[3, 5]
5,022,086
5,022,087
How can I download image for ImageView in Java, Android?
<p>I need to download image from my server and load this image into imageview. So I have a question - can I download image into memory and set it for ImageView, without saving on sdcard/local storage? Or I must download into some file storage? Give me example please if it possible. </p>
java android
[1, 4]
1,180,590
1,180,591
php code transfer into js
<p>the javascript code in php is</p> <pre><code>&lt;script language="JavaScript" type="text/javascript"&gt; xajax_getCountry('&lt;?php echo $row['mradio_area']?$row['mradio_area']:0 ?&gt;', &lt;?php echo $row['mradio_country']?$row['mradio_country']:0 ?&gt;, &lt;?php echo ($row['mradio_rate']==1?1:0); ?&gt;); &lt;/scr...
php javascript
[2, 3]
3,092,677
3,092,678
How to add dynamic asp.net controls in the Gridview in c#
<p><img src="http://i.stack.imgur.com/6dXyR.png" alt="Requirement is as shown in the image"></p> <p>I am trying to achieve this by adding controls dynamically to the gridview. After I click on Add row(+) button all gridview values are vanishing...?</p>
c# asp.net
[0, 9]
2,467,764
2,467,765
Save value in PHP Session variable
<p>I have an html table which contains records, comes from mysql db. Each row also contains id (PK) wrt db table record. Now I want to save record id in <strong>PHP Session variable</strong>, when I click on a row. To do this I used <strong>onclick</strong> property for each row &amp; call a javascript function with re...
php javascript
[2, 3]
1,945,678
1,945,679
Does using jQuery.get effectively double the ping time?
<p>Suppose I have some script myScript.js that uses jQuery.get() to retrieve a small piece of data from the server. Suppose also that my ping time is horrible at 1500ms. Does using jQuery.get effectively double the ping time to 3000ms? </p> <p>Or is there async magic that allows some sort of parallel processing? T...
javascript jquery
[3, 5]
1,088,435
1,088,436
Is there an advantage in how I store my data using jQuery?
<p>I know understand more about how jQuery stores data. </p> <p>Is there any advantage to doing one or the other of these:</p> <pre><code>$('#editCity').data('href', "xx"); var a = $('#editCity').data('href'); </code></pre> <p>or </p> <pre><code>$('#editCity').attr('data-href', "xx"); var a = $('#editCity').attr('d...
javascript jquery
[3, 5]
3,749,636
3,749,637
strange problem with ToolTip
<pre><code>&lt;asp:CheckBox ID="chkLivrareExterna" runat="server" OnCheckedChanged="ChkLivrare_CheckedChanged" AutoPostBack="true" ToolTip="&lt;%= getChkLivrareExternaToolTip() %&gt;"/&gt; </code></pre> <p>and the method is:</p> <pre><code> protected String getChkLivrareExternaToolTip() { return "testIN"; } </...
c# asp.net
[0, 9]
1,330,294
1,330,295
PHP Show next image in the table
<p>I am showing an image on my page from the db table like this:</p> <pre><code>&lt;?php if ($db_found) { $SQL = "SELECT * FROM myTable where id='$posted_id'"; $result = mysql_query($SQL); while ($db_field = mysql_fetch_assoc($result)) { echo '&lt;img src="images/'.$db_field['image'].'" alt="" /&gt;'; } mysql_close...
php jquery
[2, 5]
2,110,309
2,110,310
JS and jQuery - loop through textboxes and store value
<p>Here's the function that checks if the form is complete.</p> <p>So, what I'm trying to do:</p> <ol> <li>If radio is not selected, throw a message.</li> <li>If radio is "yes", but text is not entered, throw error.</li> <li>If radio is "no" but text is entered, make the text empty.</li> <li>If all is good, add stuff...
javascript jquery
[3, 5]
5,841,106
5,841,107
Create "namespace" in $(document).ready(function() {..});
<pre><code>// first.js $(document).ready(function() { var MyNamespace = {}; }); // second.js $(document).ready(function() { console.log(MyNamespace); }); </code></pre> <p>Running this script I'm getting error <code>Uncaught ReferenceError: MyNamespace is not defined</code>. I suppose, I'm getting this error bec...
javascript jquery
[3, 5]
2,403,484
2,403,485
Javascript/jQuery: How to increment a number and highlight text when selected
<p>I've searched and search, but cannot find what I need. I know very little about Javascript so I need a bit of help with this.</p> <p>I have a number, say numValue, that I want to increase or decrease based on items being selected in different areas. Plus I want those items to highlight and stay highlights until cli...
javascript jquery
[3, 5]
5,942,060
5,942,061
How to check browser support for capabilities / events?
<p>In the past we used browser sniffing to infer if certain events or capabilities were available. I understand that browser sniffing has been 'deprecated' or 'shunned' in favor of feature sniffing. I would like to know how I can check if a certain event can be handled.</p> <p>Take <code>DOMNodeInserted</code> for exa...
javascript jquery
[3, 5]
5,420
5,421
Calculate the Date based on Current Date and No of Days using Javascript/Jquery
<p>I need a help.. I have a Current Date and No of days column. When i enter number of days,i should add current date plus no of days entered. For example, todays date 5th jan + 20(no of days) = 25th Jan 2011 in another column.</p> <p>Kindly help me. Thanks in Advance.</p>
javascript jquery
[3, 5]
5,429,280
5,429,281
Having trouble running an if statement on a jquery ajax output
<p>in my check.php I have an echo "ok";</p> <p>however my if statement to check if the value is ok does not work. Basically I want to execute a javascript function after check.php looks for the email in the database.</p> <pre><code> $.ajax({ type: "POST", url: "check.php", data: "checkit=" + $...
php javascript jquery
[2, 3, 5]
2,200,432
2,200,433
How to use List<Data> in android?
<p>How should I use <code>List&lt;Data&gt; dat = new List&lt;Data&gt;();</code> to temporary store data in my software? <code>"Data"</code> is a class in my code with variables(mainly <code>Strings</code>). When I try that method it doesn't store data.</p>
java android
[1, 4]
4,262,111
4,262,112
Where can I find package of Android Media Player?
<p>I need to execute Intent, but I also need to set application directly. I know that I can do it using Intent.setPackage(), and I need to set Android Media Player by default. Please, tell me, how can I do it? Thank you. </p>
java android
[1, 4]
4,929,562
4,929,563
Decimal without decimal places and comma formatted values
<p>How this i can solve, </p> <p>In database I have field for example Test decimal(18,2), and in text box user entered 656,347. In aspx i try</p> <pre><code>&lt;asp:TextBox ID="txtTest" runat="server" Text='&lt;%# Bind("Test", "{0:n0}") %&gt;' /&gt; </code></pre> <p>and get this: Error while setting property 'Test'...
c# asp.net
[0, 9]
1,620,453
1,620,454
How to store variable within javascript to limit number of http calls?
<p>I am using a second party file downloader which returns a progress event. I can capture the event and call a program on the server to perform an update (for security purposes so I can tell the most recent activity).</p> <p>I get about 30 events per second all at percent downloaded 1%, then 30 more at 2%, then 30 m...
javascript jquery
[3, 5]
854,370
854,371
Find closest element with display: block
<p>I have a certain jQuery selection and I am looking to find the closest element (so self or parent) that is a block element (<code>display: block</code>).<br> The style is not necessarily inline, so the selector <code>[style*=display:block]</code> does not work in every case for me. I think I would need to use the co...
javascript jquery
[3, 5]
4,621,933
4,621,934
Quiting the page before a form submission
<p>In my application I am showing the warning message when the user want to leave the page before submitting the form. I am using window.onbeforeunload() in the script. My application has a Master page.</p> <p>I have four different views for a single form. I am inserting record in first view itself. When user quits t...
asp.net javascript
[9, 3]
1,454,308
1,454,309
Method implementation difference.. need some understadning
<p>Excuse me first. because i don't know this is question is valid or not. i if any one clear my doubt then i am happy.</p> <p>Basically : what is the different between calling a method like:</p> <ol> <li><p>object.methodname();</p></li> <li><p>$('#element').methodname();</p></li> </ol> <p>calling both way is workin...
javascript jquery
[3, 5]
2,731,782
2,731,783
res/ directory tree
<p>I'm going through some book which tries to teach android development. In the book, the author outlines some of the directories found under res/. He mentions res/menu which holds XML based menu specifications. He also makes mention of res/raw which holds "general-purpose files." These folders were not created when I ...
java android
[1, 4]
2,367,231
2,367,232
I want to use the gallery swipe in home page
<p>The thing is that,How can i use the photoswipe javascript on page load rather than when trigred with tag. Is there a way or I have to search for alternatives?</p>
javascript jquery
[3, 5]
3,362,065
3,362,066
Highlight the selected row in data list
<p>I have a DataList on ym web page, from which a user can choose a certain option within the DataList row.</p> <p>I use the <code>ItemCommand</code> of DataList for this. Actually, I want to highlight the selected row when the user clicks on the item in the row.</p> <pre><code>&lt;ItemTemplate&gt; &lt;tr&gt;...
c# asp.net
[0, 9]
483,883
483,884
How to Find my website Visitor Region Code, IP and City Through simple javascript please no Google Analytics or other Software
<p>I want to Know how can i find Region of Visitor and IP adress through java script Region and City is on high priority these ones are not working</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function () { $("#hdnCountryCode").val(geoip_country_code()); $("#hdnCountyN...
javascript jquery
[3, 5]
429,041
429,042
Hide everything between 2 h2 tags?
<p>I have the following html snippet;</p> <pre><code>&lt;h2&gt;Headline 1&lt;/h2&gt; &lt;p&gt;Lorem ipsum bla bla&lt;/p&gt; &lt;p&gt;Lorem ipsum bla bla&lt;/p&gt; &lt;p&gt;Lorem ipsum bla bla&lt;/p&gt; &lt;h2&gt;Headline 2&lt;/h2&gt; &lt;p&gt;Lorem ipsum bla bla&lt;/p&gt; &lt;h2&gt;Headline 3&lt;/h2&gt; &lt;p&gt;Lor...
javascript jquery
[3, 5]
198,281
198,282
Binding jQuery click events via looping through hash grabs last element in hash?
<p>I have a number of divs I am toggling on and off. I initially was manually binding the handlers(as per the code below), but decided to do some refactoring. However, a binding issue arose where the last key/value in the hash is the one always selected. In the example code, that would be the contact_data div. I think ...
javascript jquery
[3, 5]
2,710,421
2,710,422
How to prompt user to enter a valid mobile phone number?
<p>I am currently developing an Android anti-theft application and I am new in Android development. My apps is able to remotely lock the lost phone, so during configuration, user needs to enter a valid phone number, but how I determine whether the phone number entered is valid? Thanks</p>
java android
[1, 4]
2,854,189
2,854,190
javacript confirm box
<p>I have a href as follows:</p> <pre><code>&lt;a class="eLink" href="http:www.abc.com"&gt;chk here xyz&lt;/a&gt;&lt;/li&gt; </code></pre> <p>and javascript for "eLink" is as follows:</p> <pre><code>$("a.eLink").click(function link(evt) { url = evt.target.href; if (url.toString().toLowerCase().index...
javascript jquery
[3, 5]
3,558,019
3,558,020
how to call jquery plugin function from other plugin
<p>I have two plugins tabs.js and slideshow.js I need call function timeOut() in tabs.js but I can't accses it becouse it is in slideshow.js file <a href="http://rnt999.arvixevps.com/~rnt999/test/slider/main.html" rel="nofollow">http://rnt999.arvixevps.com/~rnt999/test/slider/main.html</a> this is full code. Please jav...
javascript jquery
[3, 5]
5,003,664
5,003,665
jstree 1.0 does not work well
<p>I have a problem with the new version of jstree when using this part of code. At the first execution, the data function returns the root node. The problem is that this code never executes again. So whatever happens, I just have the root node. Does anybody know a solution?</p> <pre><code>$('#tree').jstree( json_da...
asp.net javascript
[9, 3]
3,833,664
3,833,665
not alerting the variable value passed from onclick php function
<p>on click, a)I am not getting alert, when i pass $picname variable to jquery img function(the value of the $picname is tulips.jpg)</p> <p>b)i am getting the alert (22) when i pass the variable $picid(the value of the $picid is 22)</p> <p>i think jquery function does not alert images extentions,if so then how can i ...
php javascript jquery
[2, 3, 5]
4,588,533
4,588,534
How to call a class in the App_Code folder from code behind?
<p>I created a class in ASP.NET C# which is located in the App_Code folder. Now I want to call this class from my code behind from one of my .aspx pages. How can I do this?</p> <p>Any help will be appreciate it.</p>
c# asp.net
[0, 9]
1,747,560
1,747,561
what is the original location for asp.net request?
<p>I am trying to determine when a user opens a link in my website through an email that I sent. What would be the best way to do this? I know I can add a querystring parameter , &amp;OpenedTroughEmail=1 or something.</p>
c# asp.net
[0, 9]
1,587,412
1,587,413
How do I create a honeycomb div grid rather than the standard grid?
<p>Here is a rough normal grid structure: <a href="http://jsfiddle.net/CFxzH/1/" rel="nofollow">http://jsfiddle.net/CFxzH/1/</a></p> <p>I am trying to create what I call a honeycomb grid rather than the standard div grid. Here is a rough illustration.</p> <p>NORMAL GRID</p> <pre><code>[] [] [] [] [] [] [] [] [] [] [...
javascript jquery
[3, 5]
60,254
60,255
How to add Javascript code using jQuery and setTimeout()
<p>I have some tracking code that the provider (WebTraxs) says should be placed at the bottom of the tag. The problem is that this same code is causing everything on the page (including my jQuery code) to run AFTER the WebTraxs is executed. This execution sometimes takes long enough where images rollovers, etc aren'...
javascript jquery
[3, 5]
3,853,336
3,853,337
How to delete or remove an array value randomly in jQuery?
<p>How can I delete an value from an array in jQuery?</p> <pre><code>var prodCode = ["001","002","003","004","005","006","007","008"]; </code></pre>
javascript jquery
[3, 5]
4,746,795
4,746,796
Find word on page, wrap in span tags with class
<p>I would like to Find word on page, wrap in span tags with class. before proceeding to execute a javascript i have almost got ready.</p> <p>If i can work out how to just do this first part i think i can get the rest.</p> <p>Find word on page, wrap in span tags with a class applied to the span tags. Must then be sea...
javascript jquery
[3, 5]
781,851
781,852
How do I fake AJAX start / end events in JQuery?
<p>I'm listening to ajaxStart() and ajaxStop() to show/hide a spinner, and I'm doing some mock AJAX stuff in JS while servers are being written. It just calls a function to generate mock data with a setTimeout(). For now I'm just manually calling hide() and show() on the spinner, but I'd really like to just tell JQuery...
javascript jquery
[3, 5]
2,949,602
2,949,603
jsquery get all elements contained by a div with given name
<p>So I'll start off by saying I'm completely new to JS and JSQuery. So I'm in the following situation. The page has a structure like:</p> <pre><code>&lt;div id="id1"&gt; &lt;input name="input1" .... &gt; ..... &lt;/div&gt; &lt;div id="id2" disabled="disabled"&gt; &lt;input name="input1" ....&gt; &lt;/div&g...
javascript jquery
[3, 5]
4,554,607
4,554,608
static class instances unique to a request or a server in ASP.NET?
<pre><code> public sealed class UserLoginSingleton { UserLoginCollection _userLoginCol = new UserLoginCollection(); UserLoginSingleton() { } public static UserLoginSingleton Instance { get { IDictionary items = HttpContext.Current.Items; if (!items.Con...
c# asp.net
[0, 9]
1,249,869
1,249,870
Removing random items,
<p>I have a static page that contains 10 images on the top of the page and 10 paragraps about those images later on the page. I randomly want to show 4 images (which I found the solution for) but I'm unsure how to match those to the text div coming later because I should hide/show the paragraphs about the image</p> <p...
javascript jquery
[3, 5]
5,946,235
5,946,236
How can I refactor this jQuery code?
<p>The code below is for a simple newsletter signup widget.</p> <p>I'm sure there's a way to make it more concise, any ideas?</p> <pre><code>var email_form = $('.widget_subscribe form'); var email_submit = $('.widget_subscribe .submit'); var email_link = $('.widget_subscribe .email'); // Hide the email entry form w...
javascript jquery
[3, 5]
4,972,236
4,972,237
Retrieve substring from given string
<p>This question is related to login. This answer may be simple but still 30 mins I am trying using jquery OR javascript.</p> <p>Given string Example :</p> <p><code>john123,ricky43567,jecobs2</code> and many more like this</p> <p>Retrieve only character from it.</p> <p>above string result will be like..</p> <pre><...
javascript jquery
[3, 5]
1,765,252
1,765,253
get POST data in C#/ASP.NET
<p>-Edit- Jon Skeet and darin togther answered my question 100%</p> <p>I am trying to get POST data but i have no luck whatsoever. By code is below, when i click the form button NOTHING happens. I expected at least my IDE to snap at A.Ret() but nothing happens whatsoever.</p> <p>Test.cs</p> <pre><code>using System.W...
c# asp.net
[0, 9]
3,459,231
3,459,232
Get DataTable values from code behind to client side using javascript
<p>I need help on getting a particular datatable values from the server to the client using javascript. </p> <p>Ex. In my class which is Countries.aspx.cs I have this somewhere on my code say on the page load.</p> <pre><code>DataTable dtbCountries = Repository.GetAllCountries; </code></pre> <p>my dtbCountries now c...
c# javascript asp.net
[0, 3, 9]
2,261,836
2,261,837
how to store dynamic button text
<p>I have below code and i would like to get the texts of dynamic created buttons on the server side which is clicked however on the second click of the button,the button is disabled and i dont wanna have its text property.</p> <p>this is the code how i create dynamic buttons with the loop</p> <pre><code>for (int i =...
jquery asp.net
[5, 9]
5,661,088
5,661,089
reading a text file line by line using javascript
<p>I am trying to read in lines from a text file that are in this form; 34.925,150.977 35.012,151.034 34.887,150.905</p> <p>I am currently trying to use this methodology, which obviously isn't working. Any help would be appreciated.</p> <pre><code>var ltlng = []; var txtFile = new XMLHttpRequest(); txtFile.open("...
javascript asp.net
[3, 9]
3,677,735
3,677,736
Add list in Javascript
<p>I want to add another list while I click on anchor or button in Javascript, which should contain multiple textboxes, an option-list and a delete button on the second and onward lists. Look at:</p> <p><a href="http://jsfiddle.net/KMLkn/3/" rel="nofollow">http://jsfiddle.net/KMLkn/3/</a></p> <p>Can we use clone(jque...
javascript jquery
[3, 5]
4,655,450
4,655,451
How to take user inputted number and assign to byte
<p>I've got a user input dialog box which I'm using to update a value.</p> <p><code>byte valScoreAway = 0;</code></p> <p>The value of valScoreAway is displayed on the screen with:</p> <p><code>tvScoreAway.setText( valScoreAway );</code></p> <p>This works perfectly.</p> <p>During the program the score will incremen...
java android
[1, 4]
1,157,895
1,157,896
jquery dialog does not show CSS style on load in Internet Explorer
<p>I have a jQuery dialog which loads an external php page. All is working fine except in Internet Explorer (8) the css is switched on and then off again when the dialog is loaded. This means the dialog is transparent! When I drag the dialog the style is applied again, and it keeps applied.</p> <p>This the dialog lo...
javascript jquery
[3, 5]
5,179,775
5,179,776
Using jQuery within http.open
<p>I have a jquery function whichh looks like this:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { $('a#id').click(function(e){ e.preventDefault(); var id = $(this).attr('pid'); var title = $(this).attr('ptitle'); $('#product_list').prepend('&lt;inpu...
php javascript jquery
[2, 3, 5]