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
4,877,008
4,877,009
Dynamically set width and height of image with PHP and the such
<p>So - I have this website (<a href="http://pickture.me" rel="nofollow">Pickture</a>) which allows users to upload a photo of virtually any size. This causes a headache when it comes to displaying them. <br /><br /> Currently this happens. The Image is inside a container DIV (which I would prefer to be untouched), and...
php jquery
[2, 5]
5,807,674
5,807,675
tab container selected - all things are disappear
<p>I am using a ASP.Net and AJAX web which contain </p> <ol> <li><p>TabContainer </p></li> <li><p>gridView(grid view generated in run time and make 1 of the column as the tab page header)</p></li> <li><p>combobox</p></li> <li><p>2 textbox(date fr/to)<br> button</p></li> </ol> <p>Problem is.. after the data was re...
c# asp.net
[0, 9]
1,248,059
1,248,060
How to find whether object exist in array or not javascript
<p>I have an array of objects in javascript. Something similar to this :</p> <pre><code> var objectArray = [ { "Name" : "A", "Id" : "1" }, { "Name" : "B", "Id" : "2" }, { "Name" : "C", "Id" : "3" }, { "Name" : "D", "Id" : "4" } ]; </code></pre> <p>Now i am trying to find out...
javascript jquery
[3, 5]
1,546,176
1,546,177
Convert localized string into decimal
<p>I have a string, that could look like "123,34", "123123,09", "1234", "123.34", "123123.09"</p> <p>(Stringrepresentation of 10,2 decimal that will be stored into a MySql DB)</p> <p>Due to the culture of the ASP.net thread may differ, because my application supports localization, I need to find a safe way to convert...
c# asp.net
[0, 9]
4,765,996
4,765,997
Show and Hide Div for the text that comes dynamically
<p>I have a problem where we have to show/hide some text in the product description in the product detail page. The description has to be shortened upto desired number of lines and by clicking on "more" complete description is to be shown. I taken the following script from the link below: </p> <blockquote> <p><a hr...
javascript jquery
[3, 5]
4,967,673
4,967,674
How to insert dot instead of comma in js keypress
<p>In my website i have textbox that contains currency amount separeted by dot. Users sometimes press dot on numpad, and that inserts coma in textbox. How can I convert it to dot ? I was trying to do it in keypress event but didn't menage to make it work.</p>
javascript asp.net
[3, 9]
2,361,297
2,361,298
Named Arguments in PHP
<p>In C#, there is a new feature coming with 4.0 called Named Arguments and get along well with Optional Parameters.</p> <pre><code>private static void writeSomething(int a = 1, int b = 2){ // do something here; } static void Main() { writeSomething(b:3); // works pretty well } </code></pre> <p>I was using th...
c# php asp.net
[0, 2, 9]
304,744
304,745
Creating select list with script
<p>I have got this far with my coding:</p> <pre><code> success: function(data) { $.each(data, function(item){ if (item=="") { $(select_element).append($(document.createElement("option")).attr("value", (item)).html(data[item])); } else { $(select_element).append($(document.createEleme...
javascript jquery
[3, 5]
5,570,347
5,570,348
Jquery - resize font
<p>I want to make a menu like this : <a href="http://www.citrus7.com.br/" rel="nofollow">http://www.citrus7.com.br/</a> I've tried with textfit plugin to resize the font when i resize the window, but i cant resize each line of the menu separately. Can anyone help me, or point me in the right direction. Thank you</p>
javascript jquery
[3, 5]
2,738,111
2,738,112
jQuery deferred chaining problems
<p>Ok, I am probably missing something obvious, and although I've tried to find a similar example, I can't find one quite like what i'm wanting to do. I'm needing a series of ajax calls to run in a particular order. I'm using the following code to finalize a transaction:</p> <pre><code>showStandbyDialog(); $.when(...
javascript jquery
[3, 5]
4,614,650
4,614,651
Run JS function from parent window in child window?
<p>Want to run javascript function from parent window in child window </p> <p><strong>Example</strong> </p> <p>I have to different websites let's say <code>site1.com</code> and <code>site2.com</code></p> <p>I want from <code>site1.com</code> to open new window of URL <code>site2.com</code></p> <pre><code>new_window...
javascript jquery
[3, 5]
1,650,761
1,650,762
how to get current url in code behind?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/96029/get-url-of-asp-net-page-in-code-behind">Get URL of ASP.Net Page in code-behind</a> </p> </blockquote> <p>I'm trying to hold current url in string in the code behind.</p> <p>as example this is the current ...
c# asp.net
[0, 9]
4,872,478
4,872,479
how to insert this javascript in php
<p>how to insert this javascript code :</p> <p>thejavascript</p> <pre><code>&lt;A HREF="javascript:void(0)" onclick="window.open('welcome.html','welcome')"&gt; &lt;/A&gt; </code></pre> <p>inside img src in php </p> <pre><code>&lt;img src="http:'.$iv[$j].'.jpg" height="220" width="200" alt="Image '.ucwords($kw).'" ...
php javascript
[2, 3]
4,100,430
4,100,431
Loading of Master pages dynamically?
<p>Can we have the Masterpage loaded dynamicallu. I have a page that must be used in 2 different scenarios ie., using two different master pages. </p> <p>Appreciate all your help. </p> <p>Thanks, </p>
c# asp.net
[0, 9]
3,831,435
3,831,436
Ideas on how to make multiple selectable resizeable boxes in jQuery?
<p>I am trying to develop a web application that can take an image and draw multiple, resizeable boxes on the image. I have been looking into a lot of cropping plugins, but i cant seem to find what I am looking for. I just need to be able to draw multiple boxes on an image and return coordinates. I am looking for a ...
javascript jquery
[3, 5]
4,772,204
4,772,205
Using coordinates values for position
<p>I have following image map code.</p> <pre><code>&lt;area shape="rect" coords="213,109,320,256" href="embedded-processors" alt="Embedded Processor" class="embeded-processor" /&gt; </code></pre> <p>I can retrieve attribute coords it return "213,109,320,256", for position div I want DIV position based on this co-ords...
javascript jquery
[3, 5]
2,807,320
2,807,321
Selecting rows in a table and replacing them with the new data
<p>I have a table with headers:</p> <pre><code>&lt;table id="my-table"&gt; &lt;thead&gt; &lt;th&gt;header1&lt;/th&gt; &lt;th&gt;header2&lt;/th&gt; &lt;th&gt;header3&lt;/th&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;data1&lt;/td&gt; &lt;td&gt;da...
javascript jquery
[3, 5]
1,671,601
1,671,602
How should I give text to textbox which will displayed in textbox at runtime
<p>This is my aspx code </p> <pre><code>&lt;asp:TemplateField HeaderText="Column Name"&gt; &lt;ItemTemplate&gt; &lt;asp:TextBox ID="TextBox1" runat="server" AutoPostBack="false" &gt;&lt;/asp:TextBox&gt; &lt;/ItemTemplate&gt; &lt;/asp:TemplateField&gt; </code></pre> <p>t...
c# asp.net
[0, 9]
2,393,649
2,393,650
jQuery: contains selector for <option>VALUE</option>
<p>I'm trying to add a class to the H1 tag that matches the current select option.</p> <p>jQuery</p> <pre><code> var option = $('#fruits').val() $("h1:contains(option)").addClass('selected') </code></pre> <p>html</p> <pre><code>&lt;select&gt; &lt;option&gt;Select One&lt;/option&gt; &lt;option&gt;appl...
javascript jquery
[3, 5]
1,991,666
1,991,667
Adding week number and week ranges of a year to DropDown List in ASP.NET3.5 using JQUERY
<p>I am learning jQuery. Here I have a requirement i.e I have to add Week number and Week ranges of a year to DropDown List in ASP.NET3.5. And I have to pass selected week range to database. I am using c#.net. This should be done automatically for every year.</p> <p>How can I do this using JQUERY?</p> <p>Regards,</p>...
c# jquery asp.net
[0, 5, 9]
3,439,425
3,439,426
How to get the first two numbers in an integral?
<p>How to get the first two numbers in an integral?</p> <p>For example: get 12 of the 123456 in PHP or JavaScript?</p>
php javascript
[2, 3]
5,423,367
5,423,368
C++ STL datastructures compared to Java
<p>I'm currently learning C++ and trying to get used to the standard data structures that come with it, but they all seem very bare. For example, list doesn't have simple accessors like get(index) that I'm used to in Java. Methods like pop_back and pop_front don't return the object in the list either. So you have to...
java c++
[1, 6]
478,058
478,059
Javascript interaction between ASP.NET web controls
<p>I have a UserControl A which contains </p> <ul> <li>a dropdown</li> <li>a placeholder</li> </ul> <p>At runtime the placeholder will be populated with some UserControl B.</p> <p>There are certain times which I need to trap the javascript onchange event in the dropdown to call a javacript function in B (to do a cli...
asp.net javascript
[9, 3]
1,160,244
1,160,245
Remove parent but keep children using jQuery
<p>I would like to remove the parent and keep the children in my HTML using jQuery. This works:</p> <pre><code>$('#my_span').children().insertBefore('#my_span').end().end().remove(); </code></pre> <p>However, it removes the text and comment node types - how can I amend this so that I keep the text?</p> <p>Happy to d...
javascript jquery
[3, 5]
5,631,544
5,631,545
How to Pass Control as Parameter from javascript to server side
<p>I Want to Pass Control i.e dropdown as Parameter from javascript to server side.</p> <p>e.g</p> <p>My Server Side Code </p> <pre><code>[System.Web.Services.WebMethod()] [System.Web.Script.Services.ScriptMethod()] public static void StatusSet(string iMode, DropDownList ddList) { List&lt;StatusHandler&gt; iLis...
javascript asp.net
[3, 9]
4,106,040
4,106,041
Real time bidding script
<p>I'm trying to create a bidding website just like this, <a href="http://www.quibids.com/" rel="nofollow">http://www.quibids.com/</a> What is the best way how to handle the real time bidding system? Any tips?</p> <p>Eg. When clicking the BID button, how to make it real time to the other users that are being outbid?</...
c# asp.net
[0, 9]
4,142,711
4,142,712
download zip files by use of reader in c#
<p>I have been working on this application that enables user to log in into another website, and then download specified file from that server. So far I have succeeded in logging on the website and download the file. But everything ruins when it comes to zip files.</p> <p>Is there any chunk of code that could be helpf...
c# asp.net
[0, 9]
4,544,392
4,544,393
C# Call Event Handler Dynamic
<p>I am trying to save all the controls from one WebForm using a serialized Dictionary (controlId - string, controlValue - string). Next i want to deserialize that Dictionary and dynamically fill the controls with their values.</p> <p>The problem is that some of my controls have AutoPostBack true and also event handle...
c# asp.net
[0, 9]
4,083,634
4,083,635
how can I make a text entry field
<p>How can I make a text entry field that takes the input characters and displays it in another place, character by character as a the typest type them!</p>
php javascript
[2, 3]
4,960,711
4,960,712
JQuery Show Hidden Div command inside function
<p>I have a JQuery function:</p> <pre><code>function MyFunction() { //I need a command here to show a hidden div .... } &lt;div id="hiddenDiv" style="display:none"&gt;&lt;/div&gt; </code></pre> <p>Basically, I need to Div above to show when the function is called.</p> <p>Thanks</p>
javascript jquery
[3, 5]
4,757,798
4,757,799
jQuery show ax external PHP page in a DIV
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6634903/how-to-show-a-page-where-a-div-is-with-jquery">How to show a page where a DIV is with jQuery</a> </p> </blockquote> <p>Hello I have a DIV in the page index.html:</p> <pre><code>&lt;div id="form"&gt;&lt;...
php jquery
[2, 5]
1,475,600
1,475,601
Not able to get the value of Radio Button
<pre><code>&lt;input type="radio" name="animal" id="cat" value="Cat" /&gt; &lt;label for="cat"&gt;Cat&lt;/label&gt; &lt;input type="radio" name="animal" id="radio-choice-2" value="choice-2"/&gt; &lt;label for="radio-choice-2"&gt;Dog&lt;/label&gt; &lt;input type="rad...
javascript jquery
[3, 5]
2,499,882
2,499,883
Passing a String from one method to another method
<p>Sorry for this newbie simple question, but I need to pass a String from one method to another method and now I'm a bit clueless</p> <p>the String values (callbackURL &amp; donationId) I wanna pass are inside this method:</p> <pre><code>public void postData() { . . . . String callbackURL = tokens.nextTo...
java android
[1, 4]
5,203,925
5,203,926
Draw image using mouse
<p>I need to create a web page where i can draw a image using mouse (similar to paint).is it possible in c# ,asp.net or silver light please help</p>
c# asp.net
[0, 9]
1,815,453
1,815,454
Javascript: Acceptable way to referencing `this` from given two snippets
<pre><code>var me = null; var testFn = (function() { me = this; return { me1: me, fn1 : function() { me = this; return { me2 : me, fn2 : function() { me = this; return { ...
javascript jquery
[3, 5]
6,014,061
6,014,062
C++ or Java for android?
<p>I am thinking about picking up android development in my free time. I see that development is possible in Java and C++ but the latter is limited. </p> <p>I am much more comfortable with C++.</p> <p>So my question is what limitations exist with C++ on Android? Will I be able to develop full apps with it, or will...
java c++ android
[1, 6, 4]
3,673,244
3,673,245
Adding a jQuery Click handler
<p>I have following div in a page (I can not modify). </p> <pre><code> &lt;div id=":0.control"&gt;Click me&lt;/div&gt; </code></pre> <p>Now I want to add a jQuery Click handler </p> <pre><code>$("#:0.control").click(function () { alert('Clicked'); } ); </code></pre> <p>Above gives error. Any soluti...
javascript jquery
[3, 5]
3,215,618
3,215,619
How to get proper values from Polar heart rate monitor
<p>My android application is getting data from Polar Heart Rate Monitor through Bluetooth connection. My problem is that I am getting such a string: ��������������������������������������������������</p> <p>My code for getting the data:</p> <pre><code> final Handler handler = new Handler(); final byte delimiter ...
java android
[1, 4]
5,117,226
5,117,227
how big of a issue is screen resolution with android development
<p>I'm getting into app/game development for android and I just wanted to know how hard it is to make your games work with all phones. or do the phones just scale the app to fit with the screens? thanks for any help</p>
java android
[1, 4]
4,308
4,309
Slide div from x,y to x,y?
<p>When someone click on my fields on my virtual game, i get my current left and top cordinates with this:</p> <pre><code> function moveDiv(fromSeat, toSeat){ var fromTop = $('#seat-' + fromSeat).css("top"); var fromLeft = $('#seat-' + fromSeat).css("left"); var toTop = $('#seat-' + toSeat).css("top"); ...
javascript jquery
[3, 5]
4,597,390
4,597,391
jQuery Live traversal parent() selector
<pre><code>$(".hovertip").parent().live('hover', function() { ... </code></pre> <p>The above code doesn't seem to register. </p> <p>This doesn't seem to work either:</p> <pre><code>$(".hovertip").parent().live({ mouseenter: function() { ... </code></pre> <p>Any examples of .live, .delegate, .bind, or .o...
javascript jquery
[3, 5]
5,168,914
5,168,915
jQuery DatePicker, how to show value in input field from database
<p>can't find solution to this issue. So i have datepicker input field, it works fine, i can choose date and save it to database. But when i want to edit this saved value in edit_profile.php this field is empty, i need to see the user specified date. How to do it?</p> <p>Datepicker function:</p> <pre><code>$(function...
php jquery
[2, 5]
4,453,322
4,453,323
Check if asp Checkbox is checked in a row of a GridView with Javascript
<p>I have a grid view and I want to see if the checkbox in the first column is checked. If the check box is checked it opens a new window. I cannot figure out how to see if the checkbox is checked. Please help the function below is not working and I can't figure out why.</p> <pre><code>function mapSelectedClick() ...
javascript asp.net
[3, 9]
366,642
366,643
Is there something I should know about the jquery .text method?
<p>I'm learning about the <a href="http://api.jquery.com/jQuery.data/" rel="nofollow">.data method</a> and saw this in the code:</p> <pre><code>$("span").text("" + value); </code></pre> <p>Q: Is there a reason why the author put ("" + value) instead of simply (value)?</p>
javascript jquery
[3, 5]
4,341,176
4,341,177
Strange javascript chrome issue with menu
<p>Visit the following site in chrom and teh first time the page loads the top nav displays on two lines, if you click to another page then home again the top nav displays correctly (all on one line), why is this?</p> <p>I thinkit may be javascript related but can't get to the bottom of it.</p> <p>Any ideas?</p> <p>...
javascript jquery
[3, 5]
3,474,162
3,474,163
Finding a visible div that is not hidden Jquery/Javascript
<p>Ok so i have two div's which are hidden using jquery's <code>.hide();</code> onload</p> <p>I have two function to <code>.show();</code> them</p> <pre><code>function showIncorrectChar() { $("#csq-incorrect-characters").show(); } function showMinChar() { $("#csq-min-characters").show(); } </code></pre> <p>Using...
javascript jquery
[3, 5]
563,391
563,392
javascript & jQuery scope question
<p>I have the following method:</p> <pre><code> function priceRange(FESTIVALID){ jQuery.ajax({ url : '/actions/festheads.cfc?method=getPriceRangeByGUID', type : 'POST', data : 'FESTIVALID='+FESTIVALID...
javascript jquery
[3, 5]
2,662,425
2,662,426
How to evaluate data return boolean from jQuery $.get
<pre><code>$('#my_theme').click ( function() { $('#my_theme option').each(function(){ //how do I test for this $.get to return true? if ($.get('&lt;?php echo get_bloginfo('template_directory') ?&gt;/getStyle.php', {template: $(this).val()})==true) { $(this).attr("dis...
php jquery
[2, 5]
580,338
580,339
save input fields status with jquery, send to db to read later
<p>I'm trying to save a snapshot of an html page. I'm quite satisfied with what I've achieved but I cannot save the exact status of each input field. for instance if I send to the db this:</p> <pre><code> data = data+"&amp;knobs="+encodeURIComponent($('#knobs').html()); data = data+"&amp;html="+encodeURIComponent($...
javascript jquery
[3, 5]
5,258,144
5,258,145
Add options dynamically in combo box using Jquery
<p>When i add a new option to a DropDownList using jQuery, it is duplication the values whenever i use that dropdownlist.</p> <p>For an example : </p> <pre><code> var myOptions = { val1 : 'Suganthar', val2 : 'Suganthar2'}; $.each(myOptions, function(val, text) { $('#mySelect').append(new Option(text, v...
javascript jquery
[3, 5]
3,435,219
3,435,220
How do I get the value of a form element that has brackets in the ID?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1239095/find-dom-element-by-id-when-id-contains-square-brackets">Find DOM element by ID when ID contains square brackets?</a> </p> </blockquote> <p>I am unable to get the value of form elements that are somewhat...
javascript jquery
[3, 5]
3,650,160
3,650,161
How can I replace the onclick action (with regex) using javascript / jQuery?
<p>How can I use jQuery to replace part of the <code>onclick</code> property / attribute? In the example below I would like to replace <code>delete_image</code> with <code>do_delete_image</code>:</p> <h3>Sample HTML</h3> <pre><code>&lt;a href="#" onclick="delete_image(1234)" &gt;Delete Image&lt;/a&gt; </code></pre> ...
javascript jquery
[3, 5]
327,298
327,299
javascript stacking bug
<p>I have this code:</p> <pre><code> $jq('.pop-tip').click( function(event) { width = ''; height = ''; var img = new Image(); img.onload = function() { width = 'width='+(this.width + 240); height = 'height='+(this.height + 360); } im...
javascript jquery
[3, 5]
5,302,250
5,302,251
Adding functions with jquery replace() markup
<p>I have a jquery replace() putting in list items that I want to attach a function to. I don't know exactly how to do this though.</p> <pre><code>function replaceListItems(){ $('ul.options').replaceWith('&lt;ul class="options"&gt;&lt;li class="btn"&gt;&lt;img src="btn.png" /&gt;&lt;/li&gt;&lt;/ul&gt;');} </code></pre...
javascript jquery
[3, 5]
1,647,795
1,647,796
Binding database data to the GridView in ASP.Net
<p>I try to bind database data to the gridview in c# and asp.net. But I couldn't see the datas in the gridview.Rows are added to the gridview but they are empty. When I run that query in SQLServer, it gives the correct result.I didn't add or change any code to the asp part.Should I? I couldn't find where is the problem...
c# asp.net
[0, 9]
1,399,606
1,399,607
HTML form to a word editor
<p>I have made a form as below:</p> <ul> <li>name: text area</li> <li>address: text area</li> <li>phone number: number txt area</li> <li>submit: button</li> </ul> <p>Now when I click on the submit button, the name, address, and tele no. fields should automatically get filled into a letter which uses the same label wh...
php javascript jquery
[2, 3, 5]
449,687
449,688
Select distinct elements in listview when click item
<p>I have a list view with custom adapter, with an Image Button and a Text View.</p> <p>I want to open a context menu when a press is made on the Image Button, and open another context menu if i press the Text View.</p> <p>How can I do this??</p> <p>This is my onClickListener</p> <pre><code>lv.setOnItemClickListene...
java android
[1, 4]
2,579,650
2,579,651
Database not working in exported apk?
<p>I export my application to .apk file, sign it then install it. But when I run my App, it displays an error because there's no data in my database. The database was created as a new one when I installed the application, so all the data were lost! How can I include database data when exporting an Android application? ...
java android
[1, 4]
3,496,583
3,496,584
Trying to put some javascript into an ASP.NET page
<p>I have a javascript link which I need to appear in a table on my aspx page. Hard coding it as a literal isn't working right. Consultation with the script's provider suggests I shouldn't hard-code it, but should embed it using ScriptManager. How do I get the link as javascript into the appropriate place in my page...
javascript asp.net
[3, 9]
5,723,904
5,723,905
PHP and JS within HTML
<p>This is what I am trying to do:</p> <p>I have a data.php page.</p> <p>In this page I have mostly HTML. Within the HTML I have some PHP code, designated by</p> <pre><code>&lt;?php ?&gt; </code></pre> <p>Now, I am trying to insert JavaSript with in the PHP; something like below:</p> <pre><code>&lt;?php ...
php javascript
[2, 3]
5,134,644
5,134,645
Modifying a String
<p>I am getting a String into my app which is </p> <pre><code>3-9-2012@17:32@4-9-2012@17:32@Vietnam@$@2-10-2012@17:32@4-10-2012@17:32@Vietnam@$ </code></pre> <p>I need to convert that String into something like</p> <pre><code>3-9-2012 17:32@4-9-2012 17:32@Vietnam@$@2-10-2012 17:32@4-10-2012 17:32@Vietnam@$ </code></...
java android
[1, 4]
621,605
621,606
Accessing label text property giving error in asp.net
<p>I am generating 10 labels on fly from code behind and I can see them when i run the page. But its giving an error when i try to access the label.text property. Its giving this error System.NullReferenceException: Object reference not set to an instance of an object.</p> <pre><code>for (int hf = 1; hf &lt;= dfta2.Ro...
c# asp.net
[0, 9]
5,566,775
5,566,776
Window Open from jquery click
<p>How can I make this more secure and safe:</p> <ul> <li>Strip unsafe characters from title</li> <li>Prevent undefined errors</li> </ul> <p>Code so far:</p> <pre><code>// Open HREF in popup window $('.external').bind('click', function () { var url = $(this).attr("href"); var title = ($(this).attr("data-popu...
javascript jquery
[3, 5]
3,913,091
3,913,092
Array textboxes with onchange event
<pre><code>&lt;INPUT name="Qty[]" id="Qty[]" type="text" class="south" /&gt; &lt;INPUT name="Amount[]" id="Amount[]" type="text" class="south"/&gt; &lt;INPUT name="TotalAmount[]" id="TotalAmount[]" type="text" class="south" disabled="disabled"/&gt; </code></pre> <p>Here i have problem with my code that i need to calcu...
javascript jquery
[3, 5]
1,987,719
1,987,720
Jquery collapsible region
<p>I am trying to make sections of page collapsible. No plan to use accordion, but simple hide/show to save screen space. See the sample code below. The first link has to click twice to make the section hide, and the second one works fine. Neglect this issue, if you can suggest a better way to do it.. In this example, ...
javascript jquery
[3, 5]
2,434,780
2,434,781
jQuery selector question
<p>I have a span and an anchor inside a table cell. I have the anchor set up to show a tooltip. I would like the text inside the span to be used for the tooltip. How can I select this text in jQuery?</p> <pre><code> &lt;td class="row-head" colspan="5"&gt;&lt;span class="tip-text"&gt;Complete Coverage&lt;/span&gt;&lt;...
javascript jquery
[3, 5]
3,335,147
3,335,148
accessing the children views of a View in Android
<p>I am quite new to Java, let alone Android. I am stuck with a problem that I encountered while instrumenting (using the instrumentation framework of android) the code of a Android project. I have a ListView and using the getTouchables() API I have store the view in a ArrayList. When in debug session, I saw that each ...
java android
[1, 4]
613,324
613,325
How to change an element to be unclickable after clicking it once using Jquery or Javascript
<p>The code is:</p> <pre><code>&lt;a href="#" style="color:black" onClick="Record($id)"&gt;Done&lt;/a&gt; </code></pre> <p>I want this part becomes unclickable once if it is clicked, how to achieve this using Jquery or Javascript?</p>
javascript jquery
[3, 5]
3,683,357
3,683,358
Highlight the selected row in data list
<p>I have a DataList on ym web page, from which a user can choose a certain option within the DataList row.</p> <p>I use the <code>ItemCommand</code> of DataList for this. Actually, I want to highlight the selected row when the user clicks on the item in the row.</p> <pre><code>&lt;ItemTemplate&gt; &lt;tr&gt;...
c# asp.net
[0, 9]
2,997,188
2,997,189
How do I detect a jquery trigger events completion?
<p>I'm trying to trigger a second event dependent on the first like so:</p> <pre><code>... $('#productFamilyId').val(data.contents.productfamily); $('#productFamilyId').trigger('change', function() { $('#productId').val(data.contents.product); $('#productId').trigger('change'); }); </code></pre> <p>It's not w...
javascript jquery
[3, 5]
2,015,358
2,015,359
Focus on textbox based on URL
<p>I have two forms on one page and want to have the input boxes focused based on the URL.</p> <p>So for example: domain.com/Default.aspx#login and domain.com/Default.aspx#register</p> <p>and the javascript I have this:</p> <pre><code> if (window.location.href = '?action=login') { window.d...
asp.net javascript
[9, 3]
3,041,596
3,041,597
Is it possible to use 2 versions of jQuery on the same page?
<p><em>NOTE: I know similar questions have already been asked <a href="http://stackoverflow.com/questions/613808/is-it-possible-to-load-multiple-different-version-of-jquery-on-the-same-page">here</a> and <a href="http://stackoverflow.com/questions/1117463/two-jquery-versions-on-the-same-page">here</a>, but I'm looking ...
javascript jquery
[3, 5]
3,363,440
3,363,441
My Code wont replace the html strings properly?
<p>My current code:</p> <pre><code>a= a.replace("&amp;#039;", "'"); a = android.text.Html.fromHtml(a).toString(); </code></pre> <p>The issue is its still outputting this: </p> <pre><code>Magician&amp;#039;s </code></pre> <p>Though it is replacing most of the html it doesn't replace all of it. how can I fix this?</p...
java android
[1, 4]
1,157,012
1,157,013
Calling javascript from a code behind vs. calling a code behind from javascript
<p>I have a web application that will need to access code behind methods as well as javascript methods. For this particular implementation it doesn't really matter which order they are called in from a program flow perspective.</p> <p>I'm looking for insight into when it would be appropriate to use a code behind to c...
c# asp.net javascript
[0, 9, 3]
291,366
291,367
How to access the client registry using JavaScript?
<p>Hai , How to set Key and Value in the client registry using javascript. I Just want to keep the user profiles in the registry. When a user visit the page from a particular system , automatically connect to the system preferred database.For that I want to keep the connection string in the windows registry. </p> <...
asp.net javascript
[9, 3]
3,250,768
3,250,769
image control unable to display image
<p>my code is:</p> <pre><code>string filename = FileUploader.PostedFile.FileName.Substring(fuImage.PostedFile.FileName.LastIndexOf("\\") + 1); if(fuImage.HasFile) { FileUploader.SaveAs(Server.MapPath("Modules/NewUserProfile/UserPic/" + filename)); imgUser.ImageUrl = Server.MapPath("Modules/NewUserProfile...
c# asp.net
[0, 9]
4,971,413
4,971,414
Dynamic jquery address using search button
<p>I'm trying to use <a href="http://www.asual.com/jquery/address/" rel="nofollow">http://www.asual.com/jquery/address/</a> for history management, this works absolutely fine when we work on "a" tags, but now I've search module which trigger when I click on a search button and I'm trying to include the search text in t...
javascript jquery
[3, 5]
3,163,795
3,163,796
Good way to output javascript selectively depending on Application settings
<p>I am developing a site which includes several different javascript files and libraries. For optimization purposes I have implemented <a href="http://yuicompressor.codeplex.com" rel="nofollow">YUI Compressor for .Net</a></p> <p>This will minimize and combine my javascript files into one single file.</p> <p>Now I ha...
c# asp.net javascript
[0, 9, 3]
751,781
751,782
Jquery hover action diappears when going to next div
<p>Im new to learning JQuery. Im doing a sample from JQuery Novice to Ninja and Im getting an error when I move my mouse over then next item. The #navigation_blob dissapears it could be a css problem for all I know but run the code tell me what you think I need to do. Im using the easing plugin</p> <pre><code>$(docume...
javascript jquery
[3, 5]
4,366,913
4,366,914
values entered in textbox should b displayed in label
<p>I am having a "TextBox" a "Label" and a "Button" in my aspx page. If I enter some values into the textbox, then that value should be displayed in the label...and again I enter some values in the same text box, that value should be displayed without disturbing the first value and so on.... </p>
c# asp.net
[0, 9]
4,588,513
4,588,514
Make an Image In Perspective
<p>As the title says I wonder how I can make my images to perspective view. Here's an image showing how they manage to do this in photoshop:</p> <p><a href="http://netlumination.com/blog/creating-perspective-and-a-mirror-image-in-photoshop" rel="nofollow">http://netlumination.com/blog/creating-perspective-and-a-mirror...
java android
[1, 4]
3,266,999
3,267,000
More efficient comparison of numbers
<p>I have an array which is part of a small JS game I am working on I need to check (as often as reasonable) that each of the elements in the array haven't left the "stage" or "playground", so I can remove them and save the script load</p> <p>I have coded the below and was wondering if anyone knew a faster/more effici...
javascript jquery
[3, 5]
1,759,953
1,759,954
How to filter out hazardous characters from input coming from xml file in ASp.Net 2.0 c#?
<p>I have an xml file with item containing URL with parameter. This parameter will be used in another page and accessed through <code>Request.QueryString()</code>. </p> <p>Doing AppScan, it is found out to be hazardous and need to filter hazardous characters from user input. How can I do this? Examples of the xml fil...
c# asp.net
[0, 9]
359,774
359,775
Autorefresh some list of items every X seconds
<p>I have a list of items that I want to refresh every X seconds. Basically these list of items may be some data coming from database that meets a certain criteria. Now I could very well do this using setTimeout or setInterval and then manually calling <code>$.ajax</code> and set the html of div or something. However i...
javascript jquery
[3, 5]
3,250,360
3,250,361
How to pass js code to string gracefully?
<p>There is my code </p> <pre><code>&lt;input type="radio" name="category" id="elementary" value="elementary" /&gt; 1 &lt;input type="radio" name="category" id="junior" value="junior" /&gt; 2 &lt;input type="radio" name="category" id="senior" value="senior" /&gt; 3 &lt;input type="radio" name="category" id="university...
javascript jquery
[3, 5]
140,511
140,512
Get elements using children length in Jquery
<p>I want to get <code>&lt;td&gt;</code> whose children length(size()) is 2 using Jquery. I am trying this but this returns me only size() &amp; not the <code>&lt;td&gt;'s</code>.</p> <pre><code>grid.find("tr").find("td").children().size(); </code></pre> <p>How can i do this?</p>
jquery asp.net
[5, 9]
5,283,152
5,283,153
Is it possible to load javascript file with http://localhost as the source?
<p>Is it possible to load a JavaScript file with <code>http://localhost</code> as the source?</p> <p>ex:</p> <p><code>&lt;script type="text/javascript" src="http://localhost:8081/signalr/hubs" language="javascript"&gt;&lt;/script&gt;</code></p> <p>I am using a script like this in my asp.net web application. It is wo...
javascript asp.net
[3, 9]
3,316,084
3,316,085
How to pass xml while requesting Rest web service
<p>I want to pass xml to rest web service with request. I am unable to get how I can do this.</p> <p>thanks in advance.</p>
java android
[1, 4]
4,939,588
4,939,589
Grid View Format By Row
<p>I'm wondering if it is possible to format a Grid View like the pattern below</p> <pre><code>Usual Grid View: Name Address Age Gender &lt;--- Fields Name Example Example Example Example &lt;--- Values What I want to look like "Fields" "Values" Name Example Address Example ...
c# asp.net
[0, 9]
2,675,663
2,675,664
How to show the non-selected options in a select form, after a previous form is submitted
<p>I have a form where im asking for name, surname, phone cellphone and at the end user has to check one or more options in a checkbox and then clicks submit.</p> <p>After that in the "thank you page" i want to show the exact form but this time to show only the non-checked checkboxes. Reason for this is that i want to...
php jquery
[2, 5]
182,526
182,527
Saving Application State in Android
<p>I am writing an app where I get all the data from the rest call and display all the data in a custom component list(based on Linear Layout) which is added to a <code>LinearLayout</code>. I write this code in <code>onCreate</code> of the activity.</p> <p>The problem is when I switch activity using <code>startActivit...
java android
[1, 4]
153,048
153,049
Adding Multiple inline javascript in single line
<p>I have 2 different links with inline js added.</p> <p>I would like to add both to a single inline onclick.</p> <p>Here are the two separate one:</p> <pre><code>&lt;a href="#" onclick=\'$("#id").toggle();\'&gt; &lt;a href="#" onclick="myvar = '1';"&gt; </code></pre> <p>And this is what I would like to do:</p> <...
javascript jquery
[3, 5]
3,192,439
3,192,440
Passing a string from javascript to server side code
<p>I want to get a string from javascript, pass it to server side code and then store it in a database. my problem is that i do not know which is the best way of passing a string from javascript to server side. </p> <p>From my research I found that many suggest using ajax xmlhttprequest but I haven't really found any ...
c# javascript asp.net
[0, 3, 9]
4,102,440
4,102,441
trying to add hierarchy constraints to delegate()
<p>I've got a delegate statement that works like so:</p> <pre><code>$("body").delegate("tr[type='option']",'mouseenter',function(){ </code></pre> <p>The problem is that it's grabbing elements from tables I don't want. So I tried:</p> <pre><code>$("body").delegate("table[class='ms-MenuUI'] &gt; tr[type='option']",'m...
javascript jquery
[3, 5]
4,546,400
4,546,401
Loading usercontrol on runtime and reloading the page
<p>On my page I have a placeholder where I load a usercontrol when I select an item in dropdownlist. </p> <pre><code>protected void ddlLoadCtr_SelectedIndexChanged(object sender, EventArgs e) { Control userControl = LoadControl("../AleSettings1.ascx"); plchldSettingsControl.Controls.Add(userControl); } ...
c# asp.net
[0, 9]
1,776,109
1,776,110
Update or Insert a new value
<p>I have the following SQL command in asp.net:</p> <pre><code>cmd = connection.CreateCommand(); cmd.CommandText = "INSERT INTO userscore (username, score)VALUES(@username, @score)"; cmd.Parameters.AddWithValue("@username", username); cmd.Parameters.AddWithValue("@score", userscore); cmd.ExecuteNonQuery(); </code></...
c# asp.net
[0, 9]
3,319,972
3,319,973
Correct number is not being displayed in the textbox
<p>Problem:</p> <p>In the "Number of Answers" textbox, it should display the number 1, but it doesn't, it displays the number 2 and the reason it is displaying this number is that before the buttons changed, you selected 2 letter buttons, so it displays 2 in the textbox because you previously chose 2 letter buttons.</...
javascript jquery
[3, 5]
4,255,313
4,255,314
Suggestion to improve the script
<p>In the below script I am trying to highlight all the words in a sentence </p> <pre><code>function SearchQueue(text) { if(text !== null) { text = text.replace(/“/g, "\""); text = text.replace(/”/g, "\""); text = text.replace(/’/g, "\'"); text = text.replace(/‘/g, "\'"); text = text.repl...
javascript jquery
[3, 5]
5,403,682
5,403,683
Server.MapPath with ~
<p>I am trying to get the path. Not sure if it should be:</p> <pre><code> string driveLetter = Server.MapPath("~/Docs/"); </code></pre> <p>or</p> <pre><code> string driveLetter = Server.MapPath("~/Docs"); </code></pre>
c# asp.net
[0, 9]
1,711,400
1,711,401
How do I make an image that is currently hidden, become visible upon validation passing in asp.net
<p>I have a simple web form in asp.net that has some validation on the form fields. I also have an image whose visibility is set to false. In my validation if statement I want code that will make that image visible if the validation has passed. Below is what I have but the image is not displaying. Thanks!</p> <pre><co...
c# asp.net
[0, 9]