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,817,856
5,817,857
OnClientClick event not firing
<p>In the webpage I'm building, I have a div that I need to have hidden by default, and for it to appear when the user clicks on a link button. This is the code for the link button and the following div:</p> <pre><code> &lt;asp:LinkButton runat="server" Text="Words &amp; stuff go here" OnClientClick="button...
c# asp.net
[0, 9]
2,427,504
2,427,505
What is your preferred order of elements in the body of program code? Why?
<p>Of course at the top of a .java or .cs file are the package/namespace declaration followed by import/using statement.</p> <p>But what riles me is where should I put the variable declaration? At the top or at the bottom?</p> <p>This is how I prefer;</p> <pre><code>package/namespace declaration import/using declara...
c# java
[0, 1]
2,493,469
2,493,470
Get the number and round to whole number
<p>I'm getting the miles from Google Map API V3 and displaying it in a textbox based on the from and to addresses. I want to parse out the number and round it off to the nearest whole number.</p> <p>Miles = "29.9 mi" // i want the result as 30 Miles = "9.3 mi" // 10</p> <p>I tried Math.round but it's returning NAN.</...
javascript jquery
[3, 5]
5,827,314
5,827,315
depending upon value of case change the value of radio button
<pre><code>&lt;select id="events" name="event" &gt; &lt;option selected="selected"&gt;Please Select an Event&lt;/option&gt; &lt;option value="1"&gt;Event1&lt;/option&gt; &lt;option value="2"&gt;Event 2&lt;/option&gt; &lt;option value="3"&gt;Event 3&lt;/option&gt; &lt;option value="4"&gt;Event 4&lt;/option&gt;...
javascript jquery
[3, 5]
184,179
184,180
Android how to answer phone, etc with headset button?
<p>I'm not sure how to get started here so I'll ask a fairly general question. </p> <p>Let's say I have a plug-in headset with a button. Now if I have an incoming phone call, can I programmatically make it so that when the user clicks the button on the headset, it answers (or rejects) the call? I can already register ...
java android
[1, 4]
4,821,752
4,821,753
How to fix these type
<p>I have html data like text including image src.when I alert using jquery it works fine. Entire html is displayed in alert box.And then I want to send that entire html data and text and something's id using quary string of JQuery like:</p> <pre><code>$.post('something.php','socialprofileid='+socialprofileid+ ...
php javascript jquery
[2, 3, 5]
4,097,818
4,097,819
body html of iframe
<p>Hi my code returns all the html of the iframe. I would like just the body html. Any one know how to amend to suit?</p> <p>Code:</p> <pre><code>alert( $("#uploaderIframe").contents()[0].documentElement.innerHTML ); </code></pre>
javascript jquery
[3, 5]
802,724
802,725
How to set a view state in a master page?
<p>I need to check whether an event is fired from the master page or not. For that i kept a count in the viewstate . This is throwing exception on page load. I'm just calling the below line in a pageload</p> <pre><code>Int32 count = Int32.Parse(this.ViewState["Count"].ToString()); </code></pre> <p>Please help.</p>
c# asp.net
[0, 9]
4,893,016
4,893,017
Passing Session[] and Request[] to Methods in C#
<p>In C#, How do you pass the Session[] and Request[] objects to a method?</p> <p>I would like to use a method to parse out Session and Request paramaters for a .aspx page to reduce the size of my Page_Load method. I am passing quite a few variables, and need to support both POSTand GET methods. For most calls, not al...
c# asp.net
[0, 9]
4,742,728
4,742,729
Android: Arraylist with multiple elements
<p>I am new to Android. I wonder how to create an arraylist with multiple elements. I have a list like:</p> <pre><code>list1 = ["Circle", Color.WHITE, Color. BLACK, (20,20), (30,30), (40,40)]; </code></pre> <p>This array contains String, int(the color) and coordinates. Is that available to put all of them into an arr...
java android
[1, 4]
3,402,109
3,402,110
Setting tabindex in dynamic table vertically then horizontally
<p>I have a page that is currently generating dynamically created textboxes in a table format. The users are requesting that the tab order be changed from horizontal-vertical to vertical-horizontal. I know that you can use the tabindex attribute to control the tab ordering, but I can't for the life of me figure out t...
c# asp.net
[0, 9]
4,345,565
4,345,566
Extracting user entry from text box and storing it in a variable in javascript
<pre><code>// text Box &amp;nbsp;&amp;nbsp;&lt;asp:TextBox ID="TextBox3" runat="server" BackColor="Silver" BorderColor="Silver" ontextchanged="TextBox3_TextChanged" style="margin-left: 6px" Width="154px"&gt;&lt;/asp:TextBox&gt; // Submit button &amp;nbsp;&lt;asp:Button ID="Bu...
javascript asp.net
[3, 9]
1,654,210
1,654,211
Jquery remove and $(this)
<p>I have problem with <code>remove()</code> method. I can't remove <code>$(this)</code> object. My code is:</p> <pre><code>$(".submit_add_type").live("click", function() { var parent = $(this).parent(); var type_value = parent.children('.type_value').val(); var type_name = parent.children('.ty...
php jquery
[2, 5]
2,060,569
2,060,570
Where is main() in Android?
<p>I am new to Android, and was studying the framework and it compelled me to ask this question. Since we are extending Activity in Android, there has to be <code>main</code> somewhere in <code>Activity</code> or there is an hidden class that <code>Activity</code> implements that contains <code>main</code>. </p> <p>I ...
java android
[1, 4]
1,288,586
1,288,587
Brother QL 720NW Android and iPhone Printing
<p>I want to print label from my Android and iPhone application. Printer is Brother QL 720NW I had tried iprintsdk.com but I am not sure how I can use it. And it seems it is not free.</p> <p>Please help me.</p>
android iphone
[4, 8]
3,068,562
3,068,563
Can we impliment the operator over loading in Web services?
<p>Hi is it possible to implement operator over loading in Web services in .net</p> <p>Mehar</p>
c# asp.net
[0, 9]
4,970,242
4,970,243
show/hide jquery script
<p>I have got show|hide script. It work's good but I need to modify html of this script</p> <p><a href="http://jsfiddle.net/kolxoznik1/nRf5f/" rel="nofollow">http://jsfiddle.net/kolxoznik1/nRf5f/</a></p> <p>like on my schema</p> <pre><code>&lt;!--Links--&gt; &lt;div&gt;link1&lt;/div&gt; &lt;div&gt;link2&lt;/div&gt; ...
javascript jquery
[3, 5]
656,570
656,571
How to create a runat server DIV in the behind code ? ASP.NET & C#
<p>I'm creating multiple DIVs according to database records at my C# behind code. How could I make them runat server ? </p> <p>Thanks in advance .. </p>
c# asp.net
[0, 9]
5,024,227
5,024,228
Can someone explain this seeming inconsistency in jQuery/Javascript?? (trailing brackets inconsistency on reads)
<p>So, in my example below, "InputDate'" is an input type=text, "DateColumn" is a TD within a table with a class of "DateColumn".</p> <p>Read the value of a discreet texbox: </p> <pre><code>var inputVal = $('#InputDate').val(); </code></pre> <p>Read the value of a div within a table.... </p> <p>This works:</p> <...
asp.net javascript jquery
[9, 3, 5]
1,402,261
1,402,262
Textbox which does two things
<p>I made textbox, but it needs to send data to other application, which have custom formatting (like <code>%B</code> is for bold, and if you want to turn off bold, you type keyword for normal font, and so).</p> <p>So, formatting is much different than usual. I made textbox with buttons that can add keywords for text ...
c# asp.net
[0, 9]
460,085
460,086
Send array from jQuery(ajax) to PHP
<p>class <code>email</code> is an array of email addresses. How do i get the array in jQuery and then send the data with AJAX to send.php along with class <code>title</code> and <code>message</code>?</p> <pre><code> &lt;input type='text' size='30' class='email' value='testing1@gmail.com' /&gt; &lt;input type='t...
php jquery
[2, 5]
1,816,813
1,816,814
how to pass database values in jquery?
<p>Am having several boxes(more than 100) that will create dynamically with</p> <p>Now on each clicking of the box i should slide in one pop up box without page refresh.I downloaded jquery UI(http://jqueryui.com/demos/dialog/#option-position) and used in my project.Now I want to pass the company id on each click...
jquery asp.net
[5, 9]
4,991,130
4,991,131
hide image using jquery if it has no src
<p>If my image doesnt contain a src then i want to hide it using visibility hidden:</p> <pre><code>&lt;img border="0" src="" style="cursor:hand;cursor:pointer;" id="EntityPic543"&gt; </code></pre> <p>How can i do this with jquery?</p>
javascript jquery
[3, 5]
5,387,332
5,387,333
how to get image id
<p>I am creating a list of images dynamically, following is the code</p> <pre><code>&lt;?php for ( $counter = 0; $counter &lt; $obj1-&gt;id; $counter ++) { ?&gt; &lt;tr&gt;&lt;td&gt; Week &lt;?php echo($counter+1); ?&gt; &lt;/td&gt;&lt;td&gt;&lt;?php echo" &lt;a href=\"#hiddenDiv\" rel=\"facebox\";&gt;";?&gt; &lt;img ...
php javascript
[2, 3]
3,263,735
3,263,736
Android 101 - How do i iniate a method within main activity from an onInit?
<p>I need to know code to fix my example below to initate a method within my activity.</p> <p>code:</p> <pre><code> public void onInit(int status) { HowDoIStartThisMethodCorrectly?(); &lt;-- cuz this dosen't start that method. </code></pre> <p>}</p> <p>I need a method within my main activity to run when progr...
java android
[1, 4]
1,466,862
1,466,863
How to show the info page into new "layer"?
<p>I have a contact link on my website and i don't want to add the simple hyperlink to it, because my contact info is about 5-6 lines of text. </p> <p>After click I want it appear on the page I clicked the link, but in something like window (NO POPUP) - just on a higher layer with a close button. I've made it already ...
javascript jquery
[3, 5]
260,500
260,501
code to run java program from website using php
<p>I have a website and want to be able to allow the user to run a Java file on the server from the website.</p> <p>I want the user to click a button which will run the Java file on the server AND anything printed to standard-out by the Java program will be printed out on the website for the user to see.</p> <p>How c...
java php
[1, 2]
5,473,837
5,473,838
Send JSON with FormData-Object through XHR
<p>I've been trying to send images through AJAX to my PHP script and I got it to work out fine. Now I want to send some serialized info along with the images. I've tried a few things to no avail. Can anyone help?</p> <pre><code>var formdata = New FormData(); var info = $('#upload').serializeArray(); $.ajax({ url: "...
javascript jquery
[3, 5]
1,762,246
1,762,247
Javascript converting example to real code issue - arrays
<p>I'm trying to use the userBox plugin and in the example we have the following array being built:</p> <pre><code>var data = [ {text: "Adam Adamson", id: "adam@test.com"}, {text: "Betsy Boop", id: "betsy@test.com"}, {text: "Jooles Jooles", id: "julie@test.com"} ]; </code></pre> <p>I want to bui...
javascript jquery
[3, 5]
3,990,728
3,990,729
Is possible return more than one return type in a Method?
<p>I use asp.net 4 and c#.</p> <p>I would like to know <strong>if could be possible return more than one return type in a Method</strong>.</p> <p>As example in this method I return only a single bool type.</p> <pre><code> protected bool IsFilePresent() { return File.Exists(Server.MapPath("/myFile.t...
c# asp.net
[0, 9]
5,613,940
5,613,941
Bind event to AJAX populated list items
<p>I have an unordered list with no list items.</p> <p>I get some information from the user, I run it through my database using AJAX and the servers sends back a JSON object response.</p> <p>Then I append each list item I want to display to the list using something like</p> <pre><code>$('blabla').append('&lt;li&gt;i...
javascript jquery
[3, 5]
174,128
174,129
Large "Cached App Process" in simple android app. Is this a concern?
<p>I've written an android application for tee time reservations at a single golf course. </p> <p>When I look at the "cached app processes" under "running apps" (galaxy nexus running ics) I see that the cached process for my app is 47mb (which is the most of ANY app, the second being gmail at 44mb).</p> <p>Is this s...
java android
[1, 4]
4,914,824
4,914,825
How to select a range of elements in jQuery
<pre><code>&lt;div id="myDiv"&gt; &lt;a&gt;...&lt;/a&gt; &lt;a&gt;...&lt;/a&gt; &lt;a&gt;...&lt;/a&gt; &lt;a&gt;...&lt;/a&gt; &lt;a&gt;...&lt;/a&gt; &lt;a&gt;...&lt;/a&gt; &lt;/div&gt; </code></pre> <p>If you wanted to select the 2nd, 3rd and 4th <code>a</code> tags in the above example, ...
javascript jquery
[3, 5]
4,165,852
4,165,853
How to load an external JS library that has code between <script> tags using jQuery
<p>The original code I have is</p> <pre><code>&lt;script type="text/javascript" src="http://platform.linkedin.com/in.js"&gt; api_key: qwerty &lt;/script&gt; </code></pre> <p>I want to make this code happen using jQuery after something has been triggered. Something like this</p> <pre><code>jQuery.getScript('http:...
javascript jquery
[3, 5]
4,366,919
4,366,920
How to reference an image inside another tag with 'this'?
<p>I know this is pretty basic, I'm trying to get the 'src' attribute of some images and put them in the same number of #image fields:</p> <pre><code> count = 0; $('.selected').each(function() { count++; // the idea is to get the value from each ".selected img" $('#im...
javascript jquery
[3, 5]
2,354,299
2,354,300
Synchronous Web Pages
<p>I have a situation where an event have to affect several web pages on an event is triggered.</p> <p>Its like in GMail. I am developing a project based on online stocking trading system for my college. There are asking for a facility where the administrator or the dealer doesn't need to refresh his end of the applic...
php javascript jquery
[2, 3, 5]
2,000,765
2,000,766
Javascript - Object loses it's value on function exit
<p>I've got this strange problem. In my code, I've a variable named "val1" which gets a value after a jQuery calling, but after existing the jQuery function it loses it's value.</p> <p>Here's the code:</p> <pre><code>var val1; $.getJSON('some address', null, function (result) { val1 = result.names[0].name; al...
javascript jquery
[3, 5]
322,241
322,242
How to flip images in php?
<p>I am trying to design one website home page. It has 9 grids (boxes) each one having one image, all of them collectively forming a single image, after every 3 seconds each image in the grid should start flipping to show other images, after all images flipped again they need to flip back to form single image</p> <p>I...
php javascript
[2, 3]
3,668,995
3,668,996
Javascript to back button
<p>I have one GridView with Employee search results in it.</p> <p>This GridView shows results of EmpNo, EmpName, Salary. For each EmpNo cell in the GridView, there is a link to ManageEmployee.aspx page.</p> <p>Till here okay, no problem.</p> <p>In ManageEmployee.aspx page there are two buttons 1.Update, 2.Cancel</p>...
javascript asp.net
[3, 9]
2,498,691
2,498,692
problems adding <li> into <ul> from javascript
<p>I have this following where I would like to dynamically add the list elements to it:</p> <pre><code>&lt;ul name='eval-options' class="inputs-list"&gt; &lt;/ul&gt; </code></pre> <p>I'm adding the list elements with the following js...
javascript jquery
[3, 5]
1,337,432
1,337,433
Placeholder Not working well
<p>Just wanna ask anyone here knows why when i put a placeholder in my masterpage it became like this </p> <pre><code>[ PlaceHolder "PlaceHolder1" ] </code></pre> <p>It supposed to be a blank editable box right? I cant even write anything there. Help me ya. Thank you.</p>
c# asp.net
[0, 9]
2,127,537
2,127,538
I would like all my select classes including those that might be added later to use select2
<p>I am using the following code:</p> <pre><code>$(".select2") .select2(); </code></pre> <p>All the select2 classes have the the .select2() applied to them. </p> <p>However I have code that adds html (including selects to my web page. Do I need to run the same code above after the new content is added? </p>
javascript jquery
[3, 5]
2,727,424
2,727,425
Android-Send/Receive byte[] via TCP Socket
<p>I would like to send/receive sqlite database files (*.db) in byte[] over TCP socket connection? </p>
java android
[1, 4]
1,583,833
1,583,834
find all form names on a page using jquery or javascript
<p>How can I get all form names exists on a page using jquery??? can I use jquery input selector to find all forms on a page. for example I have a form on page like below</p> <pre><code>&lt;form name="searchForm" id="searchForm" action=""&gt; &lt;input type="text" name="inputname" /&gt; &lt;/form&gt; </code></pre> <p...
javascript jquery
[3, 5]
5,080,283
5,080,284
How to add accounts to a website ASP.NET C#
<p>I created a new ASP.NET, C# empty website and I have my own database in the <code>App_Data</code> folder. I have a master page as well in the solution.</p> <p>Anyway, I want to create a login page, but my issue is, how would I know whether a user is logged in or not when navigating around the site.</p> <p>To elabo...
c# asp.net
[0, 9]
5,954,512
5,954,513
Stock java/android sound effects
<p>I'm not sure if this is an appropriate question for this forum, but are there a set of stock sound effects that are available through the Java/Android APIs? I understand how to load and play an audio file programmatically, I'm just wondering if there's any sort of large database of sound effects pre-loaded into the ...
java android
[1, 4]
5,906,033
5,906,034
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]
3,258,833
3,258,834
Initializing jQuery.load'ed elements
<p>I'm loading part of my webpage using AJAX, in particular <code>jQuery.load()</code>. With this the usual jQuery pattern</p> <pre><code>$('.classname').click(...) // Handler // or, working with bootstrap $("a[rel=tooltip]").tooltip() // Function </code></pre> <p>or similar obviously don't work any more, because the...
javascript jquery
[3, 5]
80,683
80,684
How do I change accordion header with plus and minus symbol?
<p>I don't like the default Accordion icons and I want to change them. This link here:</p> <p><a href="http://jqueryui.com/demos/accordion/#option-header">http://jqueryui.com/demos/accordion/#option-header</a></p> <p>shows the option to change the header but it requires to specify icons. I don't need icons. I just ne...
javascript jquery
[3, 5]
39,074
39,075
Recursively replaced element with editor (and back) breaks event listeners
<p>Background: There are some values on my website which shall be editable via JavaScript and Ajax. The Ajax is working fine and I can edit values but after I saved the value I cannot edit it again without reloading the page.</p> <p>I reduced the problem to this: The original element gets replaced with a HTML form. Wh...
javascript jquery
[3, 5]
4,328,550
4,328,551
Label does not display on postback?
<p>I have an <code>asp:Label</code> on a page. When I do a post back via a button click, the label does not show. It shows in some cases such as the following:</p> <pre><code>if(ddlStatus.SelectedValue == "-1") lblMessage.Text = "Select Status"; </code></pre> <p>But it does not show in this case:</p> <pre><code>...
c# asp.net
[0, 9]
389,439
389,440
protecting files for download just for user that has credit in his/her acount?
<p>i wanna creat a website for downloading some files (pdf,word,xls, such as these files), each file has pice for example a.pdf is 10$ and b.pdf id 20$. For example usern "x" has 12$, how can i prevent this user for download file b.pdf ? Please giv me suggestions. You know i know that i can have membership system that ...
c# asp.net
[0, 9]
838,550
838,551
When do we use HashSet<>
<p>i have a small sample .</p> <pre><code>//Class public class GetEntity { public string name1 { get; set; } public string name2 { get; set; } public GetEntity() { } } </code></pre> <p>and:</p> <pre><code>public void GetHash() { HashSet objHash = new HashSet(); GetEntity obj = new GetEntity()...
c# asp.net
[0, 9]
4,019,155
4,019,156
How to make the text bold using jquery
<p>I have this out put.</p> <pre><code>&lt;option value="18277"&gt;Dollar Max Hospice~Mx&lt;/option&gt; &lt;option value="12979"&gt;Routine Adult Physical Exam Visit Limit&lt;/option&gt; &lt;option value="12841"&gt;Is Reverse Sterilization Covered Out of Network?&lt;/option&gt; &lt;option value="12918"&gt;MD CDH PPO V...
javascript jquery
[3, 5]
2,562,298
2,562,299
Can I hide SMS on Android?
<p>I would like to develop an application for Android 3.0 with only one button... When I click on this button I should HIDE all the SMS sent from a specific phone number.</p> <p>Is it possible?</p>
java android
[1, 4]
954,010
954,011
How to check an element retrieved from DOM is still present in DOM
<p>Let's say I got a DOM element, as a param of an event, for example click.</p> <pre><code>$(document).click(function() { myElement = $(this); }); </code></pre> <p>How can I check later that myElement is still in the DOM? I can't use .length or any other things like that because it still refer to the saved eleme...
javascript jquery
[3, 5]
4,106,556
4,106,557
How to solve this Timeslot issue in C#
<p>I am trying to solve this business issue:</p> <ul> <li>A user gets 10 attempts to login every 5 minutes</li> <li>If a user exceeds 10 attempts, I display a "You need to wait to login" message</li> <li>Once 5 minutes have elapsed, I need to reset the number of attempts and let the user attempt 10 more times.</li> </...
c# asp.net
[0, 9]
75,258
75,259
jquery calculation - NaN and formatting
<p>This is my code: </p> <pre><code>&lt;script src="js/jquery.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/jquery.field.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/jquery.calculation.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script&gt; $(function() { $('input[nam...
javascript jquery
[3, 5]
2,593,962
2,593,963
Need to serialize Bitmap in Windows32 mode
<p>I'm using gdi32 Bitmap... Need some Win32 solution to serialize gdi32 Bitmap into stream, then pass its buffer to upper level C# code, and to be able to make deserialization...</p> <p>I know how to do that in MFC, but need Windows 32.. </p> <p>the reason is - </p> <p>Being not so strong with linking Managed C# co...
c# c++
[0, 6]
3,163,610
3,163,611
JS statement separator with commas
<p>I found the following js sample and am confused by the syntax. Notice the statements are separated by commas instead of semicolons. Are commas a valid statement separator in js? I have not seen this before.</p> <pre><code> $('selector').each(function () { this.onclick = function () { ...
javascript jquery
[3, 5]
5,267,113
5,267,114
Asp:Image with Link
<p>I would like to place an image in my application. when I click on it I want to move to another page. In general my asp:image to work as link Is that possible ??</p>
c# asp.net
[0, 9]
529,207
529,208
Convert piece of code from c++ to c#
<p>i'm trying to convert code from c++ to c#.. but i'm stuck. Can somebody let me know where i'm wrong?</p> <p>C++ code is:</p> <pre><code>void CALLBACK Test(void *buffer, DWORD length) { BYTE *b=(BYTE*)buffer, temp[20000]; DWORD p=0; while (p&lt;length) { DWORD c=min(length-p, sizeof(temp)); memcpy(...
c# c++
[0, 6]
2,921,276
2,921,277
Extract dynamically created form data
<p>I've just started using jQuery. One thing I've been using it for is adding rows to a table that is part of a form.</p> <p>When I add a new row, I give all the form elements names like <code>'name_' + rowNumber</code>. I increment <code>rowNumber</code> each time I add a row.</p> <p>I also usually have a Remove Row...
php jquery
[2, 5]
1,275,856
1,275,857
Frequency from binary input
<p>Background: I have a IOIO which I am using to measure the output from an photodiode, this is the converted into a digital output. I need to find the frequency at which the signal changes between 1 and 0. Everything I have tryed so far has hanged my test app, any suggestions?</p> <p>current code:</p> <pre><code>if(...
java android
[1, 4]
511,857
511,858
Gridview : How to make the header text multiline?
<p>I have a gridview and sqldatasource.</p> <p>The default header text for each column is for a single line. Is there any way of making the header *multiline so I can add another line of text under the first one.?</p> <p>Thanks</p>
c# asp.net
[0, 9]
3,741,018
3,741,019
Can't find Database namespace in System.Data.Entity in ONE file
<p>I have no idea. I just created a Global.asax and I'm just trying to use System.Data.Entity.Database and it has no idea what I want.</p> <pre><code>using System; using HROpenEnrollment.Model; using System.Data.Entity; using HROpenEnrollment.Data.EntityFramework; namespace HROpenEnrollment { public class Global : Sy...
c# asp.net
[0, 9]
5,040,682
5,040,683
Logic for prioritising elements in the dom using JS
<p>I have made this fiddle: <a href="http://jsfiddle.net/GMH6q/2/" rel="nofollow">http://jsfiddle.net/GMH6q/2/</a></p> <p>HTML:</p> <pre><code>&lt;div class="feature" id="about"&gt;about&lt;/div&gt; &lt;div class="feature" id="services"&gt;services&lt;/div&gt; &lt;div class="feature" id="products"&gt;products&lt;/div...
javascript jquery
[3, 5]
3,247,847
3,247,848
jquery if parent exist else
<p>I need to know if parent exist then I need to do this else this. Here is the code:</p> <pre><code>if ($('#block-slides p a img.alignleft').parent().length) { $(this).parent().parent().css({'max-width' : '100%', 'padding' : '0'}).addClass('clearfix'); } else { $('#block-slides p img.alignleft')...
javascript jquery
[3, 5]
1,498,661
1,498,662
ASP.NET : Invoke codebehind method on Enter Key press in form
<p>I have an asp.net form which has 3 text box and and a asp.net link button control.I want to invoke the button click event handler method when the user press enter key.I used asp.net panel and its default button property.Its working in IE.But not in other Browsers like firefox etc.. Is there any other method to do so...
javascript asp.net
[3, 9]
3,068,021
3,068,022
Javascript/JQuery perform function when user scrolls near bottom of page
<p>On a prominent news site (sry, can't remember exactly which one) I saw a really cool effect... when you scroll near the bottom of the page, a new element slides down from the top of the browser viewport with a lot of social media options (tweet, share on facebook, etc). I'd like to emulate something somewhat similar...
javascript jquery
[3, 5]
5,742,659
5,742,660
Need help with jQuery to clone form dropdown (dynamic dropdown)
<p>I am using PHP to generate dynamic dropdown, the dropdown list items are fetched from database.</p> <p>Here's the php code for that and it works.</p> <pre><code>&lt;select name="title[]" id="title"&gt; &lt;?php $categories = Category::find_by_cid(5); foreach($categories as $category): ?&gt; &lt;option value="&lt;?...
php jquery
[2, 5]
3,920,033
3,920,034
Read csv file using
<p>I am using the below two codes to read the csv file but it returns the same error.</p> <pre><code>'E:\business\business\Document\4112013\20580.csv' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. </code></pre> <p>I'm not ab...
c# asp.net
[0, 9]
5,711,689
5,711,690
Undesired residual effect of mouseenter/mouseleave after clicking on sliding menu
<p>I have a mockup of a menu system I'm putting in place: <a href="http://djinnius.com/GFTest/gftest.html" rel="nofollow">http://djinnius.com/GFTest/gftest.html</a> (there is also a bin here: <a href="http://jsbin.com/orejup/2/edit" rel="nofollow">http://jsbin.com/orejup/2/edit</a> but the text displayed in the green d...
javascript jquery
[3, 5]
4,073,419
4,073,420
Change iframe src
<p>For example I have some link in index.html:</p> <pre><code>&lt;a href="message.html"&gt;Go to message page&lt;/a&gt; </code></pre> <p>In other page, iframe.html I have one iframe:</p> <pre><code>&lt;iframe id="iframe" src="profile.html" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt; </code></pre> <p>Can it be...
javascript jquery
[3, 5]
5,640,603
5,640,604
JQuery: Disabling top menu for sliding tabs
<p>I getting closer to my goal. But I am having difficulties in disabling the top menu for sliding tabs. My goal is that the user will only navigate the tabs through Previous/Next controls. Some how my code is still not disabling the top menu. Any suggestion why? <a href="http://jsfiddle.net/PS336/102/" rel="nofollow"...
javascript jquery
[3, 5]
5,825,281
5,825,282
window.location redirect not working in Android
<p>I'm trying to redirect to a different page using javascript. It works nicely with Firefox but not with Android. Here's a sample code:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:l...
javascript android
[3, 4]
2,062,193
2,062,194
How to integrate quickbook into asp.net c# website?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7083744/what-is-the-best-way-to-integrate-with-quickbooks-from-c-sharp-code">What is the best way to integrate with quickbooks from C# code?</a> </p> </blockquote> <p>I have created a asp.net website and I want ...
c# asp.net
[0, 9]
4,505,311
4,505,312
python, options to parse a javascript web app
<p>Gents, Have to write a python app to communicate and fetch some data from a password protected, javascript enabled web app.</p> <p>The webapp unfortunately requires javascript to run, and refuses to work if javascript is disabled. Therefore, 'urllib2' and 'requests' dont work when trying to fetch data.</p> <p>W...
javascript python
[3, 7]
457,561
457,562
Create custom controls dynamically in ASP.NET
<p>I want to create custom control (let's name it <code>DesignPanel</code>) that will allow user to design his own webpage structure that would be stored in a sitemap file. This Design Panel will have child controls inside ( <code>SiteElement</code>). User will build page strcture by connect Site Elements, customize th...
javascript asp.net
[3, 9]
166,886
166,887
liberal xml parser for c# or java
<p>I am looking for a liberal xml parser, one for java and one for C#, that can "properly" parse</p> <ol> <li>unquoted attribute values</li> <li>non-conjugated attribute</li> </ol> <p>like:</p> <pre><code>&lt;Person id=candy female single phone=555.666.7777 /&gt; </code></pre> <p>rather than</p> <pre><code>&lt;Per...
c# java
[0, 1]
603,338
603,339
jQuery set Hash value
<p>Prototype version</p> <pre><code> var hash = new Hash(); hash.set("date_query", "test"); hash.set("date_search", "1"); </code></pre> <p>Jquery?</p>
javascript jquery
[3, 5]
4,843,446
4,843,447
jquery resize on div element
<p>jquery has the resize()-event, but it just work with window.</p> <pre><code>jQuery(window).resize(function(){/*What ever*/}); </code></pre> <p>This works fine! But when i want to add the event to a div element it doesnt work.</p> <p>E.g.</p> <pre><code>jQuery('div').resize(function()/*What ever*/{}); </code></pr...
javascript jquery
[3, 5]
1,560,708
1,560,709
Display Data from text boxes in Grid Format
<p>My Question can i display data in grid format using in javascript/jquery but without fetching data from DB only in front end. suppose: </p> <pre><code>textfield1 textfield2 add more (link) </code></pre> <p>When click on add more link then user entered data display like:</p> <pre><code>Firstname Lastname ...
javascript jquery
[3, 5]
4,682,043
4,682,044
implementing a wait for element present for N seconds before interacting with an element with javascript and jQuery lib
<p>I have the following code:</p> <pre><code>var play = function() { $(steps).each(function(i, e) { $(this).is(':visible') ? $(this).click() : console.log($(this).html() + ': not visible'); }); }; </code></pre> <p>The problem with this code is that it <strong>immediately</stro...
javascript jquery
[3, 5]
499,105
499,106
403 - Forbidden: Access is denied
<p>I have created a folder inside my asp.net solution named admin. I have created few pages inside it like categories.aspx, users.aspx. I uploaded code to my hosting and when i try to access it using:</p> <pre><code>www.mydomain/admin/ </code></pre> <p>I get:</p> <pre><code>403 - Forbidden: Access is denied. You do ...
c# asp.net
[0, 9]
5,043,630
5,043,631
Create a div containing target div using jQuery
<p>I think that this should be easy, but I'm not able to get it working. I want to target a div or other element using jQuery and then dynamically create a div containing the targeted element, for example:</p> <p>jQuery ('.myclass')</p> <p>How can I create a div with the background-color attribute set to white that c...
javascript jquery
[3, 5]
5,727,332
5,727,333
using jquery i want the a div to hide when the input is empty?
<p>For example say i have a text box and a hidden div called suggestions</p> <pre><code>$("#suggestinput").on({ keyup: function(){ $("#suggestions").addClass("active"); }, blur: function () { $("#suggestions").removeClass('active'); } //another event to know if input is empty while on focus, then remo...
javascript jquery
[3, 5]
5,239,614
5,239,615
How do I find out the first digit of a textbox value in asp.net/javascript?
<p>I would like to find the first digit of the value in a textbox in order to execute some conditional code. I can get the textbox by using getElementById, and would like to execute my code if the first digit contained within the textbox is 7, 8, or 9.</p> <p>How can I test to see if the first digit of my textbox is b...
asp.net javascript
[9, 3]
302,553
302,554
removing last 3 rows of a table
<p>i have a table and i have two buttons to add and remove rows to this table .</p> <p>so adding row is easy (i get 3 rows via ajax every time) .</p> <p>now i want to be able to remove last 3 rows of table by clicking on remove button so unless there is some kind of function or .... to remove recent additions to my ...
javascript jquery
[3, 5]
4,468,645
4,468,646
push an apk file into assets folder programmatically in android
<p>Can i push an apk file into my assests folder programmatically?I wanted to use this apk file in my application.</p> <p>Please forward your valuable suggestions to me.</p> <p>Thanks in advance... Priya</p>
java android
[1, 4]
5,644,931
5,644,932
time count after registry
<p>I saw some website that after you have registered, you can use the service like posting a comment immediately.</p> <p>You may have to wait for 5 or 10 minutes to be able to start, like this StackOverflow website.</p> <p>Once you have asked question, you have to wait 20 minutes to select your answer.</p> <p>If I w...
php javascript jquery
[2, 3, 5]
2,851,867
2,851,868
C# Javascript Beautifier
<p>I am wondering if anyone knows of an open source c# library for beautifying javascript. I would like to make use of such a library within my asp net website to make debugging messy javascript easier.</p> <p>There are currently many online websites for this (ie. <a href="http://jsbeautifier.org/" rel="nofollow">http...
c# javascript
[0, 3]
701,276
701,277
Using jQuery to find push all links in html to an array?
<p>given a block of html that is a var, not on the actual document:</p> <pre><code>var html_cmt = "Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome li...
javascript jquery
[3, 5]
2,996,167
2,996,168
Cross Domain Ajax Call Jquery
<p>I am trying to call a page with ajax, but from another server. This js code runs from bookmark in any page you want and I need to get some data from my server. How could I do this? or maybe connect directly to the database?</p> <p>I got this code:</p> <pre><code>$j.getJSON(serverUrl+"isLogin.php?callback=?",funct...
php javascript jquery
[2, 3, 5]
3,454,616
3,454,617
3d games in android
<p>i want to create 3d games for android but i don't have any information about that. i want to do this in most advanced way like big companies. "most advanced way" means i don't use simple tools that rapidly return result but there is no way to creativity and CREATION. I need an standard way with complete resources an...
java android
[1, 4]
2,926,955
2,926,956
Javascript wich loads images after load web page
<p>my project is in wordpress. In my home page number of images are load from itunes store. It takes to long time n page loading. </p> <p>May i have any javascript so that all the images are load after the load web page.</p>
php javascript
[2, 3]
3,182,704
3,182,705
Java - best way to implement a dynamic-size array of objects
<p>I am a novice with Java.</p> <p>I have to implement an array of objects that changes in size during execution.</p> <p>The code I am writing is going to be ported on Android, too.</p> <p>According to your experience, what's the best class to implement that?</p> <p>Thanks,<br> Dan</p>
java android
[1, 4]
3,162,325
3,162,326
extract text from textarea and paste it in another
<p>Well...how can i do something like this with jquery or javascript:</p> <h2>Example 1:</h2> <p>Textarea 1:</p> <ul> <li>Someone types "World" in the firstline</li> </ul> <p>then the text gets extracts to a variable and then it adds a hello infront of it</p> <p>Textarea 2:</p> <pre><code>Hello World </code></pre...
javascript jquery
[3, 5]
4,872,121
4,872,122
Vibrator on Android
<p>I read a lot about this problem on Stackoverflow but not of the Helps her works at my problem.</p> <p>In my Source Code I have this.</p> <pre><code>vibretor = (Vibrator) this.getSystemService(VIBRATOR_SERVICE); vibretor.vibrate(600); </code></pre> <p>and in the AndroidManifeste.xml I have the Permission</p> <pr...
java android
[1, 4]
1,974,649
1,974,650
paypal donation button integration in asp.net c#
<p>it is required to integrate the paypal donation button in asp.net c# web form, on clicking the donate button an email should be sent to the receiver with capturing the details of the donor like donor name, occupation, address and donation amount etc.</p> <p>Please any help from anyone will be appreciated.</p> <p>t...
c# asp.net
[0, 9]