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
754,556
754,557
Gridview on direct edit mode
<p>I want gridview directly on edit mode without any edit/update linkbutton on it and I want to update each row on every next different row selection. I have tried by putting textbox on itemTemplate and passed row index on row command (hidden button is created)updated on rowUpdating.</p> <p>Any ideas?</p>
c# asp.net
[0, 9]
3,858,491
3,858,492
While loading page in mozilla, First DIV code is not loaded
<p>While loading page in mozilla, First DIV code is not loaded tried to load html using inside</p> <pre><code>&lt;div id="mainContent"&gt;&lt;/div&gt; </code></pre> <p>with below call</p> <pre><code>if (destinationURL != null) { $.get(destinationURL, function(data) { $("#mainContent").attr("innerHT...
javascript jquery
[3, 5]
3,050,735
3,050,736
PHP class method called by jQuery
<p>I'm fairly new to jQuery and OOP in PHP, but what I have is a PHP Object that has an array</p> <pre><code>$array[0] = "a" $array[1] = "b" $array[2] = "c" $array[3] = "d" </code></pre> <p>and a select box in my HTML</p> <pre><code>&lt;select class="box"&gt; &lt;option value="1"&gt;First Letter&lt;/option&gt; &lt;o...
php jquery
[2, 5]
5,977,384
5,977,385
Jquery model popup maximize mode issue
<p>I want to open JQuery Dialog in maximized mode.<br> When I set Width &amp; Height properties of the model window It slightly goes out of inner window &amp; shows up horizontal scollbar. What's wrong in my code</p> <pre><code> $("#popupwin").dialog({ width: $(document).width(), height: $(do...
javascript jquery
[3, 5]
1,110,719
1,110,720
Exporting a ListView to Excel
<p>I have a ListView that I need to export to an Excel spread sheet. There a bunch of documentation to export GridViews and to a lesser extent ListViews to Excel but not so much in terms of doing some customization before export.</p> <p>Before exporting I need to prep the data, as a) only a subset of the columns need ...
c# asp.net
[0, 9]
2,324,564
2,324,565
Should I wrap jQuery document ready in a self executing function?
<p>I had a thought to do something like this:</p> <pre><code>(function(window, undefined){ $ = window.jQuery; $(function(){ // Do some stuff }); })(this); </code></pre> <p>Would you consider this good practice or bad? Does it have any implications for when jQuery(document).ready() would fire?...
javascript jquery
[3, 5]
771,526
771,527
Is there only Ajax part of jQuery?
<p>Is there only Ajax part of jQuery? The matter is I do not need the whole library but only its Ajax part (I need to include this part on several iframes). </p>
javascript jquery
[3, 5]
2,926,160
2,926,161
connect to ms sql database in a server
<p>i am working on a app which should take data from a database on a server. it is a ms sql database. i need some help like little code hints or some useful information.</p> <p>thank you!</p>
java android
[1, 4]
3,718,036
3,718,037
Using spinner OnItemSelectedListener() to start new intent
<p>I have a spinner and when the user selects I want to call another java class using new Intent. The code below worked when I was using a Button but now I have it attached to the Spinner select I think it has something to do with view.getContext();</p> <p>areaspinner.setOnItemSelectedListener(new OnItemSelectedListen...
java android
[1, 4]
5,720,350
5,720,351
AutoCompleteExtender - Get Primary Key into HiddenField
<p>I want to use autoComplete extender in a way similar to a dropDownList. Currently I have a dropdown List that holds a collection of companies. Selecting a company name enables me to get the value associated with the listItem.</p> <p>I want to replace the dropDownList with autocomplete extender and place a text box....
c# asp.net
[0, 9]
3,010,116
3,010,117
Post back issue
<p>OK. Let me ask the question this way: Generically, isn't the page cycle:</p> <p>page_load</p> <p>onclick and/or submit handlers</p> <p>page_load.</p> <p>If so, what should the values of the controls on the page be during the onclick/submit handlers? The values selected by the users, or the values from page_load?...
c# asp.net
[0, 9]
1,247,743
1,247,744
Does Android have any way to detect cyanogenmod and its version?
<p>I'm working on an android media player which needs equalizer. However, equalizer is only available on Gingerbread and above, but cyanogenmod 6 has modified audioflinger to act as equalizer, so I want to detect OS version.</p>
java android
[1, 4]
430,637
430,638
How can i remove columns which contains 0 using Jquery
<p>I have a table which contains suppose 4 columns i want to remove columns which contains 0 from first row to last row. In this case i want to remove 2nd &amp; 4th column how can i achieve this using jquery </p> <pre><code>1 0 10 0 2 0 20 0 3 0 30 0 </code></pre> <p>o/p should be</p> <pre><code>1 1...
jquery asp.net
[5, 9]
4,828,162
4,828,163
How does Apple change site based on whether Javascript is enabled?
<p>I am working on a site that will involve a lot of Javascript to show/hide elements in accordions, as well as other things. I want to make sure that even people that do not have Javascript enabled will be able to access all of the site's content (even if it is a little less pretty/interactive). I am not sure the best...
javascript jquery
[3, 5]
414,207
414,208
result out of jQuery.post()
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/14220321/how-to-return-the-response-from-an-ajax-call-from-a-function">How to return the response from an AJAX call from a function?</a> </p> </blockquote> <p>Im trying to get result out of a function in which a...
javascript jquery
[3, 5]
5,579,378
5,579,379
How do you set the "Visible" property of a ASP.NET control from a Javascript function?
<p>Bascially I want to know the best way to hide/show an ASP.NET control from a Javascript function. I figured I would just access the control in Javascript using:</p> <pre><code>var theControl = document.getElementById("txtEditBox"); </code></pre> <p>Then just set the control's Visible property to true/false. It d...
asp.net javascript
[9, 3]
5,809,570
5,809,571
Capitalize and color the first letter after a period in jquery
<p>I'm trying figure out how to color the first word after the period.</p> <p>I worked out capitalizing the first letter, but now I need it be colored. I preferred to be the first letter "red".</p> <pre><code>$(function () { function capitalizeSentences(capText, capLock) { if (capLock == 1 || capLock == true) { ...
javascript jquery
[3, 5]
4,576,775
4,576,776
jQuery get values of 4th and greater number of checkboxes clicked using an each loop
<p>I am running an each loop to a form, to sum values based on user selections and get the final price of a product. The hard part is that in specific checkbox groups I have further restrictions like: the group A will start adding to the price, after 4 and more checkboxes are clicked and only add the values of those cl...
javascript jquery
[3, 5]
2,586,692
2,586,693
How to create a delimited string dynamically with Jquery?
<p>Ok I'm kind of new to JavaScript and jquery so bare with me...</p> <p>I'm creating a dynamic form builder where table rows can be dragged, dropped, reordered and so on. Most of this is working but when it comes to deleting rows how would I created an array or set of values that I could post back to the php script t...
javascript jquery
[3, 5]
5,222,677
5,222,678
highlight specific divs (tds) onhover of a link
<p>So i'm just starting to discover how awesome jquery is and how a basic function can drive me nuts to understand. I'm trying to highlight a div with a specific "id" generated via backend</p> <pre><code> &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt; &lt;div id="id_1"&gt; &lt;h2&gt;id_1 - &lt;a class="m...
javascript jquery
[3, 5]
761,146
761,147
How can I program a decimal addition with JavaScript
<p>How can i program this, the decimal shift needs to be programed that most of it I think , the rest would be just a normal add, any thoughts on how to program this? This is for an incrementer I'm building, the user can press plus or minus and increment a text input.</p>
javascript jquery
[3, 5]
3,239,786
3,239,787
how to get the element selected
<p>The dropdowns on the top right, I need to get the first three characters of the string of the type selected for example if the user selects Pizza Delivery i need the string "piz"</p> <p>here is the <a href="http://posnation.com/pre_config/pre_config_step_3.php?type=Restaurant&amp;count=1" rel="nofollow">url</a></p>...
javascript jquery
[3, 5]
3,151,187
3,151,188
jquery get id of table closest to key press
<p>I am creating tables on button click and that works great. I then have have a hotkey to add extra rows to those tables. I need to get the parent id of the table where the cursor is but it keeps giving me undefined. I can get the parent div id ok but when I put table in it gives me undefined. Any help would be apprec...
javascript jquery
[3, 5]
580,906
580,907
Remove a perticular div of specific text
<p>I have the following code in a php page</p> <pre><code>&lt;div class="vmenu"&gt; &lt;div class="first_li"&gt;&lt;span &gt;Add Shift&lt;/span&gt;&lt;/div&gt; &lt;div class="first_li"&gt;&lt;span&gt;Add Comment&lt;/span&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Now I want to remove the div contains text "A...
javascript jquery
[3, 5]
2,087,965
2,087,966
problem to convert string to date format on android
<p>I just want to convert string to date format on android. my date is: Wed, 24 Aug 2011 08:28:44 +0200</p> <p>I wrote this code:</p> <pre><code>pubDate = "Wed, 24 Aug 2011 08:28:44 +0200"; //create SimpleDateFormat object with source string date format // "EEE, d MMM yyyy HH:mm:ss Z" DateFo...
java android
[1, 4]
514,688
514,689
word counter Javascript function call
<p>Wanted to have a word counter next to a input textbox on the website</p> <p>Got it working to show the count when the user click or modify the text but I wanted to load up straight away when the page finish loading.</p> <pre><code>$(document).ready(function() { $("#product_name").change(displayText).keyup(displ...
javascript jquery
[3, 5]
5,140,649
5,140,650
Using jQuery with php with IF logic
<p>I have some php conditional logic...basically I want to use jQuery to show or hide certain div's when I submit a form:</p> <pre><code>&lt;?php if (isset($_POST['submit']) { /* If the user submits the form and use jQuery to hide an existing div tag &lt;script type="text/javascript"&gt; ...
php jquery
[2, 5]
4,340,406
4,340,407
Access Master Page/Child Page Controls from My Class
<p>I have a div on my master page and I want to use it for showing page errors. I have an error display class and it works fine. My problem is that in some instances, the error gets displayed even before the tag resulting in (non)-display of the message. This is mostly with code that has response.redirect.</p> <p>I w...
c# asp.net
[0, 9]
5,369,450
5,369,451
jQuery AJAX callback
<p>I'm having a difficult time trying to get this javascript function to return false inside of a .post() function.</p> <p>Is this even possible? or is there another way to do a simple ajax check to validate the voucher code is in the database.</p> <pre><code>function check_options(){ var voucher_code ...
javascript jquery
[3, 5]
3,451,899
3,451,900
What can I do to optimize my web page for a mobile phone, specifically the iPhone?
<p>So I purchased myself an iPhone ... everybody has one ... so I figured I'd <strong>see</strong> what the big deal was. To my surprise ... and overall skepticism ... I must say that I am <strong>very</strong> impressed with the iPhone. There's not any <strong>real</strong> magic going on here ... it just seems to b...
c# asp.net iphone
[0, 9, 8]
2,917,794
2,917,795
Get current URL, and strip it down
<p>I have a URL like:</p> <pre><code>http://url.test.com/account/name/pages/Stuff.html </code></pre> <p>I want to take 'Stuff' and apply that as a class to body.</p> <pre><code>&lt;body class="Stuff"&gt; ... &lt;/body&gt; </code></pre> <ol> <li><p>How can I get the current URL?</p></li> <li><p>How can I extract t...
javascript jquery
[3, 5]
4,095,703
4,095,704
javascript, wrap first 200 characters in a div
<p>im making an accordion for a client. there website is built on .net, something of which i have no idea how it works.</p> <p>my current accordion is something similar too...</p> <pre><code>&lt;h1&gt;Header&lt;/h1&gt; &lt;span class="content"&gt;Content here&lt;/span&gt; </code></pre> <p>I need something more like ...
javascript jquery asp.net
[3, 5, 9]
4,718,634
4,718,635
Disabled asp button
<p>i have asp button like this:</p> <pre><code>&lt;asp:Button ID="ImportToDB" runat="server" OnClick="ImportToDB_Click" /&gt; </code></pre> <p>And i need to call a javascript function when mouseover on this button. So i have in page_load():</p> <pre><code>ImportToDB.Attributes.Add("onmouseover","javascript:OnButtonM...
c# asp.net javascript
[0, 9, 3]
1,936,524
1,936,525
jQuery - Very simple issue i cant sort out (class's and an alert)
<p>I think this may be my most embarrassing question to date.</p> <p>Why does this not work? Ive been staring at this for around half an hour now and im starting to get desperate</p> <p><a href="http://jsfiddle.net/FU6Jb/" rel="nofollow">http://jsfiddle.net/FU6Jb/</a></p> <p>My HTML</p> <pre><code>&lt;a class="clos...
javascript jquery
[3, 5]
380,127
380,128
Service Causing Unexpected Close
<p>I am creating a game app and I have a few activities for the different screens. I have a service I am using to play music through out the activities. A really simple service, I have the title screen with image buttons to turn it on and off. Now I am getting a unexpected close and this error message from eclipse: </p...
java android
[1, 4]
89,549
89,550
Error when get ID in jquery
<p>I have a code php:</p> <pre><code>&lt;?php for ($i=0, $n=count( $this-&gt;item ); $i &lt; $n; $i++) { $row = &amp;$this-&gt;item[$i]; ?&gt; &lt;tr id="&lt;?php echo $row-&gt;id; ?&gt;" class="row"&gt; &lt;span id="name_&lt;?php echo $row-&gt;id; ?&gt;" class="text"&gt;&amp;nbsp;&lt;?php echo $row-&gt;name; ?&gt;&lt...
php jquery
[2, 5]
6,032,202
6,032,203
How should I pass data between classes and application layers?
<p>For example, if I am creating a 3 layer application (data / business / UI) and the data layer is grabbing single or multiple records. Do I convert everything from data layer into generic list/collections before sending to the business layer? Is it ok to send data tables? What about sending info back to the data la...
c# asp.net
[0, 9]
4,278,727
4,278,728
How to capture the user's browser info and submit in a form field?
<p>my app has a submit feedback form. Is there a way to can capture the user's browser &amp; version with jQuery and post that along with the form?</p> <p>Thanks</p>
javascript jquery
[3, 5]
751,690
751,691
Best way to insert a 'pause' in a .each enumeration
<p>What is the best/recommended manner in which to insert a 'pause' with each enumeration over a set of elements using the jQuery '.each()'?</p> <pre><code>$( '.someClass' ).each( function() { $( this ).trigger( 'click' ); //fire some request that appends a new div on the body //wait for div to be appended to...
javascript jquery
[3, 5]
528,817
528,818
JQuery : Play notification sound : IE8 Error
<p>This code works perfect for crome and firefox.. but error in IE8</p> <pre><code>if($('#soundcheck').is(':checked')){ //alert('checked'); var audio = document.createElement('audio'); document.body.appendChild(audio); audio.src = system_b...
php javascript jquery
[2, 3, 5]
2,951,871
2,951,872
C# Error: The name 'RegisterHyperLink' does not exist in the current context
<p>I've been working on a group project with this code that another group member wrote and I'm getting the following error:</p> <p>The name 'RegisterHyperLink' does not exist in the current context</p> <p>Here's the chunk of code:</p> <pre><code> protected void Page_Load(object sender, EventArgs e) { Reg...
c# asp.net
[0, 9]
2,528,683
2,528,684
Code for Identifying a Single letter?
<p>Hi there I am a bit of a noob at programming but I want to create an IF statement , whether or not a textview , (which i have already referenced) contains a letter in side of it and only that letter for example I want to change any textview which has a "1" in it whats the code? this is what I have got can some one p...
java android
[1, 4]
4,905,429
4,905,430
Is there a way to ignore a mouse event?
<p>When I hover over a div (assume it has id=div-CON), I have another div, positioned absolute, that pops up and follows the mouse while I am within div-CON. When the mouse leaves div-CON, the floating div disappears.</p> <p>Now, there are instances where if the browser is slow or lagging, the floating div does not up...
javascript jquery
[3, 5]
2,070,024
2,070,025
Simplify my menu animation code
<p>I've got a bunch of 'project' divs that I want to expand when they're clicked on. If there's already a project open, I want to hide it before I slide out the new one. I also want to stop clicks on an already open project from closing and then opening it again.</p> <p>Here's an example of what I mean (warning - wrot...
javascript jquery
[3, 5]
1,311,255
1,311,256
jquery click (remember OLD VALUE)
<p>When I click on '<strong>SELECT</strong>' - element, I need to remember <strong>OLD VALUE</strong>.<br/>This code work in FF,CHROME,OPERA but still not working correctly in IE.</p> <p>In IE it`s work like -> when I click on '<strong>SELECT</strong>' element- <br/><br/> 1)remember OLD value. (ok) <br/>2)Than I choos...
javascript jquery
[3, 5]
933,405
933,406
Jquery fadeout - wait to complete - then delete <TR>
<p>Good evening all. I'm trying to do a fadeout with Jquery to a with unique id which works but after that, i delete the with simple function removeElement which works too. My problem is that the removeElement function kicks in so fast that you cannot see the slow transition of the fadeout. I tried using the Javascri...
javascript jquery
[3, 5]
4,367,566
4,367,567
Cast object to WebControl based on Switch enum?
<p>I'm not sure if this is possible in C#:</p> <p>I have a <code>userControl</code> in which I have a property <code>inputType</code> - enum'd to have 3 possible options, textBox, dropDownList or checkBox.</p> <p>I'd then like to create a new object of that type and add it to a placeholder in the userControl:</p> <p...
c# asp.net
[0, 9]
3,536,991
3,536,992
javascript\jquery: Event that fires when textbox changes
<p>I'm looking for a jquery/simple javascript (not some other library) solution that set an event to a textbox that will fire when the textbox being changed? (not after blur)<br> I need it to fire no matter how it was changed (keyboard char key/tab/enter or mouse paste) And I need it to be fired one time only.</p>
javascript jquery
[3, 5]
547,677
547,678
jquery ready handler never executed
<p>I have a website about festivals, with a separate page for each festival. Normally, a festival's page should look something <a href="http://www.festivals.ie/festival/show/1" rel="nofollow">like this</a>, but <a href="http://www.festivals.ie/festival/show/30" rel="nofollow">one of the festival pages</a> has a few pro...
javascript jquery
[3, 5]
2,471,468
2,471,469
Javascript error: Missing : after property id?
<p>Here's the code:</p> <pre><code>window.onload({ var Country = '&lt;?= $core-&gt;HotelData($hid, "country"); ?&gt;'; var options = document.getElementsByTagName('option'); for (var i = 0; i &lt; inputs.length; i ++) { if (options[i].type == 'option' &amp;&amp; options[i].value == Country) { ...
javascript jquery
[3, 5]
4,324,845
4,324,846
Can't make JQuery work
<p><strong>Tools:</strong> Visual Studio 2010</p> <p>I'm trying to learn jQuery, but I cant make this example work even after trying for 2 hours. I know it's quite simple but I don't know what I'm missing.</p> <p>JQuery is defined here, inside the <code>&lt;head&gt;</code> tag:</p> <pre><code>&lt;head runat="server...
javascript jquery asp.net
[3, 5, 9]
5,716,828
5,716,829
How to change href attribute of a link using Jquery
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery">How to change the href for a hyperlink using jQuery</a> </p> </blockquote> <p>I have this link:</p> <pre><code>&lt;a id="myLink_33" href="javascript:t...
javascript jquery
[3, 5]
440,440
440,441
i tried serialize() but doesnt seem to work ? what am i doing wrong?
<p>i did this but not working </p> <pre><code>if(error.join()!="") { $("#sub_error").fadeTo(200,0.1,function() { $("#sub_error").html(error.join("&lt;br/&gt;&lt;br/&gt;")).append('&lt;br/&gt; &lt;input type="button" name="err_ok" id="err_ok" value="ok"&gt;') .addClass('subboxerror').f...
javascript jquery
[3, 5]
470,850
470,851
What tools are available to develop an "inmail" solution?
<p>I want to build an application that offers an "inmail" like feature that is available in financial and other applications. </p> <p>Is there a toolset these are all based to use? Or is this all customized?</p> <p>I reviewed a bit of XMPP, but that deals with Chat it seems, and not email.</p> <p>I wanted to be able...
java javascript jquery
[1, 3, 5]
1,429,190
1,429,191
Jquery append css
<p>I'm trying to make a simple image zoom script.</p> <p><a href="http://jsfiddle.net/GbDw9/1051/" rel="nofollow">http://jsfiddle.net/GbDw9/1051/</a></p> <p>The problem is that margin style applies only after second a[data-onclick="zoom"] click.</p> <p>Why so?</p>
javascript jquery
[3, 5]
710,694
710,695
Load image from external domain (AWS S3) and store it in browser memory
<p>I'm new to ASP.net and wondered how easy it is to load a photo from an external domain (Amazon S3), using their expiring link, and store the photo in browser memory for another script to pick up that uses an OpenBinary method? This allows me to resize and watermark it before printing to screen.</p> <p>This is what ...
c# asp.net
[0, 9]
2,373,129
2,373,130
jquery before() is out of order?
<p>I have a page where you can click a link that says "add a keyword" and an input will appear and you can enter the keyword, and then convert it into a span tag on blur or the "return" key. However, I've been adding onto it to allow for an "autocomplete" feature, so I'm trying to insert a </p> <pre><code>&lt;ul&gt;&l...
javascript jquery
[3, 5]
4,593,734
4,593,735
Why am I having problems with setInterval?
<p>I'm a novice javascript programmer and I always have trouble with the <code>setInterval</code>. W3Schools makes it look so easy but I can never get it to work when i need to. Here I have a span I want to make 'flash'.</p> <pre><code>var id = window.setInterval(function(){ if($("#span1").css("color") ==...
javascript jquery
[3, 5]
961,700
961,701
Selecting the last child elements of a div without looping
<p>Here's a quick one. I'm trying to get better at writing selectors for jquery because I seem to be relying on loops far too much in order to get things done.</p> <p>In this particular example, I want to add the "Absolute" class too all of the divs that have the ganttview-block-container class except the last one in ...
javascript jquery
[3, 5]
3,529,709
3,529,710
having trouble making a menu slide down on click and then reverse this animation using jquery
<p>I am trying to create a sliding menu effect when a link is clicked, basically on click I want to prepend a background that fades in with 0.6 opacity and then slide my menu into place and then on a further click I want to reverse this animation. I have create a click event with a callback function but I think this ca...
javascript jquery
[3, 5]
4,168,974
4,168,975
correct way to display image from php onto page
<p>I am not getting my image correctly. I am unsure what is happening. First things first, the image is coming out of a mysql query. Little confused about how to make that image ready for a ajax call?</p> <p>here is how I get the image out mysql</p> <pre><code> if(mysql_query("insert into Personal_Photos (Email...
php jquery
[2, 5]
4,361,908
4,361,909
How can I intercept/get notified about asynchronous requests in ASP.NET?
<p>I need to get notified about asynchronous requests in ASP.NET. I used the jQuery <code>.ajaxSend</code> global event but it does not trigger when using <code>UpdatePanels</code>.</p> <p>Is there a multi-browser way to detect when a request is being made on a page?</p>
asp.net jquery
[9, 5]
4,748,087
4,748,088
Anchor tag onclick to call a code behind method
<p>I use <code>&lt;a href="javascript:void(0);" onclick="orgvalid();return false;" class="regular"&gt;Register&lt;/a&gt;</code> in my aspx page. Once true is returned from the function <code>orgvalid()</code> I want to call a code behind function, <code>insertorganization()</code>. Is it possible to do so? If so, how?<...
javascript asp.net
[3, 9]
1,030,593
1,030,594
HTTP authentication using PHP authentication
<p>I'm making a members area for my site and I have it already running. I authenticate members using mysql and php and this works really well.</p> <p>But now problems occurs, I would like to offer members a possibility to upload files to the systems, and those files should be available ONLY to logged in members.</p> ...
php javascript
[2, 3]
2,596,720
2,596,721
jQuery and ajax
<p>I have HTML table with 10 rows and which has a "Current Value" column and a "Price" column.</p> <p>Q: The first row has 1000 dollars and 5 th row as 10000 dollars.</p> <p>If a user has changed the price column to GBP, how can I make an ajax call through jQuery and update the current value.</p> <p>What's the best...
java jquery
[1, 5]
1,355,590
1,355,591
Modal Confirmation Custom Dialog Box
<p>I wonder whether someone may be able to help me please.</p> <p>I've put together a script which allows a user to view their uploaded images in a gallery format as shown <a href="http://www.mapmyfinds.co.uk/development/gallerytest.php#/0" rel="nofollow">here</a>.</p> <p>Using the jQuery demo <a href="http://jqueryu...
javascript jquery
[3, 5]
3,929,431
3,929,432
Use The Code Only One Time In my asp.net
<p>I have a class there is a code and this class is execute every time when website start.</p> <p>I want to use the class run only single time when my website is start.</p> <p>What can I do...?</p>
c# asp.net
[0, 9]
869,748
869,749
OnAuthenticate Login Control
<p>Could someone help me authenticate a user on OnAuthenticate Im have problems logging in. For some reason FormsAuthentication.Authenticate isn't working but membership.ValidateUser is . Also if someone can expand on this please do I don't know if i've got everthing sorted I've never done this part before. Leave a com...
c# asp.net
[0, 9]
2,830,867
2,830,868
Dynamic CheckBoxes from JSON Array
<p>I am new to JavaScript / JQuery and I am not sure how I could do this. Maybe a small example of each part could help.</p> <p>Say I have <code>&lt;div id="checkboxes"&gt;&lt;/div&gt;</code></p> <p>When the page loads, I will make an ajax call that will return JSON array. This I know how to do.</p> <p>The objects w...
javascript jquery
[3, 5]
2,919,794
2,919,795
Organizing classes with many properties that need to be iterated through
<p>Sometimes when I'm working with a class (usually one that represents a database model), I'll have about 15 different properties on it, usually of different types. These are properties that need to be accessed by the users, as well, so each property will typically need some function like</p> <pre><code>T getPropert...
java android
[1, 4]
3,609,536
3,609,537
Calculate date difference in jQuery
<p>The question is; there are 2 fields in my application, one is date (Field1) and second is a label (Field2). So, I want that when user selects a date in field 1, then field 2 should be automatically populated (current date - date from field 1). Can anyone help on how to implement it.</p> <p>I'm using jQuery to displ...
javascript jquery
[3, 5]
2,037,351
2,037,352
Java's "public static final Object" in C++
<p>What would be the equivalent of this in C++ of the following snippet. I am in the process converting parts of an java application to C++.</p> <p>Here is that java class snippet:</p> <pre><code> class container { Public static final Object CONTAINER_FULL = new Object { public boolean equals(Object other) { ...
java c++
[1, 6]
1,121,716
1,121,717
Camel casing acronyms?
<p>This question may seem pedantic or just silly, but what is your practice for camel casing when it comes to acronyms? Do you insist that everything, even acronyms must be camel cased, or do you make an exception for acronyms. Explanations would be great too. I'm not sure how this practice effects IDE features (autoco...
c# java
[0, 1]
203,185
203,186
No focus in settings menu on D-PAD use
<p>I am working on an Android handset that has a D-PAD.</p> <p>Here is the scenario: 1) Open settings menu 2) Scroll to the bottom of the list using touch 3) Use D-PAD to scroll the list.</p> <p>Problem: No focus/marker is shown when D-PAD is used to scroll the list items</p> <p>I have tried to figure this out, but ...
java android
[1, 4]
2,347,034
2,347,035
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]
4,126,211
4,126,212
PHP Undefined variable and Javascript
<p>I have tried to figure this out myself I am new to PHP and I know its easy but I am missing something. I am trying to create something that if someone click a Button have it pass a value called id from the button hyper link for example:</p> <pre><code> &lt;a href="abc123.html?id=d"&gt;Click Here...&lt;/a&gt; </...
php javascript
[2, 3]
4,369,692
4,369,693
convert bitmap to image for ASP.NET
<p>this is how my code look now:</p> <pre><code>System.Drawing.Image objImage = System.Drawing.Image.FromFile(Server.MapPath("aaa.jpg")); int height = objImage.Height; int width = objImage.Width; System.Drawing.Bitmap bitmapimage = new System.Drawing.Bitmap(objImage, width, height); System.Drawing.Graphics g = Syste...
c# asp.net
[0, 9]
4,923,610
4,923,611
How to define document height is changed in javascript/jquery?
<p>I have a problem for showing a full size div over all of my HTML document. I've set the size of my div to my page width and height. and write this codes for resizing of document:</p> <pre> $(window).resize(function(){ sysSetOverlaySize(cDivOverlay);//cDivOverlay is my full size div }); </pre> <p>when my browse...
javascript jquery
[3, 5]
3,626,292
3,626,293
Is it possible to attach an onclick event to specific coordinates in a document?
<p>I am wondering if it is possible to attach an onclick event to specific coordinates in a document. Maybe something similiar to "area coords" in an image map that would allow me to create a rectangular or circular area that when clicked on would execute some code. Been trying to find a solution all morning hope someo...
javascript jquery
[3, 5]
5,054,482
5,054,483
In jQuery how can I parse out and execute JavaScript using getJSON
<p>In the following code:</p> <pre><code> function main() { jQuery(document).ready(function($) { /******* Load HTML *******/ var jsonp_url = "http://184.72.244.64/test.fwx?callback=?"; $.getJSON(jsonp_url, function(data) { $('#DivTagToInsertTheHT...
javascript jquery
[3, 5]
1,734,986
1,734,987
How to call javascript function from code-behind
<p>I wrote a javascript with a asp.net page.</p> <p>In Asp.net Page</p> <pre><code>&lt;HTML&gt; &lt;HEAD&gt; &lt;script type="text/javascript"&gt; function Myfunction(){ document.getElementId('MyText').value="hi"; } &lt;/script&gt; &lt;/HEAD&gt; &lt;BODY&gt; &lt;input type="text" id="...
javascript asp.net
[3, 9]
733,495
733,496
JQuery offset #NaN issue
<p>I have a fixed menu bar at top of the page and all menu links are anchor links on the same page. In short, it's a one page website divided in sections with anchor links as menu items.</p> <p>I am using the javascript below for smooth slide to section when menu items are clicked.</p> <pre><code>$(document).ready(fu...
javascript jquery
[3, 5]
5,935,434
5,935,435
hide a message after 30 seconds.?
<p>How can after click on button show a message and next <strong>hide it after 30 seconds</strong>?</p> <p><strong>Like:</strong></p> <pre><code>$('#message').live('click', function() { $('#sm').hide(); $('#sm').hide().show('slow').html('You have successfully registered'); // how is hide "$('#sm')" after ...
javascript jquery
[3, 5]
5,298,684
5,298,685
How to call Java code from C#?
<p>We've developed a Java application and would like to use this application from a C# client. The application has dependencies on Spring, Log4j, ... </p> <p>What would be the most efficient mechanism - make DLL(s) from Java code, ... - to achieve this ?</p>
c# java
[0, 1]
3,029,270
3,029,271
How can I access the row in a RowCommand event
<p>I am trying to find a DropDown element in the GridView_RowCommand but it says that GridViewCommandEventArgs does not contain a definituon for 'Row'. I need to do this in this event because i am evaluating a GridView Command. See failing code below</p> <pre><code>protected void GridView1_RowCommand(object sender, Gr...
c# asp.net
[0, 9]
69,857
69,858
Need an efficient way for a simple problem in c#
<p>I am developing a web application using c#. I am reading some data from database to a data table named dt . Sample data is shown below.</p> <pre><code>agentName WeekNumber Score John 3 45 John 5 78 John 6 33 </code></pre> <p>I want to make some change in the above dat...
c# asp.net
[0, 9]
1,879,131
1,879,132
Javascript update problem. ASP.net UpdatePanel
<p>I have some Javascript that I'm writing out to a literal control inside an UpdatePanel. I've set it to alert the current time every 15 seconds but I always get the original time. When I use Firebug I can see that the Script is getting updated. Is this because its a partial page refresh? How can I stop this happe...
javascript asp.net
[3, 9]
3,641,909
3,641,910
Hide makes page jump to top
<p>little annoying issue here. My hide function makes the page jump to top:</p> <pre><code> $(".home .options .tabs ul li").click(function(event){ $("#wrapper .home .aba").hide(); var qual = $(this).attr("ref"); $(".content.home .options .tabs ul li").removeClass("active"); $(this).addClass("active")...
javascript jquery
[3, 5]
894,634
894,635
How to add months by quarter using java script
<p>Hereby i am the following inputs:</p> <p><strong>Months to be separated by</strong> : 4 months</p> <p><strong>Will have the date with month and year</strong>: 07-05-2011.</p> <p>Now i need to add months by 4 using java script or jquery. How can this be done?</p> <p><strong>For example:</strong></p> <p><strong>I...
javascript jquery
[3, 5]
5,387,555
5,387,556
Save/output dynamically generated html source using jquery
<p>I have a search form that can be built dynamically by the user using code such as:</p> <p><code>$('tr.form_row:last').clone(true).insertAfter('tr.form_row:last');</code></p> <p>All of this is working fine, however, I would like to save the dynamically generated form html when the form is submitted. I have tried u...
javascript jquery
[3, 5]
1,951,185
1,951,186
JavaScript / JQuery array/object problem
<pre><code>$.fn.fieldValues = function(successful) { var values = {}; this.each(function() { if(strstr(this.name, '[]', true)) { var tmp = this.name.replace(/\[\]/, ''); if(typeof values[tmp] == 'undefined') values[tmp] = {}; var x = 0; while(typeof values[tmp][x] != 'undefined') x++; values[tmp][...
javascript jquery
[3, 5]
2,237,975
2,237,976
Remove Second Row From Table
<p>I would like to remove the second row of my table with jquery.</p> <p>I have tried:</p> <pre><code>$("tr:second").remove(); </code></pre> <p>But this unfortunately doesnt work :( Any suggestions?</p>
javascript jquery
[3, 5]
3,175,915
3,175,916
How to close an established network connection?
<p>I have to download a file in parts. For this I am using "xxx.setRequestProperty()". But I get error saying that it cannot be used when a connection is made. So I want to close the connection which was already established using download URL.</p> <pre><code>try { URL url = new URL(aurl[0]); URLConnec...
java android
[1, 4]
4,817,673
4,817,674
How do I easily check if all bools are true in asp.net c#?
<p>I have a list of bools on every page. I'm writing some validation code and am checking to make sure each bool is true before the user moves on. What is the best way to check to see if all the bools are true or false?</p> <p>I know I can hard code each one in, but I'm wondering if there is a better way.</p> <p>Here...
c# asp.net
[0, 9]
2,244,896
2,244,897
jquery text area length count?
<p><br/> I have a text area field where i need to provide information about the word count when the user enters some text in the field. Length of the field is supposed to be 500 Characters. Initialy it must show </p> <blockquote> <p>min characters:100 | 0 of 500 // 0 of 500 must be in red color</p> </blockquote> <p...
javascript jquery
[3, 5]
556,586
556,587
jQuery cookie plugin - save and call parsetInt() values
<p>I'm new to JS. I have a script wich should count clicks and store clicks number value in cookie. The problem is i cant currectly save and call clicks number(generated by parseInt) value from cookies.</p> <p>Here is the code <a href="http://jsfiddle.net/csTpG/99/" rel="nofollow">http://jsfiddle.net/csTpG/99/</a> (us...
javascript jquery
[3, 5]
5,941,292
5,941,293
Do all .java files load when the app is opened?
<p>I'm just starting into Java/Android apps... I've got a few sample things up and running... but I want to organize my code in a proper manner. Are all .java files loaded when the app is opened, or do I need to tell it to load other .java files within my code...</p>
java android
[1, 4]
976,705
976,706
Android Row becomes Unclickable with Button
<p>I have a listView, where each row has a button in the row layout. However, this seems to make the row itself unclickable. How can I make both the button and row clickable? </p> <p>Thanks.</p>
java android
[1, 4]
5,064,894
5,064,895
When remove the Class. nochange on class'length?
<pre><code>&lt;% (1..3).each do %&gt; &lt;p id="input"&gt; &lt;input type="text" name="somename"/&gt; &lt;a class="remove" &gt;Remove&lt;/a&gt; &lt;/p&gt; &lt;% end %&gt; </code></pre> <p>jQuery:</p> <pre><code>var $remove=$(".remove") $remove.click( function(){ $(this).parent().remove();...
javascript jquery
[3, 5]
3,252,951
3,252,952
php syntax query
<p>i have 2 questions to ask: first of all, in <code>while ($row = mysql_fetch_object($result))</code></p> <p>i have an object: <code>$row-&gt;atitle</code></p> <p>now through javascript, i want to print on the page an ++increment of the current object of the array.</p> <p>i am doing this: </p> <pre><code>hidephp =...
php javascript
[2, 3]