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
1,981,034
1,981,035
Cannot perform instanceof check against parameterized type ArrayList<Foo>
<p>The following code:</p> <pre><code>((tempVar instanceof ArrayList&lt;Foo&gt;) ? tempVar : null); </code></pre> <p>causes:<br> <code>Cannot perform instanceof check against parameterized type ArrayList&lt;Foo&gt;. Use the form ArrayList&lt;?&gt; instead since further generic type information will be erased at runti...
java android
[1, 4]
250,604
250,605
Javascript Loop Restrict to only 1
<p>I am using:</p> <pre><code>$.each(data.mydata, function(index, value){ output += '&lt;li&gt;'+value.title+'&lt;/li&gt;'; } </code></pre> <p>I need to test something and only want the loop to get 1 off the list.</p> <p>Is there any simple way to do this?</p>
javascript jquery
[3, 5]
5,483,731
5,483,732
selecting proper value of spinner accroding to my Class
<p>i am making an edit Screen of my Account.</p> <p>My account class has some properties. Now i want to show these properties and then edit them. I Have made a spinner that shows the account type.</p> <p>Right now i am using this code</p> <pre><code> ArrayAdapter&lt;CharSequence&gt; typeOfAccountAdapter = ArrayAdapt...
java android
[1, 4]
5,411,073
5,411,074
Date Format Conversion in Java?
<p>I have a date coming in JSON feeds in the format below:</p> <pre><code> mm/dd/yyyy for example today's date 10/26/2011 </code></pre> <p>I want to convert it to another format, which is, infact a detailed date format as:</p> <pre><code> Wed, 26 OCT 2011 </code></pre> <p>How can i do that..??? I know this could ...
java android
[1, 4]
5,581,964
5,581,965
having trouble using setInterval and with random number generation
<p>I'm trying to create a random quote generator. I have created a function called timer that runs another function pickQuote every 400ms but at the moment this doesn't seem to work. in pickQuote I run a function randomNumberGen that creates a random number. My problem in the randomNumberGen is that I want to have an i...
javascript jquery
[3, 5]
2,594,871
2,594,872
C# asp.net parameters cast to a page
<p>if you please help me out i am trying to pass 3 different parameters in a page but i am new in asp.net C# and i don't know the correct syntax if you please help me out</p> <p>;</p> <p>For one parameter like this it works:</p> <pre><code> Response.Redirect("~/WebPage2.aspx?q=" + ListBox1.SelectedValue); </code><...
c# asp.net
[0, 9]
3,977,251
3,977,252
Why my listview adapter doesn't show the right layout on new view?
<p>I have a custom Cursor Adapter that is based off of the MMS and SMS database in android. code looks like this as follows:</p> <pre><code>@Override public View newView(Context context, Cursor cursor, ViewGroup parent) { Message m = Message.getMessage(context, cursor); // gets message from cursor int t = m.g...
java android
[1, 4]
1,501,973
1,501,974
Mono for Android WebClient Special characters
<p>I'm using Mono for Android (C#) and WebClient DownloadString to get source code of a HTML website, that uses special characters (č,š,ž). But when displaying the code, it shows � instead of the characters. Is there a way to show the correct characters?</p>
c# android
[0, 4]
1,167,132
1,167,133
how to animate div from its center
<p>I am trying to animate a div tag from center. Initially I want the div tag to be none visible. when user clicks on link then this div tag should animate from its center. How can I achieve this using jquery. Here is my current code.</p> <pre><code>&lt;a href="#" class="linkone"&gt;link one&lt;/a&gt;&lt;br&gt;&lt;br&...
javascript jquery
[3, 5]
2,161,583
2,161,584
method with ref object parameter
<p>Hi i have to call a method that has this signature:</p> <pre><code>int MethodName(ref object vIndexKey) </code></pre> <p>If i try to call it with</p> <pre><code>String c = "690"; MethodName(ref (object) c); </code></pre> <p>It doesn't work.</p> <p>How can i do?</p> <p>thanks</p>
c# asp.net
[0, 9]
1,702,643
1,702,644
jquery slide show plugin like this
<p>please see that site: <a href="http://www.top-pcb.com/" rel="nofollow">link</a> and watch the slideshow.</p> <p>How can I create a slideshow like that with jQuery? (is there plugin?)</p> <p>thanks ..</p>
javascript jquery
[3, 5]
4,890,143
4,890,144
Checking datareader to be empty
<p>How do I check if my datareader is completely empty ?</p> <p>Not talking about nullvalues but completely empty (no records).</p> <p>Thanks!</p>
c# asp.net
[0, 9]
69,464
69,465
Creating select list with script
<p>I have got this far with my coding:</p> <pre><code> success: function(data) { $.each(data, function(item){ if (item=="") { $(select_element).append($(document.createElement("option")).attr("value", (item)).html(data[item])); } else { $(select_element).append($(document.createEleme...
javascript jquery
[3, 5]
2,322,020
2,322,021
jquery postback failing
<p>I'm trying to initiate a postback invoking the click function of a server-running element, as to run some C# code, in the event of a particular jquery dialog button click.</p> <p>I am using a modal dialog with buttons as per <a href="http://jqueryui.com/demos/dialog/#modal-form" rel="nofollow">this</a> jQuery UI ex...
javascript jquery
[3, 5]
4,146,519
4,146,520
jQuery submit function not triggered
<p>I have a form</p> <pre><code>&lt;form id="solicitud" action="ventas.php?content=nuevo" method="post"&gt; ... &lt;/form&gt; </code></pre> <p>Then I have to submit my submit using jQuery but I can't get it working</p> <pre><code> $("#nombres").click(function(){ alert('clicked'); $("form").submit(function(e...
javascript jquery
[3, 5]
5,452,275
5,452,276
jQuery replace first string match
<p>I have an array, like<br> <code>var acronyms = {<br> 'NAS': 'Nunc ac sagittis',<br> 'MTCP': 'Morbi tempor congue porta'<br> };</code> </p> <p>I need to find first match of each acronym and wrap around with tag via jQuery.<br> E.g.<br> <code>&lt;div id="wrap"&gt;NAS dui pellentesque pretium augue. MTCP...
javascript jquery
[3, 5]
4,515,170
4,515,171
Accessing parent control from child control - ASP.NET C#
<p>I have a parent user control with a label. On the parent's OnInit, I dynamically load the child control. From the child control, I will need to set the parent's label to something.</p> <p>Using the Parent property returns the immediate parent which is actually a PlaceHolder in my case. Theoretically, I can recursiv...
c# asp.net
[0, 9]
489,531
489,532
traverse through whole table and check span tag atrribute name
<p><em>HTML:</em></p> <pre><code>&lt;table id="mytable"&gt; &lt;tr&gt; &lt;td class="cssred"&gt;&lt;span name='478'&gt;john&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="cssred"&gt;&lt;span name='478'&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="cssred"&gt;&lt;span name='478'&gt;...
javascript jquery
[3, 5]
1,468,718
1,468,719
Is it possible to retrieve the username and password in one page to another page in asp.net?
<p>I am using a login control where user enters the username and passwords.I want to retrieve those values of username and password into another page in the application? Is there a way to do that in C#.I am using asp.net login control?</p>
c# asp.net
[0, 9]
1,444,116
1,444,117
Optimal Method of Changing Order of Elements using jQuery
<p>Given the following:</p> <pre><code>&lt;a id="moveElementUp"&gt;Move Up&lt;/a&gt; &lt;a id="moveElementDown"&gt;Move Dowm&lt;/a&gt; &lt;div id="elementHolder"&gt; &lt;a id="element-1"&gt;1&lt;/a&gt; &lt;a id="element-2"&gt;2&lt;/a&gt; &lt;a id="element-3"&gt;3&lt;/a&gt; &lt;a id="element-4"&gt;4&lt...
javascript jquery
[3, 5]
2,974,205
2,974,206
jQuery - trim the variable
<p>I have following example:</p> <p><code>var VarFull = $('#selectror').attr('href')</code> where <code>.attr('href') = "#tabs1-1"</code></p> <p>How can I trim that to <code>"tabs1-1"</code> ( without <code>#</code>)??</p> <p>Any suggestions much appreciated.</p>
javascript jquery
[3, 5]
2,365,868
2,365,869
Implementing AutoCad viewer in web project
<p>I need to implement an AutoCad viewer in my web project which will help the clients view AutoCad file without the need to install it in their PC.</p>
php jquery
[2, 5]
1,193,780
1,193,781
Is anything wrong in the source i written
<p>I write a code to print the value of a textbox to another textbox but i am unable to achieve this can any one tell what's wrong or can any give me equivalent <code>JavaScript</code> to achieve this</p> <pre><code> &lt;form id="form1" runat="server"&gt; &lt;div&gt; &lt;asp:TextBox ID="TextBox1" runat="se...
javascript jquery asp.net
[3, 5, 9]
1,184,030
1,184,031
$(document).ready() not working
<p>Code: </p> <pre><code>var names = [ 'Abstract', 'Animals', 'Beach', //etc. (removed because it was too long) 'Volcano' ]; var links = [ 'http://i.imgur.com/MFkuQ.jpg', 'http://i.imgur.com/QEt72.png', 'http://i.imgur.com/nmrqv.jpg', //etc. (removed because it was too long) 'h...
javascript jquery
[3, 5]
4,140,283
4,140,284
How to run a loop on a bunch of Android buttons that need to control their neighbors?
<p>I have a list of text inputs that each contain numbers. To the left of each is a button that says " - " to the right one that says " + ".</p> <p>So, it looks like this:</p> <pre><code>[ - ] [ 1111 ] [ + ] [ - ] [ 1112 ] [ + ] [ - ] [ 1113 ] [ + ] etc... </code></pre> <p>I want each [-] to alter the value of the ...
java android
[1, 4]
1,601,805
1,601,806
Creating a Button at Run-time in C# After a CheckBox is Checked?
<p>I got a problem while implementing following functionality:</p> <p>I need to add a functionality in C# for my ASP.NET project:</p> <p>a) When the CheckBox is checked, I need to generate a Button on my form dynamically and when the button on the web form is clicked, it should uncheck the CheckBox again.</p> <p>I a...
c# javascript jquery asp.net
[0, 3, 5, 9]
3,656,875
3,656,876
Masonry for Rails asset pipeline
<p>How to catch "GET" parameter of masonry infinite scrolling for show number of page in url address.</p> <p>JS:</p> <pre><code>$(function(){ var $container = $('#masonry-container'); $container.imagesLoaded(function(){ $container.masonry({ itemSelector: '.box', columnWidth: 100 }); }); ...
javascript jquery
[3, 5]
4,753,987
4,753,988
get youtube link between two values and replace with iframe
<p>if there's a html like the following</p> <pre><code>&lt;div class="comment"&gt; [youtube]http://www.youtube.com/watch?v=videoid1[/youtube] random text &lt;/div&gt; &lt;div class="comment"&gt; [youtube]http://youtu.be/videoid2[/youtube] random text2 &lt;/div&gt; </code></pre> <p>how using jquery could you extract t...
javascript jquery
[3, 5]
2,124,619
2,124,620
Trying to check if a file exists in internal storage
<p>The following code is how I am trying to identify if a file exists in the internal storage, <code>MODE_PRIVATE</code>.</p> <pre><code>public boolean isset(String filename){ FileInputStream fos = null; try { fos = openFileInput(filename); //fos = openFileInput(getFilesDir()+"/"+filename); ...
java android
[1, 4]
2,567,737
2,567,738
what is the difference between the below two syntaxes?
<p>1.</p> <pre><code> $(function () { function foo() { return true; } log(bar()); // getting error var bar = function() { return true; }; }); </code></pre> <p>2.</p> <pre><code>$(function () { function foo() { return true; } log(bar()); ...
javascript jquery
[3, 5]
3,894,434
3,894,435
Resize textbox everytime to fit the text length
<p>In my <a href="http://en.wikipedia.org/wiki/ASP.NET" rel="nofollow">ASP.NET</a> page I have a text box which shows data which is bind to an (JavaScript) object variable. I want that textbox to resize everytime, the JavaScript object, e.g. result.title will change everytime.</p> <p><strong>Important</strong>: I want...
asp.net javascript
[9, 3]
5,636,418
5,636,419
javascript value before @ sign
<p>I'm trying to suggest username for sign up page with jquery. im just wondering how can i get the value of email address before <code>@</code> sign. right now i can get complete value with </p> <pre><code>$("#email").val(); </code></pre> <p>should i split it by <code>@</code> or some other way?</p>
javascript jquery
[3, 5]
1,822,164
1,822,165
visual studio desktop application for iphone/Android apps
<p>i want to develop one desktop application using c# sql lite, this application i want to submit this app to Apple store in case of iphone/ likewise for Android. please let me know if it is feasible to do, if so please let me know the steps that need to be incorporated in order to achieve this.</p>
iphone android
[8, 4]
5,997,049
5,997,050
Android/Java question. How are these two decision trees different?
<p>I'm very confused as to how these two decision trees are different. I'm building an app that needs to decide which view to load based on the position selected from a ListView. I've tried to build the logic into a single controller module and found that the switch-case will cause a NullPointerException and FC while t...
java android
[1, 4]
3,537,967
3,537,968
ajax tabs and event handling
<p>I have an app that contains a dropdownlist and tabs. What I what it to do is when I click on the tab, it should change the dropdownlist to relfect the active tab and visa-versa. I have tried javascript but since the ddl is on the server and javascript invokes from the client, it doesn't work. Any help is appreciated...
c# javascript
[0, 3]
777,088
777,089
jQuery Validator, programmatically show errors
<p>I can do something like this:</p> <pre><code>validator.showErrors({ "nameOfField" : "ErrorMessage" }); </code></pre> <p>And that works fine, however if I try and do something like this:</p> <pre><code>var propertyName = "nameOfField"; var errorMessage = "ErrorMessage"; validator.showErrors({ propertyName : errorM...
javascript jquery
[3, 5]
1,371,680
1,371,681
Showing confirmation box not working
<p>I am having issues making this javascript box come up, I think i am doing it wrong but cant figure out what it is. Please excuse have not worked with the Page.ClientScript much before. Basically, I want to display this box and if they click OK it will continue processing my logic otherwise if they click cancel it wi...
c# asp.net
[0, 9]
4,593,361
4,593,362
String Formatting C#
<p>I have a drop down control and the items look like this</p> <pre><code>Books(10) Glasses(230) Notebooks(27) </code></pre> <p>so basically i am grabbing the SelectedItem.Text; but I want to grab only the value before the amount in stock so when I grab it from SelectedItem.Text; it should look like this</p> <pre><c...
c# asp.net
[0, 9]
569,360
569,361
jquery POST selector issue
<pre><code>$("#submit_js").click(function() { $.post( "user_submit.php", {score: $('input[name=vote]:checked').val() }, function(data){ $("#ques"+qn).hide(); ++qn; $("#ques"+qn).show(); }); }); </code></pre> <p>the above jquery function pos...
javascript jquery
[3, 5]
3,601,485
3,601,486
Creating DOM elements in jQuery
<p>Let's say we have the following JavaScript/jQuery code below</p> <pre><code>function createElement(i, value) { return $('&lt;div&gt;', { id: "field" + i, text: value}); } </code></pre> <p>I have a div with an id of "container" and then I do:</p> <pre><code>var c=$("container"); c.append(createElement(1, "hell...
javascript jquery
[3, 5]
3,954,941
3,954,942
Serialize an intent in Android?
<p>i want to serialize an intent after i rcv it using <code>ObjectOutputStream</code> , but i got this exiption </p> <p><code>java.io.NotSerializableException: android.content.Intent</code></p> <p>is there away so i could serialize the intent, thanks. </p>
java android
[1, 4]
3,805,582
3,805,583
How to add 5 Textboxes and 1 button to GridView in footer ASP.NET?
<p>Like in title? have no idea how to do it</p> <p>I wrote something like this:</p> <pre><code>&lt;Columns&gt; &lt;asp:TemplateField&gt; &lt;FooterTemplate&gt; &lt;asp:TextBox ID="TextBox1" runat="server" /&gt; &lt;asp:TextBox ID="TextBox2" runat="server" /&gt; ...
c# asp.net
[0, 9]
5,951,042
5,951,043
How to store and pull internally on android?
<p>I am having trouble trying to store a username string internally on an android devices. My code is written to store the username and read it into a string and then display that string in a toast text box. I'm having errors creating the bold_username.txt file. Here is my code so far:</p> <pre><code>package hello.ta...
java android
[1, 4]
1,865,824
1,865,825
JQuery flyout menu pointer
<p><a href="http://jsfiddle.net/6Jhaw/" rel="nofollow">This (JSFiddle)</a> is that code I have now. I want to animate a pointer so that when the user clicks the list item the pointer slides to the right/left and stays in the middle of the sub list items. How I thought of doing it was to find the amount of pixels to the...
javascript jquery
[3, 5]
4,873,881
4,873,882
android: Extract Text from Image
<p>I am working on an application Which need to convert the jpeg image to text so that I can identify the text written there in the image. plz give me a guidence to do that . </p>
java android
[1, 4]
3,429,523
3,429,524
(PHP)how to hold javascript alertbox on screen
<p>when user changes password I want to show message "Successfully changed!" and when user clicks on <strong>OK</strong> button of <strong>alert box</strong> I call <strong>logout.php</strong> and force user to login with new password.But the problem is PHP <strong>header()</strong> is not waiting for alertbox and dire...
php javascript
[2, 3]
1,590,656
1,590,657
validation expression for datetime like month/date/year
<p>I need a validation expression for datetime like month/date/year.I tried many expressions.But all contains validation for time also...So please help me...</p>
c# asp.net
[0, 9]
2,699,738
2,699,739
How do I populate one listbox from another listbox using JavaScript?
<p>Can anyone tell me how to populate one listbox from another listbox item using JavaScript or ASP.NET 2.0?</p> <blockquote> <h3>Duplicate</h3> <p><a href="http://stackoverflow.com/questions/204140/how-to-add-move-one-list-box-items-to-another-listbox-items-in-javascript">How would I move one list box items to...
asp.net javascript
[9, 3]
4,879,024
4,879,025
Can someone explain why this happens in dynamically loaded UCs?
<p>I got this working by trial and error but would really appreciate an explanation.</p> <p>Summary: I am dynamically loading usercontrols from the host page.</p> <p>Host Page .aspx</p> <p>OnInit does a LoadControl and loads the control</p> <pre><code>User control .ascx On Page_Load -&gt; First time load --&gt...
c# asp.net
[0, 9]
1,863,939
1,863,940
Setting a select value in a fieldset
<p>I am using awesome_nested_fields (rails gem) and do this to insert some item:</p> <pre><code>$('#orderlines').nestedFields('insert', function(item) { console.log(item) }, {skipBefore: true}); </code></pre> <p>This gets returned to the console:</p> <pre><code>[fieldset.item, constructor: function, init: functio...
javascript jquery
[3, 5]
752,094
752,095
Modify tag value using JavaScript
<p>I have this tag on a webpage </p> <pre><code>&lt;input type="hidden" name="ctl00_ed3327f9_e1db_40db_9d66_15946cead7ae_STATEFIELD" id="ctl00_0g_ed3327f9_e1db_40db_9d66_15946cead7ae__STATEFIELD" value="0" /&gt; </code></pre> <p>I want to modify its value, i.e. from <code>value="0"</code> to <code>value="1"</code> us...
javascript jquery
[3, 5]
2,290,613
2,290,614
Programatically Add Control to ASP.NET C# Page on Button Click
<p>I want to be able to add fixtures to a particular gameweek on my asp.net c# page.</p> <p>When a user clicks the add button, it should create two drop downs so they can select the home and away team. I want to be able to allow as many fixtures as the user wants to add, so therefore I need a dynamic way of adding con...
c# asp.net
[0, 9]
5,370,583
5,370,584
returnTrue and returnFalse functions in jQuery source
<p>I can't help but notice there are two seemingly useless functions in the source code of jQuery (For v1.9.1, it's line 2702 and line 2706):</p> <pre><code>function returnTrue() { return true; } function returnFalse() { return false; } </code></pre> <p>Which both are called quite often within jQuery. Is the...
javascript jquery
[3, 5]
3,281,726
3,281,727
Why is the javascript object prototype referred to as `fn`?
<p>What's the etymology of such terminology? Where does it come from? What does it stand for?</p>
javascript jquery
[3, 5]
3,830,969
3,830,970
jQuery actions on ajax loaded content
<p>I have loaded some data into a boostrap.</p> <pre><code>$(".open_modal").live('click', function () { var $url = $(this).attr('data-url'); var $title = $(this).attr('title'); var $modal_data = $('&lt;div class="modal" id="my_modal"&gt;&lt;div class="modal-header"&gt;&lt;button class="close" data-dismiss=...
javascript jquery
[3, 5]
1,033,899
1,033,900
Is it possible to check whether a request is from <script> tag in PHP?
<pre><code>&lt;script src="test.php"&gt;&lt;/script&gt; </code></pre> <p>I want my <code>test.php</code> executed only when it's from <code>&lt;script&gt;</code>, is it possible?</p>
php javascript
[2, 3]
716,458
716,459
JQuery how do I add new divs using .load?
<p>This replaces the content in #message_here, each time. How do I get it to keep adding the content, by creating new divs for each message?</p> <pre><code> var last_mess_id = 1; $('#load_mess').click(function(){ $('#messages_here').load('ajax/get_message.php?last_mess_id='+last_mess_id); last_mes...
php jquery
[2, 5]
1,000,486
1,000,487
Retrying an http connection
<p>I'm making an http request. I'm on a platform (android) where network operations often fail because the network connection might not be immediately available. Therefore I'd like to try the same connection N times before completely failing. Was thinking of something like this:</p> <pre><code>DefaultHttpClient mHttp ...
java android
[1, 4]
1,467,687
1,467,688
validate CKEditor with jQuery Validation plugin
<p>how to validate CKeditor with jQuery validation plugin.</p> <p>This is my code</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ $("#newpost").validate({ debug: false, rules: { title: "required", cat_id: "required"...
php jquery
[2, 5]
5,012,394
5,012,395
toggle an input field
<p>i am trying this code:</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function () { $('#individual,#company').hide(); $('input[name=radios]:radio:checked').change(function() { $('#individual').toggle(this.selectedIndex === 0); $('#company').toggle(this.selectedIndex === 1); }); });...
javascript jquery
[3, 5]
244,127
244,128
can I view two separate aspx files in one webpage?
<p>I have an issue where I have two pages that deal with very similar things and as such quite a few of their methods and aspx server controls have identical method names and variables. In short, it's pretty obvious that the code was copy/pasted and the innards were merely altered. I have a pending request that the t...
c# asp.net
[0, 9]
302,095
302,096
storing a dynamic array of values inside an object looped within a for statement
<p>I am looking to create a set of dynamically created arrays stored inside an object. the outcome would be something similar to this... </p> <pre><code>object.array0.length = 5, object.array1.length = 4, etc </code></pre> <p>the name of the array would be generated from within a for loop based on a numerical value d...
javascript jquery
[3, 5]
1,193,906
1,193,907
.css function does not work inside of handler function
<p>I want to change css properties inside of a named function thant handles the click event. If I call .css in an anonymous function defined in the click event, it works. However, I want to call .css inside of a named function defined inside the handler function. Here's my code. </p> <pre><code>$(document).ready(funct...
javascript jquery
[3, 5]
2,082,510
2,082,511
height property
<p>I have 2 div tag: <code>&lt;div class="right"&gt;</code> and <code>&lt;div class="left"&gt;</code> both right class and left class have height property is auto. I want <code>height of left = height of right</code>. Sorry I not enough lever to post code. </p>
javascript jquery
[3, 5]
1,291,833
1,291,834
what data should I store in the FormsAuthentication Ticket?
<p>I need to store a list of user's friends so I can use it in every page (without the need to make a database query every time). </p> <p>I thought about <code>SessionState</code> but I think this is gonna be heavy, since the database is huge.</p> <p>So I need to know if using <code>FormsAuthenticationTicket</code> i...
c# asp.net
[0, 9]
259,492
259,493
alert in php echo
<p>I'm using Javascript alert box in echos. The problem is that after the message box appears the page still goes to another page instead og staying on the same page.This is how I write it: </p> <pre><code>if(!isset($studii)) { echo "&lt;script&gt;alert('Te rugam alege ultima scoala absolvita!!');&lt;/script&gt;";...
php javascript
[2, 3]
1,080,734
1,080,735
mask phone number, show full phone number on mouse over
<p>I'm building a little application that displays a bunch of phone numbers.</p> <p>The javascript object looks something like this:</p> <pre><code>myObject.phoneNumber = model.phoneNumber; </code></pre> <p>Then i display myObject.phoneNumber on the screen. However, I'd like to mask it so look something like XXX-XXX...
javascript jquery
[3, 5]
1,027,177
1,027,178
Name convention Controls on Forms Tips
<p>I found out this article I would like share with you.</p> <p><a href="http://10rem.net/articles/net-naming-conventions-and-programming-standards---best-practices" rel="nofollow">http://10rem.net/articles/net-naming-conventions-and-programming-standards---best-practices</a></p> <p><a href="http://stackoverflow.com/...
c# asp.net
[0, 9]
4,078,923
4,078,924
Dynamic div with jQuery that shows content on click
<p>I've been trying to work out the demo at this site <a href="http://www.designgala.com/demos/collapse-expand-jquery.html" rel="nofollow">http://www.designgala.com/demos/collapse-expand-jquery.html</a></p> <p>I'm having issues though. here's the code:</p> <pre><code>jQuery(document).ready(function() { jQuery(".cont...
javascript jquery
[3, 5]
2,615,539
2,615,540
jQuery.fadeOut() - How to apply sequentially to a set of elements?
<p>I've 'n' buttons </p> <p>I need to </p> <pre><code>$('BUTTON').fadeOut(); </code></pre> <p>... but I'd like to see one button at time disappear.. </p> <p>how to ?</p> <p>I tried using next, but in the following way ALL disappears in one moment</p> <pre><code>$(".genresButton").first().fadeOut().next().fadeOut(...
javascript jquery
[3, 5]
482,754
482,755
Java Script / jQuery, how to go do different pages and trigger clicks at different interval times?
<p>i have 3 pages with 3 buttons:</p> <p>index1.php <code>&lt;input type="submit" value="button1" id="submit_btn"/&gt;</code></p> <p>index2.php <code>&lt;input type="submit" value="button2" id="submit_btn"/&gt;</code></p> <p>index3.php <code>&lt;input type="submit" value="button3" id="submit_btn"/&gt;</code></p> <p...
javascript jquery
[3, 5]
5,179,048
5,179,049
Passing custom objects between activities?
<p>How do I pass custom objects between activites in android? I'm aware of bundles but I can't seem to see any functionality for this in them. Could anyone show me a nice example of this?</p>
java android
[1, 4]
4,085,501
4,085,502
how to fetch userID
<p>how do I fetch a user ID that is associated with the email address entered by the user in the text box?</p>
c# asp.net
[0, 9]
607,680
607,681
jQuery making selection
<p>I have a nested div like this</p> <pre><code>&lt;div id="one"&gt; &lt;div id="two"&gt; id two goes here &lt;/div&gt; &lt;div id="three"&gt; id three goes here &lt;/div&gt; &lt;div id="four"&gt; id four goes here &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Now i w...
javascript jquery
[3, 5]
2,629,438
2,629,439
jquery - Array of objects inside double brackets
<p>Im trying to create a node.js chat application and when someone joins the chat room I want to push the last 100 messages to their browser. I have node.js adding each chat message as an object with the username and text of the message into an array. When node.js pushes the array of objects it looks like this.</p> <p...
javascript jquery
[3, 5]
5,428,539
5,428,540
Write File as Response in C# in ASP.NET
<p>I have an ASP.NET Web Forms app written in C#. On one of the screens, the user can click a button. When that button is clicked, I need to generate some XML and open it in a custom app. I'm trying to understand how I can take the XML that I have generated, and automatically open the app that can understand it.</p> <...
c# asp.net
[0, 9]
4,589,638
4,589,639
How to get "this" form content by name?
<p>In the following example I get <code>title</code> from <code>this</code> form using html <code>id=title</code>.</p> <p>How do I do the same, but instead of using ID then using name?</p> <pre><code>$(document).ready(function(){ $('form').live('submit', function(){ var aform = $('form[name="create_form"]')...
javascript jquery
[3, 5]
4,862,826
4,862,827
How to fire hover for anchor tag through jquery?
<p>I have a link. It hover has some background effects.</p> <p>I want to fire this hover through jquery.</p>
javascript jquery
[3, 5]
3,319,452
3,319,453
If else minifier
<p>I have many lines of code like this.. this is just a 1 thing i am trying right now.</p> <pre><code>if (RI2.Text.Contains("SOS") || RI2.Text.Contains("WAR")) { Response.Redirect("http://mydomain.com/rabat"); } if (RI2.Text.Contains("sos") || RI2.Text.Contains("war")) { Response.Redirect("http://mydomain.co...
c# asp.net
[0, 9]
3,331,814
3,331,815
Loop over elements in jQuery when element is double clicked
<p>I'm new to jQuery and Javascript. I'm trying to make a button that I can double click which then loops through all elements in the webpage with a certain class and fades them.</p> <p>Currently, I'm trying this:</p> <pre><code>$(".fadeall").dblclick(function() { $("div.section").each(function(idx,item) { ...
javascript jquery
[3, 5]
3,372,854
3,372,855
how to get dynamically created elements width and apply style to that?
<p>I am creating an <code>li</code> element dynamically like this:</p> <pre><code>$(data).find('slide').each(function(numSlide){ var slideLink = $(this).attr('link'); var slideimage = $(this).children('slideimage').text(); var slidedesc = $(this).children('slidedesc').text(); $('.slider ul').append('&lt;li&gt...
javascript jquery
[3, 5]
1,838,959
1,838,960
how to put two function together
<p>I want to write a function to make user click the table header double click and change into descending or ascending order, and I have finished the sorting function, but don't know how to put together, now I just put one of them into the header as following:</p> <pre><code>function sortBy(sKey) { document.sortRes...
php javascript
[2, 3]
1,531,676
1,531,677
URLConnection when device is in sleep mode not working
<p>I am having problems with a background service while the device is in sleep mode. I have set an alarm that will start a service every morning at 9 AM. This service works fine while the device is awake, but fails when the device is asleep.</p> <p>I've traced the issue to a URLConnection.openConnection() call shown b...
java android
[1, 4]
3,063,308
3,063,309
"Uncaught SyntaxError: Unexpected token [" all of a sudden in Chrome
<p>It was working fine up until very recently. Chrome tells me this is incorrect with "Uncaught SyntaxError: Unexpected token ["</p> <pre><code>$.each($regions, function(index, [value1, value2]) { $("#regions .options").children("#r").append("&lt;div class='brick' id='" + index + "' name='" + value2 + "'&gt;" + ...
javascript jquery
[3, 5]
298,279
298,280
How do I enable chrome debugging when inserting a script tag into the head using jquery
<p>I came across this case while trying to dynamicly load a bunch of script files, and where I was getting no errors returned when the JavaScript was failing. This will hopefully save someone a lot of time.</p> <p>How do I enable chrome debugging when inserting a script tag into the head using jquery. This does not al...
javascript jquery
[3, 5]
1,810,551
1,810,552
Page changed in JQUERY
<p>I am trying to found out how to see if a php file has changed and then show a div with saying Page changed in JQUERY</p>
php jquery
[2, 5]
4,978,093
4,978,094
how to format number the using jquery
<p>I am trying to remove the number which are coming after "." then i want to format the number <strong>(16810900.211233)</strong> to like this <strong>(16,810,900)</strong> but i dont know how to do that here is my html is this:</p> <pre><code>&lt;link rel="stylesheet" type="text/css" href="http://cdn.webrupee.com/...
javascript jquery
[3, 5]
2,113,556
2,113,557
Launch an anchor after index is load
<p>Well, I´m not programmer so I can´t handle this at all. I need to launch a part of a website after index is loaded. I´ve been trying some jquery without any luck, ie this: </p> <pre><code>$("document").ready(function() { setTimeout(function() { $('#tensa-inicio').trigger('click'); },1000); }); </co...
javascript jquery
[3, 5]
4,052,982
4,052,983
how can i add image effect on div
<p>How can I add loading effect on <code>&lt;div&gt;</code>. In this code my <code>members.php</code> is so big file so its take time to load. So I want to show that loading… in my member <code>&lt;div&gt;</code> with effect. my javascript skills are so poor so I don’t know is this a right idea to do this or I have to ...
javascript jquery
[3, 5]
5,840,970
5,840,971
Server Error in '/' Application. Key cannot be null. Parameter name: key
<p>Sometimes I'll come back to the problem of making the report,i use this for report in stimulsoft:</p> <pre><code>Key cannot be null. Parameter name: key Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error ...
c# asp.net
[0, 9]
1,525,317
1,525,318
Javascript / jQuery: How to prevent active input field from being changed?
<p>how do I prevent the user to change the value in an input field (which contains a certain value to be copied into the clipboard) without using disabled="true"? The text should be selected once the user clicks in the field (that's working already) but entering anything should have no effect.</p> <p>Thanks</p> <pre>...
javascript jquery
[3, 5]
5,801,287
5,801,288
Activating an user and Cannot modify header information
<p>How to activate a user name width the next code:</p> <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; //index.phtml:10 ... //a piece from content.php define("COOKIE_HASH",'myfsthpemail'); define("COOKIE_EMAIL",'myfsthpehash'); define("LOGIN_EXPIRES",60 * 60 * 24 * 365); header...
php javascript
[2, 3]
4,582,659
4,582,660
Form in master page not submitted
<p>I am working on asp.net application. In master page of my application, I have a sidebar div. I have inserted a form in it for subscription which looks like this:</p> <pre><code>&lt;form method="post" action="https://app.icontact.com/icp/signup.php" name="icpsignup" id="icpsignup3297" accept-charset="UTF-8" onsubmit...
c# asp.net
[0, 9]
2,028,186
2,028,187
jQuery - trigger event when "unhover" on elements for a period of time
<p>I am writing some default animations that will only be triggered when none of the 4 buttons are being hovered for 1 second. <br/><br/>The timer should reset if any of the buttons are hovered during the waiting period (i.e. that 1 second). Any idea? Thanks!</p> <p>[UPDATE] See my snippets in below comment, hope some...
javascript jquery
[3, 5]
2,788,382
2,788,383
Retrieving month name with the month number
<p>I'm modifying a calendar and there is a case where I'm given a month number and I need to compare it with a month name. </p> <p>Of course, I could create a switch statement, but I was wondering if I can obtain the month name from the number or vice versa to do the conditional.</p> <p>Thanks!</p>
java android
[1, 4]
2,596,739
2,596,740
Assigning an element an id when document is loaded so it can perform a different function when clicked?
<p>I'm trying to manipulate an <code>id</code> to use the same button to do more then 2 actions.</p> <p>its something like:</p> <pre><code>var id; if(something == 2){ id = "id"; }else{ id = "id2"; } $(".myClass").attr("id", id); </code></pre> <p>but, its not good, because if i try to use the <code>id</code> t...
javascript jquery
[3, 5]
1,207,810
1,207,811
Add class to selected option of a select element
<p>To demonstrate that I could even use a Class attribute on an option elem I tried adding class attributes to options of a select elem in a static page and that works fine. I noticed that not many online resouces documented this so I figured I would explicitly set the record.</p> <p>here is the jquery code attempting...
asp.net jquery
[9, 5]
24,260
24,261
How to select a input field in next TD with Jquery?
<p>I want to select a input field in next TD with Jquery. I can not use ID or class because the table's row can be add or removed.</p> <p>like ,</p> <pre><code> &lt;tr&gt; &lt;td&gt;&lt;input type='text' name='price[]' onkeyup = 'getTest(this)' /&gt; &lt;/td&gt; &lt;td&gt;&lt;input type='text' name='qty[]' onkeyup = ...
javascript jquery
[3, 5]
3,298,827
3,298,828
Variables and math operators
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1416633/strange-javascript-addition-problem">Strange javascript addition problem</a> </p> </blockquote> <p>I know there's obviously a solution for this, and I've done it before, but I can't remember it and now I...
javascript jquery
[3, 5]
5,864,520
5,864,521
Weird parsing date string error in Android 2.0 emulator
<p>I have a simple test code for testing SimpleDateFormat. This code works well on Eclipse and Android 1.5 emulator, but it failed at Android 2.0 emulator. Does anyone know why? Thanks.</p> <pre><code>public class TemplateActivity extends Activity { /** Called when the activity is first created. */ @Override ...
java android
[1, 4]