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
2,285,180
2,285,181
jquery select all rows not containing specific text
<p>I would like to use jQuery to select all rows in a table that don't have a <code>td</code> containing certain text.</p> <p>I can select the rows with this line:</p> <pre><code>var x = $('td:contains("text"):parent'); //muliple td's in each tr </code></pre> <p>How would I use the <code>:not</code> selector to inv...
javascript jquery
[3, 5]
2,605,368
2,605,369
Capture PHP echo in Javascript
<p>I currently need to use a similar piece of PHP code. Modifying this code is not an option.</p> <pre><code>&lt;? session_start(); include '../connection.inc'; $conn = new Connection(); echo "ID:" . $conn-&gt;generateID(); echo "\n"; ?&gt; </code></pre> <p>In connection.inc a connection to a database can be made ...
php javascript
[2, 3]
2,715,045
2,715,046
file upload from iPhone to PHP not worked
<p>When uploading a file from iPhone, my code produces the following error:</p> <blockquote> <p>Warning: move_uploaded_file() Unable to move '/tmp/phpUcqFVq' to '/var/www/ds1134/http.www.xxx.com/app/1316254141147.jpg' in /var/www/ds1134/https.www.xxx.com/user.php on line 2866</p> </blockquote> <p><code>$_FILES</cod...
php iphone
[2, 8]
5,928,481
5,928,482
How to know if return data is Json or String in jQuery and PHP?
<p>I want to check in client side(jQuery) whether return data from a PHP function is Json object or String to assign different function.</p>
php jquery
[2, 5]
4,794,868
4,794,869
Remember login information
<p>I would like to let the user register once and from that moment he won't need to login every time he open the app. How would I do that?should I save the login information on the device and load it every time he tries?is it safe?maybe save only his id and then load his info from the mysql db?</p> <p><strong>EDIT</st...
java android
[1, 4]
4,115,245
4,115,246
jQuery custom toggle function?
<p>I'm trying to make a custom jQuery toggle function. Right now, I have 2 separate functions, <code>lightsOn</code> and <code>lightsOff</code>. How can I combine these functions to make them toggle (so I can just link to one function)?</p> <pre><code>function lightsOn(){ $('#dim').fadeOut(500,function() { $("#dim...
javascript jquery
[3, 5]
365,796
365,797
Shortening javascript Jquery code
<p>I am wondering if there is a way to shorten the code below. I have shown the first 5 if statements. I will have a total of 10 when I am done.</p> <p>EDIT: FORGOT THE MOUSEMOVE PART</p> <pre><code>$("#bar").mousemove(function(e){ var vb = $(this); if(e.pageX &lt;=467 &amp;&amp; e.pageX &gt; 457){ ...
javascript jquery
[3, 5]
5,714,197
5,714,198
How can I get colors from an image?
<p>How can I get colors from an image? Like <a href="http://www.cssdrive.com/imagepalette/index.php" rel="nofollow">this site</a> does? I want to know how I can get that.</p>
php javascript jquery
[2, 3, 5]
920,206
920,207
ArrayList Find First and Last Element
<p>Good Evening,</p> <p>I have an ArrayList (instantiated as ld_data) and I iterate forward and back looking / displaying to the user the element data. In this process I need to know when I am at the first element and the last. Detecting when I am at the last element I do as such:</p> <pre><code>if((index + 1) &lt;= ...
java android
[1, 4]
1,151,229
1,151,230
Serialize inputs and select option
<p>I need to serialize inputs and selected option in table row(tr)<br/></p> <pre><code>&lt;form action='' METHOD='post' id='formConfirmOrder'&gt; &lt;table id='viewTableOrders'&gt; &lt;tr id='vagon1'&gt; &lt;td&gt; &lt;select name="order[1][rail_path]" title="1"&gt; &lt;option value="" selected="selected"&...
javascript jquery
[3, 5]
1,536,968
1,536,969
jQuery- Please explain to me Closure, variable context
<p>Ok so I don't understand why Firefox is saying that the $("#canvas")[0].getContext('2d'); is undefined. I put it out of the function so that all of the function can access it but here the ctx is still undefined.</p> <pre><code>(function($) { // Undefined var ctx = $('#canvas')[0].getContext("2d"); ...
javascript jquery
[3, 5]
5,178,133
5,178,134
ASP.NET: Global hook in Response?
<p>Is there any way to intercept all ASPX Page Responses? I'd like to intercept all the pages served and inject a small JavaScript at the end of each. </p>
asp.net javascript
[9, 3]
513,945
513,946
waypoints.js not working
<p>I'm using <a href="http://imakewebthings.github.com/jquery-waypoints/" rel="nofollow">waypoints.js</a> in a project to fire an event whenever a list element becomes visible. The only problem is, nothing seems to be happening - the waypoint.reached event does not seem to be firing.</p> <p>The file (waypoints.js) is ...
javascript jquery
[3, 5]
4,992,959
4,992,960
How to truncate links to certain length using any of the javascript or jquery
<p>I have checked the web thoroughly but haven't found anything that tell how to truncate links to certain length</p>
javascript jquery
[3, 5]
3,318,622
3,318,623
Why use jQuery(selector).get(0) instead of jQuery(selector)[0] to get DOM element?
<p>Using jQuery is there any benefit to using <code>$(selector).get(0)</code> over <code>$(selector)[0]</code> if I just want to get the first item in the jQuery array as a DOM element?</p> <p>HTML:</p> <pre><code>&lt;form id="myForm"&gt;&lt;/form&gt; </code></pre> <p>Javascript: </p> <pre><code>var selector = '#my...
javascript jquery
[3, 5]
5,417,352
5,417,353
jQuery or JS to show larger image
<p>I'm looking for a way too display images like google does. when someone hovers over an image, an larger view is shown I would like to know how I can achieve this.</p>
javascript jquery
[3, 5]
2,099,252
2,099,253
Insert value in relational table
<p>Tables:</p> <ol> <li>Board(BID(PK), BoardName, date, Status)</li> <li>Medium(MID(PK), MediumName, Date, status) </li> <li>BoardMedium(BMID(PK), BID(FK), MID(FK))</li> </ol> <p>above is my table structre .I wanted to Take Name Of Board and name of medium from dropdown(already filled) and insert into BoardMedium tab...
c# asp.net
[0, 9]
5,394,906
5,394,907
Using javascript loading indicator with UpdatePanel/UpdateProgress?
<p>Is is possible to combine for instance <a href="http://fgnass.github.com/spin.js/" rel="nofollow">spin.js</a> with an UpdatePanel?</p> <p>The normal way is to put a gif in an UpdateProgress, but can it be done with a javascript driven spinner/loading indicator instead?</p>
jquery asp.net
[5, 9]
3,013,578
3,013,579
jQuery $(this).attr("id") not working
<p>as the title says, I keep getting "undefined" when I try to get the id attribute of an element, basically what I want to do is replace an element with a input box when the value is "other".</p> <p>Here is the code:</p> <pre><code>function showHideOther(obj){ var sel = obj.options[obj.selectedIndex].value; ...
javascript jquery
[3, 5]
3,584,772
3,584,773
Java FileNotFoundException though the file exists.
<pre><code>package com.test.methods; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import android.R; import android.app.Activity; import android.app...
java android
[1, 4]
5,127,835
5,127,836
get php output from asp.net mvc
<p>good day </p> <p>we are working on mvc webpage using c# and we are on the making of a getting php output to display on a mvc webpage. we have 1 page created in php with the filename "hello.php" and it displays "hello word"</p> <p>we have place the code for calling the page in a usercontrol, but when place it in th...
php asp.net
[2, 9]
1,657,175
1,657,176
how to create my own color name
<p>Given the following statement:</p> <pre><code>$('#upLatImb').append('&lt;span style="color:#F62817; text-decoration:blink"&gt;' + sprintf("%11.0f",fCargoLatMom).replace(/ /g,'&amp;nbsp;') + '&lt;/span'); </code></pre> <p>I would like to do something like:</p> <pre><code>var problemcolor=0xF62817; $('#upLatImb').a...
javascript jquery
[3, 5]
3,629,663
3,629,664
Options doesn't show up when hardware menu is pressed
<p>I have 2 devices on which i am testing my application, a Galaxy Nexus and a Desire HD (which has hardware buttons)</p> <p>I am implementing the menu like this</p> <pre><code>@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.feedback: ...
java android
[1, 4]
770,000
770,001
C# Matrix to Android Matrix?
<p>I have some code here in C#</p> <pre><code> //take a world Vector2D and make it a relative Vector2D public Vector2D WorldToRelative(Vector2D world) { Matrix mat = new Matrix(); PointF[] Vectors = new PointF[1]; Vectors[0].X = world.X; Vectors[0].Y = world.Y; mat.R...
c# java android
[0, 1, 4]
530,186
530,187
Set GridView Value ItemStyle ForeColor based on Row/Column Value
<p>I have an ASP.net GridView that spits out three columns of data: (OrderNumber, OrderStatus, and OrderDate).</p> <p>I want to set the OrderStatus Field Value = RED IF the status = "Cancelled"</p> <p>I am not sure how to look at the value of that field for each row of the output and determine if the status is Cancel...
c# asp.net
[0, 9]
4,051,440
4,051,441
disable/enable outside asp button control on datalist checkbox checked javascript?
<p>I have a datalist inside that I am using a checkbox, I have 1 asp button and 2 image buttton which is outside of datalist something like this</p> <pre><code> &lt;asp:DataList ID="dlst1" runat="server" RepeatDirection="Horizontal" OnItemDataBound="dlst1_ItemDataBound" CaptionAlign="Left"&gt; &lt;ItemTemplate&gt; ...
c# javascript asp.net
[0, 3, 9]
2,420,924
2,420,925
How to apply tax, discount to invoice using jQuery
<p>How to apply Tax, discount to subtotal and calculate grand total??</p> <p>I have these paragraphs with the following ID's</p> <pre><code>&lt;p id="subtotal"&gt;15000&lt;/p&gt; &lt;p id="tax"&gt;10&lt;/p&gt; // In percentage &lt;p id="discount"&gt;1000&lt;/p&gt; &lt;p id="grandtotal"&gt;&lt;/p&gt; // Grandtotal wil...
javascript jquery
[3, 5]
2,846,736
2,846,737
need to understand eval in the code for ajax response
<p>The following code already exists in one of the javascript files i am working , may i know what does the following do</p> <p>Its jquery ajax , i saw the response result and its a json string which is manually created by the backend.</p> <p>I want to know what is eval doing here</p> <pre><code>success: function (r...
javascript jquery
[3, 5]
1,975,742
1,975,743
Expandable Listview Group Indicator half off screen?
<p>I am using a custom Group indicator as shown in the code below. Now if I leave the default I can use setBounds perfectly, but when using my custom image which is the same dimensions and setup as the same .9 patch file it is always half off screen. No matter what values I use for setBounds()</p> <pre><code> ...
java android
[1, 4]
1,731,749
1,731,750
TextChanged event only fires when I put my cursor in the textbox and change the text
<p>I have a TextChanged Even on a textbox and when I enter data into it, it updates another textbox which in turn is supposed to fire a TextChanged Event, but it is not firing until I put my cursor in the TextBox. Is there a solution to this?</p> <p>Code for updating the Extended Price when Qty Changes:</p> <pre><co...
c# asp.net
[0, 9]
4,514,262
4,514,263
Pass a javascript variable to a php function
<p>I would pass a variable javascript to a php function but it doesn't work.</p> <p>I call my javascript function in <code>&lt;a href='javascript:showDetail(5);'&gt;detail&lt;/a&gt;</code></p> <p>and this is the javascript function where call my <code>showInfo</code> php function</p> <pre><code>function showDetail...
php javascript
[2, 3]
635,115
635,116
tinycarousel scrolling doesn't work in a default android browser
<p>I implemented tinycarousel for my little project and it works almost in all browsers, but scrolling doesn't work in a default android browser and I dunno how to debug it or fix, could anyone help me, please. Maybe anyone have the same issue?</p> <p>Here is a simple code, which I use for this carousel:</p> <pre><co...
android jquery
[4, 5]
5,836,353
5,836,354
How to tell the difference between a page refresh and closing a page
<p>I have a web app game and while in the game I want to have it so if a user closes the page or their browser, it will automatically log them out. I tried using the onbeforeunload event attached to the window:</p> <pre><code>window.onbeforeunload = function() { // perform logout functions here } </code></pre> <p...
php javascript
[2, 3]
5,802,223
5,802,224
Open main-activity one time
<p>For my news-reader app, I made a widget. Using the widget it is possible to start the news-app. But if the user goes back to the home screen, with the back button, there still is an instance of the application. So if the user goes the applications-list (all the app's) and start the news-app again. There are 2 instan...
java android
[1, 4]
1,845,826
1,845,827
Canvas game not updating score?
<p>Hello I have made a snake game and all it good except I want to update a textfield if the score is higher than the previous score when they die, eventually I will make a top 10 list etc.</p> <p>the code I have is: </p> <pre><code>score2 = document.getElementsByName('updateScore').value; if(score &gt; score2) { doc...
javascript jquery
[3, 5]
2,507,956
2,507,957
Can't get two functions to initialize each other
<pre><code>function funcA() { var fB; function init() { fB = new funcB(false); //error here } init(); } function funcB(usefuncA) { var fA; function init() { if (usefuncA) fA = new funcA(); } init(); } $(function() { var test = new funcB(true); }); </code></pre> <p>I know how to get around this probl...
javascript jquery
[3, 5]
4,295,361
4,295,362
Converting String to Message Object Android Application
<p>How can I convert a string to an Object of Message Type?</p> <p>as shown below: </p> <pre><code>String str= "Hello"; Message msg ; // I want to assign str to msg.. </code></pre> <p>thanks .. </p>
java android
[1, 4]
3,864,661
3,864,662
Design question on web application
<p>I want to design a web application running inside tomcat to do interact with the backend database. What's the framework you could recommend to adopt? Spring MVC or Struts? Also, which works better with JQuery if needing Javascript in the frontend. Also, heard about Tapestry/ Webworks, how is that fit into the role?<...
java jquery
[1, 5]
3,317,319
3,317,320
How do I pass any validation control to a method?
<p>I am creating a webform using ASP.NET and C#. I created a method that posts an error message which is picked up by the Validation Summary control. </p> <pre><code>protected void PostErrorToCusVal(ref System.Web.UI.WebControls.CustomValidator ErrorObj, string ErrHead, string ErrMsg) { ErrorObj.ErrorMessage = "*S...
c# asp.net
[0, 9]
5,137,772
5,137,773
JQuery Vs. C#: Using a master textbox
<p>I have a list of 100+ textboxes on my page. I want to have one textbox at the top that can change all of them to its value, yet still have the others able to be independent (as in, using one variable for all wouldn't work). They should be able to be changed individually, with the master one sort of acting as a "Chan...
c# javascript jquery
[0, 3, 5]
2,281,673
2,281,674
how do I clear the values in my text input fields?
<p>My code doesn't run and I want the value to be cleared when you click on another </p> <p>what am I doing wrong?</p> <p><a href="http://jsfiddle.net/AL2vS/" rel="nofollow">http://jsfiddle.net/AL2vS/</a> </p> <pre><code>var placeholderText = $('input').val(); $(placeholderText).focus(function() { $(this).attr...
javascript jquery
[3, 5]
1,551,178
1,551,179
jCrop / PHP upload problem
<p>Hey guys, I am not very familiar with jquery &amp; am trying to implement jCrop + upload via PHP. I found exactly what I needed ( <a href="http://webdevcodex.com/mashup-application-image-uploader-cropper-using-jquery-php/" rel="nofollow">http://webdevcodex.com/mashup-application-image-uploader-cropper-using-jquery-p...
php javascript jquery
[2, 3, 5]
1,838,820
1,838,821
Passing parameters to popup window?
<p>I am trying to pass parameters to a popup window via query string(a hidden field id &amp; a textbox id). However, since I am using master pages the id's are very long (ct100_someid). Is there a way to elegantly pass my ids ?Can I shorten my id's or not show them to the user at all ? Please tell me any alternates. </...
javascript asp.net
[3, 9]
5,378,350
5,378,351
How to get a byte array from FileInputStream without OutOfMemory error
<p>I have a FileInputStream which has 200MB of data. I have to retrieve the bytes from the input stream.</p> <p>I'm using the below code to convert InputStream into byte array.</p> <pre><code>private byte[] convertStreamToByteArray(InputStream inputStream) { ByteArrayOutputStream bos = new ByteArrayOutputStream()...
java android
[1, 4]
3,329,154
3,329,155
Javascript order on which functions are being called
<p>Hi I am still pretty new to programming and I haven't had the chance to fully understand Java or Javascript the only programming languages I know but I am trying really hard to understand Javascript.</p> <p>What I am facing is that some times I do not understand when javascript is calling my created functions for e...
javascript jquery
[3, 5]
4,995,142
4,995,143
combining js scripts from a js newb
<p>I've got a small .js file on my wp site where I have been adding in all of my small js scripts. It works perfectly, but I am stuck trying to figure out how to add in another script. So far jslint does not complain about my current file and says it is ok.</p> <p>my script:</p> <pre><code>jQuery(function ($) { funct...
jquery javascript
[5, 3]
5,920,847
5,920,848
wrapping plain javascript object in jquery $({})
<p>I have this fragment of code from a book I am reading. And want to understand what <code>$({})</code> means and what is its use exactly.</p> <p>I tried searching on several search engines and even on SO. <code>$({})</code> wasn't a search-friendly term. </p> <pre><code> var Events = { bind: function(){ ...
javascript jquery
[3, 5]
591,240
591,241
Passing TextBox value from jquery dialog to variable in a function
<p>I have the following files:</p> <p>FILE1.ASPX</p> <pre><code>function DDialog(url, title, height, width) { HideDialogs(); var dialogButtons = [{ text: "Save", click: function () { var data = {}; data.HolidayDate = $('#txtHireDate').val(); alert(data.HolidayDate); var jsond...
javascript jquery asp.net
[3, 5, 9]
4,427,499
4,427,500
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]
5,763,026
5,763,027
How to convert hover function with on in jquery
<p>I have this code</p> <pre><code>$("td").hover(function(){ $(this).find('a.btn').show(); }, function(){ $(this).find('a.btn').hide(); }) </code></pre> <p>How can i convert this function for new dom elements with <code>on</code></p>
javascript jquery
[3, 5]
2,957,526
2,957,527
Know how of Cross Domain Request in Jquery
<p>Can anyone please explain how jquery handles cross domain requests? I understand the theory that it does via script using src attribute as url. But i was trying to test the same thing in plain javascript . I need to know the sequence of activities to be done for a post request. at what stage the data is sent and scr...
javascript jquery
[3, 5]
3,906,913
3,906,914
Scope in jQuery(javascript)
<p>I simplified my code for next example. So, please don't be wondered why I'm using ajax here.</p> <pre><code> &lt;!DOCTYPE&gt; &lt;head&gt; &lt;style&gt;.not { background:yellow; }&lt;/style&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt; &lt;sc...
javascript jquery
[3, 5]
4,173,744
4,173,745
How to know which button clicked using this.Request.Form
<p>I am using .net 1.1 In My page,i have few <code>ImageButtonClientSide</code> Controls and some other buttons which causes <code>postback.Now</code> I want to know,when page postbacks,In <code>Page_Load</code> which control has been clicked?I am currently doing like this </p> <pre><code> if ( Check.IsNotNulOrBlank(...
c# asp.net
[0, 9]
4,053,466
4,053,467
Basic jQuery function
<p>Could someone please explain, why do we need <strong>each(function <code>(i)</code></strong> what does <code>(i)</code> do? seems like <strong><code>i</code></strong> could be any letters. why <code>(i)</code> is necessary? I don't quite understand. Many Thanks </p> <pre><code>&lt;body&gt; &lt;div&gt;Click her...
javascript jquery
[3, 5]
2,144,361
2,144,362
jQuery Validation to Restrict A Textbox to only dd/mm/yyyy
<p>Is there a jQuery method or workaround that someone has found that will not let the user type anything but dd/mm/yyyy in a textbox ?</p> <p>Thanks</p>
asp.net javascript jquery
[9, 3, 5]
279,736
279,737
Making dyanamic link in dot net
<p>I want a functionality in which i want following thing:</p> <p>when i open a page created by me for download, it should dynamically create links for all the documents present in particular directory.</p> <p>for eg: if i have folder at web server as /download/document and i have following document in this folder</p...
c# asp.net
[0, 9]
2,448,079
2,448,080
jquery: using appendTo in second to last row of table
<p>I have a piece of the DOM that I'd like to insert into my page. Currently I'm just blindly using:</p> <pre><code>$(myblob).appendTo(someotherblob); </code></pre> <p>How do I do the same thing, but append myblob to the second to last row that is within someotherblob. someotherblob in this case is a table and I want...
javascript jquery
[3, 5]
4,886,751
4,886,752
Jquery-Object expected
<p>Can somebody tell me why Jquery is erroring out at this point?</p> <pre><code> &lt;script type="text/javascript" language="javascript"&gt; var myLayout; // a var is required because this page utilizes: // myLayout.allowOverflow() method $(document).ready(function() { myL...
asp.net jquery
[9, 5]
2,382,179
2,382,180
Adding numbers together
<p>I have this Jquery code and i need to add the var data and a number together...</p> <pre><code>$('div[name=price]').html(""); $.post("getprice.php", { unit: $('input[name=property]:checked').val() , date: $('#car').val() + $('#smh').val() } ,function(data){ $('div[name=price]').html(data + 1); ...
javascript jquery
[3, 5]
404,586
404,587
Regex for negative decimal values client and server side c# jquery
<p>I have a keypress function bound to an element, this element needs to only allow positive and negative decimal characters. i.e. 0-9, '.' , '-'</p> <p>any other characters I need to prevent the character being inputted</p> <p>Is there any way to achieve this in the current keypress function</p> <pre><code> $('.tes...
javascript jquery
[3, 5]
2,398,303
2,398,304
populate datagrid with codebehind dropdownlist value
<p>i have the following query in asp.net codebehind</p> <pre><code>&lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Server=hussein-pc;database=datbase;integrated security=true" SelectCommand="SELECT * FROM [Spreadsheet]...... </code></pre> <p>where spread sheet is the name of a tabl...
javascript asp.net
[3, 9]
4,728,688
4,728,689
PHP : how to return back to previous page while closing pop up
<p>I have a form submission. While i Click Submit button, will check for mandatory fields and if the fields are blank, I am opening a popup window using javascript to show error message. So once I close the popup I am not going back to previous page Instead it shows a white blank screen.</p> <p>My code for verificatio...
php javascript
[2, 3]
1,653,826
1,653,827
AndroidManifest.xml errors
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android"&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name"&gt; &lt;activity android:name=".hba1c" android:label="@string/app_name" ...
java android
[1, 4]
3,570,501
3,570,502
C# Url Builder Class
<p>I often end up rolling my own wrapper/extension methods for/around System.Uri and was wondering if anyone knows of a good open source implementation. What I like to do most is parse querystring parameters, build a new query string (this is the key), and replace page names. Got any good ones, or is System.Uri good ...
c# asp.net
[0, 9]
4,449,325
4,449,326
How to remove line breaks with PHP or JS
<p>I've tried about everything to delete some extra <code>\n</code> characters in a web application I'm working with. I was hoping someone has encountered this issue before and knows what can be causing this. All my JS and PHP files are UTF-8 encoded with no BOM.</p> <p>And yes I've tried things like</p> <p>In JS:</...
php javascript
[2, 3]
4,195,901
4,195,902
File input output question with Inputstreamreader
<p>I made an android app which writes to a file in an activity. The writing to file, it works like a charm: <pre>FileOutputStream fOut = openFileOutput("myfeeds.txt", MODE_WORLD_READABLE); OutputStreamWriter osw = new OutputStreamWriter(fOut); osw.write(file); os...
java android
[1, 4]
3,755,960
3,755,961
Check for required exact keyword(s) in text (javascript)
<p>I need to be able to check for required keyword(s).</p> <p>Here's what i'm currently using:</p> <pre><code> // Check for all the phrases for (var i = 0; i &lt; phrases.length; i++) { if (value.toLowerCase().indexOf(phrases[i].toLowerCase()) &lt; 0) { // Phrase not found missingPhrase...
javascript jquery
[3, 5]
5,894,769
5,894,770
Extract string from img src attribute?
<p>How could i take fontsize, fonttext and fonttype value from following img src <br></p> <pre><code>&lt;img src="bin/contenthandler.php?fontsize=36&amp;fonttext=apple&amp;fonttype=fonts/FOO.ttf" class="selected content resizable"&gt; </code></pre> <p>I think it can be done with regular expressions but I am bad ...
javascript jquery
[3, 5]
3,973,563
3,973,564
Stop Countdown Timer Javascript onClick
<p>Given the Following code:</p> <pre><code> $('#myButton02').click(function(){ $('#myButton02').hide(); $('#counter').animate({width: 'toggle'}); var count=65; var counter=setInterval(timer, 1000); function timer(){ count=count-1; if (count &lt;= 0){ ...
javascript jquery
[3, 5]
5,382,248
5,382,249
How best to deal with dynamic page settings in a C# ASP.NET web application?
<p>I have a single page that has a number of controls configured a certain way depending on some condition (e.g. if it is a user accessing the page or an admin). How I currently achieve this is by having an interface for the settings which are common to all pages, and then extending classes which implement the properti...
c# asp.net
[0, 9]
1,861,627
1,861,628
How to get the ID of a selected <li> or <a> with jQuery?
<p>I have a list like this:</p> <pre><code>&lt;li class="nav" id="1"&gt;&lt;a href="#detail"&gt;a&lt;/a&gt;&lt;/li&gt; &lt;li class="nav" id="2"&gt;&lt;a href="#detail"&gt;b&lt;/a&gt;&lt;/li&gt; &lt;li class="nav" id="3"&gt;&lt;a href="#detail"&gt;c&lt;/a&gt;&lt;/li&gt; </code></pre> <p>Now I want to use jQuery to sa...
javascript jquery
[3, 5]
5,012,468
5,012,469
Getting the proper document height with Jquery
<p>Goodevening/night </p> <p>A small yet annoying jquery problem. I would like to get the height of my document. To do that i use the following code: </p> <pre><code>$docHeight = $(document).height(); </code></pre> <p>When i visit my page in a normal way (by clicking at a href at some other page) I get the correct h...
javascript jquery
[3, 5]
273,631
273,632
strip part of a filename with jquery/js
<p>I am using the code below to send an ID to my page:</p> <p>The image names will always look like this 12.jpg 12-1.jpg 12-2.jpg 12-3.jpg e.t.c</p> <p>I need to alter the line below so it will only send the 12 not the -1,-2,-3 e.t.c My code below already removes the .jpg part</p> <pre><code>var id = $(this).attr('...
javascript jquery
[3, 5]
2,849,586
2,849,587
on() method with select element not firing
<p>I'm using <code>jQuery 1.9.0</code> and I'm trying to trigger the <code>on()</code> method whenever an option is changed inside a select. It worked with <code>live()</code> but I think its probably something simple that I'm not seeing.</p> <p>This is my HTML:</p> <pre><code>&lt;select class="select_exercise"&gt; ...
javascript jquery
[3, 5]
5,978,146
5,978,147
jQuery "please wait" while php executes
<p>I have a script that connects to the PayPal api to check for a valid credit card input. The script can take about 5 seconds to execute and in an effort to keep users from clicking "submit" multiple times if they don't see an immediate response, I'd like to place a "Please wait" indicator.</p> <p>I have a div, "plea...
php javascript jquery
[2, 3, 5]
2,567,349
2,567,350
cookie with php and javascript
<p>Can I edit a cookie created by javascript with php and vice versa</p> <p>is a cookie a cookie basically?</p>
php javascript
[2, 3]
5,124,981
5,124,982
How to authenticate a user using OAuth in PHP
<p>How do I implement OAuth authentication to log in a user?</p> <p>I am making a code where I am using OAuth authentication but I am not getting the satisfactory action.</p>
php javascript
[2, 3]
5,237,078
5,237,079
how to get value of more than one text box in a loop
<p>I have some text boxes in my page. I want to get all text box values in an array and insert in to table of database.</p> <p>Is there any option to work by loop</p>
c# asp.net
[0, 9]
1,001,376
1,001,377
how to display text in a table dynamically?
<p>i m using asp.net..In login form i m using requiredfield validator and regularexpression validator for username.so i need to display the error message in same td for both validation.that first it need to validate required field and display the error msg in td.if that is field it need to checkfor that expression and ...
javascript asp.net
[3, 9]
4,033,396
4,033,397
UseSubmitBehavior="false" and binding OnClientClick?
<pre><code>&lt;asp:Button ID="RecoverButton" runat="server" Text="Recover" OnClick="RecoverButton_OnClick" UseSubmitBehavior="false" /&gt; </code></pre> <p>I kind of figured out <code>UseSubmitBehavior="false"</code> overwrites the <code>OnClientClick</code> function I was providing.</p> <p>I went with this then:...
jquery asp.net
[5, 9]
5,524,876
5,524,877
Packaging android code into jar file
<p>I am trying to package the android code into a jar file so that I can use it in another project. But when I do that I get the following error messages. I am not sure how to do this correctly if someone has done it please post a link and some details would be really helpful.</p> <p>Thanks</p> <pre><code>Error gener...
java android
[1, 4]
2,476,246
2,476,247
Run jQuery ready block again after ajax loaded?
<p>I'm not sure if I'm asking the right question here, but basically I'm inserting html with an ajax request:</p> <pre><code>// data-active_chart if ($("#charts").attr("data-active_chart") == "barchart") { $.ajax({ url: $("#charts").attr("data-path") + "/barchart", success: function(data) { $('#charts'...
javascript jquery
[3, 5]
907,568
907,569
Uncaught SyntaxError: Unexpected token var (Javascript)
<pre><code>$.each(data.results, function(i,data) var div_data = '&lt;li class="right-block-list-image"&gt;'+ data.Model_Number +'&lt;/ul&gt;'; }); </code></pre> <p>Where is my syntax error within <code>div_data</code>?</p>
javascript jquery
[3, 5]
733,431
733,432
How can I make POST query for my web-service on Java, Android?
<p>I have code for POST query on Java</p> <pre><code> ArrayList&lt;HashMap&lt;String, String&gt;&gt; books=SQLiteDbWrapper.getInstance().getAllBooks(); JSONObject object=new JSONObject(); object.put("key", KEY); JSONArray isbns=new JSONArray(); for (HashMap&lt;String, String&gt; book:books) { ...
java android
[1, 4]
5,929,971
5,929,972
Creating a google plus / digg like social bookmark button
<p>For a client of ours we need to create a share button for his site so that the users of his site can add this button to their blogs / sites and others can click on it and it will just open up a popup asking the user to login (if already logged in, the link bookmark page appears) to the clients site and bookmark it. ...
php javascript
[2, 3]
5,753,467
5,753,468
Unable to get updated value of session variable and Textbox
<p>I am building a web application in asp.net and c#, I am storing text of textbox in Session variable like this:</p> <pre><code>Session["data"]=TextBox1.Text; </code></pre> <p>and on the button click event I am redirecting user to another page.In the second page I am using this variable <strong>Session["data"]</stro...
c# asp.net
[0, 9]
3,407,282
3,407,283
asp:LinkButton code to open new browser window/tab after other code
<p>For my internal webpage at work, I display a DataGrid based on entries in a SQL table (not directly, but with some processing on entries).</p> <p>Each row in the DataGrid has a button that the user clicks. I need this button to open a new window or tab (I believe I can't decide as this is based on browser config) a...
c# asp.net
[0, 9]
5,442,885
5,442,886
jquery strange flickering on mouseover/out
<p>The HTML:</p> <pre><code>&lt;div id="timerList"&gt; ... &lt;li rel="project" class="open"&gt; &lt;a class="" style="" href=""&gt;&lt;ins&gt;&amp;nbsp;&lt;/ins&gt;Project C&lt;/a&gt; &lt;/li&gt; ... &lt;/div&gt; </code></pre> <p>The javascript/jquery:</p> <pre><code>$('#timerList li[rel="project"]'...
javascript jquery
[3, 5]
308,689
308,690
Regarding an input variable on .aspx page which is not running on server and code behind
<p>I have an input variable which is manipulated using JavaScript on the client side: </p> <pre><code>&lt;input type="text" id="field1" value="Sunday, July 30th in the Year 1967 CE" /&gt; </code></pre> <p>How can I use the input value to write to the database on click event in my code-behind?</p>
c# javascript asp.net
[0, 3, 9]
4,088,608
4,088,609
Can I load lots of data only once and use it on each request?
<p>Is there a way to load a big data object into the memory, which usually has to be loaded at each request, only once?</p> <p>In Java you can instantiate an object in a servlet when this servlet is loaded, but once it's there you can use it in any request. Example is below. Can this be done in PHP?</p> <pre><code>pu...
java php
[1, 2]
984,799
984,800
Android SMS Service that run in background whole time
<p>Actually I have new hand on Android and I have Finished my job for developing a SMS service that run in background but when another service like facebook etc then service does not capable to read sms how I can resolved this issue pl help me. I also bind the code that I have written for service</p> <p>thanks n regar...
java android
[1, 4]
3,715,314
3,715,315
301 error and search engine
<p>I want to know about 301 Error for website, I Binged about it and got the some overview about 301 Redirect Error.</p> <p>I also got the code for ASP.NET redirect,</p> <pre><code>&lt;script runat="server"&gt; private void Page_Load(object sender, System.EventArgs e) { Response.Status = "301 Moved Permanently"; Resp...
c# asp.net
[0, 9]
761,676
761,677
jquery focus not setting on firefox
<p>I want to set focus into my text area. Following is my code:</p> <pre><code>$this.textInput.val('').show().focus(); </code></pre> <p>But it is not working. Actually when I press mouse button it appeared but when I mouseup it remove from text area. So after lot of searching I found setTimout method like : </p> <pr...
javascript jquery
[3, 5]
2,446,020
2,446,021
Which language is most suitable for an efficient web-crawler?
<p>i need to write an web crawler and i need need which is best language for performance like memory and performance ..</p> <p><strong>Edit:</strong> Original title was "which language is optimized for speed and perfomance c++ or C#"</p>
c# c++
[0, 6]
4,619,594
4,619,595
Jquery and IE8 animate opacity solution
<p>I am trying to animate opacity with Jquery an it is working fine in every browser except, you guess it dreaded <b>IE8</b>!<br/> Problem: on animation I am seeing some ugly artifacts:( <br/>I know that I can solve this by removing background and adding the same background color to my animated div and to my container ...
javascript jquery
[3, 5]
4,260,436
4,260,437
hide div that contains <p> that contains "text" - how to
<pre><code>&lt;div id="example"&gt; &lt;ul&gt; &lt;p&gt;text&lt;/p&gt; &lt;/ul&gt; &lt;div&gt; </code></pre> <p>i need to hide div itself</p>
javascript jquery
[3, 5]
2,380,516
2,380,517
Enclosing listbox inside DIV tag
<p>I want to enclose listbox inside a DIV tag in the code behind file using C#.I am adding all the required attributes and adding the list box as below:</p> <p>Controls.Add(listBox);</p> <p>I want the generated listbox to be enclosed with in a div. Please suggest how this can be done.</p> <p>Thanks in advance.</p>
c# asp.net
[0, 9]
4,773,915
4,773,916
ASP.NET [from metadata]
<p>I was stepping through some code and hit a method I wanted to see the code for. I clicked on 'go to definition' and it would usually take me to the method definition, but now it takes me to what appears to be an auto generated [from metadata] class. I've never experienced this before. What's going on and how do I ge...
c# asp.net
[0, 9]
5,090,544
5,090,545
Inserting a text where cursor is using Javascript/jquery
<p>I have a page with a lot of textboxes. When someone clicks a link, i want a word or two to be inserted where the cursor is, or appended to the textbox which has the focus.</p> <p>For example, if the cursor/focus is on a textbox saying 'apple' and he clicks a link saying '[email]', then i want the textbox to say, '...
javascript jquery
[3, 5]
1,404,589
1,404,590
XML file in layout folder error: can not be resolved or is not a field
<p>I'm using Eclipse with Android SDK. I have added a XML file in the layout folder called <code>voice_recog.xml</code> by <em>File > New > Other > Android > Android Xml File</em>.</p> <p>On this code line:</p> <pre><code>setContentView(R.layout.voice_recog); </code></pre> <p>I'm getting the following error:</p> <b...
java android
[1, 4]