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,279,378
5,279,379
Server side validation for required fields
<p>I am having an issue with the requiredfieldvalidator control not working on an ASP.net page. I have completed the attributes of that field properly, but when I test it, the postback is allowed to happen even if the field in question is blank. </p> <p>So I want to do server side validation instead. What is the be...
c# asp.net
[0, 9]
3,012,104
3,012,105
HttpWebRequest is very slow
<p>hi all am requesting a handler file from another handler file that returns an image,when i request my HttpWebRequest taking more time to get the response...here is my code please help.</p> <pre><code>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); HttpCookie cookie = context.Request.Cookies["ASP.N...
c# asp.net
[0, 9]
3,182,853
3,182,854
How can I match password confirmation by Jquery
<p>I have a jqury code which going to match passwords from text fields which taken from <a href="http://code.google.com/p/rcciit-wp-techtrix-event-management-plugin/source/browse/trunk/js/jquery.validationEngine-en.js?spec=svn5&amp;r=5" rel="nofollow">here</a> .But its not completed.Can any one help me with how to mat...
javascript jquery
[3, 5]
1,323,343
1,323,344
Consultation about copy and paste from my program
<p>i have this code for copy text from my program</p> <pre><code>final ClipboardManager clipBoard = (ClipboardManager)getSystemService(CLIPBOARD_SERVICE); </code></pre> <p>but when i go out from my program and try to paste to another program - its not working</p> <p>what can be the problem ?</p>
java android
[1, 4]
4,018,444
4,018,445
How to put image in HashMap by giving a specific url
<pre><code>private static final String picpic = "picpic"; private ArrayList &lt; HashMap &lt; String, Object&gt;&gt; myBooks; myBooks = new ArrayList&lt;HashMap&lt;String,Object&gt;&gt;(); HashMap &lt; String, Object&gt; hm; hm = new HashMap&lt;String, Object&gt;(); drawable=LoadImage("http://www.wauhaha.com/smar...
java android
[1, 4]
4,114,310
4,114,311
Android: How can I get ip address from an android app?
<p>Is it possible to get the ip address from android app?</p>
java android
[1, 4]
5,228,663
5,228,664
How to set the value to a variable in the script(.js) file from the script in aspx file
<p>Im having a variable 'multi' , the same name i used within the js file. I need to set a value to the variable within my aspx page and pass it on to the javascript file. Couldnt find any help. </p> <p>aspx script code</p> <p></p> <pre><code> var itemdata = []; var multi; //var plot; $(document).read...
javascript jquery asp.net
[3, 5, 9]
3,897,859
3,897,860
Add Dynamic CheckBox Handle CheckedChanged Event ASP.NET
<p>plz help me the event is not firing &amp; how can i find which check box control fired event</p> <pre><code>chkList1 = new CheckBox(); chkList1.Text = row["subj_nme"].ToString(); chkList1.ID = row["subjid"].ToString(); chkList1.Chec...
c# asp.net
[0, 9]
5,561,566
5,561,567
Linking android XML to a Java class?
<p>I have "main_activity.xml" which is linked to MainActivity.java class, but I wish to link my "login_activity.xml" to "Login.java" class.</p> <ul> <li>How to link each android XML to separate Java class ?</li> </ul>
java android
[1, 4]
4,038,871
4,038,872
SimpleCursorAdapter is undefined?
<p>Below is the sample of code giving me grief. The simpleCursorAdapter works if I put it outside of the textchangedlistener but not in I keep getting the message</p> <blockquote> <p>The constructor SimpleCursorAdapter(new TextWatcher(){}, int, Cursor, String, int, null) is undefined</p> </blockquote> <pre><code>tx...
java android
[1, 4]
1,279,058
1,279,059
cancel server side submit funcion in asp.net with javascript
<p>I also made this question before but the problems remains here:</p> <p>I have this code:</p> <pre><code>&lt;asp:Button ID="CrearCuenta" UseSubmitBehavior="false" OnClientClick="return validate()" runat="server" Text="Ready" /&gt; </code></pre> <p>The javascript code:</p> <pre><code>function validate() { return f...
c# javascript asp.net
[0, 3, 9]
1,925,440
1,925,441
Can I display my android emulator in a web page or java application?
<p>I need to create a java application that contain two blocks, left and right. In the right block,Can I display an android emulator ?</p> <p>Thanks in advance</p>
java android
[1, 4]
5,379,769
5,379,770
PHP session variable is retrieved in Javascript but becomes undefined
<p>I have two session variables that I retrieve in a Javascript code. This is how the code is set up:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt;&lt;?php echo $_SESSION['userid'] ?&gt;&lt;/p&gt; --&gt; This works and value is shown &lt;p&gt;&lt;?php echo $_...
php javascript
[2, 3]
5,134,562
5,134,563
What can I use to retreive the area that a user marks on an image in my app?
<p>My app takes a picture of the user and I want the user to mark where their eyes, mouth, and ears are on the image. The ears are just one point but the mouth is a selection of the whole mouth area</p> <p>I have got the taking a picture part done but how can I go on about allowing the user to highlight he mouth area ...
java android
[1, 4]
2,418,779
2,418,780
Is there any benefit to defining a utility function directly on the jQuery object?
<p>Are there any specific benefits derived from defining a utility function directly on the jQuery object:</p> <p>For instance, given the following two constructs:</p> <pre><code>$.someUtility = function(){ //do some something with jQuery } var someUtility = function(){ //do some something with jQuery } </cod...
javascript jquery
[3, 5]
1,975,670
1,975,671
Why can't I make a proper SQL/PHP query using javascript?
<p>I am trying to make a query to an SQL database and I can't figure out why my code won't work. When I call the javascript function:</p> <pre><code>function calledfunction(){ var date = new Date(document.getElementById("datetime1").value); var dateformat = "'"+date.getFullYear() + "-" + (date.getMonth()+1) + "-" + da...
php javascript
[2, 3]
5,335,344
5,335,345
The right way to use php in jquery function
<p>Do I use the php in jquery function the right way? Because for editing I use NuSphere PhpED and it says "unexpected ','" but if I run the page its working, I don't get any error.</p> <pre><code>&lt;?php $luna = $month; $an = $year; ?&gt; &lt;script&gt; $(function() { get_data(&lt;?php echo "$luna"; ?&gt;, &lt;?...
php jquery
[2, 5]
1,912,251
1,912,252
Group (average) values from two arrays
<p>I have 2 arrays with the following data:</p> <pre><code>Array1 = [A, A, A, A, B, B, B, C, C, C, C, C]; Array2 = [4, 2, 4, 6, 3, 9, 6, 5, 4, 6, 2, 8]; </code></pre> <p>I want to create 2 new arrays from these values:</p> <pre><code>Array3 = [A, B, C]; Array4 = [4, 6, 5]; </code></pre> <p>The values in Arr...
javascript jquery
[3, 5]
1,112,317
1,112,318
Key code for "mouse key up" and "mouse key down"
<p>How to access the key code for "mouse key up" in JavaScript?<br> If I press the left mouse button then key code is one.</p> <p>I want to fire some code when <code>onmousekeyup</code>. But whenever the mouse gets key up, this code does not fire. So I want to try using keycode for mouse key up when key is released (k...
javascript asp.net
[3, 9]
5,973,744
5,973,745
jQuery, find li class name (inside ul)
<p>I have ul with a number of li inside. All li have an id "#category" but different classes (like ".tools", ".milk", ".apple").</p> <p>Using jQuery. I do : </p> <pre><code>$("li#category").click(function(){ some_other_thing ( .... )}); </code></pre> <p>now i have to put a li's class "name" — (a string indeed) insid...
javascript jquery
[3, 5]
801,456
801,457
How do I run a webmethod with jQuery Asp.Net
<p><strong>How do I run a webmethod with jQuery. Asp.Net the method load it the GridView</strong></p> <pre><code>[WebMethod] public void GetGrid() { DataProviderDataContext db = new DataProviderDataContext(); GridView1.DataSource = db.Employees.ToList(); GridView1.Da...
asp.net jquery
[9, 5]
4,789,471
4,789,472
Equal spaced, full width menu?
<p>I have a menu with four options which I need to sit below an image like so:</p> <pre><code>---------------------------------------------------------------- | This is an image | ---------------------------------------------------------------- Menu 1 Menu 2 ...
javascript jquery
[3, 5]
4,406,419
4,406,420
how to show confirmation alert with three buttons 'Yes' 'No' and 'Cancel' as it shows in MS Word
<p>I have showing a confirmation alert box through my javascript as following</p> <pre><code>function checked() { if (hdnval.toLowerCase() != textbox1.toLowerCase()) { var save = window.confirm('valid') if (save == true) { return true; } else { return false; } } } </code></pre> <p>...
javascript asp.net
[3, 9]
1,325,143
1,325,144
javascript issue in sharepoint
<p>I am having issues making a <code>javascript</code> work. Basically i just use this script for different web parts which have the <code>.q1table</code> class to insert some other classes.</p> <p>I am getting an error uncaught type error Property $ of object[object window] is not a function.This works fine when the ...
javascript jquery
[3, 5]
4,391,569
4,391,570
How to check for correct url
<p>I am working on a current web app and we would like to determine if the page being requested is correct or not, we do this in a <code>Global.asax</code> on the <code>Application_BeginRequest</code> method, we check for the urls such as if someone enters <code>http://mywebtest/badurl</code> then we send them to a cus...
c# asp.net
[0, 9]
5,063,504
5,063,505
Android Phone number Calling Function in an Activity
<p>I am developing Android Application having Contact Us Page having Phone Number. I had given the Phone number in xml file as below:</p> <pre><code>&lt;TextView android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceSmall" android:text="1-869-270-9099" android:textSize="11sp" and...
java android
[1, 4]
2,224,675
2,224,676
appending info to a text file
<p>I have a web site with which I am adding records to a database and The info I am also writing to a log file which is part of the website. The info is written to the file fine...the only question I do have is how to add information with each input into the database. As it is at the moment the information is put int t...
c# asp.net
[0, 9]
4,848,741
4,848,742
Unable to find cookie that was set a request ago
<p>I am trying to develop a simple single sign on solution using ashx file for setting/deleting cookies. .Net 4.0, C#. I am making a web request (from sitea.com/) to an ashx resource (on a different domain siteb.com/file.ashx) to set a cookie, then I make another request (from sitec.com/) to the same resource (at siteb...
c# asp.net
[0, 9]
3,871,502
3,871,503
Android Button Doesn't Respond After Animation
<p>I have a basic animation of a button after it is pressed currently in my application. After the button finishes animating, I can no longer click on it. It doesn't even press with an orange highlight.</p> <p>Any help?</p> <p>Here's my code:</p> <pre><code>public void onCreate(Bundle savedInstanceState) { super.onC...
java android
[1, 4]
1,024,317
1,024,318
How can I fire an asp.net button event via jquery or java script?
<p>I want when I click on "Doit" string it fire my asp.net button .</p> <p>This is my "DoIt"</p> <pre><code>&lt;a id="" href="#""&gt;Doit&lt;/a&gt; </code></pre> <p>And my asp.net button event is :</p> <pre><code>protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("rightclick.aspx"); } ...
c# jquery
[0, 5]
4,357,500
4,357,501
References Asp.net JS files
<p>I have a notepad filled with references to over 1k .js files. I would like for my page to check this file and add each as a reference eg: </p> <pre><code>&lt;script type="text/javascript" src="####.js"&gt;&lt;/script&gt; </code></pre> <p>any idea or examples on this. Thanks</p>
javascript asp.net
[3, 9]
2,154,450
2,154,451
Javascript and Lightbox
<p>I want to add Lightbox to a image which is output by Javascript. The image link is built up dynamically so thats why I am doing it this way!</p> <p>I have looked on S.O. but no luck with what is already there...</p> <p>The code currently is;</p> <pre><code>$("#imgMain img").attr("src","/_images/multi/"+productCod...
javascript jquery
[3, 5]
2,010,141
2,010,142
Get empty space in container
<p>How to get an empty (in example white) area in a container with Javascript? Is there a ready jQuery function or something equal?</p> <p><img src="http://i.stack.imgur.com/7uFo9.png" alt="screen"></p> <p>I need the width, height, left and top position of the 'empty' white area in Javascript.</p> <p><strong><a href...
javascript jquery
[3, 5]
3,702,243
3,702,244
Save Values of Dynamically created TextBoxes
<p>guys i am creating dynamic TextBoxes everytime a button is clicked. but once i have as many text boxes as i want.. i want to save these value Database Table.. Please guide how to save it into DB </p> <pre><code>public void addmoreCustom_Click(object sender, EventArgs e) { if (ViewState["addmoreEdu"] != null...
c# asp.net
[0, 9]
3,598,410
3,598,411
redirect a page automatically
<p>how to automatically redirect an ASP.NET page to another after 1 minute using c# code.</p>
c# asp.net
[0, 9]
3,677,186
3,677,187
Load sharedpreferences not giving me a value
<p>Here is my code.</p> <pre><code> SharedPreferences sharedPreferences = getSharedPreferences(values, MODE_PRIVATE); str1 = sharedPreferences.getString("lu121", "test"); str2 = sharedPreferences.getString("lp5151", "test"); et_username.setText(str1); et_pass.setText(str2); </code></...
java android
[1, 4]
2,871,744
2,871,745
How to fetch key based on values from app.config file?
<p>I have an app.config file like this:-</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;appSettings&gt; &lt;add key="botLogs" value="d:\TFS Projects-BotLogs/"/&gt; &lt;add key="botfolder" value="C:\BOTSCONFIG"/&gt; &lt;/appSettings&gt; &lt;connectionStrings&gt; ...
c# asp.net
[0, 9]
4,256,450
4,256,451
Sending lat and long to python server
<p>What if i want to send this data to my server Python After i already open a connection and i want to send tis string , so here is my code , how to be able to send this </p> <pre><code>String Text = "My current location is: " + "Latitud =" + loc.getLatitude()+ "Longitud =" +loc.getLongitude() ; <...
android python
[4, 7]
5,011,278
5,011,279
Static Variable interference ASP.net?
<p>I am quite new to Web Development and ASP.net but i was wondering the following question:</p> <p>If I declare a static variable on a web page and several users access the same page simultaneously. Is this static variable unique to each user or will it interfere with different users?</p> <p>Thanks</p>
c# asp.net
[0, 9]
1,757,894
1,757,895
Alert user before session expires, option to renew session
<p>I am setting session time in web config. I also have a javascript for detecting session timeout and letting the user know.</p> <p>I would like to be able to alert the user 30 sec or a min or more before session timeout with a popup and to give them the opportunity to extend it or cancel and just let it timeout. Can...
c# javascript asp.net
[0, 3, 9]
191,228
191,229
Javascript, passing a variable into a click event?
<p>I really can't figure out how I would do this. It's more of a concept question than a code question so I'll just post an example:</p> <pre><code>object = $('#div'); function doSomething(object) { //iterates through a list and creates a UL with items in corresponding to that list. $(body).append("&lt;li id=...
javascript jquery
[3, 5]
872,295
872,296
changing links doesnt work with jquery
<p>I have got this link:</p> <pre><code>&lt;a href="http://iml.com/wmaster.ashx?WID=124904080515&amp;amp;cbname=liveealve&amp;amp;LinkID=701&amp;amp;queryid=138&amp;amp;from=freevideo6&amp;amp;promocode=BETLNK&amp;amp;FRefID=-1&amp;amp;FRefP=none&amp;amp;FRefQS=none" rel="nofollow" title="Visit imLive.com" target="_bl...
javascript jquery
[3, 5]
135,650
135,651
Prevent bubbling without Jquery
<p>When I move mouse over the container panel, the child panel is displayed but as soon as i move mouse over the child panel, the mouseout event is triggered and panel get hidden.</p> <p>This is simplified version of my code because panels are located inside gridview and therefore i can't use document.getElementById("...
asp.net javascript
[9, 3]
1,602,271
1,602,272
What is the difference between loading JS in FF & IE
<p>I am currently working on a heavy web page. This page contains 5 tabs &amp; each tab contains a gridview &amp; multiple server controls. When i work in Edit mode I fetch data from database for all tabs using Ajax request &amp; fill the controls using Jquery. This works fine in mozilla but IE 6 takes time to fill the...
jquery asp.net
[5, 9]
5,359,103
5,359,104
Deserializing JSON as a Generic List
<p>I have a filter string as shown in the below format:</p> <pre><code>{"groupOp":"AND","rules":[{"field":"FName","op":"bw","data":"te"}]} </code></pre> <p>I need to deserialize this as a Generic list of items.</p> <p>Can anyone guide me on how to do this?</p>
javascript asp.net
[3, 9]
4,696,773
4,696,774
is there a better way to do this without reflection?
<p>I need to set all of the properties of a class using the same function. Currently I am using reflection to get all of the properties and looping through to set their values. I know all of the properties, there is nothing dynamic happening.</p> <p>Here is my code I am currently running in my constructor:</p> <pre...
c# asp.net
[0, 9]
663,220
663,221
show me the latitude and longtitude of that address
<p>I want to implement the google geocoder in my website, so that if I give the address of any location it gives me the latitude and longitude of that address. Are there any tutorials?</p> <p>Just like this website: <a href="http://itouchmap.com/latlong.html" rel="nofollow">http://itouchmap.com/latlong.html</a></p> <...
php javascript
[2, 3]
1,302,892
1,302,893
How can I programmatically run the ASP.Net Development Server using C#?
<p>I have ASP.NET web pages for which I want to build automated tests (using WatiN &amp; MBUnit). How do I start the ASP.Net Development Server from my code? I do not want to use IIS.</p>
c# asp.net
[0, 9]
3,597,995
3,597,996
PHP / mySQL output via javascript and dropdown
<p>Here is what I have in php:</p> <pre><code>[Color, Size, Status] Red, Small, 1 Red, Large, 0 Blue, Small, 1 Blue, Large, 1 </code></pre> <p>I can get that output in php just fine like mentioned above. What I want to do is get this structured properly for dropdown in html and javascript/jquery (please continue read...
php javascript jquery
[2, 3, 5]
2,052,204
2,052,205
Handle &mdash; while import csv file using C#
<p>I had written code (in C#) about to import csv file using <a href="http://www.filehelpers.com/" rel="nofollow">filehelper</a>. I am facing one issue that if file contain any <a href="http://www.utexas.edu/learn/html/spchar.html" rel="nofollow">&amp;mdash (—)</a> than it would replace by ? character (not exact ? inst...
c# asp.net
[0, 9]
929,072
929,073
PHP "Cancel" line of code
<p>I am using phpseclib to ssh to my server and run a python script. The python script is an infinite loop, so it runs until you stop it. When I execute python script.py via ssh with phpseclib, it works, but the page just loads for ever. It does this because phpseclib does not think it is "done" running the line of cod...
php python
[2, 7]
1,735,555
1,735,556
Mmimic C++ template functions in Java
<p>In C++ I can write a template function that takes the data type on which to act as an argument, so that a single function can be reused for more than on data type. Is there a provision for doing a similar thing in Java?</p> <p>Thanks,<br> Roger</p>
java c++
[1, 6]
792,158
792,159
Clear dynamic UserControl container
<p>How can I make _dynamicMaterials empty or clear the viewstate?</p> <p>When the user clicks on submit I want to reset the container so all textboxes are empty.</p> <p>Any ideas how I can work this out? </p> <pre><code> private materials[] _dynamicMaterials; // Container for dynamically added UserControl "m...
c# asp.net
[0, 9]
162,963
162,964
Static variable does not get updated in Java
<p>I am seeing a bahavior that seems absurd. In my android app I have a static variable that is updated on the occurence of an event periodically. The problem is I initialize the variable and then update it in a thread on the event. Any changes to the variable I make in the thread are not getting reflected in the subse...
java android
[1, 4]
5,848,988
5,848,989
Next question which depends on the button you press
<p>I'm a complete newb writing out a small little script in which the third question depends on what button you press on the second question, however I am completely lost as to how I should proceed :/</p> <p><a href="http://jsfiddle.net/pufamuf/uSuqB/6/" rel="nofollow">http://jsfiddle.net/pufamuf/uSuqB/6/</a></p> <p>...
javascript jquery
[3, 5]
1,935,173
1,935,174
changing value in javascript object iterated using jquery
<p>OK So I have this piece of code :</p> <pre><code>var el = {a:"b","isSel":true}; $.each(el,function(k,v){ if(k=="isSel"){ v=false } }) console.log(el); </code></pre> <p>but that doesn't change isSel to false... any clues?</p>
javascript jquery
[3, 5]
403,361
403,362
How to catch link or button click?
<p>How do I catch all links and button pressed? Without having to add my JavaScript method to every link and button?</p> <p>Anytime my browser wanrs to redirect to page1.aspx stop it from redirecting and have mt browser click a link found on the page to page2.aspx instead!</p>
c# asp.net javascript
[0, 9, 3]
6,006,713
6,006,714
Adding controls to a table control dynamically
<p>I have one table control "table1"</p> <p>And added controls to it in click event of one button as :</p> <pre><code>protected void Button2_Click(object sender, EventArgs e) { TableRow row; TableCell cell; for (int i = 0; i &lt; 3; ++i) { TextBox txt = new TextBox(); txt.Text = i.ToSt...
c# asp.net
[0, 9]
4,557,154
4,557,155
Jquery help needed- infinite loop?
<p>i have a problem with this code:</p> <pre><code> var par = []; $('a[name]').each(function() { if (($(this).attr('name')).indexOf("searchword") == -1) { par.push($(this).attr('name')); $('.content').empty(); for (var i = 0; i &lt; par.length; i++) { ...
javascript jquery
[3, 5]
1,756,723
1,756,724
Updating page with database information
<p>I am trying to make a refresh algorithm for my site but dont want to have a bunch of <code>$.post()</code> scripts being sent to the server checking for updates. So I was wondering if there were any good ways of sending updates to the page that is being viewed when something on a database is changed. </p>
php jquery
[2, 5]
4,931,178
4,931,179
Explanation needed about linq queries
<pre><code>private bedrijf_modelDataContext dc = new bedrijf_modelDataContext(); public IList&lt;Afdeling&gt; selectAll() { var result = from a in dc.Afdelings select a; return result.ToList(); } </code></pre> <p>This code is supposed to return all the records from the Afdeling-table. This code works...
c# asp.net
[0, 9]
292,801
292,802
click function triggering function before event finishes
<p>I've built a dropdown menu that uses a slideUp event if the menu itself or anywhere in the body is clicked:</p> <pre><code>$('html, .currentPage').click(function() { $('.currentMenu').slideUp('fast', function() { myFunction(); }); }); </code></pre> <p>I also have a function inside the slideUp event callback. ...
javascript jquery
[3, 5]
1,598,323
1,598,324
Adding callback functionality to my simple javascript function
<p>I am not writing a plugin. I am just looking for a simple clean way to let myself know when a certain function has finished executing ajax calls or whatever.</p> <p>So I have this:</p> <pre><code>function doSomething() { ... getCauses("", query, function () { alert('test'); }); ... } function getCa...
javascript jquery
[3, 5]
2,039,135
2,039,136
The "not:()" selector isn't working with ".live()" when event binding
<p>When I added <code>live()</code> to some mousedowns, my <code>not:</code> conditional stopped working.</p> <pre><code> $("body :not(" + _self.somevar + ")").live('mousedown', function(event){ event.stopPropagation(); // some more code } </code></pre> <p>When it wasn't <code>live()</code> it worked....
javascript jquery
[3, 5]
2,919,240
2,919,241
Creating a Print Link
<p>I want to create a Print Button that will print a printer friendly version of the currently viewed webpage when selected. How should I go about this? I would like to show a print preview of the document in an ajax / jQuery popup window as well. Users can zoom in, zoom out, rotate the content as well. </p>
javascript jquery
[3, 5]
1,019,489
1,019,490
Passing data through a hyperlink WITHOUT include the data in the URL
<p>I know how to pass data through a URL and how to receive the data using <code>$_GET</code> but I don't want the variables to show up in the URL.</p>
php javascript
[2, 3]
4,001,619
4,001,620
Patterns for avoiding jQuery silent fails
<p>Is there any good practice to avoid your jQuery code silently fail? </p> <p>For example: </p> <pre><code>$('.this #is:my(complexSelector)').doSomething(); </code></pre> <p>I know that every time this line get executed, the selector is intended to match at least one element, or certain amount of elements. Is there...
javascript jquery
[3, 5]
3,216,498
3,216,499
WordPress Jquery Fade in, Fade out effect
<p>I'm following <a href="http://hv-designs.co.uk/2010/01/13/learn-how-to-add-a-jquery-fade-in-and-out-effect/" rel="nofollow">a tutorial</a>.</p> <p>I've included the hover.js with the following code:</p> <pre><code>$(function() { // OPACITY OF BUTTON SET TO 50% $(".imgopacity").css("opacity","0.5"); //...
jquery javascript
[5, 3]
5,119,306
5,119,307
load function of jquery doesnt seem to work
<pre><code>$toolTip_inner.load('ajax/fetchUser_data.php',{ id: $tooltipText }); </code></pre> <p>I am trying to load the content of the php file to <code>toolTip_inner</code> and passing the parameters..</p> <p>The file fetchUser_data.php executes a mysql statement and retrieves, but before that it goes to this state...
php jquery
[2, 5]
4,727,828
4,727,829
I have two javascript block in the page , one is adding dynamicllay which is , providing all images. should add above existing javascript on page
<p>i am using following code to add javascript dynamically </p> <pre><code> HtmlGenericControl scriptTagLinks = new HtmlGenericControl("script"); scriptTagLinks.Attributes["type"] = "text/javascript"; var scrip = "var aImgs=[" + appendString.ToString().TrimEnd(new char[] { ',' }) + "]"; scriptTagLinks.InnerHtml = ...
c# javascript asp.net
[0, 3, 9]
2,620,580
2,620,581
how can we pass the variable into the function via url?
<p>I have designed an ASP.NET page which create graphs.</p> <p>I have written a class file (which contain a function to render the graph, a function for entering data named <code>insertdata(string[] s,double[] d)</code>) in App_code folder.</p> <p>I pass the value into the insertdata during <code>page_load</code> eve...
c# asp.net
[0, 9]
2,444,079
2,444,080
Load records from database with dropdown selection without submit button
<p>I've got two submit buttons in my form: </p> <ul> <li>Button to submit/save the form and insert the input fields to the database.</li> <li>Button to load the records into the form that are already in the database, based on a drop-down selection. For example to change the existing records in the database.</li> </ul>...
php javascript jquery
[2, 3, 5]
3,436,463
3,436,464
How to reduce gap between 2 tables in Javascript
<p>I am using Javascript for my ascx control. I have 2 tables, one below the other. My code written is like </p> <pre><code> &lt;/tr&gt; &lt;/table&gt; &lt;table style="border-spacing: 15px;"&gt; </code></pre> <p>But when i execute, it shows almost 2 inch space between them. Can some help me out?</p> <p>Thank ...
javascript asp.net
[3, 9]
172,364
172,365
how to get photo from contacts?
<p>I want to get photo from contacts, if some contacts don't have photo to return default photo(just silhouette), how can I do that? Thanks in advance, Wolf.</p>
java android
[1, 4]
4,279,029
4,279,030
How to extend jQuery's ajax
<p>This is rather a syntax question I am going to explain it jQuery's ajax functionality.</p> <p>Let's say I want to control <code>dataType</code> of all ajax request according to <code>url</code>. For example url's with parameter <code>&amp;parseJSON=true</code> should have a dataType of <code>'JSON'</code> automatic...
javascript jquery
[3, 5]
3,350,414
3,350,415
Tron game keyevent issue
<p>I want to make a 'Tron-game like' little game, heres the code, i already made: <a href="http://jsfiddle.net/Jim_Y/KQW5w/2/" rel="nofollow">http://jsfiddle.net/Jim_Y/KQW5w/2/</a> code snippet:</p> <pre><code>$(document).keydown(function (e) { if (e.keyCode == 37) { // leftArrowPressed ...
javascript jquery
[3, 5]
3,988,526
3,988,527
Get attr form <a href>
<p>ive got a problem with getting attr from <code>&lt;a href&gt;</code>.</p> <p>Got something likte this</p> <pre><code>&lt;a href="#callback" realurl="callback.aspx"&gt;Callback&lt;/a&gt; </code></pre> <p>And jQuery</p> <pre><code>$('#callback').bind('pageAnimationEnd', function (e, info) { var re...
javascript jquery asp.net
[3, 5, 9]
5,454,826
5,454,827
How to hide div that is referenced by an anchor href on click with javascript (jQuery)
<p>I have several blocks of text separated into their own divs. I also have several links in a navigation bar that reference these divs with an anchor link. On click, I'd like to hide all other divs except the one referenced by the clicked link. I have:</p> <pre><code>&lt;div id="navbar"&gt; &lt;ul&gt; &lt;li&gt;...
javascript jquery
[3, 5]
3,620,980
3,620,981
Java/Android : passing accelerometer value from onSensorChanged method to onCreateSetContentView()
<p>I'm new on Java and Android programming language and this is the first platform that I studied. I want to ask, how can I access the event.values[1] in this method?</p> <pre><code>public void onSensorChanged(SensorEvent event) {synchronized (this){ if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER) ...
java android
[1, 4]
2,384,439
2,384,440
jQuery validation is loaded but doesnt display error messages
<p>I have a simple site, which has a form and an inputbox. I want to validate weather or not this input box is filled, with jQuery validation. The validation plugin is loaded, but i dont get any error messages.</p> <p>Here is my code:</p> <p><a href="http://jsfiddle.net/euwPz/" rel="nofollow">http://jsfiddle.net/euwP...
javascript jquery
[3, 5]
1,391,208
1,391,209
Which event in a PageIndicator can I use to get a click on the current tab?
<p>I have to catch the tab click event even when the current tab is the same clicked tab. I tried the setOnPageChangeListener but none of the events are dispatched. Also onClick and onTouch for the indicator don't dispatch. How can I do that?</p> <p>I'm using TabPageINdicator from Jake Wharton</p> <p>Thanks</p>
java android
[1, 4]
358,532
358,533
C# equivalent of fread
<p>I am in the process of converting some C++ code to C#, I am trying to figure out how I could write out and following C++ code in my C# app and have it do the same thing:</p> <pre><code>fread(&amp;Start, 1, 4, ReadMunge); //Read File position </code></pre> <p>I have tried multiple ways such as using FileStream:</p>...
c# c++
[0, 6]
5,654,172
5,654,173
Is there Android Intent concept in iPhone SDK
<p>Just switching from Android to iPhone. In Android I can make several apps and use a tabView to call each app as intent.</p> <p>In iPhone, I can make several apps. I need a tab to call each apps or app views. Is there similar concept as intent in iPhone? Just switched to iPhone, copying all the other projects into t...
iphone android
[8, 4]
4,932,967
4,932,968
ASP.NET Popup and return value back to parent screen
<p>I have an ASP.NET Screen and if someone clicks a button to open a popup to select a value, i want the popup to return that value to a specfic text box behind.</p> <p>How can this be done? It is on the same domain. Would ViewState work?</p>
c# asp.net
[0, 9]
4,989,172
4,989,173
Prevent ddl from triggering unsaved changes warning while still executing OnSelectedIndexChanged event
<p>I'm using this jquery code to detect unsaved changes and warn users before they navigate away.</p> <pre><code> var _changesMade = false; $(document).ready(function () { $('form').bind($.browser.msie ? 'propertychange' : 'change', function () { _changesMade = true; }); $(...
javascript jquery asp.net
[3, 5, 9]
1,223,263
1,223,264
og:description 'content' unterminated string literal
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5296402/unterminated-string-literal">unterminated string literal</a> </p> </blockquote> <p>I have a problem setting og:description with followed function...</p> <pre><code>function createFacebookMeta($title, $f...
php javascript jquery
[2, 3, 5]
3,971,361
3,971,362
Jquery - keeping it DRY - dynamically named functions?
<p>So I think the best way for me to keep my code is to call a function with a dynamic name. For example, I might need to call "productTemplate", "userTemplate", "orderTemplate", etc...</p> <p>Is this possible with javascript/jquery? Also, is it a performance hit or not so much?</p>
javascript jquery
[3, 5]
5,751,908
5,751,909
how to add pdf file as an attachment to an email
<p>I am dynamically storing each person report as <code>pdf</code> and should send it to them <code>attached with email</code>. How do i send it as an attachment to an email. Here is my code.</p> <pre><code>public void Esendmail(string EmailFrom, string EmailTo, string EmailBody, string EmailSubject, string EmailCC) {...
c# asp.net
[0, 9]
1,287,880
1,287,881
Replace text inside an element
<p>I'm needing to replace a portion of text inside arbitrary elements. I won't know anything about the structure of the element, including about any child elements it may have, but I have to assume there may be child elements with attached bindings. An example might be:</p> <pre><code>&lt;div id="checkit"&gt; Lorem ...
javascript jquery
[3, 5]
476,105
476,106
What is the best way to accumulate items' IDs before sending them to the server?
<p>I have a ListView its item is selectable. I want after select some items (Client side using JQuery) to send their IDs the selected elements to the server for saving them.</p> <p>What is the best way to accumulate them in the client side?</p> <p>Is it using a Hidden field with a seperator between IDs ?</p> <p>Or i...
javascript jquery
[3, 5]
4,843,756
4,843,757
What's the console.log() of java?
<p>I'm working on building an Android app and I'm wondering what the best approach is to debugging like that of console.log in javascript</p>
java android
[1, 4]
2,449,311
2,449,312
an android app code
<p>string comparison not working.it is going to the next activity even if password does not match neeed help.Code is pasted below</p> <pre><code>if(m.equals(w)) { Toast.makeText(getApplication(), "done", Toast.LENGTH_SHORT).show(); Intent intent = new Intent(); intent.setClass(v.getContext(),Mysubactivity....
java android
[1, 4]
5,039,534
5,039,535
jQuery, change div height to automatically fill out remainder of screen if content isn't already larger
<p>My site is structured roughly like this:</p> <pre><code>----------------- header ----------------- | | side| main | | ----------------- footer </code></pre> <p>I'm trying to get my "main" div to take all of the remaining height on the screen (and resize d...
javascript jquery
[3, 5]
3,189,377
3,189,378
jQuery fadeIn and fadeOut divs
<p>I have a working version of my code here: <a href="http://jsfiddle.net/5Hqs3/24/" rel="nofollow">http://jsfiddle.net/5Hqs3/24/</a></p> <p>As you can see, there is a default message that displays upon arrival. After a few moments, the cycle begins and "Billing Reminders" becomes bold and a billing message is display...
javascript jquery
[3, 5]
5,290,315
5,290,316
JQUERY won't work on local machine
<p>I'm trying JQUERY on my machine, but for some reason, nothing seems to work. Here's the test file:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/css" src="jquery.js"&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; $("p").mouseover(function () { $(this).css("color","black"); ...
javascript jquery
[3, 5]
4,552,635
4,552,636
what is wrong with this jquery?
<p>I cant seem to figure this out. Something within this jquery code is breaking my site:</p> <pre><code> $('.menu li').click(function() { nextslide = $(this).attr('id').replace('m_', ''); if ($('#m_till').hasClass('active')) currentslide = 'till'; else if ($('#m_receipts').hasC...
javascript jquery
[3, 5]
5,918,659
5,918,660
Thread in javascript
<p>I have function <code>GoToCell(number);</code> This feature renders the motion of the player. I have such a situation occurs: the person calls this function two times before over the last execution of the call. and a call is dropped and begins to run from 2 call. I need to call two did not work until an end is not h...
javascript jquery
[3, 5]
5,058,973
5,058,974
check if div contain a div based on id
<p>i have a li tag which was dynamically added. To that based on some condition i added a div with 4 child div to it. After adding all these dynamically my html design was like this</p> <p><code></p> <pre><code>&lt;ul&gt; &lt;li id="liTab1"&gt; &lt;div id="TaskDetails"&gt; &lt;div id="div1"&gt;...
jquery asp.net
[5, 9]
5,024,127
5,024,128
jQuery pop-up menu on Internet Explorer
<p>Here - <a href="http://desandr.ci-team.ru" rel="nofollow">http://desandr.ci-team.ru</a> (mouse click on "КАТАЛОГ")</p> <p>On FF and Chromium works fine - on "mouse in" under element shows menu. On internet explorer 8 - nothing. </p> <p>What's this, and how i can fix that?</p>
javascript jquery
[3, 5]
5,751,035
5,751,036
jQuery and Unicode characters
<p>I am calling a .txt file from a jquery ajax call. It has some special characters like <code>±</code>. This <code>±</code> is a delimiter for a set of array; data I want to split out and push into a JavaScript array.</p> <p>It is not treated as <code>±</code> symbol when interpreted like this.</p> <p>How do I get t...
javascript jquery
[3, 5]