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
1,205,915
1,205,916
(jquery) enabling a submit button when OPTION value selected
<p>So I want to enable a submit button whenever an option in my select box (#purchase) is selected (so long as the selection is not the default value. </p> <p>Here is the jquery code I put together, which is apparently not very good. :)</p> <pre> <code> $(document).ready(function(){ $('input[type=\"submit\...
javascript jquery
[3, 5]
2,182,767
2,182,768
jQuery / iScroll - Scrolling panel with clickable images
<p>I have a scrolling panel (using <a href="http://cubiq.org/iscroll-4" rel="nofollow">iScroll4</a> &amp; jQuery) to navigate a horizontal list of thumbnails, like below.</p> <p><img src="http://i.stack.imgur.com/qB1du.png" alt="enter image description here"></p> <p>Using my mouse, I can grab and slide this panel nic...
javascript jquery
[3, 5]
1,083,610
1,083,611
Replace an image in code behind for Asp.net
<p>I have a page, which is called from 2 different functions. For each function, the page has to be display different image. I have 2 images. </p> <p>On the aspx page, code is like this. Please help me out how to display different image for different functions!! Thanks Guys!!</p>
c# javascript asp.net
[0, 3, 9]
3,974,637
3,974,638
How do I dynamically get the value of a property of a JavaScript object?
<p>I might not know what to call this, but essentially I want to pass the name of the property dynamically and then get the value of that property within my objects data property. Something like this:</p> <pre><code>function myFunc(e, myProperty) { alert( e.data[myProperty] ); } var myValue = myFunc(myObject, "s...
javascript jquery
[3, 5]
747,403
747,404
AutoScroll div content both ways
<p>I want to make a div autoscroll it's content. The content height is variable. Here is what I managed to work out, but if I set the height to .childElement.outerHeight or height, it will only scroll 78px, I don't know why.</p> <pre><code> var element = jQuery('#content'); setInterval(scrollDown(element),...
javascript jquery
[3, 5]
5,450,779
5,450,780
How to choose all the elements of INPUT?
<p>How to choose all the elements of INPUT with style="color: #F20808"?</p> <pre><code>&lt;form&gt; &lt;input type="text" value="1"&gt; &lt;input type="text" value="2" style="color: #F20808"&gt; &lt;input type="text" value="3" style="color: #F20808"&gt; &lt;input type="submit" value="submit"&gt; &lt;/form&gt; $('form...
javascript jquery
[3, 5]
4,759,297
4,759,298
Use Jquery variable to identify a div class/Id
<p>I'm sure the answer to this is simple, I've just been able to figure it out.</p> <p>I have a simple click function which applies to any links in a list being clicked. When one is clicked, I want it to remove a class on a div, which is related to one of the links attributes. E.g:</p> <pre><code>// The link &lt;li&g...
javascript jquery
[3, 5]
2,471,960
2,471,961
Folder Browser Dialog Box in ASP.Net
<p>I've created a word document generator in C sharp and I want that generated word document to be save in a specific place in the client. I'm looking for a similar functionality like FolderBrowserDialog in Windows Form. I'm using ASP.Net and I tried may solutions but still no luck. Anyone can help me.</p>
c# jquery asp.net
[0, 5, 9]
1,326,948
1,326,949
Calling Javascript on a page programmatically (in c#) and then submitting it back to the server
<p>I need to request a page (I'm using httpwebrequest at the moment), call some javascript ( e.g</p> <p>function selected(id) { document.getElementById("selected").value = id; }</p> <p>and then submit that back to the server . . . is this possible?</p> <p><strong>EDIT</strong></p> <p>Sorry for the vag...
c# javascript
[0, 3]
5,326,297
5,326,298
Some Javascript variables not displaying in window when they should
<p>I have a web form and I am using JQuery to pull values the user has input and display them on the screen with an additional string added to it. The problem is that only two of the values are being displayed. When I look at the debugger, I can see the variables are populated but they aren't showing up on the screen...
javascript jquery
[3, 5]
5,600,515
5,600,516
How can i determine whether a mouse is connected or not using PHP?
<p>Is it possible to determine whether mouse or keyboard is plugged in or not in PHP? If not is it possible in Java? </p>
java php
[1, 2]
4,932,703
4,932,704
Transfer data from desktop to android device
<p>I have started working on Android platform a few days ago. I want to transfer data from a desktop computer to a android device (ICONIA TAB). I am using C# in the desktop computer and want to transfer data using wireless network. </p> <p>For instance, if I move the cursor in a C# form, it will pass the corresponding...
c# android
[0, 4]
1,079,503
1,079,504
Is it a good idea to store my DataContext in Session Memory?
<p>I'm writing a pretty straightforward ASP.net project. It's using a Linq2Sql DataContext to access stored procedures. There's a IDisposable class that creates a new DataContext in it's constructor and disposes it in it's dispose.</p> <p>Whenever possible I group together requests inside the:</p> <pre><code> usin...
c# asp.net
[0, 9]
5,524,148
5,524,149
Super Noob Question: Getting a returned integer value from a Method
<p>This is a super noob question... I created a method that gets a sharedpreference and returns it. However, I don't know how to get and use the integer that is returned by the method.</p> <p>here is the method:</p> <pre><code>public int getX() { return mPrefs.getInt("x", 1); } </code></pre> <p>How do I call th...
java android
[1, 4]
5,750,481
5,750,482
Attaching event handler to each table cell at runtime
<p>I have created a table at design time and adding rows to it at runtime. I want to attach a mouseover event to each row of first column which displays the respective tooltip.</p> <pre><code>for(ctr=0;ctr&lt;noOfRows;ctr++){ var myTable=document.getElementById("myTable"); var newRow = myTable.insertRow(1); ...
javascript jquery
[3, 5]
365,274
365,275
onContextItemSelected to Dialog
<p>I get this error when i am selecting a ContextMenu Item to pop up a custom Dialog.</p> <pre><code> W/InputManagerService(59): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44f518c0 </code></pre> <p>Code below </p> <pre><code> public boolean onContextItemS...
java android
[1, 4]
95,985
95,986
C# - Get JavaScript variable value using HTMLAgilityPack
<p>I currently have 2 JavaScript variables in which I need to retrieve values from. The HTML consists of a series of nested DIVs with no id/name attributes. Is it possible to retrieve the data from these variables using HTMLAgilityPack? If so how would I go about doing so, if not what would be required, regular expr...
c# javascript
[0, 3]
5,060,743
5,060,744
microsoft jscript runtime error object doesn't support this property or method jquery
<p>I a using asp.net vs 2008.I am trying jquery. I am getting this error <strong>"microsoft jscript runtime error object doesn't support this property or method jquery"</strong><br> Any help is appreciated.</p> <p>This is the code i am using.</p> <pre><code> &lt;title&gt;&lt;/title&gt; &lt;script type="text/java...
jquery asp.net
[5, 9]
2,722,980
2,722,981
ImageView Not Shown After Rotation In Android
<p>Actually I programming a app that use image rotation. But when I rotate image, it doesn't show anything.</p> <p>This is my code:</p> <p>XML file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rotat...
java android
[1, 4]
4,137,212
4,137,213
Combine two objects into one
<p>I'm preparing to pass values to a method:</p> <pre><code> private string BuildMessage(int templateID, string body, object data) </code></pre> <p>where the <strong>data</strong> param is an array of name/value pairs. To prepare my values for that <strong>data</strong> param I need to combine the properties of a str...
c# asp.net
[0, 9]
2,013,931
2,013,932
Add and transform layers of images and text like Photoshop fx
<p>This is just a question of approach and ideas, rather than solving an issue.</p> <p>You know it from Photoshop, where you can add layers of text and images onto each other and transform and move them around to design a complete image. </p> <p>What do you call this? And do you know some jQuery plugins that does thi...
javascript jquery
[3, 5]
3,749,975
3,749,976
Jquery / Javascript find first visible element after scroll
<p>I have code like below:</p> <pre><code>&lt;div id="container"&gt; &lt;div class="item" id="1"&gt;blah blah&lt;/div&gt; &lt;div class="item" id="2"&gt;blah blah 2&lt;/div&gt; &lt;/div&gt; </code></pre> <p>But actually there are lots and lots of with class='item'. </p> <p>Basically as the user scrolls this great ...
javascript jquery
[3, 5]
5,331,625
5,331,626
How to use for loop to scan all controls in page in ASP .NET?
<p>How to use for loop to scan all controls in page in ASP .NET?</p> <p>as i would like to validate all textboxs' text in one for loop</p>
c# asp.net
[0, 9]
889,895
889,896
How can I use a JavaScript variable as a PHP variable?
<p>I'm trying to include JavaScript variables into PHP code as PHP variables, but I'm having problems doing so. When a button is clicked, the following function is called:</p> <pre><code>&lt;script type="text/javascript"&gt; function addTraining(leve, name, date) { var level_var = document.getElementBy...
php javascript
[2, 3]
3,591,432
3,591,433
How to access data binding object in aspx page in ASP.NET?
<p>I am trying to hide or show a certain section of my table depending on the value of a property in my binding object(s). </p> <pre><code>public class Class1 { public bool Display { get; set; } } </code></pre> <p>In ASP.NET MVC, I can just do the following (assuming that Class1 is the model that binds to the pag...
c# asp.net
[0, 9]
4,630,454
4,630,455
How to find elements without a class in Jquery?
<p>I have the following html</p> <pre><code>&lt;div class="one"&gt;One&lt;div&gt; &lt;div class="two"&gt;two&lt;div&gt; &lt;div &gt;three&lt;div&gt; &lt;div &gt;four&lt;div&gt; &lt;div class="three"&gt;five&lt;div&gt; </code></pre> <p>How would I find the div elements which don't have a class attribute? ie three and ...
javascript jquery
[3, 5]
234,154
234,155
Disable button refresh browers
<p>I have a problem with sending message. I create a jsp page with calling form to send message using method Post. when i click button refresh on browers FF, it automatically send message again. I don't want to again send it. How could i disable button refresh?.</p>
java javascript jquery
[1, 3, 5]
2,543,765
2,543,766
Determine OS using the Environment.OSVersion object - C#
<p>What is the best to determine the Microsoft OS that is hosting your ASP.NET application using the <code>System.Environment.OSVersion</code> namespace </p> <p>I need an example for Windows XP, Windows Server 2003 and Windows Vista</p> <p>Here is what I am trying to accomplish using pseudocode</p> <pre><code>switc...
c# asp.net
[0, 9]
3,792,138
3,792,139
Get value of each on blur() event
<p>I have a page which contain a bunch of text area generated by a PHP script. There is a hidden input type that contains an id of a variable. Basically what I want to do is to call the .ajax() JQuery method on .blur() on any of the text areas and pass the value of the textarea + the id from the hidden input. All of m...
javascript jquery
[3, 5]
2,902,586
2,902,587
How do i remove/destroy all child elements from a div entirely- .remove() does not seem to work properly
<p>Im dynamically loading content into gallery format-</p> <p>i have a table or list of image data, it needs to be able to discard the entire set of data, and reconstruct it again with new data.</p> <p>The problem i have, is when i call .remove() on the entire div structure, it stores all of the child elements if i g...
javascript jquery
[3, 5]
2,046,221
2,046,222
Multicast delegates in C++
<p>I am in the process of converting some C# code into C++. I had initially though of replacing the delegates with C-style callbacks. However, on further inspection of the code, I have realized that this is not going to work, as the delegates are being used in a multicast manner, with (pseudo C# code) statements like:<...
c# c++
[0, 6]
3,170,915
3,170,916
Unescape JavaScript's escape() using C#
<p>Are the any functions in C# that handle escape/unescape like JavaScript?</p> <p>I have a JSON string like this:</p> <p><code>{"Feeds":[{"Url":"www.test.com","FeedType":"Twitter"},{"Url":"www.test2.com","FeedType":"Youtube"}]}</code></p> <p>Which looks like this after <code>escape()</code></p> <p><code>%7B%22Feed...
c# javascript asp.net
[0, 3, 9]
5,207,456
5,207,457
load more using jquery?
<p>I have a div having 100 results like.</p> <pre><code>&lt;div id="main"&gt; &lt;div class="sub"&gt;This is a test 1&lt;/div&gt;&lt;/br&gt; &lt;div class="sub"&gt;This is a test 2&lt;/div&gt;&lt;/br&gt; &lt;div class="sub"&gt;This is a test 3&lt;/div&gt;&lt;/br&gt; . . . &lt;div class="su...
javascript jquery
[3, 5]
697,873
697,874
Why this codeblock is creating an infinite loop?
<p>I was playing with a fiddle earlier today while trying to answer a question and found a confusing thing. Being a JS newbie I am not being able to debug whats going wrong myself. I even tried to check the source0 of <code>$.fn.show</code> in jQuery source but couldn't figure out whats going wrong.</p> <p><strong>HTM...
javascript jquery
[3, 5]
3,091,514
3,091,515
Change dates inside span to match user's timezone
<p>I have this function:</p> <pre><code>function get_time_zone_offset() { var current_date = new Date(); return -current_date.getTimezoneOffset() / 60; } </code></pre> <p>I want a jQuery code to change every span which class is 'timeago' title value to its value plus the number the function above retur...
javascript jquery
[3, 5]
504,942
504,943
how to change class of <a> tags in jquery
<p>I have a table structure, something similar to</p> <pre><code>&lt;table style="width: 100%;"&gt; &lt;tr&gt; &lt;td&gt; &lt;a href="#" class="xx"&gt;one&lt;/a&gt; &lt;/td&gt; &lt;td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;a href="#" class="xx"&gt;...
javascript jquery
[3, 5]
4,316,537
4,316,538
Make button with function in jquery?
<p>I am trying to make a button with click function to run my jquery:</p> <pre><code>Function tester(){alert("test")} </code></pre> <p>My raw html button code is:</p> <pre><code>&lt;button class="t1" id="52" onClick="tester()"&gt;sometext&lt;/button&gt; </code></pre> <p>But i want to make the button using just jque...
javascript jquery
[3, 5]
2,468,146
2,468,147
Java / Android rookie here, please help me
<p>{@link android.media.MediaMetadataRetriever#METADATA_KEY_ARTIST}</p> <p>What is happening above?</p> <p>What does "@link" mean?</p> <p>and why is there a #? What does that # mean? </p> <p>thanks a lot, experts @ Stack Overflow~</p>
java android
[1, 4]
4,398,292
4,398,293
Android Shared preferences with multiple activities
<p>How do i retrieve shared preferences that have been saved from a previous activity? Do i need to enable file writing or some other manifest modifications?</p>
java android
[1, 4]
1,957,505
1,957,506
Coloring Map in C#
<p>i have map of a city i want to color the diffent area of that map with deffernt color , any one help me with example please, one thing more i am beginer in stackoberflow and also in in c# coloring so i have no idea from where to start and no idea about coloring in C#</p>
c# asp.net
[0, 9]
247,648
247,649
How do I add an additional window.onload event in Javascript
<p>In my asp.net User Control I'm adding some script to the window.onload event like so:</p> <pre><code>if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), onloadScriptName)) Page.ClientScript.RegisterStartupScript(this.GetType(), onloadScriptName, "window.onload = function() {myFunction();};", tru...
c# asp.net javascript
[0, 9, 3]
411,917
411,918
why .on can't be used in my $(document).ready() function?
<p>The page can be viewed at</p> <p><a href="http://cistrome.org/cps/seqconfig?did=2693" rel="nofollow">http://cistrome.org/cps/seqconfig?did=2693</a></p> <p>When load in Firebugs, it gives me this error:</p> <pre><code>TypeError: $(".open_gene").on is not a function [Break On This Error] $(".open_gene").on('cha...
javascript jquery
[3, 5]
1,968,182
1,968,183
Can I programmatically tell when a new tab is opened in the browser?
<p>I'm addressing a problem with an ASP .NET web application where I want to avoid using query strings to uniquely identify dynamic content. I want to index the content relative to the opened tab/window that is displaying it. Is this programmatically possible? If so, what is the compatibility of the approach across ...
asp.net javascript
[9, 3]
4,702,123
4,702,124
Why does release mode affect on Thread.CurrentThread.CurrentCulture?
<p>I have ASP .NET application. I set culture in Application_Begin request:</p> <pre><code>System.Threading.Thread.CurrentThread.CurrentCulture = myCulture; System.Threading.Thread.CurrentThread.CurrentUICulture = myCulture; </code></pre> <p>When I get current culture from page, it is <code>myCulture</code> in debug ...
c# asp.net
[0, 9]
1,083,828
1,083,829
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]
539,947
539,948
Clean way of using polymorphism at the presentation layer - ASP.NET
<p>A lot of times, I find myself doing UI control manipulation in the code behind and wanted to find a clean way of doing this.</p> <p>Use Case: A drop down has CSS1 style, editable in Edit mode but has CSS2 style, view only in View mode</p> <p>I can achieve this by simply have a set of switch case state...
c# asp.net
[0, 9]
2,079,522
2,079,523
check in .cs page and displaying in .aspx
<p>In my .cs page i want to check some condition and depending on that i will show/hide a div in my .aspx page. Is that possible?</p> <p>like </p> <pre><code>if(j==0) { div id="hi".visible=false; //something like that } </code></pre> <p>I hope u guys understood the problem.</p> <p>Thank you</p>
c# asp.net
[0, 9]
162,019
162,020
Display "Enable JavaScript" message only when JavaScript is disabled
<p>I want to display to the user a message that says "please enable JavaScript" in the case that JavaScript is disabled. I want that message, and nothing else to be displayed when JavaScript is disabled.</p> <p>So, to do this, I can put the message in the DOM and hide all other elements with display:none. Then in Java...
javascript jquery
[3, 5]
3,526,690
3,526,691
Multi month selector
<p>Does anybody know whats the name of the multi-month selector control used in Mint.com? . I have a video of it been used <a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=p3ceNFLLR3E" rel="nofollow">here</a>. I've come across a lot of date picker and calendar controls but all of them are pretty much...
javascript jquery
[3, 5]
3,987,331
3,987,332
Sending email to a user
<p>I am using this code to send email</p> <pre><code>var message = new MailMessage("abc@somedomain.com", "administrator@anotherdomain.com"); message.Subject = "Testing"; message.IsBodyHtml = true; message.Body = "&lt;html&gt;&lt;body&gt;IMAGINE A LOT OF HTML CODING HERE&lt;/body&gt;&lt;/html&gt;"; </code></pre> <p>Th...
c# asp.net
[0, 9]
4,537,299
4,537,300
Page wise Loading in Gridview in Asp.net and C#
<p>I am using Linq to SQL to load data around 10k records which is taking time for paging. can you please let me know how to implement page wise loading of records for Grid View</p>
c# asp.net
[0, 9]
2,679,271
2,679,272
Getting Textbox value in Javascript
<p>I am trying to get the value of the textbox in a javascript, but its not working. Given below is the code of my test page</p> <pre><code>&lt;%@ Page Title="" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeFile="test3.aspx.vb" Inherits="test3" %&gt; &lt;asp:Content ID="Content1" ContentPla...
javascript asp.net
[3, 9]
5,846,667
5,846,668
Click on Div to get information box for a few seconds
<p>I have this code below: And what I need to do is to be able to click on the Div right below and when done the #info_page div would show up in the middle of the screen for a few seconds. Like a dialog but just a simple jquery temp show() with a timer? Is this possible?</p> <p>The current code is below.</p> <pre><co...
javascript jquery
[3, 5]
4,268,807
4,268,808
jQuery selector to grab cells in the same column
<p>Given a multirow, multicolumn table, how can I select all cells in the same <em>column</em> as any arbitrary cell (e.g. a cell that is clicked on).</p> <p>Something like:</p> <pre><code>$("td").click(function(){ var columnNo = $(this).columnNo? $(this).closest("table").find("tr td:eq("+columnNo+")").css("c...
javascript jquery
[3, 5]
3,026,820
3,026,821
Provide link to lightbox image
<p>I'm using a light box(jquery.lightbox-0.5.js) for my gallery page. And my code for display the image is</p> <pre><code>&lt;ul&gt; &lt;div class="gallery" id="gallery1"&gt; &lt;li&gt; &lt;a style="display: inline;" href="sample.jpg" target="_blank"&gt; &lt;img src="sample_thumb.jpg" alt="" /&gt; &lt;/a&gt; &l...
php jquery
[2, 5]
1,668,166
1,668,167
create an object
<p>how can i create an object so i can get the item. i found an example that said </p> <pre><code> Object item2 = getListView().getAdapter().getItem(holder.position); </code></pre> <p>to create the object but thing is different in my class can you help me to find how cause i need the object</p> <p>here is my c...
java android
[1, 4]
5,123,945
5,123,946
Call PHP function from android?
<p>I want to call specific php function on server from Android application and also to send some parameters. Till now I achieved that I can open php file using HttpClient and executed data transfer to Json and show that in my app. So, now I want to be able to call specific function and send parameter to it, how can I d...
java android
[1, 4]
1,364,414
1,364,415
adding event listeners in onCreate
<p>I want to implement a <code>LocationListener</code>. Checked some tutorials and found this:</p> <pre><code>/** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Acquire a reference...
java android
[1, 4]
3,651,062
3,651,063
How to pass variable from PHP to JS, perform math on the variable then output to an on page element
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7705921/how-to-access-php-variables-from-within-javascript">how to access PHP variables from within JavaScript?</a> </p> </blockquote> <p>I am trying to pass a variable from mySQL to PHP then to JavaScript to pe...
php javascript
[2, 3]
5,264,860
5,264,861
How to get image width and height uploaded using ajaxfileupload asp.net
<p>I think ajaxcontroltoolkit:ajaxfileupload has too many bugs and wane. since I'm using this component frequently in my projects, I overcome to many serious disturbing bugs and functionality of this control. Now, I seriously need to get uploaded image width and height using ajaxfileupload before I save it to check eit...
c# asp.net
[0, 9]
2,928,728
2,928,729
javascript inline callback function to separate function
<p>Why is this code working:</p> <pre><code>function onCordovaReady() { navigator.globalization.getLocaleName(function (locale) { jQuery.i18n.properties({ name:'message', path:'lang/', mode:'map', language:locale.value, callback: function(){ ...
javascript jquery
[3, 5]
463,616
463,617
How can I access a GridView on a page from a control on a Page?
<p>I have an aspx page which has a GridView and a Panel with Summary Data. The Summary Data is in a control and the GridView is on the aspx page. When someone clicks an item in the Summary Data, I want to rebind the GridView, but I can't figure out how to do it from the control.</p> <p>I tried using FindControl, but...
c# asp.net
[0, 9]
2,094,560
2,094,561
How to convert a string to a 24hr time?
<p>So I have a JSON returning times like "10:00am"> i need to create an array with eight other times from the current system time. so it would go like "10:00am, 11:00am, 12:00pm, 1:00am, etc"</p> <p>Here's my current code so far:</p> <pre><code> var katie=new Array(); var webdate = new Date().getHours(); var ...
javascript jquery
[3, 5]
5,661,564
5,661,565
send array using jquery
<p>i have a variable $visitRecord->getReferallist() which get the list of doctors in an array . i need to send the array to a php file and do foreach action in php file.. how do i send this array variable in the jquery . This code did not work.</p> <pre><code> function seekOpinion() { var queryUrl = "&lt;?ph...
php jquery
[2, 5]
1,626,754
1,626,755
Android database from website
<p>i was wondering a few things.</p> <p>I Have a database with 3 rows, and i have to use the database on my website cause it has to be shared with every one that downloads my app cause they can add more things.</p> <p>Table is called </p> <p>Poka</p> <p>And the rows are - ID - word(TEXT) - reply(TEXT)</p> <p>Th...
java android
[1, 4]
3,933,073
3,933,074
Struts vs Zend ? Java vs PHP?
<p>I know it's a hot question that need anwsers ^^ From my viewpoint, using Java vs PHP, is nowadays a problem of system resources (Hardware, Software, etc.).</p> <p>For Java, you have to deploy J2EE Stack (JDK, AppServer, etc.) (~200M) on your server, for PHP you need to deploy a LAMP system (~100M). Using Java was ...
java php
[1, 2]
3,202,598
3,202,599
Using != with counter controlled loops
<p>Last question for today all...I will get back with tomorrow..I have a lot to follow up on...</p> <p>I am looking in Reilly Java text- talking about counter controlled loop patterns..(does not matter what language..)</p> <p>The author for counter controlled loops (for, while, etc) and with nesting loops...uses the ...
java c++
[1, 6]
5,196,334
5,196,335
Issue when scrolltofixed plugin switches to position: absolute
<p>i'm having a problem using the scrolltofixed jquery plugin</p> <p><a href="https://github.com/bigspotteddog/ScrollToFixed" rel="nofollow">https://github.com/bigspotteddog/ScrollToFixed</a></p> <p>i use:</p> <pre><code>$('#tostick').scrollToFixed({ limit: $('#app-footer').offset().top - $('#tostick').height() - 2...
javascript jquery
[3, 5]
3,230,419
3,230,420
Put commas in input value
<p>Having an issue with commas and values.</p> <p>I have a value that keeps changing all the time from checkboxes, sliding from jQuery ui slider and keyup functions. I want to add commas to the total that is being changed each time rather than building it into each function. If I have to build it into each function,...
javascript jquery
[3, 5]
5,862,407
5,862,408
Why the autocomplete widget doesn't work if the text is NOT empty?
<p>How is ti possible that the code below show the array ONLY if the text is empty... It should show the list during the typing NOT when the text is empty.</p> <p>STEPS:</p> <ol> <li>Focus on text</li> <li>type a text, like 'abc' (this text returns an array doing the ajax call)</li> <li>nothing happen</li> <li><p>del...
javascript jquery
[3, 5]
2,367,099
2,367,100
Layout touch rotation
<p>What is the correct approach to rotate a layout that is filled with ImageViews, but the rotation should happen via the touch event?</p> <p>I.e. I have 4 ImageView objects in one layout, when the user does a rotate "gesture" with the finger, I want the Layout to rotate as the finger goes (not animation). And of cour...
java android
[1, 4]
4,542,902
4,542,903
Custom beforeunload prompt with javascript
<p>I'm trying to setup an exit survey so that when a user leaves our checkout page they are prompted asking them why they're leaving.</p> <p>Is this possible?</p> <p>I've spent some time on Google but it appears as though the only solution is a simple browser-controlled confirm-like prompt. Is this true?</p> <p><st...
javascript jquery
[3, 5]
2,340,582
2,340,583
Bind multipal value in grid
<p>I try :</p> <pre><code> &lt;asp:TemplateField HeaderText="Local "&gt; &lt;ItemTemplate&gt; &lt;asp:TextBox ID="txtLocal" runat="server" Text='&lt;%# Eval("LPName") == null ? "" : Eval(Title) %&gt;' &gt;&lt;/asp:TextBox&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; </code></pre> <p>i want...
c# asp.net
[0, 9]
3,582,455
3,582,456
Is cursor over element (on page load)?
<p>I have a .hover() action assigned to an element to hide/show something depending on the cursor being over it. The problem I am running into is that when the page loads and the cursor is OVER the element it doesn't register as being over because its not firing the mouseenter event.</p> <p>Is there a another way to t...
javascript jquery
[3, 5]
5,095,051
5,095,052
How do you Response.Redirect to another website with the same name, but with different port?
<p>I have two separate websites running locally on my IIS server at work. One is on normal port 80 and the other 90. Now, I have a Default page which makes the users select one of the pictures that will redirect them to the correct website. </p> <p>It works fine with the port 80, since you don't have to specify which ...
c# asp.net
[0, 9]
393,770
393,771
Calling C# Code behind code from Java Script
<p>We are using VS2008. We are calling ActiveX shell scrip object which is created as EXE executable, which reads the Pinpad for authentication and returns the result. This object is called in Javascript in ASPX page.</p> <p>After getting the result we need to store the information, which we have written in C# code b...
c# javascript
[0, 3]
1,040,516
1,040,517
Hierarchical treeview implementation
<p>What is the best way to generate a hierarchical treeview in asp.net (C#) from a SQL database table filled with all of a company's employees? I will never know at what level or employee I will be starting at. Any links or directions would be appreciated.</p>
c# asp.net
[0, 9]
3,021,308
3,021,309
Detect if launcher is on foreground
<p>I'm using the following code to understand the processes currently on foreground:</p> <pre><code>ActivityManager activityManager = (ActivityManager) newContext.getSystemService( Context.ACTIVITY_SERVICE ); List&lt;RunningAppProcessInfo&gt; appProcesses = activityManager.getRunningAppProcesses(); for(RunningAppProce...
java android
[1, 4]
4,984,506
4,984,507
Submit button clicking changing the value of it to another thing
<p>maybe very easy! I'm php coder and I don't have experience in js but I must do this for one of my codes suppose I have sub1 in page after clicking it must be that sub1 but value now is sub2</p> <pre><code> &lt;html&gt; &lt;head&gt; &lt;title&gt;pharmacy&lt;/title&gt; &lt;/head&gt; ...
php javascript
[2, 3]
5,790,408
5,790,409
Accessing JS data from PHP
<p>A remote site is supplying a data structure in a js file.</p> <p>I can include this file in my page to access the data and display it in my page.</p> <pre><code>&lt;head&gt; &lt;script type="text/javascript" src="http://www.example.co.uk/includes/js/data.js"&gt;&lt;/script&gt; &lt;/head&gt; </code></pre> <p>D...
php javascript
[2, 3]
5,741,603
5,741,604
Tipsy tooltip is not working
<p>In <a href="http://www.designingstudios.com/projects/LSI_Html/detail.html" rel="nofollow">this page</a>, I have implemented tipsy tooltip, jbgallery two jquery plugins. You can observe tool tip appears when you rollover logo, i have written the same for icons appearing right bottom of the page i.e. (Tag, Facebook, T...
javascript jquery
[3, 5]
1,348,290
1,348,291
Highlighting search words like Chrome with jQuery
<p>I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this:</p> <blockquote> <p>$('myButton').click(function() {</p> <p>$('body').highlight($('#myInputText').val());</p> <p>});</p> </blockquote> <p>But I wonder how can I do the Chrome like highlighting, I mea...
javascript jquery
[3, 5]
4,239,821
4,239,822
for hovering 3 items at a time with javascript using same class
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/14579369/how-to-create-javascript-function-for-hovering-3-or-4-element-at-a-time">How to create javascript function for hovering 3 or 4 element at a time</a> </p> </blockquote> <p>I want to hover 3 element at a ...
javascript jquery
[3, 5]
5,093,723
5,093,724
Alternative of this script in jQuery?
<p>I use the following script to get the content of the <code>remaining.php</code>. <br> The drawback is that sometimes it doesn't work or it is kinda slow to display the text. Is there any other way of doing this ?</p> <p>Thank you</p> <pre><code>$(document).ready(function(){ $("#SubmitButton").click(function ()...
javascript jquery
[3, 5]
3,381,653
3,381,654
Converting simple python method(s) to C++
<p>I want to create an RLE compression and decompression method for a CS project I have to do. The problem is not so much the logic, but the know-how of C++. All I currently have learned in school is Python so I tried doing this project in Python and it was really easy...</p> <p>I plan to become well read in C++ but t...
c++ python
[6, 7]
5,027,230
5,027,231
jquery wrap element around a lot of elements
<p>I have following html and want to wrap with javascript or jquery a div around all li's (its not definied how many li's there are)</p> <pre><code>&lt;div class='example1'&gt; &lt;div class='example2'&gt; &lt;h1&gt;Test&lt;/h1&gt; &lt;div class='example3'&gt; &lt;li&gt;&lt;/li&gt; &lt;li&gt;&lt;/li&gt; .....
javascript jquery
[3, 5]
4,169,054
4,169,055
Getting sender in jQuery
<p>I have a large list of check boxes all with unique <code>id</code> values. I'd like to get the <code>id</code> of the checkbox that executes my JavaScript function. Can I do this using <code>$(this)</code>? Can you provide an example?</p> <p>Many thanks in advance!</p>
javascript jquery
[3, 5]
3,113,797
3,113,798
Getting value in <select>, using JQuery
<p>I need to get a current value of SELECT tag. And for this I'm using <code>$('select').val()</code>, but this return only default value and it's don't changed. May be I can help me?</p> <pre><code>$('div#buy input').fancybox({ ajax : { type : "POST", data : { id: $('input[name="...
javascript jquery
[3, 5]
4,430,527
4,430,528
jquery expanding and resizing problem
<p>Im using this jquery to try and control how wide and high a div opens depending on the screen resolution this is the code im using but it doesn't seem to be having any effect apart from cropping my image. I say it doesnt seem to work becuase it leaves a big space and when I look at firebug it tells me the box has ex...
javascript jquery
[3, 5]
3,359,188
3,359,189
Android custom list slow
<p>Is there a better way to create a custom list, for my code here seems to make for a less-responsive list. I can't use any of the standard Android lists because I need two ListView's in a ScrollView.</p> <pre><code> setContentView(R.layout.alertsview); inflater = (LayoutInflater)this.getSystemService(Context.L...
java android
[1, 4]
4,482,298
4,482,299
Which Form of Java should I learn before getting into Android Developing? (J2ME, J2SE, J2EE, servlet adn etc.)
<p>I want to take Java course for developing Android applications. I have all the necessary tools. But wanna ask before proceeding for course, Which Form of Java should I learn before getting into Android Developing? (J2ME, J2SE, J2EE, servlet adn etc.). What are the things which I should learn in that form?</p>
java android
[1, 4]
1,629,996
1,629,997
javascript prompt input
<pre><code>function show_prompt() { var name=prompt("Please enter your name"); } </code></pre> <p>I am calling this function when a button is clicked before submitting the form. </p> <p>How would I post the 'name' var with form so I can use it with php?</p> <p>Also, would it be possible to verify the user input be...
javascript jquery
[3, 5]
3,720,341
3,720,342
reference another dropdown value from js method call
<p>I am trying to pass in values from another dropdown (ddlColor) and pass it's selected id and text value into the event method for ddlEngine</p> <pre><code>&lt;asp:DropDownList ID="ddlEngine" runat="server" onchange="GetSearchResults(ddlColor.value, ddlColor.text, this.options[selectedIndex].text);" /&gt; </code></p...
javascript asp.net
[3, 9]
1,154,240
1,154,241
dropdownlist selectedvalue
<p>I've used a webservice to create a dropdownlist of countries and I'm trying to add the dropdownlist selection to the sql database, but when I do that by using ddlCountry.SelectedValue in my insert statement, only the first value in the dropdownlist is showing up in the table. Should I use onselectedindexchanged to s...
c# asp.net
[0, 9]
1,308,982
1,308,983
cycle through list, change style every x seconds
<p>I have a simple slideshow (jQuery Cycle) that displays an image every ten seconds (7 total images). In an adjacent div, I have a list with 7 bullet points. What's the easiest way to script a method in which the css/style of the appropriate bullet point changes as its accompanying image. The idea is to have all list ...
javascript jquery
[3, 5]
1,351,036
1,351,037
Increase element ID by one after every click?
<p>I am trying to clone multiple divs on my page by using the jQuery <code>.clone()</code> method. The problem is, as soon as a div is cloned, it needs to have a unique ID. The cloned ID has to be there too. I was thinking I could keep the old ID and then just add a number on, increasing as more div's are on the page. ...
javascript jquery
[3, 5]
5,473,405
5,473,406
How to increase performance of jQuery
<p>i have an chat application written in jsp and jQuery. I have used the setTimeout method for threads who are continuously posting request in some URL. My browser is hanging after some time and cpu utilization is very high. </p> <p>Is there any way to increase performance of JS?</p>
javascript jquery
[3, 5]
5,170,722
5,170,723
jquery: if (target) is child of ('.wrapper') then (do something)
<pre><code>var target = $(this).attr("href"); if {target is child of ('.wrapper')} then (do something) </code></pre> <p>simple syntax? can someone show me the correct syntax here?</p>
javascript jquery
[3, 5]
729,323
729,324
implement two interfaces in an anonymous class
<p>I have two interfaces:</p> <pre><code>interface A { void foo(); } interface B { void bar(); } </code></pre> <p>I am able to create anonymous instances of classes implementing either of these interfaces like so:</p> <pre><code>new A(){ void foo(){} } </code></pre> <p>or:</p> <pre><code>new B(){ ...
java android
[1, 4]
2,677,674
2,677,675
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]