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,850,162
5,850,163
Jframe inside C# form
<p>I'm trying to add a Java JFrame into a container inside a C# form. The JFrame I have is implementing a AppletStub aswell, and I've used IKVM to do the interopting, but the problem I get is that the Applet loaded in the AppletStub freezes. But it works perfect fine when its not interopting with C#. This is the only t...
c# java
[0, 1]
481,168
481,169
Javascript included but alert() function not working
<p>I've included the javascript by </p> <pre><code>wp_enqueue_script('slider', plugins_url( 'slider.js', __FILE__ ) ); </code></pre> <p>with just a simple</p> <pre><code>$(document).ready(function () { alert("alert"); }); </code></pre> <p>It shows up in the browser but doesn't prompt me with "alert".</p> <p>PS...
jquery javascript
[5, 3]
4,402,356
4,402,357
Does setting of width and height only work in jquery if the element is visible?
<p>Does setting of width and height only work in jquery if the element is visible? Unless I do show - nothing gets resized, however this is causing flickering. Is there a way to make it work even when the element I want to resize or its container is not visible?</p>
javascript jquery
[3, 5]
5,327,754
5,327,755
Dynamic value in popup
<p>PHP Code:</p> <pre><code>$cour = mysql_sql('SELECT c.id, c.category, cc.name, c.fullname,c.summary FROM mdl_course c, mdl_course_categories cc WHERE c.id = cc.course'); echo '&lt;table&gt;'; foreach($cour as $cou) { $coursename = $cou-&gt;fullname; $courseid = $cou-&gt;id; $summary =...
php jquery
[2, 5]
2,233,694
2,233,695
how can i check how many '.classname' items are?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5706106/count-elements-with-jquery">Count elements with jQuery</a> </p> </blockquote> <p>hi there,</p> <p>i was considering, using jquery,</p> <pre><code>var n = 0; $('.className').each(function(){ n = n+...
javascript jquery
[3, 5]
2,852,318
2,852,319
File.Exists using the wrong root path?
<p>In my c# class I wrote I have a photo property that returns the photo source if the image exists (nothing or default image otherwise). In my code I use:</p> <pre><code> public string Photo { get { string source = "~/images/recipes/" + id + ".jpg"; if (File.Exists(sour...
c# asp.net
[0, 9]
1,079,461
1,079,462
accessing browser history via javascript to implement custom back and forward buttons
<p>I have custom back and forward buttons on my page.</p> <p>The back button should be enabled only if the history.back page is from my website.</p> <p>Similary the forward button should be enabled only if the history.forward page belongs to my website.</p> <p>document.referrer returns the name of the previous page....
javascript jquery
[3, 5]
1,928,835
1,928,836
Publishing website project, database date format will be the same or converted to the default host date format?
<p>I'm developing a web application and I'm using a gridview and sqldatasource.</p> <pre><code>I have some columns with type : Date. </code></pre> <p>In my control panel I set the format of the date for my country wich is : <code>dd.mm.yyyy</code> </p> <ul> <li>In this case , the Table Data of the database in c# wi...
c# asp.net
[0, 9]
4,047,410
4,047,411
How to select the correct id for the specific button pressed in dynamic table 2 PHP JQUERY
<p>I have a very similar problem, but i cant seem to figure it out, it could be that i have been trying to do this for the past 14 hours... my problem is: I cant get this to return the corresponding customer id, it just always returns the first one. here is the code</p> <pre><code>&lt;div id="saveAdButtons"&gt; &lt;?...
php jquery
[2, 5]
2,370,432
2,370,433
How to define distance in time in words in pure javascript?
<p>I would like to include very common feature in my web application. I would like the times/dates be written as the distance of time from now in words, for example (2 hours ago). </p> <p>Rails have excellent implementation of this functionality, but I need something like that written in pure javascript. The problem i...
javascript jquery
[3, 5]
1,323,595
1,323,596
issue with custom gridview android
<p>I have developed an app in which I display data in <code>Gridview</code>. All data comes from local storage. I am able to display each data correctly and there are no issues with it. But when I have scroll the <code>Gridview</code> and goto the bottom and getback to <code>Top</code>,it changes position. And sometime...
java android
[1, 4]
3,653,729
3,653,730
Android PHP server
<p>i working in Android app that send information to a php server. the Android app should login first then if the login successful start to send the data this is the php page (login):</p> <pre><code>&lt;?php $data = file_get_contents('php://input'); $json = json_decode($data); $id=$json-&gt;{'im'}; $con = mysql_conn...
php android
[2, 4]
4,113,916
4,113,917
jQuery appentTo and reset/reorder position function?
<p>I am appending into a "div" several "img" tags, using appendTo() which seems to be working great. now what if I want to remove an image and reorder them? To make my self more clear, I am keeping the image divs in an array. When I delete an element from that array, I also want the "visual" images to be reordered. S...
javascript jquery
[3, 5]
1,839,271
1,839,272
Get HREF property
<pre><code>&lt;a class="some" id="1" href="/s/1/2"&gt;link 1&lt;/a&gt; &lt;a class="some" id="2" href="/s/2/3"&gt;link 1&lt;/a&gt; &lt;script&gt; $(document).ready(function() { $('.some').click(function() { var id = this.id; var link = $(this).css('href'); alert(id); alert(link); ...
javascript jquery
[3, 5]
979,375
979,376
Are there any FOSS libraries that are the result of ripping bits out of Android for plain Java?
<p>Before you jump, yes i have heard of the recent project to make Android proper run on a plain JRE. This question is not about Android the platform but rather about leveraging the great stuff thats in there, and may be useful in parts, eg the bitmap/graphics stuff.</p> <p><em>PS</em> Yes lets ignore the obvious bits...
java android
[1, 4]
2,656,412
2,656,413
How to handle Confirm() of Javascript as per my following requirements?
<p>My Requirement is this. Steps:-</p> <ol> <li>On Client Click (button)</li> <li>Disabled the Button. </li> <li>Then it should prompt for OK or CANCEL.</li> <li>If OK then fire the OnClick event (Code Behind). </li> <li>If CANCEL then don't make a server-side trip and enable the button.</li> </ol> <p>Following is th...
javascript asp.net jquery
[3, 9, 5]
3,738,687
3,738,688
Printing last 200 lines from Logcat
<p>I am trying to print the last 200 or so lines from Android Logcat in my app. So far I have been able to get Logcat into a BufferedReader using InputStreamReader. The problem is I don't know how to to jump to the end of the buffered Reader and then read backwards, Or jump to a just above the last 200 lines and print ...
java android
[1, 4]
4,356,885
4,356,886
Refresh a webpage automatically from within a loop
<p>I have a loop that runs through a variety of websites and I'd like to put some kind of a postback in the loop so that each time through a textbox would refresh with the url that is currently being considered. I don't know AJAX yet so I'd like to redo the webpage. I am currently using a session variable to hold dat...
c# asp.net
[0, 9]
5,867,692
5,867,693
How to check 'undefined' value in jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/27509/detecting-an-undefined-object-property-in-javascript">Detecting an undefined object property in JavaScript</a><br> <a href="http://stackoverflow.com/questions/2778901/javascript-undefined-compare">javascript...
javascript jquery
[3, 5]
1,918,305
1,918,306
Javascript loader
<p>I have an image carousel on my page with some fairly small images. the issue is not with the images but with the script itself. I want to display a javascript loader image while the entire plugin is loaded and is ready for action. </p> <p>when i launch the page, the carousel <code>&lt;li&gt;</code> first display li...
javascript jquery
[3, 5]
3,950,076
3,950,077
insertAfter clicked element
<p>I have the following markup;</p> <pre><code>&lt;div class="model-timeline"&gt; &lt;p&gt;Text&lt;/p&gt; &lt;div class="timeline"&gt; &lt;div class="span-blank-5"&gt;&lt;/div&gt; &lt;div class="time-span-1"&gt;&lt;/div&gt; &lt;div class="time-span-2"&gt;&lt;/div&gt;...
javascript jquery
[3, 5]
2,877,448
2,877,449
window.showModalDialog dialogWidth property not working in IE
<p>I have a 2.0 framework ASP.Net page that runs in our controled environment (IE 7). The <code>dialogWidth</code> property seems not to be working. The scrip is as follows:</p> <pre><code>var win = window.showModalDialog ('Page.aspx', 'PopupPage', 'dialogHeight:600px,dialogWidth:800px,resizable:0'); </code></pre> <p...
asp.net javascript
[9, 3]
5,979,998
5,979,999
IE7 Jquery v1.7.1 show syntax error
<p>In my website i am using jquery v1.7.1 <br/> In other browers(IE9,IE8) it works fine But in IE7 it's not working. It showing the following Syntax error.</p> <pre><code>SCRIPT5022: Syntax error, unrecognized expression: hover jquery.min.js, line 3 character 14659 </code></pre> <p>If you guys have any idea about t...
javascript jquery
[3, 5]
3,649,436
3,649,437
Setting value onClientClick() and Getting that on onClick()
<p>i have a asp:button and a asp:hiddenfield like this..</p> <pre><code>&lt;asp:Button ID="btn_CreateContent" runat="server" Text="Upload" Height="25px" OnClientClick="UploadNewContent(event)" OnClick="btn_CreateContent_Click" /&gt; &lt;asp:HiddenField runat="server" ID="hdn_ContentID"&gt;&lt;/asp:HiddenField&gt; </c...
jquery asp.net
[5, 9]
5,545,420
5,545,421
replace a string in a youtube embed code using jquery
<p>I have here an embed code from youtube and Im using a plugin to show that video</p> <pre><code>&lt;object width="350" height="200"&gt; &lt;param name="allowfullscreen" value="true" /&gt; &lt;param name="allowscriptaccess" value="always" /&gt; &lt;param name="movie" value="http://www.youtube.com/v/KVu3gS7iJu4&amp;au...
php javascript jquery
[2, 3, 5]
457,048
457,049
Call page load event after every 10 seconds
<p>I'm having a scenario to call load event after every 5 seconds or 10 seconds someone help me, with some related links.</p>
c# javascript asp.net
[0, 3, 9]
3,830,088
3,830,089
What is the best way to cut the file name from 'href' attribute of an 'a' element using jQuery?
<p>For example I've got the simple code:</p> <pre><code>&lt;ul class="list"&gt; &lt;li&gt;&lt;a href="http://www.aaa.com/bbb/ccc/file01.pdf"&gt;Download file 01&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="http://www.bbb.com/ccc/ddd/file02.pdf"&gt;Download file 02&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>a...
javascript jquery
[3, 5]
924,088
924,089
Pull in random form for testing
<p>I would like some help in starting this project, some advice on where to look. On one of my sites we have a jQuery Tools powered overlay that holds a contact form. The form is located in the /forms directory. I would like to create several (5-6) forms that have different layouts and test which works best with our us...
php jquery
[2, 5]
5,006,876
5,006,877
Beginners question: Variable in Javascript
<p>I'm new to javascript and cant get this little thing to work. (all external scripts a of course loaded)</p> <p>I have this jQuery script:</p> <pre><code>$('a.Link').click(function(){ autoComp('City'); }); function autoComp(strFormName) { var Company = 'Adobe Apple Microsoft'.split(" "); var City = 'L...
javascript jquery
[3, 5]
4,949,032
4,949,033
Select element by attribute only
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4333720/jquery-is-there-a-way-to-select-all-elements-on-the-page-with-a-specific-attrib">JQuery, is there a way to select all elements on the page with a specific attribute?</a> </p> </blockquote> <p>My code</p>...
javascript jquery
[3, 5]
1,602,599
1,602,600
how does this jquery count get updated?
<p>I am trying to figure out how this javascript works. <a href="http://www.pickhealthinsurance.com/u/search?age=25&amp;people=1&amp;smoker=false&amp;zip=20001" rel="nofollow">On this website</a> that someone else created, if you check the HMO Plan type checkbox in the top left corner, the count changes for Maternity...
javascript jquery
[3, 5]
3,741,048
3,741,049
Is there any way I could auto-fill the fields on this registration page?
<p>I have a link to a registration page: <a href="https://www.website.ws/orderflow/index.dhtml?sponsor=gditraffic&amp;src=DSP_66&amp;last_page=DSP_66" rel="nofollow">Registration Page</a></p> <p>When I take users to the page, I'd like to save them a load of time, frustration and calories to burn, by filling in the fie...
javascript jquery
[3, 5]
5,859,458
5,859,459
Saving/ Reading an arrayList of Points to/from a file
<p>Q1 - I have a string like this - </p> <p>strPoints = "[Point(10,20), Point(20,30), Point(30,40)]"</p> <p>What is the best way to convert it into arrayList like this - </p> <p>arrPoints = [Point(10,20), Point(20,30), Point(30,40)]</p> <p>Q2 - If I have an arrayList of points like this - arrPoints = [Point(10,20)...
java android
[1, 4]
4,263,344
4,263,345
How to run Android (command line) application in PHP script?
<p>On my Android phone are a Web Server with PHP-plugin, and are a simple HelloWorld application. In Android Terminal Emulator run this application:</p> <p>am start -n com.hello/.Android_HelloWorldActivity</p> <p>So this very good. I wrote a PHP script, but my problem is, that with PHP script no start application:</p...
php android
[2, 4]
2,722,879
2,722,880
"document.getElementById" return null after a "document.write"
<p>I am using a javascript code to write on my document : </p> <pre><code>nr = Math.floor(Math.random()*99999999999); document.write('&lt;div class="wads-content-' + nr + '" id="flashcontent' + nr + '"&gt;'+ flashrequired +'&lt;/div&gt;'); var flashcontent = document.getElementById('flashcontent' + nr); </code></pre> ...
javascript jquery
[3, 5]
3,119,222
3,119,223
ToolTip Question
<p>OK, so I have a checkboxlist (which is databounded) and I'm displaying a tooltip icon next to each checkbox. This code displays a css tooltip on hove rfor the icon. I want to pass a different message for each icon: project duration, customer involvement, etc. Atm, the same message is displayed when I hover over each...
c# asp.net
[0, 9]
1,496,109
1,496,110
javascript on click events
<p>Is there any way to get pass the variables from one php page to another using javascript and get the the output of it without loading the page?? Note that variables should pass only using javascript. I</p>
php javascript
[2, 3]
3,752,904
3,752,905
Is it possible to launch an android application activity when the phone starts?
<p>Im attempting to build an android application and one of the key features to this application is for it to be able to launch an activity automatically when the phone starts, I see some apps on my phone that already do this, any help would be great so that I can atleast research this a little better through the sdk, ...
java android
[1, 4]
552,717
552,718
saving the state of a SeekBar
<p>I'm struggling to find the best way to implement my update to the database</p> <p>The code below is in the adapter for a list view, so each list item has its own seekbar.</p> <p>The list is of homework assignments so each item has its own degree of completion which I need to persist to a database.</p> <p>I have a...
java android
[1, 4]
2,309,539
2,309,540
How to get value from hidden column in gridview?
<p>I have a gridview and sqldatasource.</p> <p>When I bounded gridview to sqldatasource ,I've selected all columns from the sql database. And after this , I've removed my self some columns from the gridview.</p> <p>Now , I want to get the value from the removed column without adding the column to the gridview.</p> <...
c# asp.net
[0, 9]
4,547,303
4,547,304
jQuery - wrap all unwrapped text in p tags
<p>I have a situation where the following code is getting written to my page. </p> <pre><code>&lt;div&gt; Some text here which is not wrapped in tags &lt;p&gt;Some more text which is fine&lt;/p&gt; &lt;p&gt;Blah blah another good line&lt;/p&gt; &lt;/div&gt; </code></pre> <p>In this case it always seems to...
javascript jquery
[3, 5]
548,215
548,216
digital clock using javascript/jquery
<p>Anybody has a suggestion on how to build a textbox that is exactly like the one showing the windows time using javascript and/or jquery?</p>
javascript jquery
[3, 5]
5,428,222
5,428,223
Clear text inside DIV
<p>I'm using the following HTML structure:</p> <pre><code>&lt;div id="clock"&gt;5:30 AM &lt;div id="day"&gt;Wednesday &lt;/div&gt; &lt;div id="date"&gt;14 December &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I update the contents of these elements using Javascript. For "day" and "date" I use <code>$("#...
javascript jquery
[3, 5]
3,403,405
3,403,406
Javascript/JQuery event arguments. I don't understand what this 'e' argument is or does
<p>JQuery:</p> <pre><code>this.saveButton.click(function (e) { scope.saveForm(); }); </code></pre> <p>This is a very simple line of JQuery that binds the .click() event to the saveButton object and calls a saveForm function when the event is fired.</p> <p>When this event is called, what is 'e'? I don't think it...
javascript jquery
[3, 5]
1,239,032
1,239,033
show and hide several random divs using jquery
<p>i am developing a jquery application. I have 10 divs with quotes. I am trying to create a function that takes a number and randomly displays that number of quotes from the 10 divs for 10 seconds and hide the divs. Then repeat the process again. I have not been able to do it please help me out. here is my code:</p> ...
javascript jquery
[3, 5]
5,830,937
5,830,938
jquery change div
<p>hello my friends I have two div's and I doing this div's change</p> <pre><code>div class="switchLeft div class="switchRight" &lt;tab&gt; (function ($) { $(".switchLeft").click(function () { $(this).toggleClass("switchLeft switchRight"); }); })(jQuery); &lt;/tab&gt; </code></pre> <p>and I have other tw...
jquery asp.net
[5, 9]
3,193,917
3,193,918
How to integrate Programmatically layout into static layout(.xml)?
<p>can any one help me how to add dynamic tablelayout into static main.xml layout, in the static layout i added the buttons and textview. i want add the dynamic tablelayout into specific linearlayout in the .xml form.</p>
java android
[1, 4]
2,487,937
2,487,938
How can I easily manipulate the state of page elements using PHP?
<p>In ASP.NET </p> <ul> <li><p>I can show a hidden panel that contains many controls by using simple command such as:</p> <pre><code>Panel.Visible = CheckBox1.Checked; </code></pre></li> <li><p>I can disable a Button easily:</p> <pre><code>&lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Sub...
php asp.net
[2, 9]
3,308,480
3,308,481
Need to store Ip address of client in a variable
<p>I want to store clients Ip address to a varialbe and want to send it to server.</p> <p>for fetching ip address i am using</p> <pre><code>$.getJSON("http://jsonip.appspot.com?callback=?", function(data){ alert( "Your ip: " + data.ip); }); </code></pre> <p>That is working properly. But storing this va...
javascript jquery
[3, 5]
2,585,814
2,585,815
How to get the eq() of $(this)?
<p>Here's my code:</p> <pre><code>$('div.menu &gt; ul &gt; li &gt; a').click(function(e) { alert($(this).eq()); e.preventDefault(); }); &lt;div class="menu"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href=""&gt;Animals&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;Cars&lt;/a&gt;&lt;/li&gt; ...
javascript jquery
[3, 5]
3,792,526
3,792,527
JQuery Post And Get
<p>I have a method I'm trying to write that can post data to a php file and get the results and return the output in a variable. For some reason, my block of code is not working. </p> <pre><code>function post_get(){ var result = null; $.post("modules/data.php", { "func": "getNameAndTime" }, function(data){ resul...
php javascript jquery
[2, 3, 5]
3,685,702
3,685,703
Selecting all of the checkboxes in jQuery
<p>I have code which displays a person's info in a table (fields:name, surname, address, etc.) and one of the inputs is a checkbox. The code is as follows:</p> <pre><code>$("#table").append('&lt;tr class="trow'+j+'"&gt;'+ '&lt;td class="ids" id="z'+i+'"&gt;'+totrecs+'&lt;/td&gt;'+ '...
javascript jquery
[3, 5]
3,047,011
3,047,012
Count every Buton clicks
<p>the task is to count the number of clicks in a webform.</p> <p>here is the code.</p> <pre><code>public partial class _default : System.Web.UI.Page { int count = 1; private void Page_Load(object sender, System.EventArgs e) { Button btn = new Button(); btn.Text = "...
c# asp.net
[0, 9]
974,697
974,698
String. Replace function issue!
<p>I think i need some help for the string replace function. This one do not replace and gives me same thing back. What might be the issue, guys?</p> <pre><code>FormattedURl = mysite.com/Merchant.aspx?1=lkdflfdfgj3242 lblclick.Text.Replace("&lt;a class=linkclass href=http://www.mysite.com/ target=_blank &gt; &lt;/a...
c# asp.net
[0, 9]
33,472
33,473
Cannot call method 'toLowerCase' of undefined
<p>I'm trying to refactor my js code to be more dry-conventioned, but stuck this error. Here is my code</p> <pre><code>function validate_field(e){ console.log(typeof e); $(e).focusout(function(e){ var price = $(e).val(); var number = parseInt(price, 10); console.log(number) if (...
javascript jquery
[3, 5]
2,560,097
2,560,098
Need boolean value isTouched()
<p>I need to detect WHEN the screen is touched. The onTouchEvent method only detects when the finger is moving. I need method which returns boolean value true, when the finger touches screen and returns false, when its not. </p>
java android
[1, 4]
2,737,405
2,737,406
Pass accepts header parameter to jquery ajax
<p>Whwn i inspect the below code in Chrome Console it shows me in Request header </p> <blockquote> <p>Accept:undefined</p> </blockquote> <pre><code>jQuery.ajax({ url: _this.attr('href'), accepts: "application/json; charset=utf-8", }); }); </code></pre> <p>How do i set accept type as json . I d...
javascript jquery
[3, 5]
1,990,743
1,990,744
Hide the child div of the child div when the parent div is toggled/slideDown
<p>I want to achieve this effect - that when the parent div is toggled/slides down, the child div of the child div should also hide. </p> <p>Right now, I have a parent div, which toggles and shows child div. When I click on the link in the child div, a related child div toggles and shows. However, now if I don't toggl...
javascript jquery
[3, 5]
3,302,679
3,302,680
How to call package installer to get the list of installable .apk files?
<p>I am trying to get package installer activity in android so that I can get the list of installable .apk files and choose which one to install in my device. Currently I am trying the following code and its killing the programme.</p> <pre><code>Intent intent = new Intent(); intent.setClassName("com.android.packagei...
java android
[1, 4]
4,508,723
4,508,724
JavaScript hide div element on scroll action
<p>I'm using this bit of code to hide a menu bar when users scroll on a page. It works fine on Chrome 17.0.963.78 but keeps on flickering in and out on other browsers, namely I.E. firefox and safari ..</p> <pre><code>$(window).load(function(){ $(document).scroll(function(){ $('#inner_floating').fadeOut()...
javascript jquery
[3, 5]
5,136,380
5,136,381
How to return variable from jquery function
<p>can you help me please... How to return variable from jquery function</p> <pre><code>var height = $(window).height(); $(window).resize(function(){ var height = $(window).height(); return height; }); setInterval(function() { $('div').append( 'Index: ' + height ); }, 500); </code></pre>
javascript jquery
[3, 5]
1,658,439
1,658,440
Getting all the children of an element that are textareas?
<p>I have a bunch of text areas that are children of a div that has an id. I want to get the text in each of those text areas in an array - so is there a way in jquery to get all the children that are of a certain type(in this case text area) of a certain parent?</p> <p>I've tried this -</p> <pre><code>$("#optionGrou...
javascript jquery
[3, 5]
1,554,656
1,554,657
How can I play a sound after a query?
<p>I have a store and I want to play a sound just after receiving an order. I store my orders in my database so I want to play a sound after running this check order query:</p> <pre><code>$order_check_query("SELECT * FROM orders WHERE status = 'pending'"); </code></pre> <p>I want to run this query every 5 minutes ...
php javascript
[2, 3]
4,248,517
4,248,518
using the window object for accessing global user defined objects and using text within html for creating additional specificity
<p>I don't do very much jquery / javascript but wanted to ask for some advice on the following piece. I have tried to cut out as much as possible. Most of this was semi-inherited code with catching a bunch of events just hardcoded in. I'd like to generalized them more by putting the object name in the html and accessin...
javascript jquery
[3, 5]
2,937,832
2,937,833
Android Hacking Prevention
<p>I am putting the final touches on my android app. The app is a full networking game, so it is always using the internet when you are running it. I want to prevent someone from extracting the .apk from the phone, decompiling the code and then changing and extending my classes to do bad things to my server. Here is ho...
java android
[1, 4]
2,444,642
2,444,643
Jquery Event Handling Question
<p>Say I have this code:</p> <pre><code>$(document).ready(function() { $(".foo").click(processFooClick); } </code></pre> <p>Once the document has loaded, then via javascript I dynamically add a new div with <code>foo</code> class to the document:</p> <pre><code>$("body").append( "&lt;div class='foo'&gt;click..&lt...
javascript jquery
[3, 5]
3,637,268
3,637,269
Continue with PHP or move to Java Framework
<p>I'm building a website for my friend's startup. I'm currently building it on PHP, MySQL, Apache. Everything is going pretty smooth till now, but one of my friend recommends i move to a Java framework because that'd be better when the site becomes bigger. I don't have any Java Knowledge and I have adequate knowledge...
java php
[1, 2]
5,688,288
5,688,289
Get hidden field value Jquery?
<p>I have the following HTML </p> <pre><code>&lt;input type="hidden" name="conf1" value="7th IEEE/IFIP International Conference on Embedded and Ubiquitous Computing (EUC-09)"&gt; &lt;input type="hidden" name="conf2" value="IEEE International Symposium on Parallel and Distributed Processsing with Applications"&gt; ...
javascript jquery
[3, 5]
4,189,094
4,189,095
Help me escape this php/js and stop warning error on zend studio
<p>This shouldn't be too difficult but for the life of my cant sort it out and its driving me mad.</p> <pre><code>$script = " $(document).ready(function(){ $('.row').hover(function() { var id = ($(this).attr('id').replace(/\D/g, '')); $('.row-edit-' + id).css('display', 'block'); }, fun...
php jquery
[2, 5]
5,796,043
5,796,044
JavaScript passing the Value to php query
<p>this is my first post here and hopefuly someone will help me fix this problem. I have this mysql query:</p> <pre><code>$query_history = " SELECT ProductProvider AS NameSS, type, StoreOpinionDate AS dating FROM cd_stores WHERE UserFID = '".$row_Profile['UserFID']."' ...
php javascript
[2, 3]
5,745,835
5,745,836
Set selection on longClick?
<p>How can I set a long-clicked item as selected? This does not work (item does not maintain selected when clicked):</p> <pre><code>listView.setOnItemLongClickListener(new OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView&lt;?&gt; parent, View view, ...
java android
[1, 4]
2,391,010
2,391,011
Extend jQuery plugin/widget object to add method
<p>I often see developers add methods to their own jquery Widget by extending the widget object. I'm not certain I really understand why and would appreciate if somebody could explain.</p> <p>For example, the author(s) of <a href="https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.autocomplete.js#L551" rel="...
javascript jquery
[3, 5]
4,697,368
4,697,369
How to create Multi language website in aspx with database
<p>How to create Multi language website in aspx where database store translations? I search many articles but there is not uniq solution.</p> <p>Anyone have good isea or know any good article?</p>
c# asp.net
[0, 9]
2,979,082
2,979,083
List view Item data insert to a List<> in c# asp.net
<p>My list view ItemTemplate is as follows</p> <pre><code>&lt;a href='&lt;%# getpath(Eval("IMAGE_PATH")) %&gt;' title='&lt;%# Eval("IMAGE_DESCRIPTION") %&gt;'&gt; &lt;asp:Image ID="capty" CssClass="capty" runat="server" AlternateText='&lt;%# Eval("IMAGE_DESCRIPTION") %&gt;' ImageUrl='&lt;%# retriveu...
c# asp.net
[0, 9]
6,030,822
6,030,823
Get number from one to x in a loop?
<p>How do I get all the digits from <code>0</code> - <code>x</code> if x is a variable like so:</p> <pre><code>var x = 5 </code></pre> <p>Then loop then so it logs them all individually by <code>console.log()</code>?</p> <p>I was thinking I could use <code>.each()</code>, but it might make more sense to use somethin...
javascript jquery
[3, 5]
3,116,001
3,116,002
Browser History -> Database
<p>I want to fetch history from browser as soon as a web site is loaded in the browser. It should fetch clients' browser info and save it in a database so that admin may check out the website that is frequently opened and can do survey on the data.</p>
c# asp.net
[0, 9]
3,710,758
3,710,759
rename column in a list
<p>in a datatable you can rename column as follows:</p> <pre><code> dt.Column[0].ColumnName="name"; </code></pre> <p>Is it possible to do something similar with <code>list&lt;MyType&gt;</code>? I need to retrun list of objects with modified column names. to bind to a gridview some special way.</p>
c# asp.net
[0, 9]
1,229,666
1,229,667
How to set combination of key codes in javascript
<p>I use this code for replacing <kbd>Enter</kbd> key with <kbd>TAB</kbd> key :</p> <pre><code>function EnterTab() { if (event.keyCode == 13) event.keyCode = 9; return false; } </code></pre> <p>I want to know what can I do if I want replace right arrow key with <kbd>SHIFT</kbd> + <kbd>TAB</kbd>?</p>
javascript jquery
[3, 5]
1,128,843
1,128,844
IE 9 - Object doesn't support property or method 'Format'
<p>need a little help here.</p> <p>I decided to transfer some of my javascript function in one .js file. Those functions are working properly in other browser EXCEPT IE.</p> <p><strong>NOTE:</strong> Code below was store in a separate js file "<strong>my_js.js</strong>"</p> <pre><code>var dialogConfirmed = false; ...
javascript jquery asp.net
[3, 5, 9]
5,709,934
5,709,935
How to do a clear interval in javascript?
<p>My Code:</p> <pre><code>$(function() { $('a.startSlideshow').click(function() { startSlideShow = window.setInterval(function() { slideSwitch() }, 1000); }); $('a.next').click(function() { if (startSlideShow) { clearInterval(startSlideShow); } ...
javascript jquery
[3, 5]
2,084,701
2,084,702
How to apply the fore color and bold in message text using c#..net
<p>i am displaying the one confirm box after saving the values like this</p> <pre><code>showalert("Quote has been saved successfully. Your Submission Number is:" + SaveValue ); </code></pre> <p>now i have display the savevalue bold and underline and some fore color, how to apply(using any format and html styles also)...
c# asp.net
[0, 9]
3,585,064
3,585,065
question about 128 bit number
<p>can i represent 128 bit number in java? or in c++?</p>
java c++
[1, 6]
4,022,751
4,022,752
Loop through string of dropdown options and select
<p>I want to select an option in a string, where the string will be the contents of a dropdown, but I dont know how to loop through the string as an object please. In the example I would like "Saab" to be selected and the string alerted.</p> <pre><code>var x = '&lt;select&gt;&lt;option&gt;Volvo&lt;/option&gt; &lt;op...
javascript jquery
[3, 5]
5,619,142
5,619,143
Simpler way to limit entries in a .each() loop
<p>I've been wanting to know if there's a good, jQuery-esque way to do the following:</p> <pre><code>var count = 0; $("p").each(function() { if (count &gt;= 5) return false; $(this).toggleClass("highlight"); count++; }); </code></pre> <p>Is there a similar function as <code>each()</code> in ...
javascript jquery
[3, 5]
4,070,087
4,070,088
Javascript / jQuery: Only fire animation if mouse isn't over the element after page load
<p>I have a slider on a page and a function that fades out the previous/next arrows after a few seconds, and then when the user hovers over the slider they fade back in. The only issue is that when the slider loads and the user has their mouse hovering over it, the arrows still fade out, and the user has to move the mo...
javascript jquery
[3, 5]
2,568,296
2,568,297
Is jQuery appropriate for all javascript purposes?
<p>I just posted a question a few minutes ago about whether jQuery and other frameworks are the new defacto standard in all javascript circumstances (adding my own reasoning for why in some cases it should not be used, such as simple form validation, or for mobile apps, where bandwidth is a premium) and the question wa...
javascript jquery
[3, 5]
3,979,221
3,979,222
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]
1,540,927
1,540,928
reference an array from using an object name
<p>Lets say I have a function <code>foo(bar){}</code> and the parameter <code>bar</code> accepts a jQuery object. Lets say I pass in <code>bubbleOne</code> as the parameter. </p> <p>Additionally I have an array called <code>bubbleOneDetails[]</code> that holds a lot of information about the <code>bubbleOne</code> obje...
javascript jquery
[3, 5]
1,292,737
1,292,738
Disable click if class ="X", jQuery
<p>Im trying to build a tabbed content box, and im wondering if its possible that i can disable 1 link with a specific class, such as 'disabled' </p> <p>I read somewhere about a function called preventDefault, would this work?</p> <p><a href="http://jsfiddle.net/Ssr5W/" rel="nofollow">http://jsfiddle.net/Ssr5W/</a></...
javascript jquery
[3, 5]
2,848,196
2,848,197
converting jquery to pure javascript
<p>I have a function that creates an image with the canvas object. The last line of the function says this:</p> <pre><code>$('body').css({ 'background-image': "url(" + Canvas.toDataURL("image/png") + ")" }); </code></pre> <p>I'm looking to convert this line into pure javascript to remove the jQuery dependency. Any su...
javascript jquery
[3, 5]
1,822,645
1,822,646
Illegal XML character
<p>I have the following table row:</p> <pre><code>&lt;tr id="trInbox" runat="server" class="normal" style='cursor:pointer; font-weight:&lt;%# StyleBold(Convert.ToBoolean(Eval("inbRead")) ) %&gt;' onclick='selectedRow(this,&lt;%# Eval("INBID") %&gt;)' onMouseOver="if(this.className!='selected') this.style.backgro...
c# asp.net
[0, 9]
2,454,698
2,454,699
In an Asp.net MVC view, how do I use jQuery to parse the XML just returned from a controller
<p>In my MVC view (using VS 2012 RC), I'm attempting to parse the XML freshly returned from my Controller. Here is my view code:</p> <pre><code>@model RzMvc.Models.PortfolioResponse @{ ViewBag.Title = "PortfolioList"; } &lt;script type="text/javascript"&gt; $(displayXmlResponse); function ...
jquery asp.net
[5, 9]
3,764,736
3,764,737
Check list box before entering a record
<p>In <code>ASP.NET/C#</code> how to check if the <code>listbox</code> has a duplicate value before entering a value from <code>textbox</code>.</p> <p>I tried</p> <pre><code>If(ListBox1.Items.Contains(TextBox1.Text)) { // do nothing } else { ListBox1.Items.Add(TextBox1.Text); } </code></pre> <p>I am getting error ...
c# asp.net
[0, 9]
5,674,323
5,674,324
Running a script based on a dynamically generated DOM element
<p>I'm working with a third-party product. It uses JavaScript (non-JQuery) code on the page to generate DOM elements on the fly.</p> <p>Is it possible to run a jQuery script whenever this third-party code generates a DOM element matching a given selector?</p> <p>To explain in another way, I don't want to try and inte...
javascript jquery
[3, 5]
211,695
211,696
Use timertask to update clock each X seconds?
<p>I'm trying to update my digital clock using timertask. I have created a function called updateClock() which sets the hours and minutes to the current time but I haven't been able to get it to run periodically. From what I've read in other answers one of the best options is to use timertask however I haven't been abl...
java android
[1, 4]
2,468,541
2,468,542
Move table from last index to first
<p>I am trying to move the last row in a table to the first row. I am moving the asp:Wizard's next navigation table row to the top.</p> <p>Here's my code. What am I doing wrong? The table has 8 rows. It's just a plain jane wizard right now.</p> <pre><code> $(document).ready(function () { var wizard = $...
jquery asp.net
[5, 9]
67,608
67,609
C# ASP.NET Page Leaving event?
<p>I was looking for an event that would fire or a way to tell if the user was leaving a page. Either to navigate to another page or closing the page alltogether. Is this possible through the events that fire?</p>
c# asp.net
[0, 9]
410,284
410,285
Text labels in textbox being passed onsubmit
<p>I found this useful little method of displaying field titles within the text fields themselves.</p> <p><a href="http://viralpatel.net/blogs/2009/09/default-text-label-textbox-javascript-jquery.html" rel="nofollow">http://viralpatel.net/blogs/2009/09/default-text-label-textbox-javascript-jquery.html</a> </p> <p>Onl...
javascript jquery
[3, 5]
2,764,751
2,764,752
add up widths of elements until a ceiling is meet
<p>I have a header text changes length. I also have a set of logos that have a static length.</p> <p><b>The problem:</b> When the header (text) gets too long or short the logos either do not use the space effectively or the logos end up going to another line.</p> <p><b>Solution in Simple Terms</b> I want a script tha...
javascript jquery
[3, 5]
5,825,314
5,825,315
JQuery vs GetElementById
<p>I'm trying to do something since yesterday, and I'm really stuck. Here is what « works » for now :</p> <pre><code>&lt;h1 onclick="functionToggle(&lt;?php echo "'".$base."'" ?&gt;)"&gt; &lt;?php echo $base ?&gt;&lt;/h1&gt; </code></pre> <p>which echo :</p> <pre><code>&lt;h1 onclick="functionToggle('helpers')"&gt...
php javascript jquery
[2, 3, 5]