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 |
|---|---|---|---|---|---|
163,560 | 163,561 | Get button name inside javascript function | <p>I have a html button with runat=server tag, whoose Name has been set dynamically during run time.</p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
btnShowHideCols.Name = "some text here";
}
</code></pre>
<p>the button HTML code is like below.</p>
<pre><code> <input i... | javascript asp.net | [3, 9] |
3,303,734 | 3,303,735 | JavaScript One line problem | <p>This code works:</p>
<pre><code>$('[id$=lbl]').val() == "0" ? alert('Bla') : null;
</code></pre>
<p>but this codes don't:</p>
<pre><code>$('[id$=lbl]').val() == "0" ? function(){alert('Bla'); return false; } : null;
$('[id$=lbl]').val() == "0" ? alert('Bla');return false; : null;
$('[id$=lbl]').val() == "0" ? r... | javascript jquery | [3, 5] |
1,049,899 | 1,049,900 | What is the equivalent of CPython string concatenation, in C++? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/13013442/simple-string-concatenation">Simple string concatenation</a> </p>
</blockquote>
<p>Yesterday, as I'm writing this, someone asked on SO</p>
<blockquote>
<p>if i have a string <code>x='wow'</code>
ap... | c++ python | [6, 7] |
180,239 | 180,240 | .mousemove and memory, do I need to optimize this or not? | <p>I've created a simple demo of a light-test-thing here: <a href="http://jsfiddle.net/CGr9d/">http://jsfiddle.net/CGr9d/</a></p>
<p>When I record the memory usage using the Chrome dev tools I get this: <a href="http://cl.ly/LSDl">http://cl.ly/LSDl</a>, it basically go up until a certain point and then go down again a... | javascript jquery | [3, 5] |
4,625,844 | 4,625,845 | How do I open an Excel file in a web browser for editing? | <p>How to open Excel sheet in iframe window, after editing that excel sheet will be saved into Server.</p>
| c# asp.net | [0, 9] |
931,023 | 931,024 | How to update controls with generic handlers | <p>I have a master page containing child page with user controls on it. I'm showing some values coming from database on those user controls. I need to update the page after a fixed interval; so that changed values will be reflected on the page. But the whole page gets refreshed every time.</p>
<p>I'm new to generic ha... | c# asp.net | [0, 9] |
3,222,936 | 3,222,937 | Android: Set Default soft keyboard | <p>I have created a softkeyboard application. I would like to set it as my default soft keyboard while installing. Is it possible to add code in my softkeyboard application coding to set this keyboard as default keyboard while installing? </p>
| java android | [1, 4] |
2,697,861 | 2,697,862 | Expose method as a property in user control | <p>I created user control for textbox with autocompleteextender, and its working fine, but now i wanted to expose methods in user control to aspx page as a one of the property in user control,like in button control having onClientClick event.
and forgive my English.</p>
| c# javascript jquery asp.net | [0, 3, 5, 9] |
3,862,996 | 3,862,997 | set or select the text of dropdownlist to the text : select here or any other text | <p>I want to set/select the text baed upon the texts I choose. e.g I have the following code that is not selecting the text but instead is adding another line to the option.</p>
<p>I have a dropdownlist with the following:</p>
<pre><code><select id="fruit"> <option value="">select here</option> ... | javascript jquery | [3, 5] |
3,703,408 | 3,703,409 | using javascript function to initialize php variable | <p>hi i want to initialize php variable in javascript function and than call the php function with php initialized variable. Please help me for solving this problem... </p>
<pre><code> <?php
function printDiv($abc) {
echo '<div align="center" width="100%"> ' . $abc . ' </div>';
}
... | php javascript | [2, 3] |
1,969,229 | 1,969,230 | Accessing aspx value from an user control | <p>H,</p>
<p>My aspx page has a usercontrol where the usercontrol contains a button. Onclick of button in usercontrol i am trying to fire javascript method. So when I click on button on to execute the javascript somehow i want to access the textbox value from the aspx page.</p>
<p>something like </p>
<p><code>this.g... | javascript asp.net | [3, 9] |
5,237,496 | 5,237,497 | Determining the background-color or color in numeric format across browsers | <p>I have been through a number of responses to similar questions. I just want to clarify if I am understanding correctly. My purpose is to do some colour calculations.</p>
<p>I have been working in fire fox where:</p>
<pre><code>var bkg_Colour = $("#test_Box_1").css("background-color"); // is red
var fgd_Colour = $... | javascript jquery | [3, 5] |
1,763,507 | 1,763,508 | Arrow animation in jquery | <p>Is it possible to make an animation of this picture[1] to this picture[2] in jquery?. I would like to get "a growing arrow effect". I must admit that after some searching i found nothing and simple </p>
<p><code>$('#img').animate({width: '109px',height: '109px'});</code> </p>
<p>is not enough effect for me. Maybe ... | javascript jquery | [3, 5] |
2,725,445 | 2,725,446 | Unable to evaluate expression because the code is optimized or a native frame is on top of call stack | <p>I am working on a website where user comes and submits some information. After the information is submitted I am trying to send two mails simultaneously - one to my sales team and one to the visitor on my website.</p>
<p>While the mails are getting sent I am getting the following error while redirecting to another ... | c# asp.net | [0, 9] |
2,276,721 | 2,276,722 | passing arguments to click or submit function | <p>Is it possible to pass arguments to click or submit function like :</p>
<pre><code>$("#example").click(function()
{
var myVar = x; // refering to x as passed argument
});
</code></pre>
<p>Maybe function inside a function ? </p>
<pre><code>function Func(){
$("#example").click(function()
{
var myVar = x;
});
... | javascript jquery | [3, 5] |
2,049,337 | 2,049,338 | Can I process the JSON result with a new script? | <p>I currently have my getJSON result being processed in the same script. Now I want to add previous and next buttons to get those records. The getJSON request will be different but the processing of the result will be the same. So I guess my question is can I send the result of getJSON to another script for processing... | javascript jquery | [3, 5] |
3,102,691 | 3,102,692 | NULL Reference Error | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-in-net">What is a NullReferenceException in .NET?</a> </p>
</blockquote>
<p>When i am trying to access value stored in object it shows null reference error when the value... | c# asp.net | [0, 9] |
99,528 | 99,529 | Posting data via js/jQuery | <p>I am really new to Javascript and its many brilliant libraries, I find even the most simple scripts hard to perform. </p>
<p>I do want to learn this language, because it would be powerful for creating client websites, however at the moment I am trying to do something relatively simple, this is to flag a personal me... | javascript jquery | [3, 5] |
5,269,830 | 5,269,831 | Build array with one textbox c# , asp.net | <p>I need to build a form that allows a user to enter 100 different measurements. Then enter 100 different weights. I want to use the same text boxes. One for the measurements, one for the weights. Then have them store the value and then reset to accept the next value and so on. Can anyone point me in the right direct... | c# asp.net | [0, 9] |
1,981,673 | 1,981,674 | How to write javascript function to check JRE version | <p>I am new to javascript. How to write javascript function which will return installed java version in the computer.</p>
<p>Thanks
Sunil Kumar Sahoo </p>
| java javascript | [1, 3] |
2,882,718 | 2,882,719 | Why would multiple SessionStateStoreProviders be instantiated? | <p>I'm working on a Redis <code>SessionStateStoreProvider</code> that <a href="https://github.com/TheCloudlessSky/Harbour.RedisSessionStateStore" rel="nofollow">can be found here</a>. In my <code>web.config</code>, I add the following in the <code>system.web</code> element.</p>
<pre><code><sessionState mode="Custom... | c# asp.net | [0, 9] |
818,927 | 818,928 | JQuery and C# ASP.NET Form and File Validation | <p>I am confused about the best way to intertwine jquery/javascript with C#. I am supposed to put a javascript confirm popup into a file upload form. However the confirm only pops up if certain criteria is not met.</p>
<p>There are 4 elements on the form that are of importance. </p>
<ul>
<li>clientId_txt - An inp... | c# asp.net javascript jquery | [0, 9, 3, 5] |
5,062,208 | 5,062,209 | How to make a PHP library work in java environment? | <p>i have a php library which is in php. can i have this lib to work in java environment like calling the functionalists of the lib to work exactly like a java lib?</p>
<p>Regards
Tony</p>
| java php | [1, 2] |
4,186,435 | 4,186,436 | How to switch between 2 CSS colors with jQuery? | <p>I want a string of text to change color from default to #c30 when I click a button somewhere on the page, and it changes back to default when I click the button again.</p>
<p>My code looks like this:</p>
<pre><code>$("#button").click(function() {
var anno = $(#text);
if (anno.css('color') == '#c30') {
anno.css... | javascript jquery | [3, 5] |
2,531,011 | 2,531,012 | how to get a value of parent id with jquery | <p>This is the html i am using</p>
<pre><code> <tr>
<td>No.</td>
<td id="2" class="editable">data1</td>
<td id="2" class="editable">data2</td>
<td>Usage Left</td>
</tr>
<!-- Multiple rows with different ids -->
</code></pre>
<p>and this is ... | javascript jquery | [3, 5] |
1,626,155 | 1,626,156 | Android App Dev (Beginner) | <p>My question is in two parts, I guess that makes it two questions :-).</p>
<p>I have a strong interest in beginning to develop Android applications. I have some knowledge of programming HTML and CSS but no other languages. My research has yielded many folks indicating knowledge of Java is a must-have in order to dev... | java android | [1, 4] |
4,689,207 | 4,689,208 | .Net how should i share session objects between different layers of asp.net project | <p>I have created a List objects when application starts and saved them as a session variable.</p>
<p>I then use this session variable throughout life of the application.</p>
<p>At times I update to this List in other layers of the application so I want to pass this session variable to other layers.</p>
<p>Should I ... | c# asp.net | [0, 9] |
1,877,220 | 1,877,221 | Why isnt jQuery appearing in my page | <p>I have my "good.html" and "jquery.js" file in a folder on desktop called "jquery2."</p>
<p>Here is my code </p>
<pre><code><!doctype html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<script type="tex... | javascript jquery | [3, 5] |
5,879,811 | 5,879,812 | how to set a specific date to be available? datepicker | <p>I have DB mysql with column <strong>date_in</strong> and <strong>date_out</strong></p>
<p>how to set datepicker to show available only dates from database mysql.
i have two inputs with datepicker</p>
<pre><code><input type="text" name="check_in_date" id="check_in" />
<input type="text" name="chek_out_date... | javascript jquery | [3, 5] |
163,128 | 163,129 | Return only one value by clicking on a button | <p>How to return only the object on which we clicked, not the entire collection? </p>
<pre><code> $('[id^=opener]').click(function() {
document.write($('[id^=opener]').find(this));
});
</code></pre>
| javascript jquery | [3, 5] |
4,986,992 | 4,986,993 | Help porting c++ to php code | <p>I need if possible port this function to c++:</p>
<pre><code>static unsigned char bux_code[3] = {0xFC, 0xCF, 0xAB};
void bux_convert(char* buf, int size)
{
int n = 0;
// ----
for (n=0;n<size;n++)
{
buf[n]^=bux_code[n%3];
}
}
</code></pre>
<p>What i have d... | php c++ | [2, 6] |
975,908 | 975,909 | Can I wait for a js process within PHP before continuing? | <p>I have a PHP script I use to register users but during that process I'm trying to call a Google GEOCoding javascript method to return the client lat/lng and record it to a DB before continuing with my PHP registration process.</p>
<p>Can this be done or is there a better way?</p>
<p>My current code looks something... | php javascript jquery | [2, 3, 5] |
2,732,606 | 2,732,607 | how to compare two text input type box values using jquery | <p>I have a two textboxes <code>t1</code> and <code>t2</code> . I would like to figure out how in jquery if the values in <code>t1</code> and <code>t2</code> are same I can display an alert message. If user does not change the values I want to prevent the form from being submitted.</p>
| javascript jquery | [3, 5] |
336,902 | 336,903 | How to remove javascript code as gmail does? | <p>I am currently working on securing my javascript code. I am using Asp.net 4.0 When i was checking my mail on gmail I just right clicked & selected view source & It just showed me <code><html><body></body></html></code> . Can i implement this type of security in my application or any o... | javascript asp.net | [3, 9] |
3,711,693 | 3,711,694 | browser back button / #one #two etc | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1673359/making-browser-back-button-work-while-using-ajax-requests">Making Browser Back button work while using AJAX requests</a> </p>
</blockquote>
<p>I want to write some jQuery that when the browser url change... | javascript jquery | [3, 5] |
2,430,578 | 2,430,579 | Allowing only one select option of a certain value to be selected | <p>I created a jsfiddle for this at <a href="http://jsfiddle.net/MZtML/" rel="nofollow">http://jsfiddle.net/MZtML/</a></p>
<p>I have a row of images with a select box to determine what type of image it is. These are the options:</p>
<pre><code><select name="image-type">
<option value="none">Select Ima... | javascript jquery | [3, 5] |
4,664,672 | 4,664,673 | how to handle this ThreadAbort Exception..? | <p>i got this exception when i done the code given below..</p>
<p>"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." </p>
<p>--code--</p>
<pre><code>try
{
if (retVal == 0)
Response.Redirect("Success.aspx");
}
catch(Exception error)
{
Response.... | c# asp.net | [0, 9] |
1,308,134 | 1,308,135 | js is not defined error | <p>How can I get the error message on a good way to solve? Error message: timetotal is not defined.</p>
<pre><code> $(document).ready(function() {
if (typeof(timeleft) !== 'undefined') {
Chrono.update();
}
$('a.add_other_answer').click(function() {
addAnswer();
});
});
Chrono = {
w... | javascript jquery | [3, 5] |
5,414,798 | 5,414,799 | JQuery apply bind to all children | <p>I have:</p>
<pre><code>$(document).ready(function(){
$("#eventsContent").children().each(function(){
$(this).bind("mouseenter", function(){
$(this).css("background","#F5F5F5");
});
});
});
</code></pre>
<p>I have tried this a couple different ways, but this is the jist of what i've done. </p>
<p>I have... | javascript jquery | [3, 5] |
5,912,165 | 5,912,166 | save as dialog in asp.net | <p>I have some data in the form of a string. I want to write this data to a file and save the file to the specified path. The path would be specified by opening a save as dialog on the button click. How can this be achieved??</p>
| c# asp.net | [0, 9] |
5,260,116 | 5,260,117 | How to make this jquery code shorter? | <p>Is there a way to make this code smaller into 1 block?</p>
<pre><code>$('#product INPUT:checked').each(function () {
data.box1.push({
id: $(this).attr("id")
});
});
$('#product .dropSelect OPTION:selected').each(function () {
data.drops.push({
value: $(... | javascript jquery | [3, 5] |
4,556,540 | 4,556,541 | How to send any new uploaded or created items in the web application to all users in the database? | <p>I am developing an <strong>intranet web application</strong> which should provide its users with a weekly medium-size quizzes about the latest training courses that they took in the company.I developed the quiz machine to be similar to this <a href="http://www.asp.net/web-forms/videos/building-20-applications/lesson... | c# asp.net | [0, 9] |
935,416 | 935,417 | convert string like "8.37%" to integer like 8.37 | <p>I am using this method to convert it, </p>
<pre><code>String R=sgp.getR();
String R1=R.replace("%", "");
int N=Integer.parseInt(R1);
</code></pre>
<p>but getting Number format exception.
In R i am getting 8.37% and i have to make it 8.37 in integer so that i can use it.
I have also tried</p>
<pre><code> int N=Int... | java android | [1, 4] |
5,893,161 | 5,893,162 | How to dynamically add attributes to mulitple div with same class name using jquery? | <p>I have a "div" written in my html code like this</p>
<pre><code><div class="mydata">
</div>
</code></pre>
<p>and this is created dynamically when page renders so how many div with this same class name is going to be created is not fixed but using my code i can get the total no of div presented at a tim... | javascript jquery | [3, 5] |
5,790,681 | 5,790,682 | ASP.Net Problem in Prod/Dev | <p>I am facing strange problem,
Whenever I commented second <strong>if</strong> condition, it works in Production, but fail in development.</p>
<p>And when I dont comments second if condtion of code, it works for development and fail for production.</p>
<pre><code> protected void Page_Load(object sender, EventArgs... | c# asp.net | [0, 9] |
1,508,182 | 1,508,183 | Send data from javascript to code behind at first load | <p>I am actually buidling a web application and I need to get data of the local environment of the machine viewing the application.To do this, I use a little javascript script such as:</p>
<pre><code><script language="javascript">
function GetUserName()
{
//Permits to get username of client machine
... | c# javascript asp.net | [0, 3, 9] |
2,643,963 | 2,643,964 | Create object on page_load and pass to JQuery | <p>I have an asp.net page and the JQuery date picker. On page load, I want to look at some config and create an object of dates to not include and then pass that to my JQuery in an external .js file. Is there a way to do this? How?</p>
<p>EDIT:
I'd like to pass a Class object</p>
| jquery asp.net | [5, 9] |
1,979,533 | 1,979,534 | how to reset elements affected by a jquery function | <p>I have a jQuery function that runs when a box is clicked that affects multiple other elements on the page (creates a slideshow from a group of divs). There are multiple boxes on the page and I need to reset the elements affected by the function back to normal whenever the box is clicked again. Is there an easier way... | javascript jquery | [3, 5] |
1,141,877 | 1,141,878 | How can i check if the web page is already accessed in particular IP Address on ASP.Net? | <p>In my application i want to check that the url is accessed in the particular ip address. Only one time the page needs to be displayed and for the next time navigating to that page the page should not come.</p>
<p>How can i achieve this?</p>
<p>Regards,
Prasad</p>
| c# asp.net | [0, 9] |
1,384,615 | 1,384,616 | Adding html and plain text inside div with jQuery | <p>I'm recieving a string (it may be either plain text or HTML text) from server, and I need to insert it into a div after that. </p>
<p>I can use <code>$div.text(textFromServer)</code> if I know that <code>textFromServer</code> is plain text. </p>
<p>If I know that <code>textFromServer</code> is html I can do someth... | javascript jquery | [3, 5] |
3,143,070 | 3,143,071 | PHP code to Javascript | <p>How can I convert this PHP code to javascript? I wanna use .js file to insert other pages. If there are other ways please tell me.
thanks! :)</p>
<pre><code><?
include 'config.php';
$select = mysql_query("SELECT * FROM `currency`");
$num=mysql_num_rows($select);
while($row=mysql_fetch_object($select))
{... | php javascript | [2, 3] |
5,517,294 | 5,517,295 | Print text in one textbox by clicking more than one button | <p>I want to print text in textbox by clicking buttons i.e., for example,
if i click on button1, in textbox text should be "a"
If i click on button2, textbox text should be "ab" in ASP.Net</p>
| c# asp.net | [0, 9] |
5,260,261 | 5,260,262 | Lost in jQuery .each() | <p>In the script below, I'm trying to parse through a select list and for each option, call a php that returns a value (psuedo true/false) based on the options "value" attribute.</p>
<p>However, when I'm inside the $.get [to evaluate the return value and execute script against the current option in the each(),] I can'... | php jquery | [2, 5] |
4,943,765 | 4,943,766 | compress file at client-side | <p>I wanna upload a file to server. But is there any way(using javascript) to compress the image at client-side before upload.</p>
| asp.net javascript | [9, 3] |
5,054,799 | 5,054,800 | how to call javascript functions from parent page? | <p>I got a page which has an iframe. This page has a masterpage on which there is a js function defined. </p>
<p>masterpage contains:</p>
<pre><code> <script type="text/javascript" src="/somejs.js"></script>
</code></pre>
<p>page with iframe:</p>
<pre><code> <div >
<iframe id="myIframe" r... | javascript asp.net | [3, 9] |
6,029,266 | 6,029,267 | Global variable in javascript not working properly | <p>I have an iframe issue ( little bit strange for me ) . The issue is that i have an iframe in my document, and there are several functions are operating different task on that iframe and for accessing the contents of iframe we use :</p>
<pre><code>$("iframe").contents();
</code></pre>
<p>So instead of writing this ... | javascript jquery | [3, 5] |
2,121,377 | 2,121,378 | The XML element 'EnableTheming' from namespace '' is already present in the current scope | <p>The XML element 'EnableTheming' from namespace '' is already present in the current scope. Use XML attributes to specify another XML name or namespace for the element. I get this error when I assign my DataTable to ViewState.</p>
<p>Here is the code:</p>
<pre><code>DataTable dt = new DataTable();
DataCol... | c# asp.net | [0, 9] |
1,353,330 | 1,353,331 | Table row delete using jquery | <p>i have made this code to remove table row :</p>
<pre><code>jQuery('tr#rowAttend1').remove();
</code></pre>
<p>HTML :</p>
<p>Three rows with same id .
For example :</p>
<pre><code><tr id="rowAttend1" ><td>ssss</td></tr>
<tr id="rowAttend1" ><td>ddddd</td></tr>
<... | php jquery | [2, 5] |
4,066,008 | 4,066,009 | Asp.Net Page Load | <p>i have a weird problem ! i have ASP.NET website and i have a page with page_load which never get executedno matter what i do ,i deleted the page_load and doubled clicked the aspx page it generated page_load again i inserted my code inside and made breakpoint but it never get hit ! </p>
<p>All other Methods gets hit... | c# asp.net | [0, 9] |
3,885,075 | 3,885,076 | DownloadString timed out | <p>I have a method which returns the content of a webpage:</p>
<pre><code> private string FetchHTML(string sUrl, Encoding encoding)
{
System.Net.WebClient oClient = new System.Net.WebClient();
oClient.Encoding = encoding;
return System.Web.HttpUtility.HtmlDecode(oClie... | c# asp.net | [0, 9] |
2,570,621 | 2,570,622 | C#: How to check whether a instance is serializable | <p>How can check whether a instance is marked as serializable?</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
4,046,051 | 4,046,052 | How can I execute a Java program within a php script? | <p>I am writing a simple web upload script. The goal is to upload a file using php, and then calling a java program to process this file. I have done the work for uploading the file, but I cannot get a java program to be successfully run from within the php script. I have tried exec(), shell_exec(), and system() wit... | java php | [1, 2] |
5,897,638 | 5,897,639 | How do i grey out the input field and the submit button | <p>I want to grey out <a href="http://doorsplit.heroku.com/" rel="nofollow">these two things</a> the song input field and the submit button until the user enters and artist. Is there an easy way to do this via JQuery.</p>
<p>the id of the artist input field is #request_artist</p>
| javascript jquery | [3, 5] |
95,577 | 95,578 | Is it possible to find the parent of an element then navigate the DOM? | <p>When using jQuery how does one return to navigating the DOM. For example, if I found the parent of an item like this:</p>
<pre><code>$(this).parent()
</code></pre>
<p>How can you find something with an id of 'foobar'.
I've tried:</p>
<pre><code>$(this).parent().$('foobar').addClass('hello')
</code></pre>
<p>But ... | javascript jquery | [3, 5] |
5,493,487 | 5,493,488 | Get Parent Tables Parent Table jQuery | <p>I am working with Sharepiont and the code it spits out is messy at best.</p>
<p>I have the id of a div inside a table which is inside another table and I need to get at the parent tables parent table.</p>
<p>Here is the JsFiddle I am working with:</p>
<p><a href="http://jsfiddle.net/BpnNJ/2/" rel="nofollow">http:... | javascript jquery | [3, 5] |
1,555,387 | 1,555,388 | how to find datagrid row in asp.net 2.0 C# | <p>I am using dot net 2.0 and c#.</p>
<p>I have a requirement where i have to find rows of datagrid and pass then as an argument in a function, could you please provide me code for findind a row in datagird. Thanks</p>
| c# asp.net | [0, 9] |
2,628,049 | 2,628,050 | TextBox Accepting only a decimal number with two precisions (eg: ddd.dd) | <p>I have a textbox which need to restrict the user for entering other than decimal number (with maximum of three digits and then a period and then maximun of two digits). Can someone suggest me Onkeypress Event for the textbox in jQuery For this requirement</p>
| javascript jquery asp.net | [3, 5, 9] |
4,202,271 | 4,202,272 | Android Supporting Multiple Screens with fixed width icons | <p>This may not be explained the best but here it goes.
I have a window of 2 by 2 square icons. I found a custom layout script that spaces these equally on the screen. These 4 icons consist of a square background with a little image and title.
At the moment the width and height are defined in dp. But that stretches or... | java android | [1, 4] |
5,644,710 | 5,644,711 | Android - checking for certain value does not | <p>I am working on Android billing and trying to set the onPurchaseStateChange method correct, but it does not seem to be working.</p>
<pre><code> @Override
public void onPurchaseStateChange(PurchaseState purchaseState, String itemId,
int quantity, long purchaseTime, String developerPayload)
{
... | java android | [1, 4] |
840,811 | 840,812 | Adding HTML code with Single Quotes inside jQuery | <p>I am trying to add this HTML/JavaScript code into a jQuery variable. I've managed to insert double quotes by writing is with a backshlash <code>\"</code>, however the same tactic didn't work for the single quotes:</p>
<pre><code>ajaxData += '<div class=\"menu-item-' + $(this).attr('div') + 'onclick=\"alert('Jque... | javascript jquery | [3, 5] |
2,965,834 | 2,965,835 | Best way to incorporate javascript in php? | <p>This is the way I am currently doing it. </p>
<pre><code> <?php
//show footer
echo "<script type='text/javascript'>\n";
echo "alert('Congrats');\n";
echo "</script>";
?>
</code></pre>
<p>Is there a better way than just to echo it?</p>
| php javascript | [2, 3] |
3,972,247 | 3,972,248 | How do I extract data from this URL using javascript? | <p>I need to build a string from the data contained in this url using javascript/jQuery:</p>
<pre><code>http://www.example.com/members/admin/projects/?projectid=41
</code></pre>
<p>The string returned should look as follows:</p>
<pre><code>/ajax/projects.php?projectid=41
</code></pre>
<p>Obviously if there is no qu... | javascript jquery | [3, 5] |
1,392,794 | 1,392,795 | Stop or interrupt php script for particular time | <p>Can I Stop or interrupt <code>PHP</code> script for particular time?</p>
<p>I would like to implement logic like below:</p>
<p>on <em><code>mydomain.com/index.php</code></em> there will be flash appear showing some intro of a product for suppose 20 sec. Once it complete, on same index.php page the home page of sit... | php javascript | [2, 3] |
2,465,076 | 2,465,077 | Use both ahref and onclick on php to hIde parameters? | <p>I have a php function which gets data from database and calls a javasript function like this:</p>
<pre><code>echo "<p><a href=\"javascript: customm('$variable')\">$header</a></p>";
</code></pre>
<p>The problem is when someone hovers over the link, the browser shows the complete parameters l... | php javascript | [2, 3] |
528,802 | 528,803 | Is it possible populate the updated data in a repeater with out refreshing the page/using and update panel? | <p>H All,<br/>
Is it possible to populate the updated data from the database to a repeater with out refreshing the page and with out using an update panel? <br/></p>
<p>This is my requirement.</p>
<p>I have an option to save Name & Age to the database <br/>
eg:</p>
<p>Name <*textbox accepts name> : Age <*t... | javascript asp.net jquery | [3, 9, 5] |
96,238 | 96,239 | How to let javascript know if a method is being called in java class? | <p>I am doing a webapp currently that deal with java class and javascript. My java class contain a method that will be called by another webapp to update a file. Is there anyway for javascript to detect that the update method was being called so it can proceed with some function of it's own?</p>
| java javascript | [1, 3] |
2,077,314 | 2,077,315 | jQuery each this | <pre><code>var slides = $(".promo-slide");
slides.each(function(key, value){
if (key == 1) {
this.addClass("first");
}
});
</code></pre>
<p>Why do I get an error saying:</p>
<pre><code>Uncaught TypeError: Object #<HTMLDivElement> has no method 'addClass'
</code></pre>
<p>From the above code?</p... | javascript jquery | [3, 5] |
324,520 | 324,521 | redirect to a different page | <p>I need some help here:</p>
<p>I am writing code to redirect a user to a different page and execute some code, if the user closes the window while he is working on something:</p>
<pre><code><script type="text/javascript">
window.onbeforeunload = function() {
location.assign('http://www.somesite.... | javascript jquery | [3, 5] |
621,739 | 621,740 | Run script if address is x? | <p>I've built a site for my customer a few months ago, and when user clicks a link on navigation, the new content will slide visible and the old content will be hidden. I also made the customer a webstore and he would like a link to to his main site image gallery. However, because the site is actually only one page ful... | javascript jquery | [3, 5] |
5,383,831 | 5,383,832 | i have a question about jquery, i can't get DOM event, when i insert a new code to html DOM | <p>like this</p>
<pre><code><html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
</head>
<body>
<div id="test">321</div>
</body>
<script>
$(document).ready(function(){
$("#test").cl... | javascript jquery | [3, 5] |
1,974,227 | 1,974,228 | Client system time in ASP.NET | <p>This C# code <code>DateTime.Now;</code> notes server time and this code <code>DateTimeKind.Utc;</code> notes the zone but displaying this to other counties at their own zone is not being possible with this. How to display time according to the clients time zone?</p>
| c# asp.net | [0, 9] |
822,923 | 822,924 | How to make Android product consumable | <p>I am working on a project, which I need to make consumable. </p>
<p>On clicking on the purchase button, using below code for consumption.</p>
<pre><code>inventory=new Inventory();
mHelper.consumeAsync(inventory.getPurchase(SKU_SUCCESS),mConsumeFinishedListener1);
</code></pre>
<p>But it getting 'Null pointer exce... | java android | [1, 4] |
4,987,984 | 4,987,985 | Initialize final variable within constructor in another method | <p>I have a problem which isn't really that big, but still gives me some thought as to how Java constructors and methods are used.</p>
<p>I have a constant representing a radius I declare final, and also make it public for everyone to see. I don't want my code littered with getRadius() methods when I'm never ever goin... | java android | [1, 4] |
5,807,756 | 5,807,757 | How to get unique values in a array | <p>How can I get a list of unique values in a array, do I always have to use a second array is there something similar to a java hashmap in javascript?</p>
<p>I am going to be using <strong>Javascript</strong> and <strong>jQuery</strong> only. No additional libraries can be used.</p>
| javascript jquery | [3, 5] |
3,555,729 | 3,555,730 | Get Country, GMT, City by IP address using PHP | <p>I have tried to get the <strong>Country</strong>, <strong>City</strong>, and <strong>GMT</strong> using <code>js</code> by set it to cookies, and then I fetch it with <code>PHP</code> to save into <code>Database</code>.
But the method I used, is does not work sometimes,
So, is there anyway to get them by using PHP a... | php javascript | [2, 3] |
282,426 | 282,427 | jquery select iframe children | <p>I am using the editArea library and jquery to do what i need...</p>
<p><a href="http://www.cdolivet.com/index.php?page=editArea&sess=2b8243f679e0d472397bfa959e1d3841">http://www.cdolivet.com/index.php?page=editArea&sess=2b8243f679e0d472397bfa959e1d3841</a></p>
<p>so in my html there is an iframe tag that e... | javascript jquery | [3, 5] |
2,506,216 | 2,506,217 | getting the value of textbox of Grid | <p>Now , I am using ASP.net with C# . I have a Grid and there are two text box controls in it. How should I do to get the value of these two text box controls from JavaScript. </p>
<p>Regards</p>
| c# javascript asp.net | [0, 3, 9] |
3,666,242 | 3,666,243 | Why am I finding Javascript/jQuery so difficult to get right? | <p>My background is in C and I've picked up PHP, mySQL, HTML, CSS without too much issue.</p>
<p>But I'm finding Javascript/jQuery surprisingly difficult to get right.
Very frustrating.
Why?</p>
<ol>
<li><p>It seems to violate a number of traditional programming principles (e.g. variable scope) </p></li>
<li><p>Undef... | javascript jquery | [3, 5] |
4,367,042 | 4,367,043 | How to access asp.net property in javaScript? | <p>I'm trying this code to access a property but it gives me an error:</p>
<pre><code><textarea class="<%#Eval("soort").ToString() %>" ID="TextTranslation" runat="server" rows="5"><%#Eval("Translation") %></textarea>
</code></pre>
<p>The error:</p>
<blockquote>
<p>Server Error in '/' Applic... | javascript jquery asp.net | [3, 5, 9] |
3,233,995 | 3,233,996 | How do I cancel action of a form after an alert? | <p>When the user submits the form, <code>writeToStorage</code> is fired and it checks if the user is in localStorage and if it is, an alert is run. After this alert I don't want the action to execute. I tried <code>return false;</code> but obviously that does not stop the python script from running. How do I stop the a... | javascript python | [3, 7] |
3,518,106 | 3,518,107 | Is it "reflection" when I use getClass.getMethod(...)? | <p>I've written a few bluetooth apps now, but I had never seen <a href="http://stackoverflow.com/questions/3072776/android-bluetooth-cant-connect-out">this particular approach</a> until recently. In the example they use <code>device.getClass().getMethod("createRfcommSocket", new Class[] { int.class });</code> which see... | java android | [1, 4] |
94,664 | 94,665 | where the asp:controls values are stored if enableviewstate is disabled? | <p>I have used a checkbox and a button in my demopage. In checkbox AutopostBack property is false and I have used a server side event checkbox_checkedchanged() on </p>
<pre><code><asp:CheckBox ID="CheckBox1" runat="server"
oncheckedchanged="CheckBox1_CheckedChanged" /><asp:Button ID="Button1" runat=... | c# asp.net | [0, 9] |
3,305,967 | 3,305,968 | What is the equivalent of Java's .length for arrays in C#? | <p>I'm new to C#, and I'm trying to convert this code from java into C#.</p>
<pre><code> static public double euclidean_2(double[] x, double[] y)
{
if (x.length != y.length) throw new RuntimeException("Arguments must have same number of dimensions.");
double cumssq = 0.0;
for (int i = 0... | c# java | [0, 1] |
2,680,250 | 2,680,251 | Raphael Paper when Empty | <p>Splice is not working for array with an object and i am getting the following error. I am just reordering stuff based on the condition.</p>
<pre><code>this.generatePartipant = function(userData,creatorID) {
//arrange order based on order: owner, presenter and others
var creatorObject;
var ownerObject;
... | javascript jquery | [3, 5] |
4,082,209 | 4,082,210 | ASP.NET 1.1 issue | <p>For some reason I cannot add a server control onto a specific asp.net form. If I make an attempt to do this, I get the following error when selecting from the datagrid: Index was out of range. Must be non-negative and less than the size of the collection </p>
<p>I have checked the values and they are all non negati... | c# asp.net | [0, 9] |
1,984,469 | 1,984,470 | UserControl not rendering children when added to a page using aspx tag | <p>I must be missing a trick here. I have an <code>.aspx</code> page (that uses a master page, if that matters) with the following code in it:</p>
<pre><code><me:ModuleContainer runat="server" ID="topmodules"></me:ModuleContainer>
</code></pre>
<p>Now for some reason, my UserControl for <code>ModuleContai... | c# asp.net | [0, 9] |
5,036,427 | 5,036,428 | how do i add a selector change event to this? | <p>Here is my jquery which works great </p>
<pre><code>$(document).ready(function(){
$('#new_average, #max_occupancy').keyup(function(){
factor = $(".industry_picker option:checked").attr("title");
average = $('#new_average').val();
if($('#new_average').val().indexOf("$") != -1){
... | javascript jquery | [3, 5] |
775,409 | 775,410 | html row selection change with up/down key in j query | <p>I have html table like : </p>
<p><img src="http://i.stack.imgur.com/lCJku.jpg" alt="enter image description here"></p>
<p>Now I want to change row selection with up/down key & as well as scroll in j query/ java script .
Any one tell me how can it possible!</p>
| javascript jquery | [3, 5] |
1,309,553 | 1,309,554 | Error unterminated string literal when using php javascript? | <p>I have a file with format</p>
<pre><code><script src="test.php"></script>
</code></pre>
<p>And code in test.php with table test(id, name) with 4000 rows</p>
<pre><code><?php
$sql = "Select * From test";
$data = array();
$query = mysql_query($sql);
while($row = mysql_fetch_object($query)) {
$da... | php javascript | [2, 3] |
4,592,778 | 4,592,779 | How to get interest in programming especially in java and android | <p>I am new in this community. I just completed my Btech in Computer science, I have interest towards programming especially java. I started studying java but i am little bit slow in logic and understanding the concepts. I have some good books of java but when doing the program i am losing my confidence because of the ... | java android | [1, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.