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,711,059 | 5,711,060 | How to know that a particular element is present or not? | <p>How to know that a particular input type is present or not in a <code>div</code>?</p>
<p>If I use</p>
<pre><code>$("#inputId").val()
</code></pre>
<p>And there is no element present on this, then js gives an error.</p>
<p>So how could I know that the input element named <code>inputId</code> is present or not?</p... | javascript jquery | [3, 5] |
388,047 | 388,048 | How to create Fibonacci Sequence in Java | <p>I really suck at math. I mean, I REALLY suck at math.
I'm trying to make a simple fibonacci sequence class for an algorithm I'll be using. I have seen the python example which looks something like this:</p>
<pre><code>a = 0
b = 1
while b < 10:
print b
a, b = b, b+a
</code></pre>
<p>The problem is that ... | java python | [1, 7] |
2,016,426 | 2,016,427 | What is the best way to create an array of all images found in a string? | <p>I am looking to create an array of all the images in a string of HTML. </p>
<p>I've tried using the following but it generates errors if the complete URL path is not present in the src. </p>
<pre><code>var found = $(html).find('img');
</code></pre>
| javascript jquery | [3, 5] |
280,917 | 280,918 | List.Add() thread safety | <p>I understand that in general a List is not thread safe, however is there anything wrong with simply adding items into a list if the threads never perform any other operations on the list (such as traversing it)?</p>
<p>Example:</p>
<pre><code>List<object> list = new List<object>();
Parallel.ForEach(tra... | c# asp.net | [0, 9] |
1,985,485 | 1,985,486 | How the generate TreeView in asp.net? | <p>Consider the following table. It has 3 filed with the following data. Now I want to show the data in TreeView Control in asp.net and c#
I will select all the data in a DataTable. </p>
<pre><code>category_id category_name parents_id
1 Root NULL
2 Teacher 1
3 Student... | c# asp.net | [0, 9] |
106,249 | 106,250 | what is the easiest way to retain values of fields while switching from page to page | <p>I am using Multiview. And I am switching between views. Each view contains lots of fields. I am going to another view from the current view to add some data. And after adding data from the new view, I am returning to the previous view. Now on this view I want to populate fields which I have entered before switching.... | c# asp.net | [0, 9] |
378,223 | 378,224 | jQuery.data() with CSS | <p>I change with <code>setAttribute('color', 'black')</code> the CSS of some element. After this element will be stored in a jQuery.data() object. But in my data() object the CSS which I defined before won't be stored. </p>
<p>What am I doing wrong?</p>
<p>Thanks for the help!</p>
| javascript jquery | [3, 5] |
3,989,892 | 3,989,893 | Sending Email from GridView | <p>i am trying to send all the email listed in my GridView but for somereason, the email does not get sent out. I am suspecting my Send function (smtpClient.Send(mailMessage); is not working or i am missing something. Pls help as i have spent so many hours on figuring out this. thanks</p>
<pre><code>protected void ... | c# asp.net | [0, 9] |
5,910,858 | 5,910,859 | Keydown pauses after first keyress, and subsequent keypresses | <p>Go <a href="http://jsfiddle.net/M7TKc/" rel="nofollow">Here</a></p>
<p>Use UP and DOWN keys</p>
<p>When I press a key, the red box moves down, pauses, then moves the rest.</p>
<p>How do I remove the pause?</p>
| javascript jquery | [3, 5] |
3,693,305 | 3,693,306 | Change color of an id | <p>I'm new at this. I would like to know if you can help me. I wold like to chance the color of an id (a rectangle). I want the color to change every 5 seconds to some colors i already have chosen and when clicked on the rectangle, it will assume the color at the time.
Thank you.</p>
| javascript jquery | [3, 5] |
312,504 | 312,505 | How do I use RegisterClientScriptBlock to register JavaScript? | <p>ASP.NET 2.0 provides the <code>ClientScript.RegisterClientScriptBlock()</code> method for registering JavaScript in an ASP.NET Page.</p>
<p>The issue I'm having is passing the script when it's located in another directory. Specifically, the following syntax does not work:</p>
<pre><code>ClientScript.RegisterClien... | javascript asp.net | [3, 9] |
5,468,363 | 5,468,364 | Is there any other parameter like `this` in div name.first in javascript | <p>I see some thing like </p>
<p><code>$(#content).children(".p:first");</code></p>
<p>call the first <code><p></code> tag, except <code>first</code>, Is there any other parameter? thanks.</p>
<p>exaple:</p>
<pre><code><div id="content">
<p>aaa</p>
<p>bbb</p>
<p>ccc</p&g... | javascript jquery | [3, 5] |
5,905,169 | 5,905,170 | Asp.net digit grouping while typing | <p>In asp.net project,
I want to group digits while typing in a textbox.
Example:
123456123456
123.456.123.456</p>
<p>My aim is not grouping ip adress. I want it to read numbers easily. eg : 12.000.152.156.123.156 </p>
<p>How can i do this?</p>
| javascript asp.net | [3, 9] |
5,315,834 | 5,315,835 | jQuery autocomplete problem: how to handle 'Not in list' case | <p>Let me clarify: I'm using standard jQuery autocomplete plugin (bassistanse.de) and bind it to a KeyValueCollection serialized to JSON (ASP.NET MVC). All works fine, except I want to be able to notify user when he/she types in a value which isn't present in DB, i.e. value not in list.</p>
<p>What are possible ways o... | javascript jquery | [3, 5] |
4,155,897 | 4,155,898 | How and where do I learn programming languages? | <p>I really want to learn a ton of programming languages like javascript and c++, but I have no idea where or how. I watched a tutorial series for C++ on Youtube and I read the javascript tutorial on W3schools, but I need more detailed tutorials and a way to practice. </p>
<p>How did you guys learn? I'll take the coll... | javascript c++ | [3, 6] |
2,019,050 | 2,019,051 | NullRefrenceException was unhandled by user code | <p>Code below is placed in page_Load. How I should handle this to bypass UrlReferrer when you enter page directly first time and there is no referrer?
What I am missing here?</p>
<pre><code> if (HttpContext.Current.Request.UrlReferrer.AbsoluteUri != null)
{
urlReferer = HttpContext.Current.Request.UrlR... | c# asp.net | [0, 9] |
969,110 | 969,111 | Problem occured in IE8 Compatibility view? | <p>I am using the Jquery and asp.net pages in my web application. In IE8 compatibility some of control width not getting render properly : dialog open with some auto width but the dialog title width not getting properly width as its content gets. Also some of the drop down list shown with very less width size. </p>
<p... | jquery asp.net | [5, 9] |
4,161,602 | 4,161,603 | swap images in grid view using OnTouchListener | <p>I am making an application where i need to swap images in grid view . here is the code ...
how could i achieve swapping :</p>
<p>activity</p>
<pre><code>public class GameActivity extends Activity
implements OnTouchListener
{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate... | java android | [1, 4] |
2,052,808 | 2,052,809 | Changing the caption of Yes-No button in jqdialog | <p>how can we change captions of Yes-No buttons in jqdialog box of jQuery ?</p>
| javascript jquery | [3, 5] |
4,951,713 | 4,951,714 | Timing ASP.NET Page load | <p>What is the best way to measure the code run time in ASP.NET page?</p>
<p>Here is my code, trying to time the page load and writing to log. </p>
<pre><code> private Stopwatch PageTimer = null;
protected void Page_Init(Object Src, EventArgs E)
{
if (!IsPostBack)
{
PageTimer = ... | c# asp.net | [0, 9] |
1,461,965 | 1,461,966 | asp.net login control with another panel | <p>How to use login and signup button, in which whenever user clicks on that link login and signup form will open in same window like in flipkart.com. How to do that task in my website?
I am making an ecommerce website...</p>
| c# jquery asp.net | [0, 5, 9] |
655,412 | 655,413 | table tooltip css | <p>I have generated a <strong>dynamic table</strong> from asp.net code behind page and adding <em>Table.ToolTip</em> value. How to add table.tooltip style?</p>
<pre><code>tbl = new Table(); tbl.ID = "tblstatus";
tbl.Style.Add("border-collapse", "collapse");
tbl.ToolTip = "tool tip message";
</code></pre>
| c# asp.net | [0, 9] |
3,826,709 | 3,826,710 | I usually wait for a collection of asynchronous events to finish using a setInterval poller. Is there a better way? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8726046/multiple-ajax-calls-inside-a-each-function-then-do-something-once-all-of-the">Multiple ajax calls inside a each() function.. then do something once ALL of them are finished?</a> </p>
</blockquote>
<p>Con... | javascript jquery | [3, 5] |
1,569,256 | 1,569,257 | String to byte array | <p>I have to convert a string to byte (16 bit) in JavaScript. I can do this in .net in following code but I have to change this for old classic asp App which uses JavaScript.</p>
<pre><code>string strShared_Key = "6fc2e550abc4ea333395346123456789";
int nLength = strShared_Key.Length;
byte[] keyMAC = new byte[nLength /... | c# javascript asp.net | [0, 3, 9] |
2,019,556 | 2,019,557 | Is there a way using Jquery to detect the back button being pressed cross browsers | <p>I have a website that is on a slide show and when the user presses the back button I would like it to go back to the album view not the prior and prevent page. Is there a way of doing this? thanks for any help or advice.</p>
| javascript jquery | [3, 5] |
848,227 | 848,228 | submit a form when hitting the browser back button | <p>I have a page for asking queries to an SQL database. Its only purpose is to allow students to exercise. Depending on the students activity the page rewrites itself with new content so that the student may enter a query, have the resulting table shown or get an error message.</p>
<p>All is working through forms that... | php javascript | [2, 3] |
5,745,429 | 5,745,430 | 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] |
3,328,634 | 3,328,635 | the microsoft.ace.oledb.12.0 provider is not registered on the local machine | <p>I have the following program in which i want to insert the values in MS-Access.I am getting the error "the microsoft.ace.oledb.12.0 provider is not registered on the local machine"</p>
<p>I have already installed the database engine as per suggestion of some developers, still i am getting the error.</p>
<p>I am wr... | c# asp.net | [0, 9] |
1,353,660 | 1,353,661 | js file cant use jquery | <p>I have a weird bug where I include this files in my section</p>
<pre><code><script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="js/barScriptOOP.js"></script>
</code></pre>
<p>in the barScriptOOP.js I have this </p>
<pre><code>function position_bar(){
//global v... | javascript jquery | [3, 5] |
1,563,842 | 1,563,843 | Get value of TemplateFields in Gridview | <p>I have a problem with getting value of template field; Gridview is in ContentPlaceHolder1;</p>
<p>I'm trying to get value in GridView1_RowCreated event</p>
<pre><code>int RowIndex = GridView1.Rows.Count - 1;
GridView1.Rows[RowIndex].Cells[0].Text = " " + AltKatLinkler;
</code></pre>
<p>But this code returns me nu... | c# asp.net | [0, 9] |
605,017 | 605,018 | Is there a PHP equivalent of "new Array (number)" in javascript? | <p>I was trying to convert basic Javascript function into PHP, and I saw that one of the variables was declared <code>var Variable = new Array (13)</code>.</p>
<p>I know that PHP variables are declared like: <code>$variable = array()</code></p>
<p>but what about the "13" in <code>new Array(13)</code>? does that trans... | php javascript | [2, 3] |
4,143,548 | 4,143,549 | please help turn a simple Python2 code to PHP | <p>Sorry to bother again, but I really need help transforming this Python2 code into PHP.</p>
<pre><code>net, cid, lac = 25002, 9164, 4000
import urllib
a = '000E00000000000000000000000000001B0000000000000000000000030000'
b = hex(cid)[2:].zfill(8) + hex(lac)[2:].zfill(8)
c = hex(divmod(net,100)[1])[2:].zfill(8) + hex... | php python | [2, 7] |
5,134,400 | 5,134,401 | What's the difference between jQuery.bind() and jQuery.on()? | <p>And why is .on() now preferred in jQuery 1.7?</p>
| javascript jquery | [3, 5] |
4,256,087 | 4,256,088 | Zooming also count as window resize? | <pre><code>$(window).resize(function(){
console.log('resize');
setheight();
});
</code></pre>
<p>I just want to activate when user actually resize the window by draging the edge of the window but not zooming, but it actually activate the function while zoom in and zoom out, how to preve... | javascript jquery | [3, 5] |
3,559,091 | 3,559,092 | Horizontal scroll on textview on android? | <p>I'm working on a calculator. I noticed that in the default android calc you can scroll the textview horizontally. I looked up the documentation and found out about the attribute <code>android:scrollHorizontally</code> but after adding it to the textview I still cannot do horizontal scroll, there is no further info a... | java android | [1, 4] |
3,879,394 | 3,879,395 | Prevent event from parent element to child element in jquery | <p>I have bound event as below:</p>
<pre><code> $(document).delegate('.budget', 'click', function(e){
if ($(this).hasClass('collapsed')) {
$(this).removeClass('collapsed');
$(this).addClass('expanded');
}
else if ($(this).hasClass('expanded')) {
$(this).remov... | javascript jquery | [3, 5] |
185,457 | 185,458 | Saving and restoring state in android | <p>I have searched through this and a few other sites for the answer, but I have been unable to find it. I am trying to save a boolean and an int using onSaveInstanceState and onRestoreInstanceState, but I can't seem to get it to work. It doesn't crash or anything, but it either isn't saving it or it isn't restoring it... | java android | [1, 4] |
311,027 | 311,028 | Cannot implicitly convert type 'int' to 'int[]' | <p>I have declared my <code>int[]</code> as follows</p>
<p><code>int[] iroleID = new int[] { };</code></p>
<p>My code for getting the values from database and assigning to <code>iroleid</code> is as follows</p>
<pre><code>if (oAuthenticate.getTaskID(out m_oDataSet1, "uspgetTaskID"))
{
for (int iTaskid = 0; iTaskid... | c# asp.net | [0, 9] |
2,485,970 | 2,485,971 | could jquery live solve this problem? table links are bound to click, ajax refresh of rows ruins things | <p>I have a table, that I loop through using jquery and modify the href of each link.</p>
<p>IF someone pages through the table, the links are refreshed using ajax (page doesn't reload).</p>
<p>Now all my links are not modified since the table has refreshed.</p>
<p>Paging is done via a drop down list.</p>
<p>Can jq... | javascript jquery | [3, 5] |
742,128 | 742,129 | How to know when the phone receives a message | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2735571/detecting-sms-incoming-and-outgoing">Detecting SMS incoming and outgoing</a> </p>
</blockquote>
<p>I want to write a app that run silently. The app needs to be notified about new messages. It just needs ... | java android | [1, 4] |
4,557,443 | 4,557,444 | JQuery plugins stop working on appending querystring parameters | <p>I'm new with Javascript programming, I need to insert this code in the body of a page, I take some Get parameters from URL and I attach them to the iframe string:</p>
<pre><code><script>
document.write("<iframe width='700' height='500' frameborder='0' src=https://www.mysite.com/abs/indexabs.php?stid=261&am... | javascript jquery | [3, 5] |
5,238,954 | 5,238,955 | Upload files using ASP.NET | <pre><code><form action="http://s0.filesonic.com/abc" method="post" enctype="multipart/form-data">
<input type="file" name="files[]" />
<button type="submit">submit</button>
</form>
</code></pre>
<p>The above code uploads the files to file sonic server, but I want to do this using... | c# asp.net | [0, 9] |
5,163,921 | 5,163,922 | Sending data to php page with java | <p>I am trying to send the POST data from java to a PHP page. However it is not working. Whatever I echo in the php page works fine but when I send data it gives- 'undefined index'
What could be the problem ?
This is my java file.</p>
<pre><code>import java.net.*;
import java.io.*;
class Main {
public static void mai... | java php | [1, 2] |
2,738,298 | 2,738,299 | How to link an Android library jar to a regular Java project? | <p>First I know that this probably sounds like it isn't the best way to do this but changing the overall design is out of my control so please don't post answers to do it a different way. I have a plain Java project that I am linking to my Android application. I need to use some Android stuff inside the Java project so... | java android | [1, 4] |
711,315 | 711,316 | AsyncFileUpload upload complete not working properly | <p>I am using ajaxToolkit:AsyncFileUpload in my asp.net application. In AsyncFileUpload1_UploadedComplete server side event, I am trying to make a label visible and change it text but button is not being enabled. </p>
<p>I am using client side event of the asyncfileupload control as well like this:</p>
<pre><code>fun... | c# asp.net | [0, 9] |
303,234 | 303,235 | POST BACK in PHP or JAVASCRIPT? | <p>how can I post back the data that are already in the text field?</p>
<p>example:
if I miss one of the required field an error will prompt when i click the submit button.</p>
<p>How can I make an post back data in that form using php or javascript and make the cursor of the mouse directly located to the field that... | php javascript | [2, 3] |
2,790,657 | 2,790,658 | How to replace the urls into clickable links except anchor text & anchor href? | <pre><code>$str="hi this http://google.com <a href="http:
//yahoo.com">http://yahoo.com</a>";
</code></pre>
<p>i want to convert <a href="http://google.com" rel="nofollow">http://google.com</a> to clickable link in above string but i don't want convert already anchor text & anchor href.</p>
<p>how c... | php javascript | [2, 3] |
5,414,169 | 5,414,170 | Get textfield values from JavaScript driven form and append those values to a div | <p>I need to grab two textfield values on button submit and then insert them into some HTML and append that HTML to a div.</p>
<p>The test page is at <a href="http://seafoammedia.com/dealer/quote/form.php" rel="nofollow">http://seafoammedia.com/dealer/quote/form.php</a> with the main javascript file being jtracker.js<... | javascript jquery | [3, 5] |
4,257,134 | 4,257,135 | fastest way to find element position using javascript? | <p>I've used jquery's offset().top, but when running it 4000 times in a loop the browsers freezes for a few seconds. Is there a faster way to get this? </p>
<p>This is happening on the iPAD the desktop is faster.</p>
<pre><code>for (counter=1; counter<4000; counter++)
{
yPos = Math.round($("#star_"+counter).off... | javascript jquery | [3, 5] |
259,011 | 259,012 | Get coordinates of image within a box | <p>I need to grab the following coordinates topX, topY, bottomX, bottomY, as they represent a box around a source image. They are equal to:</p>
<p>topX = X coordinate at top left corner on source image<br>
topY = Y Coordinate at top left corner on source image<br>
bottomX = X coordinate at bottom right corner on sour... | javascript jquery | [3, 5] |
3,577,429 | 3,577,430 | web deploy causing bad image exception | <p>I have an asp.net web application that uses an unmanaged 32 bit dll that I have successfully running on my development machine, but when I use web deploy to move the code to our test server, I start seeing BadImageFormat exceptions. </p>
<p>I set the target in visual web developer to x86 and both machines are runn... | c# asp.net | [0, 9] |
1,331,254 | 1,331,255 | createuserwizard adding roles to users | <p>Hi I have a createuserwizard controls and I would like assign ROLES when creating a user.</p>
<p>Any idea how to do it? Thanks</p>
<p>Here my code C#</p>
<pre><code> <asp:CreateUserWizard ID="uxCreateUserWizardInput" runat="server"
LoginCreatedUser="False">
<WizardSteps>
<asp:Cr... | c# asp.net | [0, 9] |
302,317 | 302,318 | Running js file only once | <p>I have a small intro with fadein's etc.. But i would only like this to run once. I dont want to run the intro every time the user returns to the home page. Is there a way to run a js file once?</p>
| javascript jquery | [3, 5] |
1,074,012 | 1,074,013 | how can I execute javascript code every a specific time interval? | <p>I want to ping the server every 2 minutes using jquey? I thought about an open loop with setTimeout function but I think this would crush the browser , any suggestions ?</p>
| javascript jquery | [3, 5] |
4,882,163 | 4,882,164 | jQuery, Javascript : Javascript wrapped in jQuery(), $() - what does it mean? | <p>I'm having trouble understanding a type of jQuery selection, and I hope someone can explain it to me in clear terms.</p>
<p>It's taken from <a href="http://stackoverflow.com/questions/7193425/how-do-you-animate-fb-canvas-scrollto">this Stack Overflow question</a>.</p>
<p>Basically, it has the common jQuery: <code>... | javascript jquery | [3, 5] |
1,708,663 | 1,708,664 | preventDefault does not behave equal in different browsers | <p>I use jQuery preventDefault on a keydown event: <a href="http://jsbin.com/ixaqok/edit#javascript,html" rel="nofollow">http://jsbin.com/ixaqok/edit#javascript,html</a>
When running the example code in Firefox and Opera the keypress event still is fired, but in Chrome, IE8 and Safari it's not.</p>
<p>Why?
Is preventD... | javascript jquery | [3, 5] |
4,535,753 | 4,535,754 | Making a value submission form for a jquery graph | <p>How can I make a page that has 4 or so text boxes for input and then on submission generates a jquery <strong>HightCharts</strong> graph?</p>
<p>Any starting point would be awesome</p>
| php jquery | [2, 5] |
3,835,585 | 3,835,586 | Create ArrayAdapter | <p>I need to do to ArrayAdapter for ListView that will contain the image and the two fields, but I can not figure out how to do it.
I can try make this</p>
<pre><code>ArrayAdapter adapter = new ArrayAdapter(this, R.layout.list, new ArrayList<ArrayList<string>>{
tmp,
wall... | java android | [1, 4] |
748,944 | 748,945 | Using Java in Android app to copy code, update name and create new class | <p>I have a java class with a specific function. It allows the user to save a cars setup. I need to create a button that allows them to create as many of these using the existing code and layout over and over and over and be able to separate them by which track they are on, which type of race they are participating in ... | java android | [1, 4] |
5,926,733 | 5,926,734 | Event not executing inside the iframe | <p>I am adding content in the <code>iframe dynamically</code> and that content are binded with an event using <code>.live() function</code> :</p>
<pre><code> <body>
<div id="container">
<iframe id="if" src="something"></iframe>
</div>
... | javascript jquery | [3, 5] |
3,037,128 | 3,037,129 | Session of ASP.net page gets expired even I have made changes in web.config's session timeout value | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/648992/session-timeout-in-asp-net">Session timeout in ASP.NET</a> </p>
</blockquote>
<p>Hello Guys,
In my ASP.net Application, my Session get expired if a page remains open untouched for 10-15 minutes... | c# asp.net | [0, 9] |
486,482 | 486,483 | Beginner to JSON and PHP | <p>Sorry about the simple question.</p>
<p>I am posting a JSON object to a PHP page using the following code:</p>
<pre><code> $.get("ProcessName.php", { name: "John" },
function(data){
alert("Data Loaded: " + data);
});
</code></pre>
<p>What code do I need to write in ProcessName.php t... | php jquery | [2, 5] |
4,093,753 | 4,093,754 | What is the alternative using not CSS selector in Jquery 1.8.0? | <p>When using Jquery to exclude elements from selection I like to use <b>CSS :not</b> selector because of faster performance <a href="http://jsperf.com/jquery-css3-not-vs-not" rel="nofollow">:not() VS .not()</a> , but from Jquery 1.8.0 it is not working anymore:(
Is there some other alternative to use with same or bett... | javascript jquery | [3, 5] |
1,503,632 | 1,503,633 | e.stopPropagation() - is the clicked element a propagation or the original? | <p>How can you check whether the element is the original element or a propagation of the clicked element?</p>
<hr>
<h3>Edit</h3>
<p>If I do this, <code>'propagation'</code> is always alerted:</p>
<pre><code>this.row.click(function(e){
if(e.target === this) alert('origin');
else alert('propagation');
//... | javascript jquery | [3, 5] |
246,830 | 246,831 | Alert which checkbox[x] of array was clicked? | <p>My code onclick for each checkbox function is:</p>
<pre><code>function testc() {
var values1 = new Array();
jQuery.each(jQuery("input.id1"), function() {
values1.push(jQuery(this).attr("name"));
});
var values2 = new Array();
jQuery.each(jQuery("input.id76"), function() {
values2.push(jQuer... | javascript jquery | [3, 5] |
5,152,570 | 5,152,571 | 2 IntentServices accessing the same data on file system.. safe? | <p>I'm relatively sure with this, but I need your opinion. I have two IntentServices on Android, both have access to the application's private file system.</p>
<p>The filesystem works like a queue - the first IntentService only performs write operations, that means it does nothing other than creating new files. The se... | java android | [1, 4] |
5,731,917 | 5,731,918 | javascript countdown timer for session timeout | <p>I want to alert the user that the session timeout is about to expire. I want to have a popup with an OK button and show the seconds ticking down on the popup. Can i do this with just java script?
Im OK with using C# code behind also.</p>
<p>Right now it detects session timeout and pops up telling them the session h... | c# javascript asp.net | [0, 3, 9] |
2,956,895 | 2,956,896 | How to get the order of dynamically created DropDownLists | <p>I've created some drop down lists using JavaScript, ASP.NET. </p>
<p>A user can add as many drop down lists as he wants by clicking a "+" button and removing them by clicking a "-" button.</p>
<p>If it's hard to understand what I mean pls see " <a href="http://stackoverflow.com/questions/10101262/how-to-implement-... | c# javascript asp.net | [0, 3, 9] |
1,957,523 | 1,957,524 | Prevent link <a> without href from clicking | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1164635/how-to-enable-or-disable-an-anchor-using-jquery">How to enable or disable an anchor using jQuery? </a> </p>
</blockquote>
<p>I have this:</p>
<pre><code><a onclick="javascript:btnSave_onclick();" cla... | javascript jquery | [3, 5] |
768,715 | 768,716 | How to realize dynamic chained menu in php and jQuery/ajax? | <p>I'm trying to realize the function similar to the website: <a href="http://visualjquery.com/" rel="nofollow">site</a>. I know it's done with jQuery. But can someone guide me with more details? </p>
<p>Thanks very much.</p>
<p>Edit:</p>
<p>The function i need is the chained menu and a result set on the right side.... | php jquery | [2, 5] |
290,781 | 290,782 | how to Call cs function from html button | <p>Html Button
input id="Button1" type="button" value="button" runat="server"/></p>
<p>.cs file: </p>
<p>public void display()
{
Response.Redirect("default.aspx");
} </p>
<p>How to call the display function which is in .cs file from html button click </p>
| c# asp.net | [0, 9] |
2,440,888 | 2,440,889 | sending arguments with onserverClick | <p>How can i send argument with onserverclick event </p>
<p>Here is my code:</p>
<pre><code><a href="javascript:void(0)" ID="platformHyperLink" runat="server" class="platformElementHL" onserverclick='<%# platformHyperLink_Click("+Eval("PLATFORM_ID").ToString()+")"%>' />click</a>
</code></pre>
<p>s... | c# asp.net | [0, 9] |
1,710,907 | 1,710,908 | How to load image once | <p>am rendering around 3000 records , </p>
<p>So row like
Customer Profile edit </p>
<p>Customername , Action</p>
<pre><code> 1 john editimage | Delete image
2 john editimage | Delete image
3 john editimage | Delete image
4 john editimage | Delete image
5 john ... | php javascript | [2, 3] |
5,151,869 | 5,151,870 | Pointer deferencing and manipulating objects which are being pointed to - equivalent constructs in Java | <p>Hello<br>
In C++ you can do the following:</p>
<pre><code>int x = 5
cout << x;
// prints 5
int* px = &x;
(*px)++;
cout <<x;
// prints 6
</code></pre>
<p>Is there an equivalent construct in Java</p>
| java c++ | [1, 6] |
3,698,768 | 3,698,769 | Setting image using a method but image's not displaying | <pre><code><div class="sp1" style="background-image:url(<%#GetImage()%>);" runat="server">&nbsp;</div>
</code></pre>
<p>Tested my method by assigning the String(containing my image's path) returned by it to a label..its getting the path alright..then why wont it display when I run the code?</p>
... | c# asp.net | [0, 9] |
1,983,178 | 1,983,179 | Get access to all css style properties? | <p>I want to get access to all <strong>CSS</strong> properties (not only for a specific selector or element but all) through <strong>JavaScript</strong>. </p>
<p>I want to iterate through all properties of the <code>.style</code> collection.</p>
<p>How can i do this?</p>
| javascript jquery | [3, 5] |
2,431,560 | 2,431,561 | How do i call a function every day between 10 am to 11 am | <p>I create a function in c# and published on server. But now i want to run this function between 10am to 11am only. How can i create this?</p>
| c# asp.net | [0, 9] |
4,558,100 | 4,558,101 | ASP.NET: Build user control that take a list as parameter? | <p>How can I build an user control that takes a list as a parameter, i.e:</p>
<pre><code><foo:TabMenu runat="server">
<Tabs>
<Tab Label="Tab1" PanelId="pnlTab1"/>
<Tab Label="Tab2" PanelId="pnlTab2"/>
<Tab Label="Tab3" PanelId="pnlTab3"/>
</Tabs>
</foo:TabMenu>
</code></pre>
| c# asp.net | [0, 9] |
5,101,218 | 5,101,219 | How to show human-readable "time ago" | <p>My user last logged in at 15:50:09 Wednesday, January 25, 2012 IST
how can i show it as "10 minutes ago".
Is there any js?</p>
| javascript jquery | [3, 5] |
3,668,420 | 3,668,421 | Cannot convert string to int, must be simple but i m missing somewhere | <p>here, i want to check only if the column Active is Yes, then get into the if loop. But it gives me an error "Cannot convert from string to int" for the last condition in if. What do you guys i can do. Thanks!!</p>
<pre><code>if (ds != null && ds.Tables != null
&& ds.Tables.Count > 0
&... | c# asp.net | [0, 9] |
5,918,948 | 5,918,949 | Using SharedPreferences inside MyXMLHandlerTemp | <p>I have a class named <strong>MyXMLHandlerTemp</strong> which <strong>extends DefaultHandler</strong>. The class is used for parsing data. </p>
<p>I want to use <strong>SharedPreferences</strong> inside MyXMLHandlerTemp class but it gives me error saying </p>
<blockquote>
<p>getSharedPreferences(String,int) is u... | java android | [1, 4] |
5,423,231 | 5,423,232 | Extracting page title using javascript | <p>I'm trying to extract the page title of an external site by using a url.</p>
<p>You know how "document.title" returns the title of the page the JS is running on? I was wondering if I could say "'http://google.com'.title" (doesn't work) or something similar to get the title of another page.</p>
<p>UPDATE:
I did som... | javascript jquery | [3, 5] |
525,962 | 525,963 | sending an arraylist back to the parent activity | <p>i am trying to pass an arraylist back to my parent activity</p>
<p>Here is the simple code.</p>
<pre><code>private ArrayList<Receipt> receipts = new ArrayList<Receipt>();
Intent data = new Intent();
data. // what to do here?
setResult(RESULT_OK, data);
//************************************
</cod... | java android | [1, 4] |
71,723 | 71,724 | jquery ui - making dialogs more "dynamic"? | <p>I have a page that uses multiple dialogs for different things. Some dialogs may have buttons that others do not while other may need to be a different height than another... All of them have a set of params that will not change. My question, can I have a default like:</p>
<pre><code>$('.someElement').dialog({
wi... | javascript jquery | [3, 5] |
4,990,128 | 4,990,129 | Window.onload event and $(document).ready() | <p>I am learning jQuery. Could someone please explain what the difference between the <code>window.onload</code> event and <code>$(document).ready()</code> in jQuery is? </p>
<p>Regards,
JN</p>
| javascript jquery | [3, 5] |
4,964,419 | 4,964,420 | Change selected dropdown by ID | <p>I've seen that you can change the selected dropdown item by value but I'd like to do it by the option ID because the values are created dynamically. I am creating a questionnaire with a dropdown menu, the section with questions, and a previous/next button. The values of the dropdown are dynamically created in a php ... | php javascript jquery | [2, 3, 5] |
4,766,119 | 4,766,120 | using this.addClass (Jquery) | <p>I am trying this.addclass in jquery to add a class to a DIV, that could be unknown. Can this be solved in this way? </p>
<pre><code><style>.classOne { font-size:24px; color:#009900;}</style>
<script>
function hello()
{ alert();
$(this).addClass('classOne');
}
</script>
<div class="som... | javascript jquery | [3, 5] |
5,981,669 | 5,981,670 | using jquery in two usercontrol in the same page | <p>I have two user control in my page uc1 and uc2. I want to make sure that the js function inside these two user control fire when the document is ready.</p>
<p>When I am using '$(document).ready({function(){//something});' in both the user control only the function of the first user control is loading. the function ... | jquery asp.net | [5, 9] |
981,212 | 981,213 | Search a multitude of arrays | <p>Hey, I am searching each array separately for specific inputs from a user.</p>
<pre><code>if ($.inArray(i.val(), helloInputArray) > -1) { //IF HELLO
if (hello == 0) { //HAVE YOU ALREADY SAID HI?
r = Math.floor(Math.random()*4);
... | javascript jquery | [3, 5] |
3,533,424 | 3,533,425 | How to avoid "the property of undefined" error without having huge if statement in JavaScript? | <p>I usually find myself working with deep objects like this:</p>
<pre><code>var x = {
y: {
z: {
a:true
}
}
}
</code></pre>
<p>And somewhere in the code:</p>
<pre><code>if( x.y.z.a === true ){
//do something
}
</code></pre>
<p>And in some cases any of the x,y,z variables could be undefined, in w... | javascript jquery | [3, 5] |
1,489,683 | 1,489,684 | How to create a function that calls a ClientValidationFunction? | <p>Is this possible to do this in Javascript and how? </p>
<pre><code>function MyClick(){
ValidateTime(sender, args); // what is the right way to call it?
}
function ValidateTime(sender, args) { //sender and args;these arguments are from a validator control
}
</code></pre>
<p>I need for MyClick to call that <code>C... | javascript jquery asp.net | [3, 5, 9] |
3,511,303 | 3,511,304 | Text View and Intent | <p>So I have an activity that extends listview, and I want to create another activity that has 2 edit text fields. The second activity is opened when I click a menu item... I already did this but I don't know how to make 2 text fields in the second activity. And I was wondering if the second activity has an xml file ? ... | java android | [1, 4] |
4,005,263 | 4,005,264 | constant/literal String pointer | <p>What are the benefits of doing:</p>
<pre><code>String *hello_world;
hello_world="Hello World";
</code></pre>
<p>vs</p>
<pre><code>String hello_world;
hello_world="Hello World";
</code></pre>
<p>For the first one, the characters that make up the string literal or constant, are stored inside a string table by th... | java c++ | [1, 6] |
5,130,591 | 5,130,592 | why java script cannot access this asp.net var? | <p>I have this c# user control class:</p>
<pre><code>public partial class UserControls_JsTop : System.Web.UI.UserControl
{
public static string sidebarBannerUrl = getSideBarBannerImgUrl();
protected void Page_Load(object sender, EventArgs e)
{
}
public static string getSideBarBannerImgUrl(){
... | c# asp.net jquery | [0, 9, 5] |
5,817,089 | 5,817,090 | How to rearrange an array in JQuery | <p>I have this being POSTed to my script</p>
<pre><code>Array
(
[0] => Array
(
[name] => test1
[value] => test1 value
)
[1] => Array
(
[name] => test2
[value] => test2 value
)
)
</code></pre>
<p>What I want is:</p>
<pre><code>Arra... | javascript jquery | [3, 5] |
4,622,912 | 4,622,913 | very simple javascript failing | <p>Working Example:</p>
<p>This is almost identical to code I use in another places on my page but fails here for some reason.</p>
<pre><code><?php
//$p = "test";
?>
<script>
alert('posts are firing? ');
parent.document.getElementById('posts').innerHTML = "test";
</script>
</code></pre>
<p>Failing... | php javascript | [2, 3] |
670,709 | 670,710 | POST or GET method? | <p>We have a service provider that allows us to connect to his payment page for payments, however the code he uses is php but we would like to do it in asp.net.</p>
<p>Problem is I don't really understand what the method should be, <code>POST</code> or <code>GET</code>, basically we need to redirect to the client with... | c# asp.net | [0, 9] |
2,770,209 | 2,770,210 | Android keyboard not opening for input tag bound to touchstart | <p>Markup:</p>
<pre><code><section id="loginform">
<input type="text" id="username" placeholder="Username"/>
<input type="password" id="password" placeholder="Password"/>
<input type="submit" value="login" id="login"/>
</section>
</code></pre>
<p>JavaScript:</p>
<pre><code>$('#log... | javascript android jquery | [3, 4, 5] |
2,134,722 | 2,134,723 | Getting file full path when uploading file in html in firefox | <p>I want to get the full file path when uploading a file.</p>
<p>.
If we use safari or IE browser i am getting full file path but in firefox it is not working</p>
<p>how can i get the full file path name by using javascript or jquery in firefox.</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
1,109,644 | 1,109,645 | How to get the values in gridview row, in which the radio button is selected using c# | <p>I am using the gridview control, if the use selects a row using the radio button control in a row, On the selected index change i want to get the all the values in the row using c#.</p>
<p>How?</p>
| c# asp.net | [0, 9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.