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
3,258,855
3,258,856
ASP.Net: Page_Load() being called multiple times
<p>I don't know alot about ASP.Net but I'm trying to make a new control for a message box. You enter some info and press a button.</p> <p>However, for some bizarre reason when the button is pressed, Page_Load() gets called a second time, and all of the member variables are reset to null! I need those variables, and Pa...
c# asp.net
[0, 9]
3,665,665
3,665,666
Efficient way of hiding elements with certain classes $.each, for, etc
<p>I have an array populated with classes. I need to loop across this array and hide any elements with that particular class.</p> <pre><code>// Array of classes // hide.length ~ 100 </code></pre> <p>This is my current implemntation:</p> <pre><code>// Hide all elements with these class names $.each(hide, function(key...
javascript jquery
[3, 5]
2,008,758
2,008,759
Invalid Argument javascript error only on certain computers
<p>Getting an error whenever we click a particular button/link on our site. It is generating a javascript "Invalid Argument" error. I know in the other posts it is typically because it is a syntax error in the javascript however it only just seems to have started happening and it doesn't happen on all pcs.</p> <p>ie...
javascript asp.net
[3, 9]
5,935,303
5,935,304
reference an array from using an object name
<p>Lets say I have a function <code>foo(bar){}</code> and the parameter <code>bar</code> accepts a jQuery object. Lets say I pass in <code>bubbleOne</code> as the parameter. </p> <p>Additionally I have an array called <code>bubbleOneDetails[]</code> that holds a lot of information about the <code>bubbleOne</code> obje...
javascript jquery
[3, 5]
5,629,141
5,629,142
how can i extract text after hash # in the href part from a tag?
<p>I have following a tags:</p> <pre><code>&lt;a href="#tab1"&gt;Any tab1 Label&lt;/a&gt; &lt;a href="#tab2"&gt;tab2 Label&lt;/a&gt; &lt;a href="#tab3"&gt;Any tab3 Label&lt;/a&gt; &lt;script&gt; function tellMyName() { alert(this.href); } &lt;/script&gt; </code></pre> <p>Now i want to bind the tellMyName functio...
javascript jquery
[3, 5]
3,967,296
3,967,297
Prevent back button after logout
<p>I don't want the user to go back to secured pages by clicking back button after logging out. In my logout code, I am unsetting the sessions and redirecting to login page.But, I think the browser is caching the page so it becomes visible despite the session being destroyed from logout.</p> <p>I am able to avoid this...
php javascript jquery
[2, 3, 5]
800,034
800,035
Restart the service when phone restarts in android
<p>hai i want to restart my service when phone restarts...</p> <p>how to go with ...</p> <p>iam using this for start the service</p> <pre><code>Intent a = new Intent(); a.setAction("com.service.Service"); startService(a); </code></pre>
java android
[1, 4]
4,532,114
4,532,115
JQuery Post don't work json data type
<p>i have this code in javascript:</p> <pre><code>$.post('AccessDB.php', {add:add, seriesid:seriesid, lang:lang}, function(data) { alert(data); if (data.returned == "Verified"){ notification('Success notification'); } else if (data.returned == "NotVerified") { ...
php javascript jquery
[2, 3, 5]
2,403,787
2,403,788
encrypting jquery .load() function
<p>I'm calling a php page using .load()</p> <p><code>.load('page.php?user='+user+'&amp;page='+page)</code></p> <p>if you go to the actual page.php and type <code>page.php?user=1&amp;page=2</code> you get the same result, how could I stop this from happening? encrypting data maybe?</p> <p>Could someone point me in th...
php jquery
[2, 5]
2,977,707
2,977,708
Problems with FadeIn and FadeOut images
<p>I have a fade script, but the images ar not fading nicely. First of all the first image fade out and than the next image fade in. Between the fading you see nothing. I want that the images fade-out and fade-in at the same time.</p> <p>Does anybody knows how to fix it? I think i have to edit some lines below.</p> ...
javascript jquery
[3, 5]
5,994,867
5,994,868
jQuery Validation, Numeric Value Only
<p>I'm trying to validate a form input value. The function below states is the value of the input is a number below 150, show error. Works as it should. However, I want to add to it. If the value contains ANYTHING other than a numeric value AND/OR is a value under 150, show error...</p> <p>How can I modify?</p> <pre>...
javascript jquery
[3, 5]
5,458,043
5,458,044
text font resize
<p>I'm having trouble to get a font increase/decrease jquery function done. It has 3 sizes: large, medium (default one) and small. Issue here is theres no "reset" button as it on many examples on the web, instead just two buttons to increase or decrease the font size.</p> <p>The problem came up when I change to larger...
javascript jquery
[3, 5]
5,454,161
5,454,162
Newly appended objects don't respond to jQuery events from page load
<p>I am using Backbone here, but I've also experienced this issue with non-Backbone sites as well.</p> <p>Essentially, my issue is that I define in one javascript file, base.js, a number of 'global' jquery functions. Then, I load new elements and append them to the page using Backbone, AJAX, or whichever asynchronous ...
javascript jquery
[3, 5]
3,150,341
3,150,342
Android app crashing at starup
<p>I have written a quick android add to display the SSID of the wifi network connected to along with the device ip address. the code is: </p> <pre><code>public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Context context = ge...
java android
[1, 4]
891,117
891,118
Does jquery makes the browser slow?
<p>I'm using jQuery in my web page. Will this make the web page to load contents slow?</p> <p>Using jQuery is advantage than JavaScript or not why?...</p>
javascript jquery
[3, 5]
315,521
315,522
sort date fields to obtain earliest date
<p>in my database , dates are stored in DD-mm-yyyy format , how can i sort this to obtain the earliest date ? </p> <pre><code>Cursor c = myDb.query(TABLE, new String[]{"dob"}, null, null, null, null, "dob"); </code></pre> <p>I have selected it to order by dob field but its not ordered ... This is the output for the a...
java android
[1, 4]
5,356,679
5,356,680
modify div style on .toggle - jquery
<p>I have an image with id <code>mainimage</code>. It has a styling to limit width and height by setting <code>max-width:100%</code> and <code>max-height:100%</code>. But I want to remove it on the first instance of my script</p> <pre><code>$(document).ready( function() { var hjkl = $("#mainimage").height(); var hjklw...
javascript jquery
[3, 5]
1,864,046
1,864,047
Including PHP variables in an external JS file?
<p>I have a few lines of jQuery in my web application. This code is inline at the moment because it accepts a couple of PHP variables.</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ $('.post&lt;?php echo $post-&gt;id; ?&gt;').click(function() { $.ajax({ t...
php javascript jquery
[2, 3, 5]
4,222,510
4,222,511
how to access HttpContext.Current.Application
<p>Hello i have problem accessing HttpContext.Current.Application From global.asax its seems to be null every time i try to access it. How can i to this?</p> <pre><code>HttpContext.Current.Application.Lock(); HttpContext.Current.Application["Actions"] = "hello"; HttpContext.Current.Application.UnLock(); </code></pre...
c# asp.net
[0, 9]
2,718,885
2,718,886
Show Progress Bar And disable all contents of the page until page loads
<p>I have lots of ASP.NET Pages in which all the contents of the page has been placed inside Content Panel on each page..They takes some time to load fully when requested. Now I want to show a GIF image and that Page remains un-editable until it loads Fully using JQuery.. Please don't give examples using div tag as I m...
jquery asp.net
[5, 9]
2,584,960
2,584,961
How do you recursively remove nested objects that contain an empty array?
<p>I initially receive an AJAX response of <code>{"B":{"1":"100","3":{"AA":256}},"A":100}</code> and converted to a javascript object:</p> <pre><code>var jsonOBJ = {}; jsonOBJ = jQuery.parseJSON(data); </code></pre> <p>Future responses can be subsets or supersets of the initial response. If the value of a table is un...
javascript jquery
[3, 5]
2,670,966
2,670,967
android, how to find an ImageView by its bitmap?
<p>Say I have a loop that creates ImageViews and adds them to a layout</p> <pre><code>final LinearLayout linLayRow1 = (LinearLayout) findViewById(R.id.LLrow1); ... try { FileInputStream in1 = new FileInputStream(masterPath+shiftimage); BufferedInputStream buf1 = new BufferedInputStream(in1); Bitmap bMap1 = BitmapF...
java android
[1, 4]
2,066,778
2,066,779
onchange refresh particular content php
<p>The following image shows the part of my web page. I am developing my site using php.</p> <p><img src="http://i.stack.imgur.com/B3Rzq.png" alt="enter image description here"></p> <p>If i select an option in the <code>draft</code> listmenu the options in the following field eg, pick 1, pick 2 will changed. I did th...
php javascript jquery
[2, 3, 5]
3,541,004
3,541,005
convert Map Values into String Array
<p>Here ,I am trying to convert map values into String array but i am getting </p> <p>Error</p> <pre><code>ERROR/AndroidRuntime(23588): Caused by: java.lang.ClassCastException: [Ljava.lang.Object; </code></pre> <p>Code</p> <pre><code>Map&lt;String,String&gt; contactNumber = new HashMap&lt;String,String&gt;(); St...
java android
[1, 4]
4,808,433
4,808,434
How to pass a php variable($total) i have, to an External Javascript as in input?
<p>I have a php file with a variable $total as one of its variable.</p> <p>AS part of my project I have to print a table of results. I call an external javascript whenever i display the table, something like this </p> <pre><code>echo "&lt;script src='course.js' language='JavaScript'&gt;&lt;/script&gt;"; echo "&lt;tab...
php javascript
[2, 3]
3,716,707
3,716,708
Adding +1 to jQuery value of a readonly text input field
<p>I am using a function where I have a <code>readonly</code> text <code>input</code>, and when I execute the function I want the number value + 1. So let's say I have 60, when I execute the function, the number returned should be 61. </p> <p>But instead it's coming out 601, which is just adding the number 1 to the st...
javascript jquery
[3, 5]
2,919,684
2,919,685
In javascript Jquery, how do I determine the position from the top to the current state...everytime someone scrolls?
<p>How do you bind it so that when a user scrolls, I can know the "offset" from the top, in pixels?</p>
javascript jquery
[3, 5]
527,135
527,136
C# sometimes currency format does not work
<p>It seems that sometimes the currency format does not work:</p> <pre><code>string Amount = "11123.45"; Literal2.Text = string.Format("{0:c}", Amount); </code></pre> <p>reads 11123.45 </p> <p>it should be:</p> <p><strong>$11,123.45</strong> </p>
c# asp.net
[0, 9]
711,071
711,072
List index Err : Index was out of range
<p>I have two lists and I want to copy data from one to another and I get this error:</p> <blockquote> <p>Index was out of range. Must be non-negative and less than the size of the collection.<br> Parameter name: index </p> </blockquote> <p>Here's my code:</p> <pre><code>static IList&lt;Common.Data.Driver&gt; S...
c# asp.net
[0, 9]
3,054,220
3,054,221
ASP.NET : What exactly is affected when Javascript is off?
<p>I've heard different stories about ASP.NET and JavaScript: that it works fine with Javascript turned off, that only some parts don't work, and that nothing works at all.</p> <p>How exactly are ASP.NET applications affected if JavaScript is turned off in a client's browser? What parts don't work (if any)?</p> <p>Fo...
asp.net javascript
[9, 3]
4,600,991
4,600,992
Using Java-classes with C#
<p>I have a project written in Java (>1.5).</p> <p>Is it possible to write parts of the project with C#?<br> For instance the GUI and calling the methods and instanciate the classes written in java?</p> <p>If yes, how?</p>
c# java
[0, 1]
1,227,132
1,227,133
How to expand or collapse child page depends on dynamic content?
<p>Hi what is the best way to expand or collapse child page depending on dynamic content in .net web application?</p>
c# asp.net
[0, 9]
1,068,940
1,068,941
print constant php into jQuery
<p>I have a page where I have to print a constant php into jQuery. Now if I print returns me an error: "SyntaxError: missing ; before statement" Because my text contains space anbd i don't want to cancel that space! Here is my code (I have tried with serialize and trim before but same error)</p> <pre><code>&lt;script ...
php jquery
[2, 5]
3,818,222
3,818,223
Making a specific <select> option automatically check and disable check box in another form field
<p>I have a very simple form for uploading a file. In the form, there's a dropdown menu where you can choose a category for the file you're uploading. I also have another checkbox which is by default unchecked. How can I make it so that if the third in the dropdown is selected, the checkbox is automatically checked a...
javascript jquery
[3, 5]
331,672
331,673
Visible text box when being clicked
<p>Is there any ways to make a text box visible when user click a button? What I meant here is, user will only see the text box when button is clicked. Thanks in advance for help me. Have a good ones.</p>
c# asp.net
[0, 9]
2,427,906
2,427,907
How do you mentally handle going from writing managed to non-managed code?
<p>~80% of the code I write is in C#. The other ~20% is in C++. Whenever I have to switch from C# to C++, it takes me quite a while to mentally "shift gears" to thinking in C++. I make simple mistakes using pointers and memory allocation that I would not have made when I was in university. After the adjustment period, ...
c# c++
[0, 6]
118,942
118,943
Android optimisation and portability
<p>I've been developing java for several years, and i'm thinking of trying to android application development , even if i'm a little late in the game.</p> <p>How would I go about limiting the memory usage and battery usage of an android application? </p> <p>and also, what kind of portability issues will I face when w...
java android
[1, 4]
3,319,822
3,319,823
Hide element onFocus and display onBlur
<p>I have 2 form inputs where onFocus I want to hide another element on the page.</p> <pre><code>$(document).ready(function () { $('.email').focus(function () { $('.note').fadeTo('fast', 0); }).blur(function () { $('.note').fadeTo('fast', 1); }); $('.password')....
javascript jquery
[3, 5]
3,221,534
3,221,535
Prevent "bubbling"?
<p>I am not sure this is really bubbling, I will explain.</p> <p>I have this:</p> <pre><code>&lt;div&gt; &lt;div&gt; text here &lt;/div&gt; &lt;/div&gt; </code></pre> <p>How to bind an on click event so that it will affect only the enclosed div? If I set it like this:</p> <pre><code>jQuery('div').bind('clic...
javascript jquery
[3, 5]
5,025,309
5,025,310
Any way to get a DateTime object from this string?
<p>Is there any way to get a DateTime from:</p> <pre><code>Mon Mar 04 2013 18:00:00 GMT-0500 (Eastern Standard Time) </code></pre> <p>If so, how?</p> <p>Thanks</p>
c# asp.net
[0, 9]
5,813,552
5,813,553
Adding to Bridging table in MultiView
<p>I have a Multiview.. I have created 2 classes InsertInfo() and InsertInfo2() to insert controls to my Database table.. Once user clicks 'Finish' button, I execute the two classes.</p> <p>But my FK values are not getting inserted. </p> <p>I have dbo.Emp (from view 1) I have dbo.Cert (from View 2) that have been ins...
c# asp.net
[0, 9]
5,823,814
5,823,815
need to access the checked checkbox
<p>I need to get the value that has been assigned to the checkbox that is checked , and I've used for loop to show the checkboxes , now i need to access the values of the checkboxes that are checked only ,</p> <p>Can anybody help me out with this ?</p> <pre><code>foreach($inbox as $inbox_info) { &lt;input type="...
javascript jquery
[3, 5]
4,459,856
4,459,857
Moving circles in android
<p>I have a task. It's to draw some (more than one) circles moving around the screen. They must start moving after click on them. I have the code only for one circle. Give me the way how to do this task, for example, 5 circles. Thanks in advance!</p> <pre><code>public class MainActivity extends Activity { @Overri...
java android
[1, 4]
5,974,240
5,974,241
Tracking users and sessions on an asp .net website
<p>I'm looking to write a user and session tracking tool.</p> <p>What I'm trying to do is create a page that lets me see which users are logged in and what session data is being used by that user.</p> <p>Is this possible? Or do I need to write a custom session provider?</p>
c# asp.net
[0, 9]
403,922
403,923
Settings a listener to Shared Preference's dialog 'OK' button
<p>I have class Settings that extends PreferenceActivity, in which user enter his Google account and the password. When the user presses 'add account' a dialog jumps with OK and CANCEL buttons. Same occurs when pressing add password, I want to define listener within PreferenceActivity to the OK button in the password d...
java android
[1, 4]
1,513,401
1,513,402
Need to generate ASP.NET controls from a database
<p>I am writing an application where the controls for a page need to be determined from data in a Sql Server table.</p> <p>For example: I have a PropertyGroups with Properties(Join Table) I then have categories to Propertygroups, the Properties have a values table, blah blah. Not to get too much in to the DB schema, b...
c# asp.net
[0, 9]
5,614,454
5,614,455
A web application that continue to run in memory
<p>I want to develop a server side application that work in background, and accept every HTML request, and answer to it.</p> <p>There is possible to develop it in PHP? (I don't want a PHP page, that executed every time).</p> <p>If not, maybe I should move to JAVA JSP? If not, maybe I should move to JAVA JSP? If not...
java php python
[1, 2, 7]
2,814,262
2,814,263
jquery radiobutton focus
<p>On some of my pages I am setting focus on a first input element:</p> <pre><code> $(':input:visible:first').trigger('focus'); </code></pre> <p>If the first input element is a checkbox or a radiobutton it receives a focus fine but that's not clearly visible, so it's label is not highlighted and screen reader do...
asp.net jquery
[9, 5]
1,161,418
1,161,419
How to control activities on the "back button queue"
<p>I want to be able to control which activities the user can press the back button into, depending on where the user is currently. For example, I have Activities A, B, C, and D.</p> <p>The user navigates (through buttons I provide) from Activity A, to B, to C, and finally, to D. If the user presses back any time be...
java android
[1, 4]
2,581,777
2,581,778
Error in sending fax
<p>I use the following code for sending a FAX:</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { FaxDocument(@"E:\ss.doc", "04428257363"); } } public int FaxDocument(String TheFile, string faxnumber) { int JobID = 0; FAXCOMEXLib.FaxServer faxsrv = new FAXCOMEXLib.FaxServerClass()...
c# asp.net
[0, 9]
3,576,644
3,576,645
What is PHP like as a programming language?
<p>I am not really familiar with PHP, but I get the impression that it is like JavaScript (syntax-wise).</p> <p>What are the benefits of a dynamically typed language, when compared to a strongly typed language like C# or Java, and how would this help in the context of web development? What would make a dynamically ty...
c# java php javascript
[0, 1, 2, 3]
4,574,998
4,574,999
How to redirect current tab on submit using javascript?
<p>I does a small example to learn javascript and php. I try window.open() and window.location() but it opens a new tab and the current tab still redirects to "login.php"</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type = "text/javascript"&gt; function checksubmit(form){ ...
php javascript
[2, 3]
1,956,476
1,956,477
Javascript , loading progress bar before site loads
<p>I want to make a progress bar for a GUI site that I am making and I need a bit of code in javascript to detect if the site is loading and how many elements/images have loaded and has the site fully loaded. I have the progress bar made with css and I dont know how I can turn on/of elements in js.</p> <p>How can I ac...
javascript jquery
[3, 5]
3,164,935
3,164,936
if statement OR logic oddity
<p>I'm calling this function from a jUnit test case with the following information:</p> <pre><code>// abbr = "US"; // Countries = array of two objects one with iso2 = "us" public Country getCountryFromAbbr(String abbr) { abbr = abbr.toLowerCase(); for (int i = 0; i &lt; Countries.size(); i++) { Countr...
java android
[1, 4]
3,719,644
3,719,645
Adding a second <%@Register %> line to my page causes Compilation Error
<p>When I have just one &lt;%@Register %> line in my page, it loads fine.</p> <p>When I add a second one, it gives me this compilation error:</p> <blockquote> <p>Compiler Error Message: CS0433: The type 'ASP.test1_ascx' exists in both 'c:\Users\me\AppData\Local\Temp\Temporary ASP.NET Files\root\c2d75602\aae...
c# asp.net
[0, 9]
5,988,842
5,988,843
Selective Framebursting
<p>i would like to implement selective Framebursting for my iframe application.</p> <p>My iframe is available at <code>www.mywebsite.con/iframe.aspx?lic=1234</code></p> <p>When the third party website hosting my iframe is (<code>PayedWebsited1.con</code> OR <code>PayedWebsited2.con</code>) AND the <code>lic=1234</cod...
javascript jquery
[3, 5]
4,586,944
4,586,945
Redirection not happening when clicking on button
<p>I am trying to redirect the user to a different page upon clicking on a button and stop any asp related events if it meets the validation in the if() statement in javascript, the reason why i am doing it like this is because on a specific page.. it is not grabinhg the On_Click event for some reason. While debugging ...
c# asp.net
[0, 9]
2,446,410
2,446,411
Android. Reading content from file
<p>I'm using the next method to read content from a file. The problem here is that i'm limited to ht unmber of characters specified for <code>inputBuffer</code> (in this case 1024). </p> <p>First of all, if the content is less than 1024 chars long, i get a lot of whitespace chars, and i need to use trim to remove them...
java android
[1, 4]
449,066
449,067
where does window.somedata gets stored
<p>In JavaScript when i say <code>window.SomeData = 'whatever'</code>, where does it get saved in the browser? I thought it gets saved in the <code>viewstate</code> but it doesnt. Also how much security concern is it to save some data in <code>window.someKey</code>. I am not talking about username or password storage b...
javascript jquery
[3, 5]
652,790
652,791
Cloning content to a slider
<p>I'm working on a responsive design, and would like some of my content in a slider when it's below a certain size. However, I would like to avoid rendering the data twice, so the idea is to clone the content and append it to the slider on <code>(document).ready()</code>, then initialise it. That way, I can show my co...
javascript jquery
[3, 5]
3,330,634
3,330,635
I want to get the remote device's address,its name,its UUID , accept the BluetoothServerSocket of an already paired bluetooth device
<p>I am creating a bluetooth remote which remotely accesses a media player on a computer . I have sent an intent to the default Bluetooth system settings . Now what I want is to get the device's name, its MAC address, its UUID. Also I want to accept the BluetoothServerSocket assigning it to a BluetoothSocket. Here is m...
java android
[1, 4]
4,934,601
4,934,602
remove the background noise of the recorded audio in Jrecorder
<p><p>i am using jrecorder <a href="http://www.sajithmr.me/jrecorder/index.html" rel="nofollow">jrecorder</a> to record audio on clients browser and save the audio file on my server.</p><p>i want to remove the background noise in the recorded audio on client side.i know it might be possible through ff-mpeg but i want ...
javascript jquery
[3, 5]
202,002
202,003
How to add items to dynamically created select (html) Control
<p>Hi How to add items to dynamically created select (html) Control..</p> <p>thanks</p>
c# asp.net
[0, 9]
2,049,324
2,049,325
How to find a text using javascript or jquery.
<p>I need to find a text from a paragraph using java script. Is there any code in JavaScript like we do in c# to find a text using "string.Contains("")" method.</p> <p>Pls help...</p> <p>Thanks Guys..</p>
javascript jquery
[3, 5]
4,871,566
4,871,567
Why is this java code executing multiple return statements
<p>I have a function that during execution while in the debuger runs both the return statment inside the if and then the return statment at the end of the function. </p> <p>I'm confused I thought the return statment returned the value and stopped the flow of execution in the method?</p> <p>I've got it to work, but w...
java android
[1, 4]
3,882,474
3,882,475
get the entire html from dom but exclude some elements?
<p>Is it possible to get the entire dom of a source page excluding some elements?</p> <p>What's the jquery code for <code>document.documentElement.innerHTML;</code> ?</p> <p>And how to remove from that code some divs?</p>
javascript jquery
[3, 5]
3,506,860
3,506,861
Is it possible to add a callback to eval(data);?
<p>So when eval(data) is complete, how would you set a callback?</p>
javascript jquery
[3, 5]
3,784,931
3,784,932
C# equivalent for PHP file_put_contents
<p>I am converting a PHP file to C#,completed 75%,stuck with these lines </p> <pre><code>if(file_put_contents($uploaddir.$randomName, $decodedData)) { //echo $randomName.":uploaded successfully"; //NO NEED TO CONVERT ECHO PART } </code></pre> <p>PHP Brothers please help</p> <p><strong>MORE INFO</strong></p> <p>...
c# php
[0, 2]
3,704,901
3,704,902
How do I store a hash into a form input?
<p>Say I have a hash and I want to enter it as a <code>val()</code></p> <pre><code>$("#form_attribute").val( hash ) </code></pre> <p>It gets stored as a string <code>"[Object, object]"</code></p> <p>How do I keep it as a hash and then allow the form to send this hash to my server?</p>
javascript jquery
[3, 5]
456,724
456,725
Nytimes-style popup when the user makes a selection
<p>When you select text in an article on nytimes.com this little ? pops up at the end your selection:</p> <p><img src="http://img193.imageshack.us/img193/1316/827200941520pm.png" alt="alt text" /></p> <p>What's the best way to implement something like this on my site? Are there any pre-rolled libraries for doing this...
javascript jquery
[3, 5]
3,687,862
3,687,863
How to access data inside Dialog Builder's inner class?
<p>This is more of a Java question, i believe. I would like to access myBundle from within the OnClickListener. Currently, i am getting this compiler error - Cannot refer to a non-final variable dataSend inside an inner class defined in a different method. Is there any way to achieve what i want to do? Thanks. Relevant...
java android
[1, 4]
4,198,311
4,198,312
Jquery fadein after an update panel has ran
<p>I'm having trouble figuring out how to fade in some divs that I fade out when clicking on a checkbox. It brings back the new results but they pop up straight away. This is the code I am using to fade out.</p> <p>any ideas how I can run the same thing but fadein after after an update panel?</p> <pre><code> $(doc...
jquery asp.net
[5, 9]
3,177,962
3,177,963
Java: Need some way to shorten this code
<p>I have this piece of code that I would like to shorten...</p> <pre><code> PackageManager p = context.getPackageManager(); final List&lt;PackageInfo&gt; appinstall = p.getInstalledPackages(PackageManager.GET_PERMISSIONS); PackageManager pro = context.getPackageManager(); final List&lt;PackageInfo&gt; ...
java android
[1, 4]
2,079,895
2,079,896
how can i convert bitmap image to drawable image so that it will be show over another bitmap image
<p><strong>i've a class which extends view ...in which i have two bitmap images to show one over another ....for this im am trying to convert one bitmap image to a drawable image but it dsnt show over the first one what i'm trying this is.....</strong></p> <pre><code>public class ShowCanvas extends View { Bitmap Can...
java android
[1, 4]
4,456,659
4,456,660
Audio decoding in php?
<p>I have an audio that I upload with a HTTP Post method to my webserver sent form android.done encoding with Base64..now how to decode audio file using base64 in php??</p>
php android
[2, 4]
5,183,034
5,183,035
Wordpress video end function
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://wordpress.stackexchange.com/questions/2895/not-defined-using-jquery-in-wordpress">$ not defined using jQuery in Wordpress</a> </p> </blockquote> <p>I need to trigger a alert box when video ends</p> <p>THis is the code i got from google</p...
jquery javascript
[5, 3]
5,056,271
5,056,272
Which is best in this scenario, Base64 or static images?
<p>Part of my application Makes heavy use of image manipulation. Cropping, filters etc. using ajax posts and image processing server side using a variety of methods. Every manipulation action that the user takes creates a physical image without deleting the original in order to allow an 'undo' system giving the user t...
php javascript jquery
[2, 3, 5]
5,106,090
5,106,091
Asynchronously downloading files via php script
<p>On my company's network, there's a page that generates a topographical range gradient KML based on points passed in through the URL. The problem is that the page takes an average of 30 seconds to complete a request, and I need about 70 requests daily. What I plan to do is have my office's website use a local copy ...
php javascript jquery
[2, 3, 5]
2,399,504
2,399,505
How can I lay a div over every image on the page using jQuery?
<p>I'm wondering how can I put a div over every image element on the page using <code>jQuery</code>? I want to make it where when you right click on the image, you'll just be right clicking on a div and then it will be harder to save, and people that don't know <code>HTML</code> and stuff wont be able to get the image ...
javascript jquery
[3, 5]
2,198,756
2,198,757
Seperating JQuery Scripts with Selectors in External file does not work?
<p>I have a JQuery Selector and an event associates with it.I want to keep it in external file and just copy and directly save it. The thing which I see is that the external JavaScript that has the selector does not work. Can someone explain Why?</p> <p>NOTE: I am able to use the same function within my HTML file but ...
javascript jquery
[3, 5]
2,896,812
2,896,813
How to create the below model drop down in asp.net using C#
<p><img src="http://i.stack.imgur.com/IITzS.png" alt="enter image description here"></p> <p>I am just learning .net and i wonder if it is possible to create drop lists like the one shown above or having a list type item where if + is pressed the item is expanded and when - is pressed again it minimizes. <img src="http...
c# asp.net
[0, 9]
860,674
860,675
Moving a div relative to another div having horizontal scroll
<pre><code>&lt;div style="overflow: hidden; position: relative;height: 80px;overflow-x:auto;overflow-y:hidden;width:550px;" id="div1"&gt; &lt;div style="width: 1650px; display: block;"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div style="width: 550px; position: absolute;" id="div2"&gt; &lt;/div&gt; </code></pre> <p>I...
javascript jquery
[3, 5]
4,120,820
4,120,821
jquery load problem
<p>I'm having a problem where a jquery load function wipes out the dom element that it is targeted at.</p> <p><code>popup_content.load('form.html #print_options1', function() {popup_content.fadeIn();});</code></p> <p>when popup_content is a div targeted by jquery. A jquery load was previously used to load content int...
javascript jquery
[3, 5]
1,528,127
1,528,128
Upon jQuery onClick, incrementing a PHP variable?
<p>I have a link like this: <code>&lt;a href="javascript:window.print();"&gt;Print&lt;/a&gt;</code>. I'm trying to increment a PHP variable when that is clicked. I could technically do it by submitting a form, but I'm sure there is an easier way. Any ideas?</p>
php javascript jquery
[2, 3, 5]
4,337,671
4,337,672
asterisk in arithmetic output
<p>When computing 2 doubles, 1/81 on the android platform, 0.01234567* was returned. What does the asterisk mean and how can I avoid such an output?</p> <pre><code>a=Double.parseDouble(subexp.substring(ss, i)); b=Double.parseDouble(subexp.substring(i+1, se+1)); subexp=subexp.substring(0,ss).concat(Double.toString(a/b...
java android
[1, 4]
1,625,112
1,625,113
How to Open the dialog pop up in my Controller code
<p>I have this div in my master page.</p> <pre><code> &lt;div id="UICancelChanges" title="Are you sure?" style="display: none;"&gt; Your changes have not been saved. Are you sure you want to CANCEL ? &lt;/div&gt; </code></pre> <p>On click I am just opening Jquery dialog popup window..</p> <pre...
javascript jquery
[3, 5]
1,346,121
1,346,122
3 / 2 = 1.0? really?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3144610/java-integer-division-how-do-you-produce-a-double">Java Integer Division, How do you produce a double?</a> </p> </blockquote> <pre><code>double wang = 3 / 2; Log.v("TEST", "Wang: " + Double.toString(wang...
java android
[1, 4]
4,010,484
4,010,485
how to use OnItemLongClickListener without setOnItemLongClickListener in Android?
<p>I am trying to use OnItemLongClickListener for a listView on Android. This code works fine when added to onCreate method.</p> <pre><code>mContactList.setOnItemLongClickListener(new OnItemLongClickListener() { public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, int position, long id) { ...
java android
[1, 4]
2,868,498
2,868,499
embed javascript variable in asp.net control id
<p>I'm working with a table of asp.net controls on client side. They are all named in the following fashion when they are created on server side: "txt_name_" + rowNum. I know I can access them by their id by using "&lt;%=Control.ClientID%>". On client side I have access to current row num via a javascript variable. ...
asp.net javascript
[9, 3]
2,743,465
2,743,466
checking whether or not a variable of type double is null or not, generates error
<p>I'm just checking if a value of a double variable is null or not, strangely, an error raised saying "operator == is undefined for double"?</p> <p><strong>Code</strong>:</p> <pre><code>public double getGyro_X() { if (this.gyro_X == null) { Toast.makeText(this, ""+gyro_XIsNullText, ToastdurationShort).s...
java android
[1, 4]
4,253,647
4,253,648
how to send data from android to server then from server to android
<p>I want to build an application to send data from <code>Android</code> client to <code>Java</code> localhost server, then return the replay from server to client, how can i build server? and to send the data pelase?</p>
java android
[1, 4]
3,963,715
3,963,716
How to set custom view for day in CalendarView?
<p>I'm developing some Android application, and now I've got the following problem: for some days I need to set custom view, but I haven't found any examples of this feature. I hoped that there was some adapters for CalendarView, but it's false. Please, tell me, how can I do it? Thank you in advance. </p> <p>UPDATE: ...
java android
[1, 4]
4,595,295
4,595,296
IP Address Parameter in ASP.Net
<p>I have a stored procedure that inserts a few columns into a database, IP Address, Name, Comments. I am not sure how to get the ip address of the users machine. Perhaps I am to create a variable of the same type (INT) and then store the IP Address in there. I am kinda of lost on this one. </p> <pre><code>static int ...
c# asp.net
[0, 9]
2,617,355
2,617,356
Select All Text Areas And Add into one Textarea
<p>Hello im currently writing my own javascript/PHP css editor and i have it explode the file into tags and its all echoed out into separate text areas from a loop, i was wondering if its possible to scan the page with javascript and get all the content from all the text areas and add them into one variable or one text...
php javascript
[2, 3]
4,450,264
4,450,265
Master Pages and Content Pages
<p>I have designed a master page containing Home,About Us,Contact Us.So whenever i click on Home link the content of the home page should display on the contentplaceholder where i placed it.And this is same for About Us and Contact Us also.So please give me step by step guidance to do this as clear as possible.Waiting ...
c# asp.net
[0, 9]
3,817,037
3,817,038
change border/color onFocus
<p>I tried to make script which changes color of border-bottom of div after having focus on </p> <pre><code>&lt;input type="text"&gt; </code></pre> <p>and then changing back to default color after clicking somewhere else.</p> <p>This is what i tried:</p> <p>Css:</p> <pre><code>.div1 {border-bottom:1px solid #ccc;}...
javascript jquery
[3, 5]
3,320,254
3,320,255
changing format of text using jquery
<p>I have following that can change display style of text in the html's p tag it can display properly at the time of loading of page but when I change the text in p tag using text box it cant work out, can you please help me.</p> <p>Following is the code for that.</p> <pre><code>&lt;input type="text" id="text1" size...
javascript jquery
[3, 5]
3,403,408
3,403,409
asp.net hyperlink - click to make the POST request
<pre><code>&lt;asp:HyperLink ID="hlBanner" Target="_blank" style="padding-left:10px;" runat="server" ImageUrl="banner.png" /&gt; </code></pre> <p>I want to send some infomation such as FName, LName &amp; Email into the POST request to another page ProcessInfo.aspx. This processing page pulls the values from the posted...
c# asp.net
[0, 9]
3,894,000
3,894,001
How to disable all the controls on the page after the countdown timer stops in asp.net?
<p>I have tried to disable the next button in the following code but its not working....pls help... </p> <pre><code> protected void timer1_Tick(object sender, EventArgs e) { CurrentTime = CurrentTime.AddSeconds(-1); LblTime.Text = "Time Left: " + CurrentTime.TimeOfDay; if (CurrentTime....
c# asp.net
[0, 9]
3,788,962
3,788,963
Disabling browser scrollbar
<p>Hi Is it possible to disable browser scroll bar through java script...? If yes how?</p> <p>Help me if anybody knows it... Thanks in advance..</p>
javascript jquery
[3, 5]