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,044,922
5,044,923
jquery Ellipse: How To Create Ellipse shape Gallery With jQuery
<p>This code is somewhat near to ellipse shape. I want my gallery shape to be arrange is ellipse shape like cloud carousel example. Right now i am using roundabout plugin shape tearDrop and below function used for tearDrop. I require similar function for ellipse shape.</p> <pre><code>tearDrop: function (a, b, c) { ...
javascript jquery
[3, 5]
4,066,305
4,066,306
How can I display three months at the same time using FullCalender Jquery
<p>How can I display three months at the same time using the FullCalender in Jquery?</p>
javascript jquery
[3, 5]
4,561,506
4,561,507
DisplayMessageActivity cannot be resolved to a type-Building first android App
<p>Hi I have just began working on the first android application on <strong>developer.android.com</strong>.</p> <p>well to start with I got to learn many error origins and their solutions from S.O. , but i have been trying to figure out this statement <em>"DisplayMessageActivity cannot be resolved to a type"</em> whi...
java android
[1, 4]
3,424,252
3,424,253
File missing in ajax:AsyncFileUpload on saving
<p>I have an ajax:AsyncFileUpload on my asp file</p> <pre><code>&lt;asp:UpdatePanel ID="modalActLogAction" runat="server" &gt; &lt;ajax:AsyncFileUpload ID="fuActionAttachment" runat="server" Width="240px" OnClientUploadComplete = "OnClientUploadCompleteFn"/&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>The ...
c# asp.net
[0, 9]
2,279,406
2,279,407
Prints pdf when page loads
<p>I have this code in my aspx page;</p> <pre><code>&lt;a href="javascript:void(0);" onclick=&lt;% Print(); %&gt; title="Print listings"&gt;Print&lt;/a&gt; </code></pre> <p>which presents a link to print a listings to a pdf when the user clicks on it; as you can note the script calls a function from the behind code.<...
c# asp.net javascript
[0, 9, 3]
5,704,826
5,704,827
C# - Get Image path from Client Machine
<p>I want to get the path of the Image which is saved in Client Machine. I know the Path and the file name of the Image. By using FileUpload i can do it, but without using fileupload is it possible to get the path of the file ??.</p> <p>My Scenario is given below,</p> <pre><code>Public void ConverttoByte() { //Ge...
c# asp.net
[0, 9]
1,280,420
1,280,421
how to get array of array in javascript
<p><strong>I'm creating graph and for this I need data in this form in javascript:</strong></p> <pre><code>var currYear = [["2011-08-01",796.01], ["2011-08-02",510.5], ["2011-08-03",527.8], ["2011-08-04",308.48]] </code></pre> <p><strong>Data is coming from JSON</strong></p> <pre><code>var total_click = JSON.parse(&...
javascript jquery
[3, 5]
4,387,578
4,387,579
Creating a System.Web.Caching.Cache object in a unit test
<p>I'm trying to implement a unit test for a function in a project that doesn't have unit tests and this function requires a System.Web.Caching.Cache object as a parameter. I've been trying to create this object by using code such as...</p> <pre><code>System.Web.Caching.Cache cache = new System.Web.Caching.Cache(); ca...
c# asp.net
[0, 9]
5,202,000
5,202,001
jquery trigger not opening link
<pre><code>&lt;a id="divLink" href="http://google.com" target="_blank"&gt;GOOGLE&lt;/a&gt; &lt;a id="divLinkOpen" href="#" &gt;Open&lt;/a&gt; $('#divLinkOpen').unbind('click').click(function() { $('#divLinkOpen').trigger("click"); }); </code></pre> <p>trigger not opening the link for google</p>
javascript jquery
[3, 5]
443,740
443,741
How to Set a Parameter for WhereParameters in EntityDataSource
<p>I have an EntityDataSource and I need set WHERE to a Local Variable Type: GUID.</p> <p>My problem is I am not able to send my local variable Guid to EntityDataSource for a WHERE OPERATION.</p> <p>I also tried to to use a ControlParameter<code>&lt;asp:ControlParameter Name="UserId" /&gt;</code> and have a Label wit...
c# asp.net
[0, 9]
5,305,752
5,305,753
Getting alert while trying to delete using jQuery Ajax delete
<p>I am getting the following popup while trying to delete a value. I'm using jQuery Ajax to delete the value. Programming language I use is python2.7 and the framework is Django 1.3.2</p> <p>My code is as follows:</p> <pre><code>$.ajax({ type: "DELETE", url: window.location.pathname + id + '/data-centers/' +...
jquery python
[5, 7]
2,323,078
2,323,079
setting margin of a TableRow issue
<p>I have the following code, which tries to set the margin:</p> <pre><code>TableRow tr = new TableRow(this); TableLayout.LayoutParams tableRowParams= new TableLayout.LayoutParams (TableLayout.LayoutParams.FILL_PARENT,TableLayout.LayoutParams.WRAP...
java android
[1, 4]
983,297
983,298
Unexpected call to method or property access. in JQUERY
<p>My code which is giving error in IE8</p> <pre><code>$(function(){ $.ajax({url:"http://localhost/css/register.txt", cache : false, success:function(ris){$("&lt;style&gt;&lt;/style&gt;").appendTo("head").html(ris);//culprit statement }, error:function(){} ...
javascript jquery
[3, 5]
2,645,181
2,645,182
Retrieve an email-id from url
<p>I have an page where I am embedding email-id of the user into the url and sending him mail now I want to extract the email from the url and match the value with the database. My question is how do I retrieve that email from that url?</p> <pre><code>string url = "http://localhost:3063/user/Authenticate-Users.aspx?"...
c# asp.net
[0, 9]
4,115,358
4,115,359
Convert php code to Java/android
<p><a href="http://pastebin.com/Cz8gbxs8" rel="nofollow">http://pastebin.com/Cz8gbxs8</a></p> <p>is there a way to convert this php code, to a java code?</p> <p>Thanks, anyway</p>
java php android
[1, 2, 4]
3,622,329
3,622,330
Working with Arraylist
<p>I have an array list for ex</p> <pre><code>Arraylist name = called an arraylist method(); </code></pre> <p>the <code>Arraylist</code> method() returns the list which is stored in the <code>Arraylist</code> name</p> <p>Now I want to assign the <code>Arraylist</code> which shows count 1. This <code>Arraylist</code>...
c# asp.net
[0, 9]
1,547,781
1,547,782
how to check a php cookie is set or not in jquery
<p>I am developing w php web site. Here I have set a php cookie</p> <pre><code> setcookie('hotelId',$resHotel); </code></pre> <p>I want to check whether it’s set or not using jquery or javascript. I have used the following code </p> <pre><code>if($.cookie('hotelId')) { alert("yes"); }; </code></pre> <p...
php javascript jquery
[2, 3, 5]
994,205
994,206
How to reuse this C# code?
<p>I can´t find a way to reuse the code below in all my webpages.</p> <p>How can I do it?</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Page.Request.UrlReferrer == null) { Response.Redirect("test.aspx"); } } } </code></pre...
c# asp.net
[0, 9]
4,110,983
4,110,984
php---how the site publish the thumbnail
<p>i want to konw how this site (www.retailmenot.com)publish the thumbnail. the thumbnails are under "Today's Top Coupons" part.do they first use a screenshot software to get the site image down and save it then publish it. but this way will have too trouble.am i right? </p>
php javascript
[2, 3]
3,010,836
3,010,837
replace a text with another within a tag
<p>I'm sure it's stupidly easy, but how can I replace just the text within an html tag. For instance, from this:</p> <pre><code>&lt;div style="display: block;"&gt;blah blah&lt;/div&gt; &lt;a href="#" style="display: inline; "&gt;(Old text)&lt;/a&gt; </code></pre> <p>to this:</p> <pre><code>&lt;div style="display: bl...
javascript jquery
[3, 5]
6,031,341
6,031,342
Creating a loop that populates a select tag
<pre><code>function buildOrder(data) { var $fragment; $fragment = $('&lt;div/&gt;'); for (var i = 0; i &lt; data.length; i++) { $fragment.append('&lt;div class="row-container"&gt;&lt;div class="row cupcake-row"&gt;' + data[i].name + '&lt;/div&gt;&lt;div class="clear"&gt;&lt;/div&gt;&lt;/div&gt;'); ...
javascript jquery
[3, 5]
5,325,422
5,325,423
Android - first run preference initialization
<p>I have next situation: After installing application it has to init settings from server. And while itis not has right preferences it has to wait. I have several receivers and service - I dont want to check for initialization in every action in these components - I think there have to be better solution. Can somebody...
java android
[1, 4]
2,833,414
2,833,415
How to monitor iframe clicks?
<p>I have a website called A i want to display another website called myFrame through A using iframe i want to count all the clicks in myFrame and want to display in my website A.myFrame site is in different domain.I did the following code but its not working. i can add any javascript code in myFrame website </p> <pr...
javascript jquery
[3, 5]
5,574,516
5,574,517
Jquery: How to disable an image's click function while loading?
<p>This won't work using:</p> <pre><code>$('div#menuBar,#goLeftBtn,#goRightBtn').attr('disabled', true); </code></pre> <p>in the document.ready</p> <p>Any ideas? Thanks!</p> <p><strong>EDIT:</strong><br/> My html is basically like this:</p> <pre><code> &lt;div id="floatRight"&gt; &lt;img src="./images/all_...
javascript jquery
[3, 5]
1,642,934
1,642,935
session value lost in asp.net in c#
<p>Am doing wepsite for show images from local drive using asp.net.am using session object for Transfer image path from first page to second page its running nice in vs 2003 .but i converted this website to vs 2005.but session value does't pass to next page.i got null value in session object. am using inproc session mo...
c# asp.net
[0, 9]
5,617,109
5,617,110
help me understand JS execution on onclick event of button
<pre><code>&lt;input type="button" name="reset" onclick="return ValidateValue(); __doPostBack('ApplyBtn','')" /&gt; </code></pre> <p>The above is the code generated for asp server button button control on browser.</p> <p>Now my query is that irrespective of <code>ValidateValue()</code> returning true/false <co...
asp.net javascript
[9, 3]
4,382,072
4,382,073
JQuery callback to previously defined function
<p>I'm still learning JQuery (and as a result a little JavaScript) but I can't seem to find out how to use a previously defined function in a callback.</p> <p>Say I have:</p> <pre><code>&lt;script&gt; $(document).ready(function() { function ajax_start() { alert("starting..."); ...
javascript jquery
[3, 5]
5,055,023
5,055,024
Changing the inner tags class of a tag using jquery or javascript
<p>I have the following code:</p> <pre><code>&lt;li id="toto" class="jstree-leaf"&gt; &lt;ins class="jstree-icon2"&gt;&amp;nbsp;&lt;/ins&gt; &lt;a class=""&gt;&lt;ins class="jstree-icon2"&gt;&amp;nbsp;&lt;/ins&gt;Story B&lt;/a&gt; &lt;/li&gt; </code></pre> <p>I need to change the class of the <code>&lt;ins&gt...
javascript jquery
[3, 5]
5,391,718
5,391,719
Submit form and get redirect url
<p>I need to submit some data on a website in-order to register a server. I need to enter information onto a form in the first webpage and upon submitting the information, the webpage takes me to a dynamically created page (I also need to retrieve this page) where I have to enter more information in the form. </p> <p...
c# java javascript
[0, 1, 3]
419,269
419,270
How to create Tabbed interface to display the gridview
<p>Can anybody help me please it is urgent to me please..... how to Create Tabbed interface to display the Grid view when i click a tab button in asp.net code behind c#.</p>
c# asp.net
[0, 9]
31,086
31,087
Equivalent implementation for <customErrors mode=RemoteOnly /> behaviour
<p>From <a href="http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx" rel="nofollow">msdn</a> site, I know that <strong>customErrors</strong> element provides information about custom error messages for an ASP.NET application. <strong>RemoteOnly</strong> value for <strong>mode</strong> attribute specifies that custom...
c# asp.net
[0, 9]
3,943,829
3,943,830
ajQuery - Start slideshow on click
<p>I'm new to jQuery and would like to start a slideshow after a link is clicked instead of after the page is loaded. How to do that?</p> <pre><code>&gt; &lt;script type="text/javascript"&gt; &gt; jQuery(document).ready(function($){ $("a[rel^='id']").prettyPhoto({ &gt; theme: 'pp_default',slideshow...
javascript jquery
[3, 5]
2,394,907
2,394,908
EnableViewState Question in nested user controls - ASP.NET
<p>I have a page with (EnableViewState = "true") that has a parent control with (EnableViewState = "true"). The parent control loads a child control. </p> <p>In the child control, I have a viewstate object that gets assigned to null on postbacks. The strange thing is if I set EnableViewState = "true" on the child cont...
c# asp.net
[0, 9]
2,294,890
2,294,891
find control in panel in datalist
<p>I had Datalist and inside it panel and inside panel label and I want to find label inside panel inside datalist.I did my code but it didnot work well</p> <p> protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e) {</p> <pre><code> Label LblHead = e.Item.FindControl("Label1") as Label...
c# asp.net
[0, 9]
2,076,468
2,076,469
call a code behind function from jquery in aspx
<p>I want to call a codebehind function from jquery.</p> <p>The aspx file name is group_master.aspx</p> <p>The jquery is </p> <pre><code> function populatecontrol(list, control) { var id = 0; var GroupName=document.getElementById('&lt;%=hdnGroupNameCheck.ClientID %&gt;'); if (list.length &gt; 0) { $.each(...
jquery asp.net
[5, 9]
1,352,832
1,352,833
Forms authentication , logged time , get logged username from crypted cookie in the sqldatasource parameter source
<p>I have a sqldatasource and a gridview. I'm using forms authentication.</p> <p>After the user logged in , I'm crypting his name</p> <pre><code>FormsAuthenticationTicket tkt; string cookiestr; HttpCookie ck; tkt = new FormsAuthenticationTicket(1, txtUserName.text, DateTime.Now, DateTime.Now.AddMin...
c# asp.net
[0, 9]
3,028,976
3,028,977
Open new process from a java application which is started by a windows service
<p>I'm having a java application which opens the notepad.exe using, Runtime.getRuntime().exec().</p> <p>And I want to run this application as a windows service. So I created a windows service using C#.</p> <p>and I could successfully installed the service using 'installutil' command. </p> <p>But although my java app...
c# java
[0, 1]
5,119,852
5,119,853
dynamically set the dropdown jquery
<p>I am trying to do this.</p> <pre><code> $("#slot_+num option[value='8']").remove(); </code></pre> <p>if I do this</p> <pre><code> $("#slot_0 option[value='8']").remove(); </code></pre> <p>It works, but if I try to set the selector dynamically with variable num it doesn't do anything. </p>
javascript jquery
[3, 5]
4,623,480
4,623,481
How to remove "Warning: Unresponsive Script"
<p>I am using jQuery ajax code like this: </p> <pre><code>$.each(url_id, function(index, value) { $.ajax({ async: false, type: "POST", url: "webservices/insert-manual.php", data: { url_id: value}, dataType: "json" }).done(function(response){ ...
php javascript jquery
[2, 3, 5]
5,164,986
5,164,987
jquery cancelling select event
<p>Whenever the user does a mousedown on an HTML document and drags the mouse before he releases the button, the content he's moving over becomes selected.</p> <p>I'm creating a jquery slider and I'd like to cancel this event so that when the user drags his mouse with the mouse down over when the mouse is over text, t...
javascript jquery
[3, 5]
5,775,451
5,775,452
Find word on page, wrap in span tags with class
<p>I would like to Find word on page, wrap in span tags with class. before proceeding to execute a javascript i have almost got ready.</p> <p>If i can work out how to just do this first part i think i can get the rest.</p> <p>Find word on page, wrap in span tags with a class applied to the span tags. Must then be sea...
javascript jquery
[3, 5]
5,253,839
5,253,840
Disabled Checkbox is not showing as checked in jQuery
<p>All, I have the following bit of PHP to check a checkbox:</p> <pre><code>&lt;input type="checkbox" name="check_out_gear[]" id="'.$resultsetgear['gear_checkout_id'].'" value="'.$resultsetgear['gear_checkout_id'].'" class="gear_checkout_checkbox" checked disabled&gt; </code></pre> <p>That code works fine and the che...
php jquery
[2, 5]
2,019,925
2,019,926
The literal of type long is out of range
<p>Hi I am trying to do some calculations for a unit converter im creating and have stumbled upon a problem.</p> <pre><code>out10 = doubleInput / 94605284000000000000000L; </code></pre> <p>Eclipse says that "The literal of type long is out of range", I didn't even think this was possible, but maybe some f you know ho...
java android
[1, 4]
5,739,305
5,739,306
Getting data from EditText fields
<p>I have created a custom <code>AlertDialog</code> with multiple <code>EditText</code> fields using a custom layout. Now the problem is don't know how to get data from these <code>EditText</code> when user clicks. Here's the <strong><code>AlertDialog</code></strong>.</p> <pre><code> case R.id.menu_newitem: ...
java android
[1, 4]
3,216,973
3,216,974
Setting a title to a custom dialog box
<p>I have created a custom dialog box extending the <code>DialogFragment</code> class. As stated in the Androïd developer's guide, I have set the style and theme of my dialog. I use the <code>DialogFragment.STYLE_NORMAL</code> style, which, I suppose, authorizes to set a title to the box. This seems confirmed by the fa...
java android
[1, 4]
3,530,444
3,530,445
Div positioning fixed at margin-top:20px when scrolling up
<p>I have a div which I want to become fixed at 20px from the top of the window when you scroll up and 40px from the footer when you get the bottom. My code seems inconstant, there must be a better way? <a href="http://www.halogamertags.com/dachs" rel="nofollow">Page Link</a></p> <pre><code>$(document).scroll(function...
javascript jquery
[3, 5]
6,008,821
6,008,822
How to replace document.getElementById('file-uploader') with jQuery?
<p>How to replace <code>document.getElementById('file-uploader')</code> with jQuery?</p> <p>just </p> <pre><code>var myElement = document.getElementById('file-uploader'); </code></pre> <p>into jQuery expression?</p> <p>Thanks!!!</p>
javascript jquery
[3, 5]
4,716,354
4,716,355
Python Regular Expressions in PHP
<p>What would be the PHP equivalent to this code, I have tried curl but am unable to get it to work</p> <pre><code>import urllib2,urllib,re url=' Delete me' req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3 Gecko/2008092417 Firefox/3.0.3') response = ...
php python
[2, 7]
5,738,033
5,738,034
How to trim content of element and put "..." if the characters go over a certain limit?
<p>I would like to trim a part of the <code>&lt;td&gt;</code> if it is too long. This will make sure the table doesn't get messed up. All the data in the following table is retrieved from a database. On the "Subject" part, how could I make the text shorten and put "..." if it goes over a certain character limit? Here i...
javascript jquery
[3, 5]
4,745,746
4,745,747
How to find a DropDownList in a GridView ItemTemplate without RowDataBound?
<p>I have a DropDownList outside of a GridView and I have a DropDownList inside an ItemTemplate of a GridView. The DropDownList that is outside has a SelectedIndex_Changed event and when that fires, it should populate the DropDownList inside the GridView. The problem is that in the method that I use to populate the i...
c# asp.net
[0, 9]
4,030,244
4,030,245
JavaScript, JQuery Problem: Function triggered automatically when page load!
<p>I'm a newbie in jQuery, so excuse me for asking such a simple question. I want to use <a href="http://plugins.jquery.com/project/spin-button" rel="nofollow">jQuery Spin</a> library and get notified when the value is changing. Here is my code:</p> <pre><code>&lt;script&gt; $(document).ready(function(){ $.spin.im...
javascript jquery
[3, 5]
3,401,200
3,401,201
How to read a string from a certain word onward in java?
<p>I want to use the uri value of an image (location on disk) in my app. For that, I have to use a string that starts with /sdcard/...</p> <p>I can open up a file manager to help select the picture, but even so every file manager adds something to the front, be it /mnt/sdcard or something else. I can't use substring b...
java android
[1, 4]
3,008,374
3,008,375
ObjectDataSource not showing up Data Objects in Configure Data Source
<p>I am using visual studio 2008, i included a class in the AppCode folder and wated to use its functions in ObjectDataSource.</p>
c# asp.net
[0, 9]
1,981,226
1,981,227
jquery dropdownlist, onchange reload page using Get request with ID of dropdown value
<p>When someone selects an item in a dropdown, I want to reload the current page with the value of the ID in the selected item in the querystring like:</p> <pre><code>http://www.example.com/mypage?id=234 </code></pre> <p>How can I do this?</p>
javascript jquery
[3, 5]
2,320,367
2,320,368
Remove javascript code using jQuery
<p>I used</p> <pre><code>&lt;div id="myJSDiv"&gt;&lt;script&gt;...&lt;/script&gt;&lt;/div&gt; $("#myJSDiv").html(''); </code></pre> <p>and</p> <pre><code>&lt;script id="myJSDiv"&gt;...&lt;/script&gt; $("#myJSDiv").remove(); </code></pre> <p>but nothing removed.</p> <p>JS script is</p> <pre><code>&lt;script id="co...
javascript jquery
[3, 5]
2,631,215
2,631,216
Only add items to a dropdown list once
<p>I have a dropdown list that is populated when the page loads, like this:</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { ddlCars.Items.Add("Ford"); ddlCars.Items.Add("Chevy"); ddlCars.Items.Add("BMW"); ddlCars.Items.Add("Jeep"); ddlCars.Items.Add("Nissan...
c# asp.net
[0, 9]
1,428,140
1,428,141
Textview on top of list, scrollable container
<p>How can I make the question textview to be on top of the list, as if it was the first item of the list, letting the question stretch as down as it needs then starting the list underneath it, while both of them being scrollable by the same scroller?</p> <pre><code>&lt;ScrollView xmlns:android="http://schemas.and...
java android
[1, 4]
564,314
564,315
JQuery: How do I determine if a slideToggle has been toggled?
<p>How do I do the following pseudo code in JQuery?</p> <pre><code>$(document).ready(function(){ $(".btn-slide").click(function(){ $("#divToSlide").slideToggle("fast"); if ($(this).isToggled) { // &lt;---- DOESN'T WORK ------- // do something when toggled } else { /...
javascript jquery
[3, 5]
3,884,037
3,884,038
how to make PHP server sends data to an Android device
<p>I want the Android device to send data to a PHP server. After receiving, the PHP server sends other data to Android. The first part can be done by using JSON. However, I don't know how to make the PHP server sends data to Android. Sorry, I am new to PHP! </p>
php android
[2, 4]
397,227
397,228
jQuery's serialize() function only returns the last selected checkbox value and not all of them!
<pre><code>$('form').serialize(); &lt;label&gt;Check what applies:&lt;/label&gt; Laptop Owner: &lt;input type="checkbox" name="applicable" value="laptop owner" /&gt; &lt;br /&gt; Samsung Tv Lover: &lt;input type="checkbox" name="applicable" value="Samsumg tv lover" /&gt; &lt;br /&gt; Animae Watcher: &lt;input type="ch...
php jquery
[2, 5]
5,049,853
5,049,854
NullPointer Exception on android image gallery onselected
<p>I am using android image gallery,I want to select image tag id by click on gallery item and put that id in to <code>HashMap</code> (param_ids). I used the following code.but this gave me a <code>NullPointerException</code> on this line before I clicked on gallery item.</p> <pre><code> param_ids.put("facial_appeara...
java android
[1, 4]
3,289,831
3,289,832
Why is the asp.net checkbox not disabled?
<p>I am trying to set the disabled property for my <code>CheckBox</code> to true. However, when I do a postback the <code>CheckBox</code> is still enabled?</p> <p><strong>HTML:</strong></p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...
c# jquery asp.net
[0, 5, 9]
6,013,689
6,013,690
If Not A HREF Javascript then what [e.g. mobile phones]
<p>Re:</p> <p><a href="http://stackoverflow.com/questions/134845/href-for-javascript-links-or-javascriptvoid0">Href for Javascript links: &quot;#&quot; or &quot;javascript:void(0)&quot;?</a></p> <p>I am playing with a list of items I am sending from mysql via php o the browser. </p> <p>In the browser I want to be ab...
javascript iphone android
[3, 8, 4]
5,847,390
5,847,391
Parsing Windows Event Logs, is it possible?
<p>I am doing a little research into the feasibility of a project I have in mind. It involves doing a little forensic work on images of hard drives, and I have been looking for information on how to analyze saved windows event log files.</p> <p>I do not require the ability to monitor current events, I simply want to b...
java python
[1, 7]
4,915,271
4,915,272
Find out IP address?
<p>I've got an app on android, and I'm connecting to a website for some data. Is it possible to find out the IP address that I'm actually connecting to? I'm doing:</p> <pre><code>HttpUriRequest request = new HttpGet("http://www.example.com"); DefaultHttpClient client = new DefaultHttpClient(params); HttpResponse respo...
java android
[1, 4]
5,235,184
5,235,185
ASP.net c# - Could not load type
<p>On my page I have:</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="siteSettings.aspx.cs" Inherits="APack.admin.siteSettings" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www....
c# asp.net
[0, 9]
4,527,326
4,527,327
Want to Not Show title if HoverOut
<p>I am creating a hover function in jquery that when you hover over an image, it shows its title in div box. suppose all images are together one after another with no space between them, if i start hover from 1st till last of line it shows me title of all. i set the delay of 1 sec</p> <p>heres code</p> <pre><code> ...
javascript jquery
[3, 5]
4,743,240
4,743,241
Get selected value dynamically and include that in if condition
<p>How to get value from select box dynamically without loading page and use that value in if condition ?</p>
php jquery
[2, 5]
5,371,023
5,371,024
how to expand vertical scroll after slideDown?
<pre><code> $(document).ready(function() { // hides the slickbox as soon as the DOM is ready $('#content').hide(); // toggles the content when you click the right link $('#togglebutton').click(function() { if ( $(this).hasClass("active")) { $('#content').slideDown(200); $(this).remo...
javascript jquery
[3, 5]
1,489,563
1,489,564
Empty $_POST without Content-type
<p>If I make a POST request where the content-type is not set in the request header, the variable $_POST remains empty.</p> <p>Question: How can I force PHP to fill $_POST?</p> <p>I encountered the problem making an Javascript AJAX request using <a href="http://msdn.microsoft.com/en-us/library/cc288060%28v=vs.85%29.a...
php javascript
[2, 3]
4,747,094
4,747,095
How to format and add new numbers dynamically to hidden field?
<p>I get from server into client side only pure number IDs, how to add dynamically it to html hidden field so that looks like array or JSON format (I mean: <code>["32","33","34"]</code>), so that in next step I can receive on serwer and parse? Hidden field contains on start only blank brackets <code>[]</code>.</p> <p>...
javascript jquery
[3, 5]
4,634,273
4,634,274
When inserting elements into DOM with jQuery, how do you prevent page from briefly jumping on load?
<p>I am moving a DIV (from a hidden iFrame) to the top of a page with jQuery, like so:</p> <pre><code>$(document).ready(function($) { $('#precontainer').clone().insertBefore(parent.document.querySelectorAll(".maincontainer"));}); </code></pre> <p>Whenever I reload that page, I very briefly see the original page jumpi...
javascript jquery
[3, 5]
286,568
286,569
how to insert value in input, with javascript
<p>So I tried to do something like this -</p> <pre><code>$('#price').val(price); </code></pre> <p>price is 300, and it shows good on browser, in input field, but when I want to take it out and mail it with PHP, in $_POST['price'] it doesn't show up, How can I insert something in inputs value with JavaScript, so I can...
javascript jquery
[3, 5]
5,908,107
5,908,108
Is there an Cocoa or Objective C api for Java?
<p>I'm a Java programmer and i wanted to get into writing so apps for the Iphone. I started to research and found myself looking at xmlvm..that all good, but then xmlvm has a HelloWorld.java with some UIWindow classes that i can't find and can't compile. Short of it is where is the api for Java so i can compile xmlvm's...
java iphone
[1, 8]
451,518
451,519
Best way to disable all submit buttons after postback
<p>I'm trying to write code that will disable submit button (or all submit buttons) on the page to avoid double postback.</p> <p>I thought of generating my own postback javascript function (and inject postback javascript using <code>GetPostbackEventReference</code>) but maybe there are some better ways to do this? Or ...
javascript asp.net jquery
[3, 9, 5]
603,184
603,185
Assigning roles automatically in registration page
<p>I have simple registration page, wherein after submitting the contents (Username and Password) of the page, I need to assign the User with a role. I have created 2 roles (Admin and member) from WSAT GUI.. </p> <p>So how'd I assign him with the "member role"</p> <p>This is my registration form.. </p> <pre><code>...
c# asp.net
[0, 9]
5,100,865
5,100,866
Java concurrent modification exception when removing items from list
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5145135/java-util-concurrentmodificationexception-on-arraylist">java.util.ConcurrentModificationException on ArrayList</a> </p> </blockquote> <p>I am trying to remove items from a list inside a thread. I am gett...
java android
[1, 4]
5,205,184
5,205,185
Shutdown XML-RPC server from client/test-harness
<p>My problem context is as below:-</p> <ol> <li>I have an Apache XMLRPC server implemented on Java using Webserver</li> <li>A client implemented in Android running on the device/emulator, connecting against the XML-RPC in step 1.</li> <li>Test cases running on the Android emulator which pass data to the client, which...
java android
[1, 4]
1,240,353
1,240,354
How to avoid Master Page hidden field value lost on new page load.
<p>I have a hidden field on master page. I am setting its value on a child page through JavaScript. When I click link on this child page it redirects to another page. Now I want to get the hidden field value on this new child page. But the value is lost(obviously). How can I persist this value.</p> <p>Anyone help than...
javascript asp.net
[3, 9]
2,198,202
2,198,203
identifying code that compiles in both Java and C# but runs differently
<p>I am having to port code from Java to C# (and soon the other way round) by copying and pasting and then editing compiler errors. (Please accept that this is necessary; I can explain if required). Are there cases where the same code fragment runs differently in the two languages? I would include cases where order or ...
c# java
[0, 1]
538,507
538,508
Function to pass javascript variables to a php file via a GET or POST?
<p>I've got the following function</p> <p><code>function make(point, name, message, type, file, id, lat, lng)</code></p> <p>I want this function to pass all of these Javascript variables to a php file which would open in a window when a link is pressed how would I do this?</p>
php javascript
[2, 3]
3,929,310
3,929,311
Cancel form.submit()
<p>In javascript function I am submitin a form:<br /> <code>form.submit();</code>, </p> <p>with huge amount of data. </p> <p>Is it possible to cancel this operation beside clicking on browser's stop button?</p> <p><strong>UPDATE:</strong></p> <p>Maybe i didn't made my self clear i am submiting large files.<...
asp.net javascript
[9, 3]
5,261,670
5,261,671
jQuery to database - registration form with validation
<p>I find this tutorial in 9lessons.com : <a href="http://www.9lessons.info/2011/01/gravity-registration-form-with-jquery.html" rel="nofollow">http://www.9lessons.info/2011/01/gravity-registration-form-with-jquery.html</a></p> <p>It's about a registration form with validation.</p> <p><img src="http://i.stack.imgur.co...
php javascript jquery
[2, 3, 5]
4,106,288
4,106,289
Using jquery to select an item from a select list based on the label
<p>So if I have a select list of lets say dates that looks like </p> <pre><code>&lt;option value="624e70cb-2796-4029-bd09-2642abaa54b4"&gt;1989&lt;/option&gt; &lt;option value="ff591d9a-e8a4-4280-829b-9307b7b41912"&gt;1988&lt;/option&gt; &lt;option value="f2e9e756-7c59-4883-89b5-9c8cccf85ad6"&gt;1987&lt;/option&gt; &l...
javascript jquery
[3, 5]
2,881,543
2,881,544
Data accessing from one class to another class
<p>Is there any way to call one class's ArrayList onto another class? In class A ArrayList is there, I need to use that ArrayList in class B, Class A is having <code>AsyncTask</code> in that I have the Arraylist so I need that in side AsynTask's Arraylist in another class.</p> <p>In class A:</p> <pre><code>public Cla...
java android
[1, 4]
3,567,786
3,567,787
building an auto refresh method in android
<p>Im attempting to build a method in an android application that will cause an activity to refresh every 3 minutes, similar to what you see in a twitter or facebook type app where the application will refresh the newsfeed on its own every few minutes, however I am unable to find any tutorials on the web that give me a...
java android
[1, 4]
1,275,902
1,275,903
Passing javascript variable to PHP function
<p>I have this javascript code </p> <pre><code>&lt;Script&gt; function getGroupId(){ var group=document.getElementById("selectedOptions").value; var groupFirstLetter=group.substring(2); } &lt;/Script&gt; </code></pre> <p>I need to pass the <code>groupFirstLetter</code> to a PHP function which...
php javascript
[2, 3]
2,132,915
2,132,916
Which has better performance? Place holder or new page?
<p>I have a Select option as follows</p> <pre><code>&lt;option value="#" selected=""&gt;Forms&lt;/option&gt; &lt;option value="https://Mysite/erc/Form1.aspx" target="_blank"&gt;Form1&lt;/option&gt; &lt;option value="https://Mysite/erc/Form2.aspx" target="_blank"&gt;Form2&lt;/option&gt;" </code></pre> <p>Now I want a...
c# asp.net
[0, 9]
1,940,733
1,940,734
Detecting input from bar code reader(and rfid) from javascript
<p>I have a bar code reader and RFID reader that act as a HID device and I got output from them as keyboard output, and after the data is red, enter key is pressed. Is there any way to efferent reading of this data so that it would be written in some specific input field? I was thinking about detecting the speed of rea...
javascript jquery
[3, 5]
1,854,958
1,854,959
Add class to li if content is a certain string
<p>Would it be possible to add a certain class to a li that contains a certain string of text using JavaScript/<a href="http://i.stack.imgur.com/sGhaO.gif" rel="nofollow">jQuery</a>? </p> <p>UPDATE/NEW QUESTION: Instead of detecting the content of the li, can I have it add the class if the li has another specified cla...
javascript jquery
[3, 5]
2,433,330
2,433,331
OK to throw an error for a missing required querystring parameter?
<p>Is there anything wrong with having an asp.net page throw a (custom error) if a a required querystring parameter is missing and having global.asax catch it with Application_Error, then transfer the user to an error page? I have several base classes that perform these checks and I am not sure of the best way to comm...
c# asp.net
[0, 9]
3,652,834
3,652,835
Comparing C# and Java
<p>I learned Java in college, and then I was hired by a C# shop and have used that ever since. I spent my first week realizing that the two languages were almost identical, and the next two months figuring out the little differences. For the most part, was I noticing the things that Java had that C# doesn't, and thus w...
c# java
[0, 1]
4,515,068
4,515,069
DataSet sorting
<p>In <code>DataTable</code> I could sorting with </p> <pre><code> dataTable.DefaultView.Sort = "SortField DESC"; </code></pre> <p>I'm getting a <code>DataSet</code> from database, I was wondering could I do a sorting on the <code>DataSet</code> like how I do it in <code>DataTable</code>.</p>
c# asp.net
[0, 9]
3,935,312
3,935,313
ASP.NET & JQuery | Show jQuery LightBox on Submit
<p>Currently I have a small form that uses a <code>asp:linkbutton</code> to submit and send out an email.</p> <p>I want to instead display a lightbox saying "Thank you for your submission" when the user clicks the form rather than a full post back.</p> <p>What is the best solution?</p>
asp.net jquery
[9, 5]
2,791,857
2,791,858
Using EasyHook for hooking IIS6 or IIS7
<p>I want to hook IIS6 or IIS7 with Easyhook . can any body help me?how? I worked with Easyhook to hook some unmanaged and managed dll and functions</p> <p>Thanks</p>
c# asp.net
[0, 9]
233,411
233,412
jQuery function not recognised on iPhone
<p>I have a jQuery slideshow that works across all browsers and android devices, but when testing on an iPhone 4 it doesn't work.</p> <p>Stripping it back to a simple in-page alert, jQuery still doesn't work on iPhone. Any suggestions as to what's going on here? </p> <pre><code>&lt;script type="text/javascript" src=...
jquery iphone
[5, 8]
5,811,047
5,811,048
Javascript keycodes
<p>I am facing is weird problem. I have an input field on my page which gets its feed from a barcode scanner which appends a carriage return at the end (keycode: 13). When I use my scanner on a regular notepad, Once the input prints on screen, the cursor moves to the next line (it gets the carriage return), where as if...
javascript jquery
[3, 5]
1,797,567
1,797,568
Next count no. clients connected to the server
<p><a href="http://stackoverflow.com/questions/8854176/get-a-list-of-all-active-sessions-in-asp-net">Get a list of all active sessions in ASP.NET</a> the above linked show the get active session but how to used this method when i used the application_start or user form load it returns null.</p> <p>i want to calculate...
c# asp.net
[0, 9]
1,698,983
1,698,984
What is wrong with my body-click event?
<p>I have that text field:</p> <pre><code>&lt;input type='text' id='title' name='title'&gt; &lt;div id='error' class='error'&gt;&lt;/div&gt; </code></pre> <p>When user clicks out of the text field and there is a validation problem, the div "error" appears.</p> <p>What I want to do is to hide that little div when use...
javascript jquery
[3, 5]
4,437,326
4,437,327
jquery .height() not work in IE9
<p>project_cat is a div, the following code is try to get its height, but all not working in IE9, </p> <pre><code>jQuery("#project_cat").height(); jQuery("#project_cat").innerHeight(); jQuery("#project_cat").css('height'); </code></pre> <p>how to get it work in IE9?</p>
javascript jquery
[3, 5]