Unnamed: 0
int64
302
6.03M
Id
int64
303
6.03M
Title
stringlengths
12
149
input
stringlengths
25
3.08k
output
stringclasses
181 values
Tag_Number
stringclasses
181 values
5,813,070
5,813,071
Sharing variables and putting text box data into an array
<p>I'm brand new to the subject and very lost. I have a text box on my webSite. The <em>data entered into the textBox</em> will be <em>placed in an array</em>, and a <em>counter will increase</em>. Once the <em>counter reaches five</em>, you <em>cannot add more</em> to the array.</p> <p>There will be a button to disp...
c# asp.net
[0, 9]
4,769,522
4,769,523
jquery getting all dropdown values
<p>I have dropdown <code>&lt;select&gt;</code> with id <code>my_dropdown</code>. I allow multi-select. I know how to pull the selected value(s) using jquery:</p> <pre><code>var values = $('#my_dropdown').val(); </code></pre> <p>This will return an array of values if I select multiple. I also need to get all the va...
javascript jquery
[3, 5]
1,474,256
1,474,257
connecting from android mobile app to a database on a laptop
<p>I'm new to android programming so please I need your help I want to make a mobile application that connects to a databse on my laptop through internet without configuring my router I'm using phpmyadmin in which i created a database, and I made a file called login.php that can make sure of username and password from ...
java android
[1, 4]
4,202,597
4,202,598
Convert Uri to String and String to Uri
<p>I'm developing some Application which allows select image from SD Card, save it into database and set this value for ImageView. I need to know way for converting uri to string and string to uri. Now I used getEncodedPath() method of Uri, but, for example, this code doesn't work:</p> <pre><code>ImageView iv=(ImageVi...
java android
[1, 4]
4,433,932
4,433,933
How can I start a fragmentactivity?
<p>For my app I use the ViewPager lib, so users can swipe pages. I would like to use fragmentactivity's or activity's, so I can access the layout elements by FindViewById. But when I try to start my app I get a error:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.exa...
java android
[1, 4]
5,071,342
5,071,343
access object from other scope (javascript)
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/11192875/is-it-possible-to-gain-access-to-the-closure-of-a-function">Is it possible to gain access to the closure of a function?</a> </p> </blockquote> <p>Please have a look at this code: <a href="http://jsfiddl...
javascript jquery
[3, 5]
5,861,153
5,861,154
How to get central point of Google Map?
<p>I have been developing Android application and I can't make 1 thing - my application uses Google Maps (MapView), and one uses zoom elements for increase/decrease scale of Map. And I need to get center of Map - for example, I can move or increase the Map and than I need to get the central point. I know there is metho...
java android
[1, 4]
2,359,347
2,359,348
How do you call a Javascript function from an ASPX control event?
<p>How do you call a Javascript function from an ASPX control event?</p> <p>Specifically, I want to call the function from the SelectedIndexChanged event of a DropDownList.</p>
asp.net javascript
[9, 3]
2,482,339
2,482,340
Javascript popup and close
<p>HTML</p> <pre><code>&lt;ul&gt; &lt;li class="first"&gt;&lt;a href="#"&gt;Intro&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Crew&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>CSS</p> <pre><code>.page-popup { z-index:500; position:absolute; left:345px; background:#fff; width:680...
javascript jquery
[3, 5]
280,472
280,473
How can I be sure my Ajax call has fully completed?
<p>I have the following code:</p> <pre><code> $.ajax({ cache: false, url: "/Administration/" + entity + "s/Update", data: { pk: pk, rk: rk, fld: type, val: val }, success: function () { disableLoadingIcon(); if (idArr.substr(0, 8) == 'Position') { ...
javascript jquery
[3, 5]
220,495
220,496
How to hightlight the text of matched terms in jquery?
<p>I have list of Items and a search box. if search term entered into the search box the matched text should appear with bold letters in the list irrespective of the case(case insensitive). I have done up to some level but later i dont know how to do it, as i am new to the jquery.</p> <pre><code>&lt;html&gt; &lt;head...
javascript jquery
[3, 5]
1,067,136
1,067,137
best way to split a string and get url values using javascript
<p>I have string which is in url like below</p> <pre><code>?type=english&amp;time=today </code></pre> <p>I want to get the values of type and time and curently doing like below</p> <pre><code>var str="?type=english&amp;time=today"; var spt =str.split("&amp;"); var typeval =spt[0].split("=")[1]; var timeval =spt[1]....
javascript jquery
[3, 5]
4,337,619
4,337,620
"error:cannot acces com.hello.LibC","Class file for com.hello.LibC not Found"
<p>I am new to Android.I use this <a href="http://stevethai.wordpress.com/2010/08/04/android-helloworld-with-native-code-tutorial/" rel="nofollow">link</a> to run the NDK Project.</p> <p>I follow all these steps from the given link.However during compilation in the command prompt it shows error like:</p> <pre><code> ...
java android
[1, 4]
5,613,507
5,613,508
Two different actions on form submit
<p>I have a form with a submit button. I have called a function on click of submit button.</p> <pre><code>function actionPage(form1) { form1.action="action1.php"; form1.submit(); return(true); } </code></pre> <p>Now i want that the form data should be submitted to two different pages. These pages are on differe...
php javascript
[2, 3]
2,320,768
2,320,769
adding a new items to a list. I think either the original items are being overwritten every time or a new list is being created each time
<p>I'm using asp.net 4 and C#. I'm having problems adding items to a list via an event from a button click. On the button click I want to read the text from a text box, convert it to an int and add it to the bottom of a List of type int. I then want to display each item in the List in a label. The problem is that it on...
c# asp.net
[0, 9]
3,302,375
3,302,376
Javascript jquery strange error
<pre><code>$(document).ready(function() { $.ajax({ type: "get", url: "textman.php", success: function(data) { $('#textbaz').append(data); var file = data.split(" "); var set = 0; console.log(file); $('#textbaz').append("&lt;br&gt;&lt;input id='textbox' type='text' placeholder...
javascript jquery
[3, 5]
1,935,543
1,935,544
PHP and JavaScript Dates don't match - Strange anomaly
<p>HTML/PHP: </p> <pre><code>&lt;button onclick="change_value(&lt;?php echo $date?&gt;)"&gt;Go&lt;/button&gt; </code></pre> <p>JavaScript: </p> <pre><code>function change_value(date_used) { alert(date_used); } </code></pre> <p>When I right-click on the button and click the "Inspect Element" button shows the p...
php javascript
[2, 3]
3,253,308
3,253,309
Download and save aspx page
<p>I am saving as html file. </p> <pre><code>string url=HttpContext.Current.Request.Url.AbsoluteUri; string sHtml=""; HttpWebRequest request; HttpWebResponse response=null; Stream stream=null; request=HttpWebRequest)WebRequest.Create(url); response=(HttpWebResponse)request.GetResponse(); stream=response.GetResponseSt...
c# asp.net
[0, 9]
3,775,130
3,775,131
Need help with this error ::Invalid token '=' in class, struct, or interface member declaration
<p>trying to hide a panel of Master Page in my content page using the following code</p> <pre><code> Panel p = this.Master.FindControl("panel1") as Panel; p.Visible = false; //Error is showing on this line </code></pre> <p>Why this error ? Plz help..thnx</p>
c# asp.net
[0, 9]
1,112,355
1,112,356
how to call a javascript function from my controller?
<p>Hi I have a form in my view page on submit a function in a controller called <code>function Login()</code> is called This is my Login function</p> <pre><code>function Login() { $EmailId = $this-&gt;input-&gt;post('mailId'); $Password = $this-&gt;input-&gt;post('password'); $res=$this-&gt;fri...
php javascript
[2, 3]
234,750
234,751
Simplest way to animate button
<p>I have to code animated menu buttons for my Android app. It will be look something like this: ![enter image description here][1]</p> <ul> <li>simple mockup of menu: i.stack.imgur.com/vT788.png</li> <li>Animation looks like some kind of cube rotation - one spin of cube, something like that..</li> </ul> <p>I'm looki...
java android
[1, 4]
4,609,740
4,609,741
Android SMS API
<p>I know that the SMS content provider is not part of the public API (at least not documented), but if I understand correctly it's still possible to use many of the SMS features as long as you know how to use the API(?).</p> <p>E.g it's pretty straightforward to insert an SMS into your inbox:</p> <pre><code> Content...
java android
[1, 4]
1,665,749
1,665,750
Model / DAO in Android
<p>I would like to have a model (or similar) which i want to save and fetch data from. For example; I run an asynctask, and in <code>onPostExecute</code> i want to save the return value to the model, which i would be able to make use of in my other classes (once the asynctask is complete ofcourse).</p> <p>Hopefully yo...
java android
[1, 4]
5,646,618
5,646,619
Is ASP.NET HttpPostedFile.SaveAs a blocking call?
<p>I was wondering whether <code>HttpPostedFile.SaveAs</code> function in ASP.NET C# is a blocking call.</p>
c# asp.net
[0, 9]
3,477,439
3,477,440
removing all elements from xml file except root element c#
<p>I have an xml file </p> <pre><code>&lt;Abc&gt; &lt;image filename="1.jpg" heading="1.jpg" /&gt; &lt;image filename="10.jpg" heading="10.jpg" /&gt; &lt;image filename="11.jpg" heading="11.jpg" /&gt; &lt;image filename="2.jpg" heading="2.jpg" /&gt; &lt;image filename="3.jpg" heading="3.jpg" /&gt; &lt;/Abc&...
c# asp.net
[0, 9]
2,632,546
2,632,547
How to populate infinite scroll with images from 1 directory?
<p>I have a <code>&lt;div id="content" class="clearfix"&gt;&lt;/div&gt;</code> which self populates with a list of image urls from a separate directory on my server. </p> <p>Here is the live URL for the site : <a href="http://ilovesmallies.com/forum/showcase.php" rel="nofollow">http://ilovesmallies.com/forum/showcase...
javascript jquery
[3, 5]
2,281,180
2,281,181
immutable collection?
<p>i use a readonly collection to prevent users from altering my cached data, but the items themselves are ofcourse muatble. Is there a way to prevent that behaviour?</p> <p>Michel</p>
c# asp.net
[0, 9]
3,337,597
3,337,598
When OnResize doesn't notice you resized
<p>Window -> IFRAME -> DIV</p> <p>I have a window, that has an iframe, that has a div. The div has the ability to scroll the content within but not having full control of the parent window, I have to decide how large the div needs to be from within the iframe. </p> <p>To do this, I have the following code JavaScript...
javascript jquery
[3, 5]
928,517
928,518
The import org.apache.commons.net cannot be resolved
<p>Why am I getting this error? I already imported the jar file in my eclipse project.</p>
java android
[1, 4]
3,425,808
3,425,809
How to center a ImageView vertically in its parent?
<p>My layout design is a TextView with long text and a ImageView to the right of the TextView. I want to center the ImageView in its parent vertically, so I used android:layout_centerVertical="true", but it turned out that the ImageView was aligned to the bottom of its parent. If I don't use layout_centerVertical prope...
java android
[1, 4]
1,226,257
1,226,258
jquery validate position
<p>I'm trying to use jquery validate. Following the example: <a href="http://docs.jquery.com/Plugins/Validation">http://docs.jquery.com/Plugins/Validation</a> works great and I'd like to reproduce with my code. However I'm not sure where to call it.</p> <p>What I have is a generated html table and when you click the...
javascript jquery
[3, 5]
5,458,749
5,458,750
Open My Documents
<p>Hi I have a link to a file in 'my documents' this is an internal web site. How can I open the users local MY Documents folder using JS or JQ </p> <p>I used this code and thought the documents would appear in a web page but it didnt</p> <pre><code>address = "G:\systems Projects" ; window.open(address,"Detail ","...
javascript jquery
[3, 5]
1,669,267
1,669,268
Problem Export data from dataset to Excel
<p>I want to export data from dataset to Excel using C# in Asp.Net</p>
c# asp.net
[0, 9]
1,123,125
1,123,126
FF javascript woes
<pre><code>Zoom.addEventListener('click', function(){$(document).ready(function(){$("#draggable").draggable({containment: '#imgContainer', scroll: false});});}); </code></pre> <p>let me first explain the code. Zoom is a handler/button on clicking which i am enabling the dragging of an image object.</p> <p>the above c...
javascript jquery
[3, 5]
2,175,120
2,175,121
how to get property from code behind jquery variable?
<p>I want to retrieve property value in jquery function and want to set it in variable. I am trying with below code but its not working.</p> <p>.cs file</p> <pre><code>private string _Heading; public string Heading { get { return _Heading; } set { _Heading = value; } } </code></pre> <p>.aspx</p> <pre><code>&lt;scri...
c# jquery asp.net
[0, 5, 9]
775,260
775,261
Jquery removing class of span object without passing the Id
<p>I have a input tag before which I have a span tag.</p> <pre><code>&lt;li&gt; &lt;span class="class1 class2" style="background-position: 0pt 0pt;"&gt;&lt;/span&gt; &lt;input id="in1" class="inputclass" type="checkbox" name="in1"&gt; &lt;label for="in1"&gt;text here&lt;/label&gt; &lt;/li&gt; &lt;li&gt; &lt;span class...
javascript jquery
[3, 5]
3,204,539
3,204,540
Accessing control created dynamically in code behind
<p>i have a link button which i have created dynamically and added it to a div i want to access this link button in some other function in code behind how to do this</p>
c# asp.net
[0, 9]
5,960,269
5,960,270
How to use PHP to return a count of images in a directory?
<p>I have a Javascript object like this:</p> <blockquote> <pre><code>var count = { table:19, people:39, places_details:84, story_1:18, story_2:6, story_3:11 } </code></pre> </blockquote> <p>Each item (table, people, etc.) is a directo...
php javascript
[2, 3]
4,257,684
4,257,685
The import org.apache.commons.net cannot be resolved
<p>Why am I getting this error? I already imported the jar file in my eclipse project.</p>
java android
[1, 4]
568,048
568,049
Grid View using javascript or in PHP
<p>I need a simple grid view with horizontal and vertical scroll bar using Jquery or simple javascript or in php, can anyone suggest me a simple grid view plugin?</p>
php javascript jquery
[2, 3, 5]
4,447,181
4,447,182
Retrieve data from dynamically created controls
<p>I am dynamically creating several dropdown list on the selection changed event of a main (static) dropdown list. These are created in The <code>TableCell</code> of default <code>Table</code>. When submit button is clicked I need to load a new page with selected values of dropdown as parameters. Basically I need to g...
c# asp.net
[0, 9]
3,853,139
3,853,140
how to collect form ids using jQuery
<p>A jQuery selector <code>$(".thumb_up")</code> returns a collection of forms like this:</p> <pre><code>[&lt;form id="like_post_78" ...&lt;/form&gt; &lt;form id="like_post_79"&gt; ... &lt;/form&gt;] </code></pre> <p>Ultimately I want to generate a string consisting of the numerical ending portion of the form ids.</p...
javascript jquery
[3, 5]
5,255,150
5,255,151
click() not working as expected
<pre><code>$j('#carousel').jcarousel({ vertical: true, scroll: 1, auto: 2, wrap: 'last', initCallback: mycarousel_initCallback }); $j('div#slideshow-carousel a img').css({ 'opacity': '0.5' }); $j('div#slideshow-carousel a img:first').css({ 'opacity': '1.0' }); $j('div#slideshow-carousel li a...
javascript jquery
[3, 5]
1,467,103
1,467,104
jQuery ASP.NET find a particular CheckBox in a CheckBoxList by the innerHTML of the CheckBox Label
<p>I have an ASP.NET CheckBoxList:</p> <pre><code>&lt;asp:CheckBoxList ID="CheckBoxList1" runat="server" Width="10%"&gt; &lt;asp:ListItem Selected="True" Value="1"&gt;White&lt;/asp:ListItem&gt; &lt;asp:ListItem Selected="False" Value="2"&gt;Black&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="3"&gt;Red&lt;/a...
jquery asp.net
[5, 9]
3,921,290
3,921,291
Forced selection in hidden / Backend using Javascript OR JQuery
<p>I have regular form like this.</p> <pre><code> &lt;form action="/domainchecker.php" method="post"&gt; &lt;input type="text" name="domain" size="20"&gt; &lt;fieldset&gt; &lt;select name="ext"&gt; &lt;option&gt;.com&lt;/option&gt; &lt;option&gt;.net&lt;/option&gt; &lt;option&gt;.org&lt...
javascript jquery
[3, 5]
3,777,619
3,777,620
one document.createElement, append it twice, only shows once
<p>I have a button I want to use in the beginning and the end of the page:</p> <pre><code>var button_save = document.createElement('button'); $("#compteurs").append(button_save); [...] $("#compteurs").append(button_save); </code></pre> <p>but it only appear at the end of the page. If I remove it from the bottom of th...
javascript jquery
[3, 5]
3,357,300
3,357,301
PHP and Javascript code needed to check if form fields are not empty
<p>Javascript needed to prevent form submit if any of field is empty. all my form fields start names start with name=add[FieldName] those are the fields that need checking.</p> <p>PHP, backend check before submiting to database double check to make sure all $POST are not empty</p>
php javascript
[2, 3]
1,203,803
1,203,804
Toggle TWO Drop Down Panels
<p>I am using two panels at the top of my web page that drop down: "Fast Quote" and "Client Login". Can someone show me how to alter my code so that ONLY ONE panel is open at one time? Example: If "Client Login" is open and the user clicks on "Fast Quote", the "Client Login" should close and the "Fast Quote" drops ...
javascript jquery
[3, 5]
3,728,675
3,728,676
jQuery selection not working in chrome
<p>I've got the following code to run when value is entered to an input. The event is triggered when the focus goes out from the input. </p> <pre><code>$("#guest-level option[id='"+ result.BookingInfo.guestLevelCode +"']").attr("selected", "selected"); </code></pre> <p>This doesn't get executed in chrome but works pe...
javascript jquery
[3, 5]
2,350,434
2,350,435
jquery: how to know an item is invisible in an aspx page?
<p>If the visible of a server side control is set to false, even I know it's id, is that possible to know that it is invisible by using jQuery? what code should I use, say the control id="test1".</p>
jquery asp.net
[5, 9]
4,483,602
4,483,603
Open dialogue box on <div> click?
<p>My site pages run off <code>header.php</code>, which contains all the JavaScript and CSS needed for all the pages.</p> <p>What I am trying to do is make it so that, whatever page a user is on, if they click the <code>&lt;div&gt;</code> <code>.register_button_click</code>, they will have a JavaScript dialogue box op...
javascript jquery
[3, 5]
4,950,881
4,950,882
Javascript - looking for an alternative to prependTo so that it doesn't add multiple items
<p>I have some code. When it runs correctly, I create a success message and use prependTo in order to display it on the screen. The problem is that when the user does their successful action twice, I end up with two success messages.</p> <p>Is there a way to overwrite my success message. Here is how I currently handl...
javascript jquery
[3, 5]
2,320,115
2,320,116
Jquery click-event but not holding down/marking text-event
<p>I have a table wich expands/contracts on click. It works great, however, there is one problem, sometimes users might want to copy text in the table, and thus their line contracts(on the click)</p> <p>Is there some way to avoid the event being triggerd on click but not if you hold the mouse down and/or mark text?</p...
javascript jquery
[3, 5]
799,975
799,976
JQuery - Make my script work?
<p>I have written a script. It does work! It's just a bit rubbish. Could someone tell me where I am going wrong.</p> <p>Basically, I have a 5 star rating box. When the mouse hovers over the various parts of the box I need the stars to change.</p> <p>Currently the stars only change when you move your mouse over and ou...
javascript jquery
[3, 5]
1,713,602
1,713,603
Accessing ASP.NET Server variables in jQuery
<p>In Page_Load() function, I have populated an arraylist and a hashtable. I need to read their values in the $(document).ready(function(){...}.</p> <p>I am a beginner in terms of ASP.NET and jQuery. Please suggest a way to do it.</p> <p>cheers </p>
asp.net jquery
[9, 5]
4,618
4,619
Add margin dynamically to any found occurrence
<p>How can I make it more elegant and universal? It works but I would like to have the margin added +52px to every next .alert occurrence.</p> <pre><code>var alerts = $(".alert"); if(alerts.is(":visible")) { if(alerts.length &gt; 1 ) { alerts.eq(1).css('margin-top', '52px'); alerts.eq(2).css('margi...
javascript jquery
[3, 5]
1,256,901
1,256,902
Can't open Websphere Portal 7.0 Login Page after its integration with a custom user registry?
<p>I am currently working on a project related to Websphere Portal 7.0 on Windows Server 2008 R2,64 bit. I am trying to integrate websphere portal with my custom user registry.I have completed all the steps required to implement custom user registry in portal as given in IBM documentation.I am adding my custom reposito...
java c++
[1, 6]
5,198,979
5,198,980
In a repeater, how can determine the RepeaterItem of the button clicked during a CustomValidator OnServerValidate event?
<p>I have a repeater with Remove buttons (LinkButton). Expensive database calls determine if a row can be removed (weird and not ideal, I know). In each row, I've got a CustomValidator that has a OnServerValidate event hander.</p> <p>The problem is that I don't know which RepeaterItem the user is attempting to remov...
c# asp.net
[0, 9]
5,071,236
5,071,237
requestLocationUpdates generates locations after..?
<p>I got an error on my application so I need to check every single line to find the error which leads me to this question:</p> <p>In case that I send a 10 seconds as minTime in the requestLocationUpdates method, the method will start to count to 10 exactly when it call the listener? or when the listener method is fin...
java android
[1, 4]
5,100,980
5,100,981
How to check on inserting new values if they already exists?
<p>I have a gridview and sqldatasource to bind data to gridview.</p> <ul> <li>I have 3 columns in database : Name,Age,Birthday.</li> <li>I have 3 textboxes and a button for adding new row with values from textboxes in the data table , gridview.</li> </ul> <p>When I click the button for adding a new row with those inf...
c# asp.net
[0, 9]
5,964,093
5,964,094
Increment variable on click jquery
<p>i´m working on an interactive Infographic. Basically there are is a number of circles flying around. I try to change the amount of circles by clicking on a button, therefor I want to increase the <strong>variable d</strong> by 1 on click, to get an other element from the array. But it doesnt´t work. Any ideas?</p> ...
javascript jquery
[3, 5]
1,948,405
1,948,406
On page load jquery
<p>I have a jQuery click event which runs when an element is clicked. Is it possible to get this to run once when the page is loaded?</p>
javascript jquery
[3, 5]
4,661,861
4,661,862
Android: ListView fixed height of child view
<p>Please advice how to set fixed heigh (in dip) for the child view of ListView component?</p> <p>I am using relative layout as root layout for the child view</p> <p>when I set backgoround image to relative layout it becomes very height (maybe because backgoround picture is large) and I want to set precisely the heig...
java android
[1, 4]
2,853,040
2,853,041
cells.InnerHtml not getting correct way
<pre><code>protected void ReadHtmlTable(string patientName, string startHour, string startMinute, int rowspan) { for(int i = 0; i &lt;= tableAppointment.Rows.Count - 1; i++) { for(int j = 0; j &lt;= tableAppointment.Rows[i].Cells.Count - 1; j++) ...
c# asp.net
[0, 9]
34,045
34,046
Add line breaks after n numbers of letters in long words
<p>A have a string that can reach up to 100 characters in lenght. Is there an easy way to insert line breaks in the word every 10th letter? For example:</p> <pre><code>aaaaaaaaaaaaaaaaaaaaaaaaa </code></pre> <p>Should turn in to</p> <pre><code>aaaaaaaaaa&lt;br/&gt;aaaaaaaaaa&lt;br/&gt;aaaaa </code></pre> <p>I know ...
javascript jquery
[3, 5]
4,045,636
4,045,637
Why I get different date formats when I run my application through IIS and Visual Studio's web server on the same computer?
<p>I get the same culture i.e. "en-US" while running the website from both IIS and Visual Studio's web server.</p> <p>But I get a different date format as follows, when I run the following code:</p> <pre><code>HttpContext.Current.Response.Write(System.Threading.Thread.CurrentThread.CurrentCulture.ToString()); HttpCon...
c# asp.net
[0, 9]
484,902
484,903
Selecting only one element in the jQuery collection
<p>How do I limit an event to a single element in a jQuery collection? </p> <p>In the case below, I've tried using <code>.one()</code> to limit the behaviour (inserting the <code>&lt;li class='close'&gt;Close&lt;/li&gt;</code> line of HTML) to a single instance. The behaviour does indeed happen only once, but on EVERY...
javascript jquery
[3, 5]
5,908,187
5,908,188
$.slideToggle() & $.hover() animation queue issue
<p>I'm trying to set up a pretty basic hover animation in jQuery. Mouse over a div and the major content is slid down, mouse up and it slides up.</p> <pre><code>&lt;script type="text/javascript"&gt; $(function () { $('.listItem').hover(function () { $(this).find('.errorData').slideToggle('slow'...
javascript jquery
[3, 5]
2,093,543
2,093,544
What is the purpose of the arguments Object o and EventArgs ea, in ddlChooseReport_Function (ASP.net)?
<p>I'm curious as to the purpose of this method signature in ASP:</p> <pre><code>protected void ddlChooseReport_Function(Object sender, EventArgs e) </code></pre> <p>because in the method body afterward, it never mentions either parameter</p>
c# asp.net
[0, 9]
5,371,105
5,371,106
Javascript repetition of events
<p>If the focus is on the input was only one time it works but if more then attached event begins to work as many times as eliment was in focus. How to make a click event to execute only once? Below is the code.</p> <pre><code>$('.menuName').focusin(function(){ $(this).parent().append('&lt;div class="cleart...
javascript jquery
[3, 5]
1,964,304
1,964,305
Disable Image Save option by right click option
<blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/2018802/prevent-saving-image-from-my-site">prevent saving image from my site</a><br> <a href="http://stackoverflow.com/questions/4514610/transparent-div-to-prevent-right-click-save-as">Transparent &lt;div&gt; to ...
c# javascript asp.net
[0, 3, 9]
2,752,856
2,752,857
How do I make a word bold in javascript?
<p>I am using javascript to populate data in a table which return everything fine. I would like to make a string bold. See code below</p> <pre><code>$tr.find('.data').val($('#txtName').val() + ' &lt;strong&gt;Address:&lt;\/strong&gt; ' + $('#txtAddress').val()); </code></pre> <p>How do I make only the word "Addres...
javascript jquery
[3, 5]
5,546,508
5,546,509
how to rewrite this this inline javascript with jquery?
<p>I have the following markup with inline javascript and would like to change it to Jquery. Any help would be appreciated.</p> <pre><code>&lt;a title="823557" href="/PhotoGallery.asp?ProductCode=471823557" id="product_photo_zoom_url"&gt; &lt;img border="0" onload="vZoom.add(this, '/v/vspfiles/photos/471823557-2.jpg')...
javascript jquery
[3, 5]
3,047,239
3,047,240
Segment text using fullstops
<p>I need to segment text using fullstops using PHP/Javascript.The problem is if I use "." to split text then abbreviations , date formatting (12.03.2010 ) or urls as well split-ed , which I need to prevent.There are many such possibilities , I might not be able to imagine. How to recognize that the "." is used as full...
php javascript
[2, 3]
1,250,829
1,250,830
Get Checkbox Value Using jQuery
<p>I want to display an error message or success message depending whether a textbox value is empty or has a value.</p>
javascript jquery
[3, 5]
4,722,445
4,722,446
File upload using javascript (iPad web application)
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4081997/upload-files-via-ipad">upload files via iPad</a> </p> </blockquote> <p>Hey guy's I'm trying to create a "native" iPad application using html, javascript, and html5 cache manifest so it will be available ...
javascript jquery
[3, 5]
1,532,645
1,532,646
Call function after element has been removed from DOM
<p>I'm using jQuery to attach a click event to a link that removes a a table row from the DOM. I need to call another function when the click event is fired. I tried using the jQuery <code>.on()</code> method but the function is not called. I see there is a <code>.trigger()</code> method I can use, but not sure how to ...
javascript jquery
[3, 5]
4,956,812
4,956,813
Reason why onStart finishes before onCreate
<p>On an application I'm working on the onCreate starts a service with startService() and subsequently after, that same activity calls bindService(to that same service) in its onStart. The problem is the Sevice isn't initialized until well after the onStart has completed which causes a fatal error from a nullpointer ex...
java android
[1, 4]
664,777
664,778
jquery length of characters in a collection
<p>Is there any way to get the length of characters in a jQuery collection? </p> <p>e.g. you matched a bunch of divs and you want the character count of just the matched divs</p>
javascript jquery
[3, 5]
3,508,730
3,508,731
PHP How to I make my textinput accept single quote or Double quotes
<p>How do I make my textinput accept apostrophe or double quotes?</p> <p>Everytime a user type's in this one: John's Birthday, I store this one in the database using mysql_real_escape_string().</p> <p>What I wanted to do in here is to retrieve it in my text input. I tried this one</p> <pre><code>&lt;input type='text...
php javascript
[2, 3]
1,487,256
1,487,257
How can I take the user to a new page, along with some variables, using Javascript/jQuery, without causing a URI Too Large error?
<p>Using Javascript/jQuery, I need to take the user to a new page when a button is clicked, and also send along a bunch of variables to the new page. At the moment I'm doing it like this:</p> <pre><code>location.href=window.location.href + '/new_note?id='+$('#note_id').val()+'&amp;note_subnotes='+encodeURIComponent(wi...
javascript jquery
[3, 5]
1,096,783
1,096,784
JQuery function call with out an event
<p>Suppose i have below jq function, </p> <pre><code>$(document).ready( function(){ $('#demo_btn').click( function(){ $.popup.show("The title", "A nice message"); } ); }); </code></pre> <p>I need to call the above function with out a click event. For example suppose a i check a condition and if its ...
javascript jquery
[3, 5]
1,183,423
1,183,424
How to run the javascript fn using OnClick button event (asp.net)
<p>I had a input button to which I called a javascript function when clicked. But I want to add images to the button So I used a Image button but I am not able to call the Javascript function from the image button. How to run the javascript fn when the image button is clicked </p> <pre><code>&lt;input id="send" type="...
c# javascript asp.net
[0, 3, 9]
4,960,423
4,960,424
Custom control that detects first child which will be rendered as a html input field
<p>Im trying to develop a custom control that automatically detects the first child control which will be rendered as an input-tag. I'm doing this because I want to know if I should render my associated title as a label or a span element in the HTML (a bit like the <code>asp:Label</code> works when an <code>AssociatedC...
c# asp.net
[0, 9]
666,911
666,912
Where do I put the JQUERY UI theme folder?
<p>This is my code. It turns my text box into a date picker.</p> <pre><code>&lt;script type="text/javascript" src="{{MEDIA_URL}}template/js/jquery-1.4.1.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="{{MEDIA_URL}}template/js/jquery-ui-all.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript...
javascript jquery
[3, 5]
3,711,632
3,711,633
change div content by clicking an image
<p>I have this div:</p> <pre><code>&lt;div class="main_mark"&gt; &lt;img src="/assets/welcome_main.png" alt="main" class="main_mark_image" /&gt; &lt;/div&gt; </code></pre> <p>I want the next thing: when the user click the image, this div will changed to:</p> <pre><code>&lt;div class="main_mark"&gt; &lt;embed...
javascript jquery
[3, 5]
4,200,782
4,200,783
Is this safe from sql injection?
<p>I usually use sql parameters with queries, but in this case I need to dynamically create more than just the parameters.</p> <p>Could someone use injection on any of the variables? Aside from a stored procedure is there a simple way to protect against injection via code?</p> <pre><code>string whereClause = "WHERE "...
c# asp.net
[0, 9]
2,142,316
2,142,317
Which is higher in Abstraction Level Linq or Lamdba expression
<p>I always prefer lamdba expression to perform operations on collection. But i can achieve same thing with LINQ which is simpler than Lambda expression. but, I am still confused a bit about which comes at top in Abstraction Level &amp; why? </p>
c# asp.net
[0, 9]
2,538,331
2,538,332
Scale down an image if it's too big for the screen
<p>I have an html page where in the middle there is a pic.<br> Is there a way to scale down the image with javascript in case it's too big for the current monitor resolution?</p> <p>I mean if a user with a resolution of 1600*1200 open an image of 1900*1200 the image should be scaled down to fit the window.</p> <p>I c...
javascript jquery
[3, 5]
3,404,493
3,404,494
jQuery basic: How to create a loop with this structure?
<p>This is a really simple question but I'm not sure how to search for it on the internet. </p> <p>I have an empty <code>&lt;div id="wrap"&gt;&lt;/div&gt;</code> that needs to end up looking as following:</p> <pre><code>&lt;div id="wrap&gt; &lt;div class="container"&gt; &lt;div class="apples"&gt;&lt;/div&...
javascript jquery
[3, 5]
5,614,741
5,614,742
jQuery problems
<p>Below I present you some code which has completely been butchered by me.</p> <pre><code>$(".gig").hover(function() { var id = $(this).attr("id"); var time = $(this).attr("title"); function () { if (time &gt; 0) { var answer = $('&lt;div class="roll"&gt;Are you attending? &lt;a href="' + id + '"&gt;Yes&lt...
javascript jquery
[3, 5]
2,762,088
2,762,089
jQuery element click
<p>I have an element, an anchor, how can I "click it" with jQuery, I mean like a normal user click, because I'm receiving a click on an element..but also I need to fire more events...</p> <p>Ok here is my example</p> <pre><code>&lt;a class="som" href="http://domain.com/ssl-signup.php" target="_blank"&gt;Test Link&lt;...
javascript jquery
[3, 5]
4,396,002
4,396,003
Adding show/hide to my div tags
<p>so I got 4 div tags, with id's - <code>content1</code>; <code>content2</code>; <code>content3</code> and <code>content4</code>. at start, <code>content1</code> is only shown, and all other 3 contents are invisible, and I got menu with links, <code>#content1</code>, <code>#content2</code>, <code>#content3</code>, <co...
javascript jquery
[3, 5]
3,565,824
3,565,825
How can I get the user's local time instead of the server's time?
<p>How can I get the time of the client side? When I use <code>date()</code> it returns server's time.</p>
php javascript
[2, 3]
5,607,378
5,607,379
Load array using separate thread
<p>I've written a speedlimit app that loads data from a set of tiled xml files representing 0.05 sided degree maps.</p> <p>At the moment, the app checks if I've moved into a new square (using OnLocationChanged) and if so loads in the data for it and the surrounding other 8 tiles.(has a bit of a sanity check and only l...
java android
[1, 4]
3,784,976
3,784,977
parsing css measures
<p>When i write a jQuery plugin i like to specify options for spacings the CSS way. I wrote a function that returns a CSS String as values in a object. </p> <p>5px 10px returns top: 5px, right: 10px, bottom: 5px, left: 10px</p> <p>Now i often use the returned values to do some calculations and its not very nice to ha...
javascript jquery
[3, 5]
3,962,748
3,962,749
Display elements of a <ul> in two columns
<p>Someone please help me to change current function to display elements in two columns,</p> <pre><code> function nextCode(flag) { var code = codes[flag]; $('.headers').html(''+code[0]+''); var sum;for(var j=1;j&lt;=code.length;j++) { sum+="&lt;li&gt;"+code[j]+"&lt;/li&gt;"; } sum="&lt;ul&gt;"+sum+"&l...
javascript jquery
[3, 5]
3,648,998
3,648,999
Store the string returned by an ASP.NET helper into a javascript var: SyntaxError
<p>What I want to do is store the string returned by this ASP.NET helper into a javascript var.</p> <p>My code:</p> <pre><code> function doSomething(id){ var htmlString = '@Html.TextArea("test", new { @rows = "1" })'; } </code></pre> <p>The generated javascript along with the error in chrome:</p> <pre><...
javascript asp.net
[3, 9]
4,685,820
4,685,821
make div text disappear after 5 seconds using jquery?
<p>i need to make a div text disappear after x seconds of displaying it using an ajax call</p> <p>can you help me on this please ?</p> <p>thanks</p>
javascript jquery
[3, 5]
1,286,685
1,286,686
How do I create 'JQuery' function calls and pass data to them?
<p>I'm adding tool tips using the qtip jquery plugin. I may add 50-60 tool tips over an entire site.</p> <p>The way I've found to do it right now is ti cut/paste the jquery code over and over. For example:</p> <pre><code>// First, setup a tool tip for 'Enter Username'. $("input#user_login").qtip({ content: 'Enter ...
javascript jquery
[3, 5]