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 |
|---|---|---|---|---|---|
783,809 | 783,810 | Best way to change a form action upon submit | <p>Basically I have a form with a few drop-downs, but the page I'd like to be set as the action of the form submit would be based on the option chosen in one of the drop downs. I'd like to stick with one submit button, so it seems a little tricky. Can anyone point me in the right direction?</p>
| php javascript jquery | [2, 3, 5] |
5,279,824 | 5,279,825 | checkbox filtering system | <p>I came across this page at <a href="http://www.walmart.com/browse/Computers/Desktop-Computers/_/N-96fg?browsein=true&catNavId=3951&ic=48_0&ref=%20428236" rel="nofollow">walmart.com</a> and on the left side of the page is a checkbox filtering system that is done on the client side. When you check the pric... | javascript jquery | [3, 5] |
3,091,217 | 3,091,218 | Detect HTML in ASP.NET | <p>(clarification: this is an old question that has been tweaked for admin purposes)</p>
<p>There have been a fair amount of questions on this site about parsing HTML from textareas and whatnot, or not allowing HTML in Textboxes. My question is similar: How would I detect if HTML is present in the textbox? Would I n... | c# javascript asp.net | [0, 3, 9] |
2,670,344 | 2,670,345 | Asp.Net(C#) Label Text inline | <pre><code><asp:TextBox ID="TextBox1" runat="server" Text='<%# DateTime.Now.ToLongDateString() %>'></asp:TextBox>
</code></pre>
<p>ı need textbox text set DateTime.Now.ToLongDateString() how to make ?
must inline</p>
| c# asp.net | [0, 9] |
3,479,220 | 3,479,221 | Use jQuery.data to get a boolean from a dom element? | <p>According to <a href="http://api.jquery.com/data/#data2" rel="nofollow">jQuery's .data() documentation</a> you can use the .data() method to <code>data</code> prefixed attributes from a dom element. For example:</p>
<pre><code>{# Include jquery.... #}
<div id='mydiv' data-foo='bar'></div>
<script>... | javascript jquery | [3, 5] |
4,734,850 | 4,734,851 | Setting a Range for a Textarea based on User Input | <p>I have a textarea and I'm trying to check if someone enters <strong>{{link</strong> that I can have a modal pop up to let them complete some information. </p>
<p>What I have now is that if someone enters the letter k, it will go back 6 characters and then determine if the text matches <strong>{{link</strong> </p>... | javascript jquery | [3, 5] |
2,926,353 | 2,926,354 | Why can I not access the data attribute of an element with jQuery. | <p>I have the following HTML:</p>
<pre><code> <div class="button disabled dialogLink"
id="edit"
data-action="Edit" >
<div class="sprite-blank" ></div>
</div>
</code></pre>
<p>This javascript</p>
<pre><code>$('.dialogLink')
.click(function () {
adm... | javascript jquery | [3, 5] |
4,190,148 | 4,190,149 | Infinite Recursion using callback function in jQuery | <p>Experimenting with jQuery and trying to make a small slide show that rotates through three images. Here's my HTML:</p>
<pre><code><div id="slideShow">
<img src="images/slides/slide1.jpg" width="520" height="230" />
<img src="images/slides/slide2.jpg" width="520" height="230" />
<im... | javascript jquery | [3, 5] |
1,213,684 | 1,213,685 | How to pass the value of a list or an array from code behind to jquery? | <p>Let's say I want to scan my local drive or a particular local folder for all images. What I want to do is get all the location of all the images and store it in a list/array then after that JQuery will going to refer to the list/array for a slideshow.</p>
<p>Please help me with this.</p>
| c# jquery asp.net | [0, 5, 9] |
2,671,100 | 2,671,101 | how to upload ppt and display ppt in website using c# | <p>How can I display an uploaded power point presentation inside a c# asp.net web application?</p>
| c# asp.net | [0, 9] |
2,543,459 | 2,543,460 | How can I use my coding skills for good? | <p>By this autumn my two small websites should be generating around a total of $1200 a month with minimal/zero input which is enough to for me to live on comfortably enough. </p>
<p>Rather than embark on another business venture, I would love to spend the next few years doing something genuinely good or that helps oth... | c# java php javascript jquery | [0, 1, 2, 3, 5] |
658,412 | 658,413 | Any alternative of Turn.js(Its not working on IE8/7) | <p>There is any alternative of Turn.js. It's not working on IE8/7. I need flip effect on IE7\8. Please help.</p>
| javascript jquery | [3, 5] |
1,669,099 | 1,669,100 | How to disable the url address bar using javascript or jquery | <p>I've got a spring mvc framework and I want to disable the url address bar when the page loads! (It's not a public web application) How can I achieve this using javascript or jquery. </p>
<p>Update :</p>
<p>Guys, If I can make the url bar read only that would be okay too!</p>
| javascript jquery | [3, 5] |
2,357,482 | 2,357,483 | How can I automate chaining a series of ajax requests? | <p>Look at the lower part of my function: I want to repeat <code>info(url_part1 + next + url_part2, function(next) {</code> couple of times. Is there a smarter way than one presented below (maybe some kind of loop)? I've been thinking whole day and I can't devise anything.</p>
<pre><code> function info(link, callback... | javascript jquery | [3, 5] |
899,055 | 899,056 | Access to variable | <p>When I do a console trace on the positionSlides method its showing slideShow as undefined.
How can this be when I clearly instantiate it in the document.ready callback. I also make sure to make this variable global so both the slideShow and the slideShowNavigation would have access to both these variables.</p>
<pre... | javascript jquery | [3, 5] |
4,114,062 | 4,114,063 | Ajax Autocomplete code not working(with database) | <p>I have wriiten a simple ajax autocomplete code in Asp.net ( C#)</p>
<p>This is the code</p>
<p><strong>ASPX</strong></p>
<pre><code><asp:TextBox ID="TextBox1" runat="server" Height="21px" Width="80px"></asp:TextBox>
<asp:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server" Minimum... | c# asp.net | [0, 9] |
3,933,292 | 3,933,293 | How can I do client side text formatting on a Data-bound field inside a repeater? | <p>I have a repeater control with some html controls being populated from some server side DataSource. The code for these controls inside the repeater looks something like this..</p>
<pre><code><img src='<%# DataBinder.Eval(Container.DataItem, "Path")%>' title='<%# DataBinder.Eval(Container.DataItem, "Name... | c# asp.net javascript | [0, 9, 3] |
4,399,894 | 4,399,895 | javascript: how do I pass safe strings to an array for client side display without messing it up / ASP.NET C# | <p>platform: ASP.NET 3.5 / C#</p>
<p>My requirement is this:</p>
<p>I want to create a rather large array on the server side (in C#) and pass it to the browser via </p>
<pre><code>Page.ClientScript.RegisterArrayDeclaration("gBank", js);
</code></pre>
<p>My array is a 2-dimension array, and I am constructing it righ... | c# javascript asp.net jquery | [0, 3, 9, 5] |
4,422,737 | 4,422,738 | Why are javascript comments downloaded to the browser? | <p>Using aspnet 3.5. </p>
<p>I have some javascript functions in my aspx file. </p>
<p>Why do the javascript comments get passed to the browser? It makes the download file unnecessarily large. </p>
| asp.net javascript | [9, 3] |
4,200,544 | 4,200,545 | writing javascript in ftl file | <p>I have an ftl file which is sending a notification e-mail. I need to change the subject line of these mails. So, far I have managed to change the subject and pass a URL in it. But my requirement is to pass a specific parameter from the URL. Can I write a java scriplet or javascript function inside this file. </p>
<... | java javascript | [1, 3] |
3,222,847 | 3,222,848 | how to pass list as parameter in function | <p>I have taken a list and insert some value in it</p>
<pre><code>public List<DateTime> dates = new List<DateTime>();
DateTime dt1 = DateTime.Parse(12/1/2012);
DateTime dt2 = DateTime.Parse(12/6/2012);
if (dt1 <= dt2)
{
for (DateTime dt = dt1; dt <= dt2; dt ... | c# asp.net | [0, 9] |
2,593,689 | 2,593,690 | Problem with array script | <p>i want to give anchor tag to an image while checking the condition in slide show where my slide show is displayed using script</p>
<pre><code> <script type="text/javascript">
var res;
var hdnvalue = a = document.getElementById('HiddenField4').value;
var imgArr = hdnvalue.split(';');
var... | javascript asp.net | [3, 9] |
3,822,744 | 3,822,745 | Beginner ASP.NET C# question about dynamically changing master pages | <p>OK, here's the thing... You fetch the user's IP address and based on his/her country you redirect the user to a specific webpage. Now, how do you change the master page dynamically? This is how I am redirecting the user :-</p>
<p><a href="http://stackoverflow.com/questions/3690278/fetching-ip-address-and-displaying... | c# asp.net | [0, 9] |
3,795,144 | 3,795,145 | How do i remove :hover? | <p>I have a small problem with a script.
I want to have a default action on :hover for those with javascript disabled but for those with javascript enabled i want another action (actually... same action, but i want to add a small transition effect).</p>
<p>So... How can i do this? I am using jquery.</p>
| javascript jquery | [3, 5] |
2,152,046 | 2,152,047 | Creating array lists using Json object file in android | <p>Please check out my following code</p>
<pre><code>String jsonString = writer.toString();
JSONObject jsonObj = new JSONObject(jsonString);
defaultCurrencyValue = jsonObj.getString(DefaultCurrencyKey);
currenciesTypes = jsonObj.get(CurrenciesKey);
</code></pre>
<p>This is what i get the valu... | java android | [1, 4] |
5,903,808 | 5,903,809 | Multi step form with jQuery which degrades nicely if JS is turned off | <p>I currently had my form set up so that each section was refreshed using Ajax, however it didn’t degrade gracefully with JavaScript turned off and I’ve looked into putting each part of the form in to a separate view which works fine but isn’t that great to be honest.</p>
<p>I know the client wants it to look nice so... | javascript jquery | [3, 5] |
4,453,905 | 4,453,906 | .each() on JQuery Dropdown | <p>I'm trying to create a JQuery Dropdown similar to the one used in bootstrap.</p>
<p>The problem which arises is that when an individual list item is clicked, all sub navigation's display block.</p>
<p>Now I know this issue can be resolved with .each() but my code does not seem to work.</p>
<p>Please find the exam... | javascript jquery | [3, 5] |
2,524,549 | 2,524,550 | send minus from jquery to php page | <p>now i want send the - i mean Minus one to php
but when send it its not sending as a word
i cant tell you because i dont understand
see
in php when write <code>"$var"</code> its return <code>$var</code> value but when write '$var' its returm $var
how i can make this in jquery</p>
<pre><code>var dataString = 'vote=-1... | php jquery | [2, 5] |
5,736,675 | 5,736,676 | Auto hide element by jquery - code not work | <p>I have an element in aspx page with class= "._aHide" it carrying a message, And it is shown repeatedly.</p>
<pre><code><div id="Message1" class="._aHide" runat="server" visible="true"><p>My Message</p></div>
</code></pre>
<ul>
<li>aspx server side elements not created when page load if it'... | javascript jquery | [3, 5] |
2,936,044 | 2,936,045 | Why isn't this working - using :not() with an event handler | <p>I seem to have another issue that I am not conquering. Real simple premise.
I have a mousedown event, and basically IF one particular element on the page is clicked, I want nothing to happen, else I want hide() some div.</p>
<pre><code> $(function(){
$("document :not(#_ignorelement)").mousedown(function(... | javascript jquery | [3, 5] |
4,852,537 | 4,852,538 | javascript length duration | <p>i have following function in php, how can i convert this in javascript?</p>
<pre><code> function length_duration ($seconds)
{
$hours = $mins = $sec = NULL;
//for seconds
if($seconds > 0)
$sec = ($seconds % 60 < 10) ? "0".($seconds%60) : ($seconds%60);
//for mins
if($seconds > 60)
$mins ... | php javascript jquery | [2, 3, 5] |
5,972,629 | 5,972,630 | Submit multiple GET parameters from Android | <p>I have a PHP web service running that looks for a couple .GET variables. Here is the code I was using previously that worked with one param, but fails when I try for two. Any help would be really appreciated:</p>
<pre><code>//the year data to send
ArrayList<NameValuePair> nameValuePairs = new ArrayList&l... | php android | [2, 4] |
530,960 | 530,961 | jQuery callback within the remove() function | <p>I need to call a function after a DIV has been removed from the page. </p>
<p>I have tried adding a callback like so, but no luck. Any suggestions?</p>
<pre><code>$(foo).remove( function() {
stepb();
});
</code></pre>
| javascript jquery | [3, 5] |
2,672,096 | 2,672,097 | How can I change the code so that it can execute? | <p>I use jQuery to develop mobile applications. The problem is that when I add 5 or 6 lines to the page, all goes well, but if I add say 120 lines it displays an error message: <code>Javascript execution exceeded timeout</code>.</p>
<pre><code>function succes_recu_list_rubrique(tx, results) { //après avoir rempli sqli... | javascript jquery | [3, 5] |
2,577,469 | 2,577,470 | Jquery load and page source refresh | <p>I am loading some table into a div with <code>jquery.load()</code>.
The problem is, that when it is loaded, I can't find it with <code>$("something");</code> and I can't see it in a page source.</p>
<p>What should I do?</p>
<p>My code:</p>
<pre><code>$("span#loadMeBadminton").load("badminton/gen/"+date);
</code><... | php javascript jquery | [2, 3, 5] |
2,132,206 | 2,132,207 | jQuery slide changing with index and fadeout -- jumpiness | <p>I am working on a jQuery slideshow plugin. One of my methods involves switching back and forth between pictures. I have been pretty successful in creating it, here is an isolated case with the code thus far for the particular method:</p>
<pre><code>var images = $("#simpleslides").children("img");
$(".slideButton... | javascript jquery | [3, 5] |
1,316,237 | 1,316,238 | c# session multidimensional array | <p>I'm trying to add form data from an asp.net wizard into a session array object. The object should store the question number and question answer selected by the user for each question. I'm trying to use a multidimensional array to store the question number and the associated answer. I would also be open to using a ha... | c# asp.net | [0, 9] |
697,080 | 697,081 | preventing android daily alarm from running the intent during alarm setup | <p>I followed the instructions in <a href="http://stackoverflow.com/questions/7845660/how-to-run-a-service-every-day-at-noon-and-on-every-boot">this thread</a> to create a daily alarm that starts a service at 12:30 each day which shows a notification. The problem I'm having is that setting the alarm also triggers the s... | java android | [1, 4] |
3,224,546 | 3,224,547 | How to play .avi video with android 2.2 sdk in java? | <p>I'm very new to android jdk,</p>
<p>anyone knows how to play <code>.avi</code> in it?</p>
| java android | [1, 4] |
4,894,142 | 4,894,143 | Image src not working in jquery | <p>i have a function,</p>
<pre><code>function showimage(a)
{
$("#lightboxholder").show("fast");
$('#lightboximage').attr('src', 'images/demo/190x90.gif');
}
</code></pre>
<p>when i go to localhost/svce and view in gallery.php, it doesnt show me the image, however if i replace <code>$('#lightbo... | javascript jquery | [3, 5] |
1,505,538 | 1,505,539 | How to multiply text box values with javascript | <p>I would like to multiply the values from two text boxes (txtBox1 should contain an Integer value, txtBox2 should contain a Float value) and place the result in a third text box. My code is below, but it doesn't work. The javascript function is called, otherwise it fails. Can someone please help me to code this corre... | c# javascript asp.net | [0, 3, 9] |
2,096,218 | 2,096,219 | How to add a Hyperlink to a dynamic gridview column | <p>I have an issue hope someone can help.</p>
<p>I have a dynamic gridview. I need to have a hyperlink on gridview column. These hyperlink should open a popup to display certain data on clicking.</p>
<p>I tried this by having a dynamic template field . But even on binding the data , I'm unable to get the hyper link f... | c# asp.net | [0, 9] |
5,378,351 | 5,378,352 | Avoiding having to go back twice after writing html with an onload=document.form.submit() to HttpContext.Current.Response | <p>So that's a long title, here's what I'm doing: To avoid having report parameters show up in the URL I'm doing this in a button click handler in the code-behind to show the report:</p>
<pre><code>System.Web.HttpContext.Current.Response.Clear();
System.Web.HttpContext.Current.Response.Write("<html><head>&... | c# asp.net | [0, 9] |
784,469 | 784,470 | Issue opening .aspx page in a new window from inside an ajax modal popup | <p>I am trying to open an preview.aspx page in a seperate window from INSIDE an ajax modal popup.
I have tried doing it with client side scripting using the onClientCLick preview.target _blank etc but this doesn't work at all.
I have now managed to at least get this working within my lbPreview_Click routine but this re... | c# asp.net | [0, 9] |
5,221,203 | 5,221,204 | Restoring closed webpage with jQuery | <p>I need to write a jQuery wizard which will have the use of Accordion. It will include 4 steps. Everything is ok but there is a requirement which is asking that "If the user closes the browser and loses their place in the wizard in the fourth step, they could be able to return to the wizard and navigate directly to t... | javascript jquery | [3, 5] |
5,470,945 | 5,470,946 | Why is Javascript called Javascript, if it has nothing to do with Java? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2018731/why-is-javascript-called-javascript-if-it-has-nothing-to-do-with-java">Why is JavaScript called JavaScript, if it has nothing to do with Java?</a> </p>
</blockquote>
<p>Why Javascript is called Javascrip... | java javascript | [1, 3] |
4,204,780 | 4,204,781 | Are class level variables/objects acceptable? | <p>I have a simple web site built with asp.net. It typically only has 1 or 2 users at one time. My question is, is it ok to instantiate a class at the class level or should I be instantiating for each method. Here is an example. I have a class named Host with a name field and mac field. In my code behind for a spe... | c# asp.net | [0, 9] |
4,651,427 | 4,651,428 | Timespan since last password reset | <p>I have created a small asp.net application that allows users to reset their passwords. I am able to retrieve that last time the password was reset from the Directory Searcher object, but I'm having trouble with checking the timespan since the last password reset. The users can reset their passwords again after 24 ho... | c# asp.net | [0, 9] |
2,706,747 | 2,706,748 | remove element in jquery then append a new element? | <p>I am trying to remove an span element from HTML then replace that element with a new span element.</p>
<p>View the fiddle for a working example: <a href="http://jsfiddle.net/DCJ9X/" rel="nofollow">http://jsfiddle.net/DCJ9X/</a></p>
<pre><code><div id="foo">
<span>FadeOut</span>
</div>
... | javascript jquery | [3, 5] |
3,516,810 | 3,516,811 | how to handle any javascript load finished event using jquery | <p>I have a blog. I'm insert yahoo pipe. I need to remove yahoo pipe icon after script load finish.
script is here>></p>
<pre><code> <script src="http://l.yimg.com/a/i/us/pps/listbadge_1.1.js">
{"pipe_id":"24f8f6a880eb3be0711d541","_btype":"list","width":"100%","hideHeader":true}
</script>
</code></pre... | javascript jquery | [3, 5] |
716,312 | 716,313 | select specific text on page and remove it | <p>Is is possible to select specific text string on the page directly without a id, class, etc...</p>
<p>I have this text string "ERROR: AffiliateID invalid" that I would like to remove from the page.</p>
<p>Is it possible?</p>
| javascript jquery | [3, 5] |
2,639,598 | 2,639,599 | jQuery delay with multiple selectors | <p>I know you can do something like this:</p>
<pre><code>$('#item').fadeOut().delay(1000).fadeIn();
</code></pre>
<p>which will fade the element with the id of item out, then wait a second before fading it back in again. But is there a way to fade one item out and a different one back in with a delay inbetween. I've ... | javascript jquery | [3, 5] |
1,027,039 | 1,027,040 | How to isolate functionalities between multiple jQuery Plugins in Same Page | <p>If I have more than 1 instance of the same plugin on the same page how can I separate functionality. eg. in this demo <a href="http://jsfiddle.net/3jwAK/" rel="nofollow">http://jsfiddle.net/3jwAK/</a>, I have a plugin "<code>editor</code>" that appends a link simulating some plugin/widget button, that when clicked w... | javascript jquery | [3, 5] |
2,836,930 | 2,836,931 | Unable to find meaning of }); curly bracket, round bracket in Android | <p>As a beginner in Android and having been away from programming for many years, I could not find an answer for this one on the internet. It involves the following code from a book I have been reading, but the syntax is common for Android. I couldn't work out what the }); represented. As someone who, in the past, has ... | java android | [1, 4] |
4,807,792 | 4,807,793 | Back button press twice before quitting app | <p>How can I configure the back button to be pressed twice before the app exits? I want to trigger </p>
<pre><code>@Override
public void onBackPressed() {
//custom actions
//display toast "press again to quit app"
super.onBackPressed();
}
</code></pre>
| java android | [1, 4] |
830,679 | 830,680 | Not able to download image using HttpURLConnection | <p>I am trying download file <a href="http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg" rel="nofollow">http://images.anandtech.com/doci/5434/X79%20Extreme9Box_575px.jpg</a></p>
<p>but not able to download it using HttpUrlConnection, ImageIO.read and even in php using file_get_contents.</p>
<p>I am no... | java php | [1, 2] |
5,637,547 | 5,637,548 | String.split("*") returns Exception | <p>String.split("*") return Exception in Android Eclipse</p>
<p>Is there Any solution...</p>
| java android | [1, 4] |
272,073 | 272,074 | Prevent jquery slider's image show in the page on click | <p>i am using this jquery and html for change the clicked image on a display div it works fine but the issue is when i click a image in the display div its open in the page itself. How to Make the image as it as when user click on it.</p>
<pre><code> <script type="text/javascript">
... | javascript jquery | [3, 5] |
434,089 | 434,090 | how to import multiple sql file in android db using jquery | <p>I have multiple sql file in my assets folder and building app on android. I want this sql to import in android app database on by one using jquery. How to do that please help. I have done code for single file but i want it for multiple sql file. </p>
<pre><code>var filePath = 'database/crmaaaa_1.sql';
... | android jquery | [4, 5] |
4,606,719 | 4,606,720 | Synchronous DOM with pseudo backend data? | <p>I have a pseudo-javascript backend for my webapp, and I am storing some data in an array, lets call it Dataset[].
Dataset[]'s data is directly reflected on a table in DOM. What is the best design pattern to keep the two synchronous? e.g. When data are added to Dataset[], it will show up in my dom?</p>
<p>Events? D... | javascript jquery | [3, 5] |
4,956,436 | 4,956,437 | The name 'Message' does not exist in the current context | <p>I keep getting the following error message at compile time: "The name 'Message' does not exist in the current context". All I'm trying to do is pop up a message box. Here are my namespaces declared at the top of my code behind page:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq... | c# asp.net | [0, 9] |
3,002,960 | 3,002,961 | jquery with check box in asp.net problem | <p>I'm trying change an input mask for textbox when the the check box has been check or unckecked but the problem that always is picking up the else condation only even the check box it is check or not.</p>
<p>please advice to fix this problem.</p>
<p>here is my code:</p>
<pre><code><%@ Page Title="" Language="C#... | asp.net jquery | [9, 5] |
3,667,294 | 3,667,295 | C++ vs C# for GUI programming | <p>I am going to program a GUI under windows (will be about 10,000 line code with my estimates) and don't know C# or C++ (QT library) to choose for my needs. Please help me to choose.</p>
| c# c++ | [0, 6] |
5,020,627 | 5,020,628 | How do I test if an element with a certain ID exists on a page in jQuery? | <p>In jQuery, I have written a piece of code that appears on every page of my website.</p>
<pre><code>var d = $('#someElement').offset().top;
</code></pre>
<p>However, not every page on my website has an element with an ID of "someElement". Unfortunately, on these pages that lack such an element, no jQuery code works... | javascript jquery | [3, 5] |
1,000,583 | 1,000,584 | alignment of columns in drop down list | <p>I have used below code for showing and aligning columns in drop down list but my columns are not aligned, in the code I find max length for taking the space for first column but I do not know it does not work?</p>
<p><img src="http://i.stack.imgur.com/L5Bh9.jpg" alt="Drop Down list Alignment"></p>
<pre><code>prote... | c# asp.net | [0, 9] |
5,747,099 | 5,747,100 | JAVA DES in PHP | <p>I can't get the same result of encrypted text in JAVA from my php script.
This is my php code (client side - my side):</p>
<pre><code>$input = 'my text to be encrypted';
$key = 'my key';
$size = mcrypt_get_block_size(MCRYPT_DES, 'ecb');
$input = pkcs5_pad($input, $size);
$td = mcrypt_module_open(MCRYPT_DES, '', 'e... | java php | [1, 2] |
2,271,520 | 2,271,521 | JQuery `live()` and `submit()` problem | <p>I wanna do something like this, but this one looks like happing for infinite times.</p>
<pre><code>$("form").live("submit", function() {
if($(this).attr('action') != "ajax"){
$(this).submit();
return true; // even i do this!! but form is NOT submited!!
}
else { /* doing the ajax stuff! */ }
});
</cod... | javascript jquery | [3, 5] |
4,102,229 | 4,102,230 | Php javascript conflict with passing javascript to php | <p>I have a slight problem. I have several arrays in php with different team names. Each array contains teams of a certain league. When I click an add button I get the option to add a new entry to the calendar. I want the drop down to have only the teams for that league. onclick of the add button I call a javascri... | php javascript | [2, 3] |
5,527,186 | 5,527,187 | Javascript virtual joystick for touchscreen tablets which use wekbit as browser? | <p>Hey there, i am developing a little game example based on html & javascript.</p>
<p>Question is:</p>
<p>Does anybody knows about some javascript virtual joystick asset?</p>
<p>or:</p>
<p>what would be a good approach to code it as simple as possible?</p>
<p>this is for a very basic maze game</p>
<p>i need ... | javascript iphone android | [3, 8, 4] |
5,481,091 | 5,481,092 | Writing and reading to and from a file for integers and strings | <p>I am trying to save a file (and then read it later) in java (android) using the following </p>
<pre><code>FileInputStream fis = openFileInput(filename);
</code></pre>
<p>and then maybe use BufferedReader/writer. Anyways, I am trying to save String and numbers and I was wondering what would be the best method to ... | java android | [1, 4] |
6,008,814 | 6,008,815 | enabling and disabling clicks using jquery | <p>I have four buttons which has click able property. Clicking on button will make a div slide down and clicking again on same div should close the div. I want to add a condition like, when I have a div open, the click property on rest of the three buttons should be disabled, what I did is</p>
<pre><code>for (var i = ... | javascript jquery | [3, 5] |
3,806,418 | 3,806,419 | Javascript Double-Click Element | <p>Hey guys.. Quick question:</p>
<p>I wrote a simple JS that opens lightBox for image viewing when an image link is clicked. Basically, using jQuery (yes, I was that lazy), I detect the click of an anchor tag, use a regex to make sure that the HREF attribute is to an image file, and if it is, it opens the image in li... | javascript jquery | [3, 5] |
483,684 | 483,685 | reading unicode *.txt files? | <p>Currently I am reading .txt files with</p>
<pre><code> FileInputStream is = new FileInputStream(masterPath+txt);
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String readLine = null;
while ((readLine = br.readLine()) != null)
{
...
</code></pre>
<p>But uni... | java android | [1, 4] |
4,635,092 | 4,635,093 | click() assigned in document.ready in jQuery | <p>Do assignments in document.ready (<em>click(fn)</em> specifically) apply to newly appended elements that match the selector?</p>
<p>If not, how can I assign it to this new elements? Do I have to write the assignment after every append or is there a better way?</p>
| javascript jquery | [3, 5] |
3,083,264 | 3,083,265 | Android request a url with out opening browser | <p>So I have an arduino with an Ethernet shield and I am currently controlling it using browser url commands eg "192.168.2.1/digital/2/1" (digital pin 2 goes high), i want to have an android button which requests that url without opening it in the browser.. is that possible and how would i do it?</p>
| java android | [1, 4] |
4,318,997 | 4,318,998 | why do I get htmlfile: Unknown runtime error JScript error | <p>I get this error thrown in line:</p>
<pre><code>displayElement.innerHTML = executor.get_responseData();
</code></pre>
<p>I try to update the inner html of a div, with the data received from java.
executor.get_responseData(); works well.
how should I debug from here?</p>
<p>Edit:
I use this functions for updating... | javascript asp.net | [3, 9] |
206,495 | 206,496 | Android: crash when accessing user class from thread | <p>When I try to call one of my custom classes from a Thread constructor I get an exception, I've no idea why...</p>
<p>My Main app boils down to:</p>
<pre><code>public class GameView extends SurfaceView implements OnTouchListener, SurfaceHolder.Callback
{
class GameThread extends Thread
{
private GfxD... | java android | [1, 4] |
4,501,524 | 4,501,525 | Python over JavaScript? (Facts, please) | <p>I recently learned JavaScript an all of the sudden I hear about Python...</p>
<p>Should I go learn Python or just stick with my basic JavaScript knowledge?</p>
<p>If you have some "facts" I would love to hear them! Like efficiency, difficultylevel and so on, an so on...</p>
<p>Thanks :)</p>
| javascript python | [3, 7] |
803,870 | 803,871 | Whats the best way to deal with pages loaded via browser history in asp .net? | <p>I have an app which is very database and user intensive. The users are very keen on the browser history buttons for navigation.</p>
<p>Is there a way that I can absolutely guarantee that the page will reload if a user picks something out of their browser history? </p>
<p>What I regularly see is that a copy of the ... | c# asp.net | [0, 9] |
3,572,087 | 3,572,088 | .get() in jquery | <p>I asked a question with the above title a bit ago titled "gettting .get() in jquery to work" and I had made a silly mistake in the code which everyone jumped on. I fixed that but the .get() doesn't seem to be working. Its supposed to print the name John and 2pm on the bottom of the body and it doesn't. My path names... | php jquery | [2, 5] |
233,196 | 233,197 | Html is rendered event | <p>I'm appending some code to my page using jQuery AJAX calls. This code is a mix of html and javascript. But I want javascript to be executed only when html part is ready. But what event is raised when appended html is rendered?</p>
<p>Here is an example:</p>
<pre><code><table id="sampleTable">
...
</tab... | javascript jquery | [3, 5] |
4,080,833 | 4,080,834 | How can i get the value of a html select element inside a repeater control on button click | <p>I have a repeater with select html inside the item template.</p>
<p>I could not use dropdown list as it does not support so i had to build select with inside a repeater.</p>
<p>On button click i want get the value of the selected item.</p>
<p>the inside the repeater does not have runat=server.</p>
<p>How can ... | c# asp.net | [0, 9] |
464,382 | 464,383 | Hiding button if PHP != session | <p>I have a few buttons that I don't want visible to a user if they are not logged it (if $_SESSION['uid'] ='';) What is the best way to do this? </p>
<p>The buttons that need to be hidden are:</p>
<pre><code> <input type='button' id='forgothide' value='Forgot My Password' >
<input type='button' id='log... | php jquery | [2, 5] |
985,613 | 985,614 | Reload a .js file without pressing F5 | <p>i load a page with jquery <code>.load(file.php)</code> </p>
<p>i have a .js include in the file.php like: <code><script src='js/script.js' type="text/javascript" language="javascript"></script></code></p>
<p>When i load the file.php, he wouldn't load my JS file... does anybody know why and how to solve... | javascript jquery | [3, 5] |
6,030,511 | 6,030,512 | Failing to link button to intent | <p>When i try this code which reads what the user has clicked and compares it to the button name it only seems to work for one array rather then the 2nd one. If anybody can see why please help me </p>
<pre><code> case R.id.new_button:
final CharSequence[] items = {"N", "E", "M", "G"};
Al... | java android | [1, 4] |
4,656,920 | 4,656,921 | When is it appropriate to use synchronous ajax? | <p>I was just reading another question about jQuery's synchronous ajax call, and I got to wondering:</p>
<blockquote>
<p>What circumstances make a synchronous version of an ajax call beneficial/necessary?</p>
</blockquote>
<p>Ideally I'd like an example, and why synchronous is better than standard ajax.</p>
| javascript jquery | [3, 5] |
711,922 | 711,923 | python received data | <p>if i want to write if the received data in string print Name : then the received data !!
i'm receiving data from android from an open socket to my python !! so how to do this in code to check if the received data is string!! </p>
| android python | [4, 7] |
1,301,114 | 1,301,115 | how to check div is last child from parent div | <p>In <strong>Jquery</strong> or <strong>JavaScript</strong> have a function like <code>.hasNext()</code>. I have the code: </p>
<pre><code>function showArrowClick() {
var activeContact = $('.contact.white_bg');
activeContact.removeClass('white_bg');
activeContact.next().addClass('white_bg');
}
</code></pre>
... | javascript jquery | [3, 5] |
776,822 | 776,823 | Checking all checkboxes in list by single checkbox click | <p>On my webpage, I have a CheckBoxList and a single checkbox. When I click on the check box, all the Check Boxes in the CheckBoxList should get checked. My CheckBoxList has to be under Bodycontent placeholder because that's how the layout of webpage is, and I kept the script in the same placeholder.</p>
<pre><code>&l... | c# javascript asp.net | [0, 3, 9] |
1,847,544 | 1,847,545 | Disable submit button with saved time after page refresh | <p>I have account with two <code>input</code>s and one <code>submit</code> button.</p>
<p>After clicking the submit button, I want to disable it for 30 minutes, and if the user refresh the page, the timer should not be reset and the button should be disabled, may be with cookie?</p>
<p>I found this: <a href="http://... | javascript jquery | [3, 5] |
521,402 | 521,403 | Detect when security lock is on screen | <p>I have an game app which occasionally plays sounds. When the phone goes into standby onPause gets called and the game knows to go silent. But when I press the button on the side of my phone to wake it up out of standby, onResume is called and the game starts running and making sounds immediately - this would all be ... | java android | [1, 4] |
6,010,847 | 6,010,848 | insert text between 2 controls | <p>I want insert ":" between 2 dropdownlist in a cell.</p>
<pre><code>tableCell.Controls.Add(DropDownListOraInizio);
tableCell.Controls.Add(DropDownListMinutoInizio);
</code></pre>
<p>How can i do?</p>
<p>thanks</p>
| c# asp.net | [0, 9] |
3,846,825 | 3,846,826 | Undefined SELECT value in jQuery | <p>In my page I have the following SELECT:</p>
<pre><code><select class="span2" id="emLocality">
<option value="_none_">&nbsp;</option>
<option value="000696" selected>USA</option>
</select>
</code></pre>
<p>Then in JavaScript I run this snippet:</p>
<pre><code>var loc... | javascript jquery | [3, 5] |
5,698,994 | 5,698,995 | Is using PHP to collate multiple JavaScript files going to be faster than including them all separately? | <p>I know that serving multiple small files is much slower than serving one larger file, this is why it's good to use a single CSS document as well as sprite sheets. I've also tried to include as much JavaScript into the smallest amount of files as I can for a while now, to avoid multiple requests from the viewer for m... | php javascript | [2, 3] |
1,800,002 | 1,800,003 | store values in a array or hash from jquery selector for reuse | <p>How do I store values into an array or hash to be recalled individually without adding individual identifier?</p>
<pre><code>var myarray = [];
$(".express").each(function () {
myarray.push($(this).text());
});
fuction flashEXPRESS() {
$(".express").each(function () {
if ($(this).text() == 'NEW') { $(thi... | javascript jquery | [3, 5] |
2,501,132 | 2,501,133 | passing array via query string | <p>I am passing a javascript array via <code>Request.QueryString["cityID"].ToString()</code>, but it shows me an error of "invalid arguments":</p>
<pre><code>blObj.addOfficeOnlyDiffrent(Request.QueryString["cityID"].ToString(),
Request.QueryString["selectTxtOfficeAr"].ToString());
</code><... | c# asp.net | [0, 9] |
331,352 | 331,353 | Connect java with javascript for data visualization in Browser | <p>I am working on a project where I access the APIs and get the output using <code>Java</code>. Now I want to display the data using some graphs and other data visualization tools in a browser. I have searched for some <code>JavaScript</code> libraries for that. But how can I connect java and javascript to get the out... | java javascript | [1, 3] |
4,653,550 | 4,653,551 | Using setInvernal to call a query function every few seconds? | <p>Really easy one here, I'm sure - I'm a beginner who's struggling to integrate setInterval into my jQuery. I currently have this function, which rotates two images upon clicking them. I want this to happen automatically (every few seconds), and can't seem to find the right way to use setInterval.</p>
<p>Could anyone... | javascript jquery | [3, 5] |
2,268,981 | 2,268,982 | jQuery : displaying a div according to which image i clicked on | <p>i'm having a trouble to display text according to images i clicked on.</p>
<pre><code><ul id="boutique1">
<li><a href="#first"><img src="images/image1.jpg">nothing</a></li>
</ul>
</code></pre>
<p>When i click on these first link, i want to display that : </p>
<p... | javascript jquery | [3, 5] |
3,926,122 | 3,926,123 | How do I get the reference to the dom node I just appeneded in JQuery? | <p>I just appended some html to another JQuery object. I want to get a reference to the newly created dom node so that I can call another function on it. As seen in the code below, I am not getting a reference to what I wanted. Instead of the new node, I am getting the node with the original id.</p>
<pre><code>var a =... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.