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
4,050,921
4,050,922
Opening a specific node in an asp.net tree view dynamically
<p>Can any one help to expand a particular node according the value passed from a previous page..i.e:</p> <p>Page1: Value to pass : hyp1</p> <p>Page 2: Tree View--> if (val == hyp1) then</p> <p>SubNode in a node2 should open....</p> <p>Can any one help me in doin this using C# in asp.net?</p>
c# asp.net
[0, 9]
1,110,078
1,110,079
How can I create a file upload progress bar with PHP and jQuery?
<p>How can I create a file upload progress bar with PHP and jQuery? Please don't refer me to Flash stuff like Uploadify. I want to create my own.</p>
php jquery
[2, 5]
2,388,993
2,388,994
Simple javascript method issue
<p>I am trying to understand the different between the following codes..</p> <pre><code>Select.prototype.create = function(){ codes1...... } Search.prototype.create = function(){ codes2...... } </code></pre> <p>They both have different codes but the same method. I am not sure why and how it works. Can anyone help...
javascript jquery
[3, 5]
1,979,407
1,979,408
JQuery: How do I determine if a slideToggle has been toggled?
<p>How do I do the following pseudo code in JQuery?</p> <pre><code>$(document).ready(function(){ $(".btn-slide").click(function(){ $("#divToSlide").slideToggle("fast"); if ($(this).isToggled) { // &lt;---- DOESN'T WORK ------- // do something when toggled } else { /...
javascript jquery
[3, 5]
5,534,726
5,534,727
How to safely check for a attribute value with Jquery?
<p>If a clicked link has target="_blank" set as an attribute, I want to call window.open, otherwise I set a iframe to load the page.</p> <p>How do I check the attr and make sure it doesn't crash if the value is null etc.</p> <p>I have this so far:</p> <pre><code>if ($(that).attr("target") == "_blank") { windo...
javascript jquery
[3, 5]
3,495,259
3,495,260
Getting time in Germany - Android
<p>How can I get the current time in Germany regardless of the location of the user and current device time?</p> <pre><code> Calendar buttoncal = Calendar.getInstance(); String tdate = new SimpleDateFormat("dd.MM",Locale.GERMANY).format(buttoncal.getTime()); String tday = new SimpleDateFormat("EEEE",Locale...
java android
[1, 4]
3,933,375
3,933,376
Javascript Lazyload queue
<p>I am using jQuery LazyLoad plugin in my project to display large column of small pictures. The plugin helps really much, the only issue is that on page load it makes page/scrolling/.. so slow as it loads all the initial (visible) images (around 60 images of size 40x40) at once.</p> <p>It would be amazing if it loa...
javascript jquery
[3, 5]
1,499,182
1,499,183
Designing a "pop-out" interface that automatically updates - even possible?
<p>So I developed this web application, which has several multiple select boxes on an admin page - each of these boxes contains multiple values, which we will call criteria.</p> <p>The criteria in these boxes are generated on a form on another page and stored separately in another table in the database. The big proble...
php javascript
[2, 3]
2,100,059
2,100,060
Not violating "compareTo" contract in a changing list
<p>This is kind of a general java question and doesn't relate too much to Android.</p> <p>In my application I have a list of some objects of a medium complex class which implements <code>Comparable</code>. The <code>compareTo()</code> method's result depends on some of the fields. The method is consistent and doesn't ...
java android
[1, 4]
1,556,800
1,556,801
Jquery and Java Script does not work an all pages
<p>My java script and jquery doesn't work on all of my pages. It works on the home page <a href="http://www.steadfastdesignfirm.com/rgw" rel="nofollow">http://www.steadfastdesignfirm.com/rgw</a> but not when I go to any other page like <a href="http://www.steadfastdesignfirm.com/rgw/#index.php" rel="nofollow">http://w...
javascript jquery
[3, 5]
1,740,339
1,740,340
Are there any Android development video tutorials?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4904560/where-can-i-find-android-video-tutorials">Where can I find Android video tutorials?</a> </p> </blockquote> <p>Are there any places that have Android development tutorials similar to the iPhone Stanford v...
iphone android
[8, 4]
1,924,732
1,924,733
Adding PostBackTrigger and AsyncPostBackTriggers to UpdatePanel for dynamically generated checkboxes with checkedChanged EventHandler
<p>For more clear explanation here's my code on <code>.asp</code> file:</p> <pre><code>&lt;asp:UpdatePanel ID="updPnlTabs" runat="server" &gt; &lt;Triggers&gt; &lt;asp:PostBackTrigger ControlID="btnSave" /&gt; &lt;/Triggers&gt; &lt;ContentTemplate&gt; &lt;asp:Panel ID="pnlCheckList" runat="server" style...
c# asp.net
[0, 9]
2,560,542
2,560,543
ASP.Net masterpage Response.Redirect before child call
<p>I have a masterpage and inside that masterpage I have to check if a session is null or not. If the session is null, then there has to be a redirect to a login page.</p> <p>That is no problem, but the problem is that the masterpage also have controls using the session and the child also uses the session so I get a n...
c# asp.net
[0, 9]
4,744,920
4,744,921
which solution will be faster on Android?
<p>Which solution will be faster on Android 2.1?</p> <p>1.</p> <pre><code>public void foo(String a, String b) { String msg = a + ": " + b; print(msg); } </code></pre> <p>2.</p> <pre><code>public void foo(String a, String b) { StringBuilder sb = new StringBuilder(a.length() + b.length() + 2); sb.append(a); sb.a...
java android
[1, 4]
1,040,354
1,040,355
Is there a more efficient way to write this function?
<pre><code>function month(num) { if (num == 1) { return "January"; } else if (num == 2) { return "Feburary"; } else if (num == 3) { return "March"; } else if (num == 4) { return "April"; } else if (num == 5) { return "May"; } else if (num == 6) { r...
javascript jquery
[3, 5]
5,839,042
5,839,043
How do I hide the ScrollView scrollbar faster than the default?
<p>How do I change the delay before the scrollbar on a ScrollView is hidden? I want it to hide instantly after scrolling. I tried android:scrollbarDefaultDelayBeforeFade="0" but it still sticks around and i have to either wait for it to disappear or click twice to click a button inside the ScrollView.</p>
java android
[1, 4]
98,617
98,618
This JavaScript Works Alone, But Not With Other JavaScript
<p>I got this code from my programmer (outsourcing) :</p> <pre><code>&lt;script type="text/javascript"&gt; $(function(){ $('#notif-icons &gt; li &gt; a, #top-menu &gt; li &gt; a').click(function() { var clicked = $(this).next('.popup-notif'); $('.popup-notif').not(clicked).fadeOut('fast'); ...
javascript jquery
[3, 5]
547,198
547,199
jQuery: fadeout an image when clicking an ASP.NET ImageButton
<p>I'm building a photo gallery in ASP.NET. The user can browse thumbnails along the left and select one, which brings a preview-sized version into the right pane of the page.</p> <p>I'd like to fade between the images, so that the current one fades out and the next one fades in. I'm using jQuery to fade the preview ...
asp.net jquery
[9, 5]
928,367
928,368
Why isn't my ListView updating when I call notifyDataSetChanged()?
<p>I'm close to finishing my first Android app, but I'm fighting with an odd bug when I delete items from the SQLite DB that feeds a ListView in my app. The item gets deleted, and if I switch away from the ListView and back, it updates, but until I do that, the list doesn't update.</p> <p>I've posted most of the class...
java android
[1, 4]
1,842,799
1,842,800
how to randomly change the color of every pixel on the screen
<p>I want each pixel on the screen to flash between red, blue, green, white, and black but independently of each other. Is this possible? I have been searching everywhere with out any luck. Any help on where to start would be greatly appreciated.</p>
java android
[1, 4]
5,216,813
5,216,814
simple jQuery - I can't figure out why this isn't working
<p>I am trying to do 2 things: 1: append a div to the body 2: make all clicks to links class 'editlink' make a popup and not go to their href</p> <p>Doing just #2 is fine:</p> <pre><code>$(document).ready(function(){ // $(body).append("&lt;div&gt;Hello world&lt;/div&gt;"); $("a.editlink").click(function(event){ ...
javascript jquery
[3, 5]
1,892,214
1,892,215
jQuery: Set click from array loop
<p>I have a series of divs in a pattern of header/body, where a click on the header will show the body in question.</p> <p>This all happens with .click initialized on page ready...</p> <p>Rather than doing this (which works fine, but is a pain):</p> <pre><code>$('#show_fold_ping').click(function(){ ShowArea('#fold_p...
javascript jquery
[3, 5]
2,273,258
2,273,259
Javascript cookies vs php cookies
<p>Is there a difference between javascript cookies and php cookies?</p>
php javascript
[2, 3]
3,327,725
3,327,726
Set maximum row height in generated excel document
<p>In my web application users can get excel report. The problem is : when one of the cells in row contains long text, so all row is grow, and excel report looks bad. I need to set maximum row height for all rows in my excel document.</p> <pre><code> public bool UseOldFormat { get; set; } public ExcelFile GetExcelFi...
c# asp.net
[0, 9]
5,307,647
5,307,648
what is the c# equivalent to javascript's unescape()?
<p>I am trying to analyze some javascript, and one line is </p> <pre><code>var x = unescape("%u4141%u4141 ......"); </code></pre> <p>with lots of characters in form "%uxxxx".</p> <p>I want to rewrite the javascript in c# but can't figure out the proper function to decode a string of characters like this. I've trie...
c# javascript
[0, 3]
2,789,355
2,789,356
jQuery object cast to string
<p>Can help me please with a jquery object problem.</p> <p>The problem is the following, I have this code:</p> <pre><code>url = '&lt;a href="http://url.com"&gt;Name&lt;/a&gt;'; otherValue = "Other Value"; x = jQuery(url).text(otherValue); console.log(x); console.log(typeof(x)); </code></pre> <p>This return...
javascript jquery
[3, 5]
2,992,287
2,992,288
PHP Javascript variable help
<p>Is there any way I could get the value of a html text field without using GET or POST or REQUEST? Alternatively, is there any way to get the field value in the same form or page else where.</p> <p>This works with direct value such as "james", "system" and so on. the only problem is how do i make it work with html ...
php javascript
[2, 3]
743,240
743,241
Javascript height issue
<p>I'm using javascript to add either the class vertical or horizontal to all image articles on a page. I'm having the problem that the code is working, but it's ALWAYS adding .horizontal to the article class, even photos that should have .vertical (posts that contain images larger than 450px high). Any help would be a...
javascript jquery
[3, 5]
5,627,931
5,627,932
Convert string to Date in java
<p>I'm trying to parse a string to a date field in an android application but I can't seem to get it correct. Here is the string I'm trying to convert to a date "03/26/2012 11:49:00 AM". The function I'm using is:</p> <pre><code>private Date ConvertToDate(String dateString){ SimpleDateFormat dateFormat = new Simpl...
java android
[1, 4]
510,785
510,786
jquery not working in IE6
<p>I have developed a dropdown category and sub category menu in jquery. The script is working n Firefox, chrome but not in IE6. could you please guide me to fix this problem</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { $('#loader').hide(); $('#show_heading').hide(); ...
javascript jquery
[3, 5]
3,691,740
3,691,741
replicate jQuery touch even binding
<p>I am trying to remove dependency on jQuery from a project. Currently I have something like this...</p> <pre><code>$("#input").ontouchstart = myFunction; </code></pre> <p>Now I want to use vanilla js like this</p> <pre><code>somehowBind('touchstart', document.getElementById('input'), myFunction) </code></pre> <p>...
javascript jquery
[3, 5]
3,567,072
3,567,073
Jquery select value passing
<p>How do I get current value of an html select then pass it to another html select after a "click" event via jquery? </p> <p>Thanks.</p>
javascript jquery
[3, 5]
4,976,334
4,976,335
Installing live wallpaper on Android phone deletes half the existing apps on the phone
<p>I've got a strange bug with my Live Wallpaper app. When I set it as the phone background, half the apps on my phone suddenly vanished. I cannot find them anywhere. How can I undo this?</p>
java android
[1, 4]
3,067,821
3,067,822
Dynamic div tiling layout
<p>I want to split the divs vertically or horizontally indefinitely. Is there a javascript library to handle a dynamic tiling layout? If not can anybody point out a good way to do it? I've been trying to do one myself but so far it has been a mess.</p>
javascript jquery
[3, 5]
72,958
72,959
how to get selected column value or name from datagrid in asp.net using c#
<p>My code is like this : Now I have now idea how to get column name of selected row </p> <pre><code>protected void gv_imageslist_RowUpdating(object sender, GridViewUpdateEventArgs e) { string status; string sts; int result; lblerror2.Text = ""; //((label)gv.Rows.FindControl("l...
c# asp.net
[0, 9]
1,693,173
1,693,174
using document.images.src property in javascript i want to get list of images source
<p>I am able to get it when hardcoding but throwing error while trying it with for loop.</p> <pre><code>for(i=0;i&lt;document.images.length;i++) { document.writeln(document.images[i].src); } </code></pre> <p>actually after printing first index value loop is terminating error:cannot read ob...
javascript asp.net
[3, 9]
2,490,143
2,490,144
Javascript Date Validation
<p>How to validate particular format date string using Javascript? I have one date picker which has the display format like "dddd MMMM dd, yyyy"(displaying like this:"Wednesday February 03, 2010".) So i have to validate this format using javascript. Please help me for implementing this..</p>
asp.net javascript
[9, 3]
787,337
787,338
JQuery - Pass value of variable to index value of class
<p>I'm new to js and have only been learning for about a week so be kind. The script below alters the src of an iframe to match the custom data-attribute of the same iframe when a link with a class of .thumb is clicked. </p> <p>This works fine but its currently changing the iframe src of all classes of all iframes wit...
javascript jquery
[3, 5]
4,285,196
4,285,197
this.is(":checked") not working
<p>I'm using the following code to loop through all the checkboxes in my form. The boxes are gerenated dynamicaly from a php script so I won't know the names or the number of check boxes. </p> <p>I need to find out which checkboxes have been ticked so I only pass those ones to the php script that handles the form.</p...
javascript jquery
[3, 5]
3,874,920
3,874,921
Automatic redirection to start page-C# asp.net
<p>In gridview ,there is a templatefield which is imagebutton.i'm binding imageurl at runtime(on pageload) based on the document type.if i'm not binding the image,on next postback it loads the startup page.can somebody give the reason for this?</p> <p>Thanks</p>
c# asp.net
[0, 9]
5,443,535
5,443,536
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]
711,073
711,074
Settings Selector Dynamically in JQuery
<p>I have a table whose values are being generated dynamically with PHP, including the id and name attributes (e.g. id="question_".</p> <p>How can I set an element attribute with this in mind? For example, I have a div whose text will change after a successful ajax call, but the id is dynamic. </p> <p>I have tried ma...
php jquery
[2, 5]
1,915,407
1,915,408
Get the number of weeks between two Dates.
<p>Im working in a project and I got two types in Date. I want to calculate the number of weeks between these two dates. The dates can be in diffrent years. Is there any good solution for this? </p> <p>I have tried to implemenent this with Joda-time which was suggested in other topics.. </p> <p>Im not familar with th...
java android
[1, 4]
1,747,137
1,747,138
JQuery Dialog while PHP requesting
<p>I have this php files:</p> <p>index.php</p> <pre><code>echo '&lt;a href="./edit.php?id=1"&gt;Edit&lt;/a&gt;'; </code></pre> <p>and the edit.php</p> <pre><code>&lt;?php $id = $_REQUEST['id']; if ($icao != NULL) { header("Location: ./index.php?id=$id"); } ?&gt; </code></pre> <p>When I click in the Edit l...
php jquery
[2, 5]
4,995,243
4,995,244
How to add a Drawable to WebView
<p>Json</p> <pre><code> { "text": " «Le président du Bloc du Changement et de la Réforme", "imagepath": "http://www.example.com/dori%20chamoun-saidaonline.jpg" } </code></pre> <p>I get the text and fetch image from url as drawable </p> <pre><code> introtext = jArray.getString("introtext"); </code></pre> <p...
java android
[1, 4]
4,914,216
4,914,217
Javascript or jQuery: Download and redirect
<p>Currently some guys programmed this in a HTML page:</p> <pre><code>&lt;script&gt; location='http://example.com/downloadable.zip'; &lt;/script&gt; </code></pre> <p>They want to redirect the user to another page once the file has started downloading. I can only modify this page but not the destination page.</p> ...
javascript jquery
[3, 5]
1,882,357
1,882,358
Prevent interval being queued on multiple clicks
<p>I have created simple script with setInterval function and it is working fine on <b>first</b> button click, but if I click my button couple of times my interval is <b>queued up</b>! I have tried to solve this using <b>one</b> function with Jquery but then I cannot set my Intereval again. <br/>Is there a way to preve...
javascript jquery
[3, 5]
2,341,847
2,341,848
div tag to show on expand and hide on collapse usi ng xslt
<p>I have list of hyperlinks on a webpart and i would like to show a plus sign next to each link and when i click on it should expand and would like to show the description and when i click on the -ve sign it should collapse and description should be hidden. How can i acheive this using xslt. Plz privide me some sugges...
javascript jquery
[3, 5]
860,008
860,009
Hacking RadioInfo.java to work
<p>I have been looking at the android source and developing some apps. However for my next app, I need information about the cell phone. Similar to what you see when you go into "Field Test" mode. However I have not been successful to get RadioInfo.java to work. Is there a way to hack RadioInfo.java so that I can use i...
java android
[1, 4]
5,858,467
5,858,468
Getting the a text from EditText (but a Number)
<p>I know that you can get a normal text like this:</p> <pre><code>EditText input = (EditText) findViewById(R.id.input); String value = input.getText().toString(); </code></pre> <p>but now I need a to an input like this: 0xFFFFFF (a Hex-Color), an Integer... But value is only a String and I don't know how to convert ...
java android
[1, 4]
2,994,859
2,994,860
Pre-processing Emulator for JavaScript ( Timing / Debug Example )
<p>In C++ you can omit compiling debug code by using pre-processing directives in order to keep your compiled code fast and not hindered by debug code not needed in production.</p> <p>Is there a correlative way to do this in JavaScript? What I have been doing in the past is commenting out debug code, but I want a cle...
javascript c++
[3, 6]
3,602,267
3,602,268
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]
291,383
291,384
Set value of a dropdown in ANOTHER webpage
<p>I have two web pages open. How can I change the value of a dropdown in PAGE 2 from within PAGE 1? </p> <p>I have searched and searched. Any help will be much appreciated.</p>
javascript jquery
[3, 5]
3,526,177
3,526,178
jQuery: add and remove contents to another div
<p>Is there any jQuery &amp; PHP tutorial available which is having functionalities like:</p> <ol> <li>Add or remove contents from one tab to another.</li> <li>Save those in sessions.</li> </ol> <p>Please have a look at <a href="http://myfav.es/settings/sites/#/all-sites/" rel="nofollow">this website</a>.</p> <p>Loo...
php jquery
[2, 5]
2,478,056
2,478,057
how to receive data from server to android
<p>I am trying to make an Android application about cars tracking using GPS.</p> <p>Like this "the system is having GPS and send a data (Longitude and Latitude) to Web Server GPS, and then Web Server will send it (Latitude and Longitude) to client (android)"</p> <p>My question is how the client (android) to receive p...
java android
[1, 4]
5,732,610
5,732,611
executing a c# function after each 24 hours
<p>I have a c# function for producing thumbnail images, these images are displayed on web-page i.e ASP.net So how would i programtically call this back-end function let say everyday at 16:00 or at 3:00.</p>
c# asp.net
[0, 9]
3,421,096
3,421,097
how to open a file on android
<p>I am new to android and programming. I am using the android touchpaint api, and using the following code to save a drawing, but obviously saving is useless without being able to open the file.</p> <p>I was wondering if anyone could help me with some code for it.</p> <pre><code> // Function saves image to file p...
java android
[1, 4]
6,029,552
6,029,553
Drag from the ListView and Drop on to the Button
<p>I would like to know if its possible to drag an item from the ListView and drop onto the Button. After dropping onto the button the text on the button will be changed.</p> <p>Is it possible to drop an item onto the Button?</p>
java android
[1, 4]
986,316
986,317
seperate validation of two forms with jquery
<p>I have two forms in one page and i would like to validate each form seperatly DEPENDING on what the user fills. So basically the user must fill only ONE form and NOT both of them...SO basically if the user fills up form number 1, the validation will be on form 1 ONLY..</p> <p>Below please find the code of both form...
javascript jquery
[3, 5]
4,978,157
4,978,158
how to get checked chekbox while update from gridview
<p>in my project i use chekbox list...but while m get update from gridview i can't get chek chekbox...can any one help me</p> <pre><code> SqlConnection Conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ims"].ConnectionString); Conn.Open(); DataSet ds1 = new DataSet(); string querry = "Select po_tax f...
c# asp.net
[0, 9]
3,356,986
3,356,987
new windows cannot find path in javascript
<p>I m facing problem with javascript new window.<br/> when i run start.aspx file which is in temp folder.<br/> temp folder has also download.aspx file. When I click a download button then I write a javacript code. The code is </p> <pre><code>new win = window.open("download.aspx", "new window", param); </code></pre> ...
javascript asp.net
[3, 9]
4,765,155
4,765,156
jquery selector help
<p>I have a div with an id="my_div". How can I find a <code>&lt;select&gt;</code> by <em>name</em> (i.e. <code>name="my_select"</code>) assuming that the <code>&lt;select&gt;</code> can be at any level underneath the div? I.e. it can be a child, grandchild etc. Ultimately I need to get the value of the selected optio...
javascript jquery
[3, 5]
851,533
851,534
Dropdownlist Selected value in postback
<p>I have 2 dropdownlists(ddl1,ddl2) and a gridview with 2 dropdown lists(gddl1,gddl2). On <code>SelectedIndexChanged</code> event of ddl1 am changing <code>SelectedIndex</code> of gddl1 in postback.</p> <p>My problem is ddl1.databind() occurs at a <strong>button's click event</strong>. So once selectedindex of ddl1 c...
c# asp.net
[0, 9]
1,269,532
1,269,533
Cloned row requesting same function
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/12877232/call-same-function-by-a-cloned-list-row">Call same function by a cloned list row</a> </p> </blockquote> <p>I am trying to make a simple calculation to work.</p> <p>I have the following running:</p> <p...
javascript jquery
[3, 5]
591,192
591,193
Convert jQuery to javascript (hide block after click on blank space)
<p>Hello dear programmers Stack Overflow. I started to learn javascript and for a while (until you learn to write complex programs) would do without frameworks to understand the principles of the "native" code. I ran into the problem and found its realization ... but jQuery that difficult to understand deeper processes...
javascript jquery
[3, 5]
5,464,016
5,464,017
Didn't do too well on a Java IKM test, advice?
<p>I did an IKM Java test recently and got quite a low score. I only graduated a year ago and I dont have commercial experience in Java (i do web development in my current job).</p> <p>I thought reading up a lot on Java would help me prepare, but when I sat the IKM test i got ripped to pieces. I didn't know much about...
c# java
[0, 1]
5,114,563
5,114,564
Problem with animate jquery div with different pace
<p>While I was animating two boxes with jQuery at same pace with setting marginTop, the second box will move faster than the first box.</p> <pre><code>&lt;div id="box1" style="width:500px;height:80px;background-color:blue;"&gt;box 1&lt;/div&gt; &lt;div id="box2" style="width:500px;height:80px;background-color:green;ma...
javascript jquery
[3, 5]
3,789,976
3,789,977
Convert php array_sum to java
<pre><code>$a = array(2, 4, 6, 8); echo "sum(a) = " . array_sum($a) . "\n"; //==20 </code></pre> <p>how i can do this in java?</p>
java php
[1, 2]
1,772,233
1,772,234
Tree Menu Method
<p>I'm creating a menu with the following structure in the database:</p> <pre><code>MenuItems id menu_text id_parent </code></pre> <p>Where <code>id_parent</code> is null, this is a menu root, and if <code>id_parent</code> is not null, this is a part of submenu. I need to create a method to return an tree of t...
c# asp.net
[0, 9]
806,102
806,103
Access to hyperlink in listview in Itemtemplate
<p>I'm trying to access a <code>hyperlink</code> on my <code>listview</code>. When the user logs in, the hyperlink will show on my homepage. It doesn't show.</p> <pre><code>protected void lvtop6_ItemCommand(object sender, ListViewCommandEventArgs e) { ListView hlBuy = (ListView)lvtop6.FindControl("hlBuy"); i...
c# asp.net
[0, 9]
4,994,648
4,994,649
change name of class name when clicked in jquery
<p>I have a div with class name: .sel-display-on. When clicked, I want to change it to .sel-display-off with jquery. Is this possible at all? Will the css properties of this new class name be applied?</p> <pre><code>$('.sel-display-on').click(function (e) { e.stopPropagation(); // change class name to ...
javascript jquery
[3, 5]
1,868,841
1,868,842
jQuery access to this event in new object
<p>I want to get access to the data-global-id value in the following markup and I am not sure how to do this due to scoping.</p> <p>For example:</p> <pre><code>&lt;div data-global-id="168" class="remove-as-favorite"&gt;remove as favorite&lt;/div&gt; $('.remove-as-favorite').on('click',function(){ var global_id=$(t...
javascript jquery
[3, 5]
3,998,743
3,998,744
Building your own sources on Android
<p>I have coded a new provider and now want to get this into android working. I changed security.properties and Security.java files in android under libcore directory.</p> <p>Now how do I build the files?</p> <p>I simply did a make on android sources and I already see the main provider file that I have written.</p> ...
java android
[1, 4]
1,137,377
1,137,378
jQuery Accordion Menu Items Remain Open Until Clicked
<p>I have made a jQuery accordion menu but it doesn't seem to be acting in the default manner. Basically, when I click on a menu item the item opens as expected. However, when I click on a different menu item it also opens as expected but the first menu item remains open. The jQuery documentation states:</p> <p>"An...
javascript jquery
[3, 5]
2,462,224
2,462,225
jquery: simple animate question
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/190560/jquery-animate-backgroundcolor">jQuery animate backgroundColor</a> </p> </blockquote> <p><a href="http://johanberntsson.se/dev/fysiosteo/" rel="nofollow">http://johanberntsson.se/dev/fysiosteo/</a></p> <...
javascript jquery
[3, 5]
5,790,361
5,790,362
Padding on Shape in Progressbar
<p>I'm using xml file to define progress bar. I defined padding on background shape. But this setting will be sometimes displayed correctly, sometimes not. So If I start my application or Activity with progressbar inside, there will be correctly displayed progressbar with background and 'padded' progress. Then I close ...
java android
[1, 4]
4,620,319
4,620,320
Session State Issue
<p>When visiting a page, I am storing a value in session state. When I click back on the browser, the value in session reverts to its original value. Why does this happen? I am not resetting the value when i go back.</p> <p>This happens on iPhone and iPad - all other browsers do NOT roll back the session state value....
iphone asp.net
[8, 9]
266,534
266,535
jquery anonymous function declaration meanings
<p>Are the following assumptions accurate?</p> <p>1) execute immediately</p> <pre><code>(function(){ })(); </code></pre> <p>2) execute on document ready</p> <pre><code>$(document).ready(function(){ }); </code></pre> <p>3) shorthand for on document ready</p> <pre><code>$(function(){ }); </code></pre> <p>4) altern...
javascript jquery
[3, 5]
2,234,136
2,234,137
receiving response from page method using jquery
<p>I am calling page method using jquery. In examples every one receives a reply using result.d</p> <p>for example:</p> <pre><code> function onSuccess(msg) { alert("suc" + msg.d); } </code></pre> <p>Please guide me what is this .d ? </p>
jquery asp.net
[5, 9]
543,109
543,110
jquery Ajax URl issue
<p>I have looked around quite a bit and it seems absolute urls is the way to go here. I have no problem in chrome but firefox and IE IE still wants to redirect fully to the wrong page.</p> <p>my states:</p> <pre><code>&lt;script type="text/javascript"&gt; $(function() { $('#page_submit').click(function (...
php javascript jquery
[2, 3, 5]
4,233,387
4,233,388
Trying to start with google translate API and using ready()
<p>I have this code:</p> <pre><code>&lt;script language="javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt; &lt;script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.js"&gt;&lt;/script&gt; &lt;script language="javascript"&gt; $(document).ready(function() { } ); ...
javascript jquery
[3, 5]
3,560,492
3,560,493
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]
1,739,713
1,739,714
How to return duration soundmanager2
<p>I'm using.</p> <pre><code>function item_duration(link,name) { soundManager.createSound({ id: ''+name+'', url: ''+link+'', volume: 100, autoLoad: true, onload: function(){ if (this.readyState == 3) { return this.duration; } ...
javascript jquery
[3, 5]
210,663
210,664
Accessing a JSON var wthout using item.item = string
<p>Here is the array</p> <pre><code>var weekdayColor = { sunday : 'red', // sunday monday : 'blue', // monday tuesday: 'white', // tuesday wednesday: 'black', thursday: 'green', friday: 'yellow', saturday: 'orange' } </code></pr...
javascript jquery
[3, 5]
3,306,672
3,306,673
How to change names of files in String[]
<p>I have such code... </p> <pre><code> File fileDir = new File("/mnt/sdcard/dd"); if(!fileDir.exists() || !fileDir.isDirectory()){ return; } String[] files = fileDir.list(); </code></pre> <p>So, I have an array of files' names...<br> But I want to GET an array of <code...
java android
[1, 4]
4,231,975
4,231,976
jquery - checking for inline javascript on attribute
<p>Is there a way to test if a custom attribute is a function? I've tried using jquery's isFunction method, but it doesn't seem to work with this scenario. </p> <p>For example:</p> <pre><code>&lt;input id="test" class='date' oncomplete="function() { alert('i am a function'); }" type="text" /&gt; &lt;script&gt; ...
javascript jquery
[3, 5]
6,005,203
6,005,204
Browse verify this field blank
<p>Good afternoon, I have a doubt. I have a div with two input button and a div, to send data via $ ajax More event just prior to sending $ ajax, I have to validate these two field Check that this blank. Most do not know how to do it for him not enable the sending if it receives false answer;</p> <p>Example of my code...
javascript jquery
[3, 5]
4,526,113
4,526,114
js jQuery, always have a number display at least two digits 00
<p>I'm using the following to add one to number:</p> <pre><code>&lt;div id="count"&gt;00&lt;/div&gt; &lt;div id="count"&gt;03&lt;/div&gt; &lt;div id="count"&gt;08&lt;/div&gt; &lt;div id="count"&gt;12&lt;/div&gt; $('#count').text(function(i,txt) { return parseInt(txt, 10) + 1; }); </code></pre> <p>I always want there...
javascript jquery
[3, 5]
2,275,475
2,275,476
How to access a calling element's id in a jQuery click() function
<p>So I am binding a .click() function to a css class, but I want to be able to access the calling element's id from inside this function when it is called. What is the best way to do this?</p>
javascript jquery
[3, 5]
1,957,450
1,957,451
ASP.net disable refresh when dropdownlist is open
<p>i have a webpage that loads data into a gridview and refreshes the gridview every few seconds. I do this via a asp:Timer which runs a C# function every few seconds to requery the database and databind the gridview.</p> <p>I also have a few dropdown lists to filter data from the gridview. These dropdown lists get th...
c# asp.net
[0, 9]
2,260,231
2,260,232
in asp.net how can I dynamically hide one field based off anothers value?
<p>I have 4 asp:Textbox fields on a form. IDs being A1, A2 and B1, B2 for simplicity. If any one of the As or Bs is populated, I need to hide the other one. So I enter something in A1, hide A2, enter something in B2, hide B1.</p> <p>I thought I could use a javascript OnBlur event to do this but it doesn't do anythin...
javascript asp.net
[3, 9]
3,271,994
3,271,995
jQuery setting of radio button using eq fails
<p>In the code below, <code>plane.posFile</code> is a string array of length 3 that identifies 3 radio buttons, and the buttons display correctly.</p> <p>If <code>oSource.posfile</code> is a blank string, the 0th button gets checked correctly.</p> <p>If <code>oSource.posfile</code> is not blank, it is one of the thre...
javascript jquery
[3, 5]
2,041,421
2,041,422
jQuery nested filter
<p>I'd like to have the first 6 columns of a GridView perform an action, but I need to highlight the entire row when it is clicked. The entire row highlighting is working, but I can't quite get the capturing of the first 6 columns. How do I capture the first 6 columns click in the following where the testing variable...
asp.net jquery
[9, 5]
5,947,035
5,947,036
How to link to specific anchor in table with jquery
<p>I am using this jquery plugin:</p> <p><a href="http://www.jankoatwarpspeed.com/post/2009/07/20/Expand-table-rows-with-jQuery-jExpand-plugin.aspx" rel="nofollow">http://www.jankoatwarpspeed.com/post/2009/07/20/Expand-table-rows-with-jQuery-jExpand-plugin.aspx</a></p> <p>I have anchors in the code such as:</p> <pre...
javascript jquery
[3, 5]
1,838,658
1,838,659
Is this correct syntax for a C# statment
<p>Is this the correct syntax for a C statment. I recieve the following error message in Visual Studios when trying to use it.</p> <pre><code>intResult = Convert.ToInt32(cmdSelect.Parameters("RETURN_VALUE").Value); </code></pre> <pre><code>non-invocable memeber of System.Data.SqlClient.SqlCommand.Parameters can not...
c# asp.net
[0, 9]
727,482
727,483
PHP and Javascript: EURO sign taking more character length in php than javascript
<p>I got my message text as </p> <blockquote> <p>Available for order in Cologne of 05/16/2012 6:45 to 05/26/2012 ? payment 10 € Per day</p> </blockquote> <p>I think Euro symbol is villain</p> <p><strong>When checking with the Euro sign:</strong></p> <p>JavaScript char count= 86 PHP char count = 88</p> ...
php javascript
[2, 3]
3,986,874
3,986,875
javascript/jquery how to set more than one attributes
<p>I have this for loop which will append options to that "optlist"; the value will be set to manSel[i][0] and the text to manSel[i][1]; I would also like to set the attribute selected="selected" to all of them. Can I do that in the same loop or should I iterate again throug the options and add that attribute to each o...
javascript jquery
[3, 5]
4,352,360
4,352,361
Best way to wrap elment in a technical selector
<p>In a project, I often manipulate the DOM by adding / replacing elements from an HTML string :</p> <pre><code>$("#myDiv").html("&lt;ul&gt;&lt;li&gt;foo&lt;/li&gt;&lt;li&gt;bar&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;This is a list&lt;/p&gt;"); </code></pre> <p>I would like to wrap those in "something with a technical id atta...
javascript jquery
[3, 5]
5,268,020
5,268,021
Adding comma separated strings to an ArrayList c#
<p>How to add a comma separated string to an ArrayList? My string could hold 1 or many items which I'd like to add to ArrayList, each item combine with it's own id value separated by underscore (_) so it must be separated arraylist items..</p> <p>e.g :</p> <p><code>string supplierIdWithProducts = "1_1001,1_1002,20_10...
c# asp.net
[0, 9]
4,586,626
4,586,627
set clock of multiple county by java script
<p>I want to set clock of multiple country by JavaScript:</p> <p>Example :</p> <pre><code> U.S.A India Australia Spain 10:20:23 15:32:23 19:36:41 15:63:20 </code></pre> <p>I want set this clock live in a page.</p> <p>I use PHP in My page</p>
php javascript jquery
[2, 3, 5]