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 |
|---|---|---|---|---|---|
53,308 | 53,309 | Add a leading zero until the number 10 | <p>I have a list of numbers up to the number 10:
1,2,3,4,5,6,7,8,9,10</p>
<p>I need to put a zero in front of each number except the number 10. </p>
<p>So it looks like this:
01,02,03,04,05,06,07,08,09,10</p>
<p>HTML looks like this:</p>
<pre><code><p class=β"number weight-400">β1</p>β
<p class=β"nu... | javascript jquery | [3, 5] |
693,338 | 693,339 | Check that variable is a number | <p>How can I check that a variable is a number, either an integer or a string digit?</p>
<p>In PHP I could do:</p>
<pre><code>if (is_int($var)) {
echo '$var is integer';
}
</code></pre>
<p>Or:</p>
<pre><code>if (is_numeric($var)) {
echo '$var is numeric';
}
</code></pre>
<p>How can I do it in jQuery/JavaSc... | javascript jquery | [3, 5] |
5,973,698 | 5,973,699 | How to Identify Postback event in Page_Load | <p>We have some legacy code that needs to identify in the Page_Load which event caused the postback.
At the moment this is implemented by checking the Request data like this...</p>
<p>if (Request.Form["__EVENTTARGET"] != null<br />
&& (Request.Form["__EVENTTARGET"].IndexOf("BaseGrid") > -1 // BaseGrid event ( ... | c# asp.net | [0, 9] |
3,047,801 | 3,047,802 | how to get to page1 when i refresh my gridview? | <p>i have gridview in my webform.</p>
<p>in my search i got to page 4 for example, now i need to refresh the gridview</p>
<p>and go to page 1.</p>
<p>how to to it ?</p>
<p>thanks in advance</p>
| c# asp.net | [0, 9] |
4,739,814 | 4,739,815 | How does javascript evaluate arguments? | <p>I write a simple javascript function to display a progressbar with the help of JQuery ProgressBar(<a href="http://t.wits.sg/misc/jQueryProgressBar/demo.php#" rel="nofollow">http://t.wits.sg/misc/jQueryProgressBar/demo.php#</a>)</p>
<p>The progressBar function can be set to display different background images with d... | javascript jquery | [3, 5] |
1,093,405 | 1,093,406 | jQuery syntax problem | <p>This is my simple function and I have</p>
<pre><code><p>This is paragraph 1.</p>
</code></pre>
<p>like this but this function is not working? What is wrong here?</p>
<pre><code>function select(){
$('p')[0].innerHTML="Helooo!!";
}
</code></pre>
| javascript jquery | [3, 5] |
707,488 | 707,489 | Imparting expert knowledge for predicting branch statements in C# or C++ | <p>I know some CPUs attempt to predict branch statements when deciding what code to pre-fetch, I was wondering if there was a way to help or hard code those branch predictions in C# (or C++). An example would be an error checking if statement which I know will return false 99.9999999% of the time, I would like to tell ... | c# c++ | [0, 6] |
1,129,548 | 1,129,549 | jQuery $.get() issue | <p>I'm new with jQuery and JavaScript. I'm trying to make a HTTP GET request with the <code>get()</code> function. Below I've reported a part of my code. I don't understand why the http request doesn't work. Thanks for any advice!</p>
<pre><code> var jqxhr = $.get("http://lyricwiki.org/api.php?func=getSong&arti... | javascript jquery | [3, 5] |
4,523,793 | 4,523,794 | Customize adapter to use custom font | <p>I have both Custom Font example and a small List View example app. But I am unable to join them !!!</p>
<pre><code> /** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView t... | java android | [1, 4] |
451,373 | 451,374 | Concatenate values from script-created list into one field | <p>How do I concatenate data from text fields in a script-created list, where the text field names will always be the same as each other? Allow me to explain:</p>
<p>I have a series of points that get added to a list that is create using javascript. This is the script to create the list:</p>
<pre><code>var src = this... | php javascript | [2, 3] |
4,031,720 | 4,031,721 | jQuery simple image load | <p>im getting a little issue here. Im trying to load an image, but seems it isnt correct. Im getting the data of image, but i just want to load it instead of.</p>
<p>Whats wrong?</p>
<pre><code>var url = $(this).find("img").attr("ref");
$("#produto .main-photo .photo img").load(url, function() {
... | javascript jquery | [3, 5] |
811,881 | 811,882 | textbox dynamically created not found | <p>I use this method for inserting a textbox in a tablecell</p>
<pre><code>protected void EditAttivitaClick(object sender, EventArgs e)
{
string attivitaID = ((ImageButton)sender).ID.Split('_')[2];
tableCell =(HtmlTableCell)FindControl("AttivitaDescrizione_" + attivitaID);
T... | c# asp.net | [0, 9] |
5,151,214 | 5,151,215 | Remove QueryString Variable in c# | <p>I am very beginner With Programming...(unfortunately)</p>
<p>I want to remove Any added QueryString To Address after i get the variables. for example:</p>
<p>www.websiteName.com/page.aspx?a=344&b=233</p>
<p>i will get a and b and after that i want my address to look like this: </p>
<p>(www.websiteName.com) .... | c# asp.net | [0, 9] |
4,191,789 | 4,191,790 | Is it advisable to store large strings in memory, or repeatedly read a file? | <p>Let's say I have various text/json/xml/whatever files (stored locally, in the assets directory), ranging in size from 20 - 500 KB. Assuming these files are going to be referenced frequently, throughout the application, is it better to:</p>
<p>A) Read the file once, the first time it's requested, and store the data... | java android | [1, 4] |
1,120,894 | 1,120,895 | window.open() returns undefined when called from setTimeout on Android | <p>I am having strange behaviour on my Android emulator. window.open() always returns undefined when called from setTimeout or callback function e.g. AJAX callback. However window.open() successfully opens a popup when called from an event handler e.g. onclick
here is sample code:</p>
<pre><code><html>
<head&... | javascript android | [3, 4] |
1,035,362 | 1,035,363 | How can I refresh a specific image after an update? | <p>I have several div tags with unique ids and after a click event for a specific image I'm trying to refresh it. How can I do this? This is what I have for code so far:</p>
<p>HTML:</p>
<pre><code><div class="photo_gallery_container" <?php echo($div_id); ?>>
<table class="table table-bordered tab... | php jquery | [2, 5] |
2,963,886 | 2,963,887 | What does "i = +i" mean in Javascript? | <p>In jquery source:</p>
<pre><code>eq: function( i ) {
i = +i;
return i === -1 ?
this.slice( i ) :
this.slice( i, i + 1 );
},
</code></pre>
<p>Is it used for make sure parse i to int?</p>
| javascript jquery | [3, 5] |
3,436,320 | 3,436,321 | How can I take contents of one element and add to another when they both have an id ending in the same two or three digit number? | <p>I have this code:</p>
<pre><code>$('.update-title')
.change(function () {
$(this).prop('title', $('option:selected', this).prop('title'));
});
</code></pre>
<p>and this HTML:</p>
<pre><code><select id="modal_TempRowKey_14" class="update-grid update-title">
...
...
</select>
<input ... | javascript jquery | [3, 5] |
2,969,281 | 2,969,282 | Asp:table with Linkbutton in cells and page cycle | <p>I always seem to struggle with asp.net page cycle and dynamically created controls.</p>
<p>I have a asp:table that is created in !isPostBack in page_load (i have tried creating it in page load, page_init onint)</p>
<p>the table is created with cells that container a LinkButton:</p>
<pre><code>LinkButton lb = new ... | c# asp.net | [0, 9] |
3,066,080 | 3,066,081 | click event not firing on newly created list item | <p>I have two lists and when you click on the second list the first list removes the first item and add to the second list but when I click on the newly created list item it doesn't fire why is that. <a href="http://fiddle.jshell.net/g84K9/" rel="nofollow">jsFiddle demo</a></p>
<pre><code>$('#SearchList li a').bind("c... | javascript jquery | [3, 5] |
4,277,391 | 4,277,392 | ASP.net Client script order issue | <p>I have a client script on a page, that calls a dynamic script generated by a user control using ClientScript.RegisterStartupScript. The user controls script is dynamic, the pages' static.</p>
<p>The issue I have, is the page client script cant find the function rendered by the user control. The method signatures ma... | javascript asp.net | [3, 9] |
3,381,875 | 3,381,876 | Weird mouse event location Jquery | <p>Jquery:</p>
<pre><code><script>
jQuery(document).ready(function() {
$("#membership_options li").bind("mousemove", function(event) {
$(this).find(".compare_tooltip").css({
top: event.pageY + 5 + "px",
left: event.pageX + 5 + "px"
}).show();
}).bind("mouseout", fu... | javascript jquery | [3, 5] |
5,909,366 | 5,909,367 | Displaying Integer in a Label | <p>How can I display an integer in a Label? What I am doing is I am calculating the total and I am trying to display it in a label.</p>
<pre><code>public partial class total : System.Web.UI.Page
{
int total;
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = Server.HtmlEncode(Requ... | c# asp.net | [0, 9] |
2,736,329 | 2,736,330 | How to get the value from a function | <p>How do I get a value from a function inserted into my HTML.</p>
<p>I have tried this:</p>
<pre><code>function testReturn(value) {
var ReturnValue = value;
return ReturnValue;
}
html = "<div>' + testReturn(2) + ' </div>";
</code></pre>
<p>I get an error saying <code>Undefined</code></p>... | javascript jquery | [3, 5] |
4,298,033 | 4,298,034 | Finding phrases in string. Is there a more elegant way of doing this? | <p>I'm looking to search for 2 or 3 key phrases in a string called <code>lastTestText</code> and I want to return a <code>Boolean</code>. It works nicely with:</p>
<pre><code>Boolean tooLong = lastTestText.contains("hour") | lastTestText.contains("min");
</code></pre>
<p>But this is going to get a bit long-winded if... | java android | [1, 4] |
1,431,609 | 1,431,610 | Is it possible to use jQuery to grab the HTML of another web page into a div? | <p>I am trying to integrate with the FireShot API to given a URL, grab HTML of another web page into a div then take a screenshot of it. </p>
<p>Some things I will need to do after getting the HTML </p>
<ul>
<li>grab <code><link></code> & <code><script></code> from <code><head></code> </li>
<li>... | javascript jquery | [3, 5] |
942,042 | 942,043 | How to use jQuery Flexigrid with php? | <p>I wan to mde flexigirid table; My data which are not comes directly into the database because I put them into the array after that Δ± put them some htlm tables. know Δ± want to use jQuery Flexigrid ;how can Δ± start ? Δ± have to start from scratch;Can u show me a way...or is there any way make like flexigirid table? </p... | php javascript jquery | [2, 3, 5] |
5,928,517 | 5,928,518 | access is denied IIS server problem | <p>i have no problem compiling and viewing my asp.net application using visual studio 2008</p>
<p>but when i try to see it the IIS server (asp.net 4.0...)</p>
<p>i get this message:</p>
<pre><code>Server Error in '/' Application.
Access is denied.
Description: An error occurred while accessing the resources requir... | c# asp.net | [0, 9] |
1,600,047 | 1,600,048 | Redirect via datagridView | <p>I am currently working in ASP.Net / C#. I am trying to make the server redirect to another page using via the rows in a datagrid, however, my code doesn't seem
to work. Any help would be appreciated. </p>
<p>
... | c# asp.net | [0, 9] |
3,832,113 | 3,832,114 | Count every Buton clicks | <p>the task is to count the number of clicks in a webform.</p>
<p>here is the code.</p>
<pre><code>public partial class _default : System.Web.UI.Page
{
int count = 1;
private void Page_Load(object sender, System.EventArgs e)
{
Button btn = new Button();
btn.Text = "... | c# asp.net | [0, 9] |
2,802,218 | 2,802,219 | php parse javascript using xpath | <p>i am trying to parse the html pages using php xpath, there are some data that are inserted into html through javascript, for example </p>
<pre><code><script type="text/javascript">
var insertName = function() {
var firstName = 'Hi SomeUserName';
$('#welcomeMessage').html(... | php javascript | [2, 3] |
5,292,269 | 5,292,270 | Javascript function not firing | <p>I am trying to fire a function every 60 seconds.</p>
<p>Here is my current code:</p>
<pre><code><script>
$(document).ready(function() {
setInterval(alertme, 600000);
});
function alertme() {
alert('1 minute has passed');
}
</script>
</code></pre>
<p>For some reason the function alertme is ... | javascript jquery | [3, 5] |
56,940 | 56,941 | get value by javascript | <p>i m use php which print my table in which first column is sr.no but in which i want to store value of exam_id.
how can i get this Exam_id value by javascript</p>
<pre><code> foreach ($data as $key) {
echo "<tr>";
print'
<td class="contact" id="exam_id" name=' . $key['exam_id'... | php javascript | [2, 3] |
1,342,522 | 1,342,523 | find all youtube links with js (jquery) | <p>Say there is a div that has content and a youtube link. I want to grab that youtube link and embed it.</p>
<pre><code><div id="content"><p>Here is a cool video. Check it out: http://www.youtube.com/watch?v=oHg5SJYRHA0</p></div>
</code></pre>
<p>I want to grab the link and replace it with ... | javascript jquery | [3, 5] |
2,086,385 | 2,086,386 | How to retain XML nodes from string in JQuery | <p>I have a sql proc which returns xml. It passes the xml back to Json as a string. however, when it comes back, even though when i step through the code on the server it still looks valid, but then when i pass it back to the page in the .getJson call it looks like this: </p>
<pre><code> \u003cROOT\u003e\u003craw... | c# javascript jquery | [0, 3, 5] |
627,145 | 627,146 | In Android, how do I query MediaStore only for files in a specific path? Or alternatively, only display files in a certain path? | <p>Suppose I have an Android block of code that looks something like this:</p>
<pre><code>String[] proj = {MediaStore.Audio.Media.ARTIST, MediaStore.Audio.Media._ID};
int[] to = new int[] { R.id.artist_name };
Cursor musiccursor = managedQuery(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, proj, null, null, MediaStore.A... | java android | [1, 4] |
2,355,656 | 2,355,657 | To delay javascript function call using jquery | <p><strong>CODES:</strong></p>
<pre><code> $().ready(function(){
function sample()
{
alert("This is sample function");
}
$("#button").click(function(){
t=setTimeout("sample()",2000);
});
});
</code></pre>
<p><strong>HTML:</strong></p>
<pre><code><input type="button" name="b... | javascript jquery | [3, 5] |
674,171 | 674,172 | Android : Phone call detect when connected? | <p>I can use this code to make outgoing call: </p>
<pre><code>Intent dial = new Intent(Intent.ACTION_CALL);
dial.setData(Uri.parse("tel:5556") );
context.startActivity(dial);
</code></pre>
<p>But how to detect whether the call is picked up or the call is refused?
I tried PhoneStateListener, but it is not working... | java android | [1, 4] |
3,998,713 | 3,998,714 | how to pass data from javascript to winforms user control | <p>I have a windows user control hosted in IE.</p>
<p>how can i paas input from webpage ( propably from javascript ) to win forms user control</p>
<p>can any one help me in solving this problem.</p>
<p>it is urgent.</p>
<p>Thanks.</p>
| asp.net javascript | [9, 3] |
4,222,757 | 4,222,758 | Strange problem overriding one of LinearLayout's constructors | <p>For some reason, Eclipse doesn't like the call to super(context, attrs, defStyle), yet it's happy with the other super calls. The error is "The constructor LinearLayout(Context, AttributeSet, int) is undefined".</p>
<p>I don't think the problem is with this code itself, but something else in the project's settings ... | java android | [1, 4] |
2,149,691 | 2,149,692 | Can I send a string to a php file from my mobile Java app? | <p>I want to be able to send a parameter to a php page that contains a devices IMEI/MEID.</p>
<p>I then want the php page to take that IMEI parameter and check a list of IMEI's to see if the IMEI sent as a parameter from my Java mobile app is contained in a database, if it is then return true.</p>
<p>I only know the ... | java php | [1, 2] |
1,209,813 | 1,209,814 | JS/JQuery: I'm trying to move an li node under the one it matches | <pre><code>$(document).ready(function() {
var a = $("li.comment").attr("id");
var b = $("li.comment[id='"+a+"']");
var c = $("li.comment > div.comment-body div > p > a").attr("href");
var d = $("li.comment > div.comment-body div > p > a[href='"+c+"']");
var e = new RegExp("[#+'+b+']b")
if (d===e) {
... | javascript jquery | [3, 5] |
4,967,738 | 4,967,739 | How to delete or remove an array value randomly in jQuery? | <p>How can I delete an value from an array in jQuery?</p>
<pre><code>var prodCode = ["001","002","003","004","005","006","007","008"];
</code></pre>
| javascript jquery | [3, 5] |
5,840,192 | 5,840,193 | How to find a text using javascript or jquery. | <p>I need to find a text from a paragraph using java script.
Is there any code in JavaScript like we do in c# to find a text using "string.Contains("")" method.</p>
<p>Pls help...</p>
<p>Thanks Guys..</p>
| javascript jquery | [3, 5] |
1,266,350 | 1,266,351 | Show issue while deleting directory | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5701586/delete-a-folder-on-sd-card">Delete a folder on SD card</a> </p>
</blockquote>
<p>In my app i saved all my data using internal storage i.e file. So at the first instance by using the <code>ContextWrapper ... | java android | [1, 4] |
2,206,137 | 2,206,138 | Jquery Editable Table: How can i Make certain cells editable? | <p>I am building an editable table in jquery for fun.</p>
<p>Here is my table:</p>
<pre><code><table id="horiz-min" summary="Indices">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">ID</th>
<th scope="col">Description</th>
... | javascript jquery | [3, 5] |
1,217,431 | 1,217,432 | How to alert a user when an event occurs? | <p>I am trying to create a news portal, on which if their is say a new event like "breaking news"
and the user is viewing another website,he should be alerted by means of tab blinking or any sound or if the browser is minimized,it should open up by itself. Is it possible using php or jquery?</p>
| php jquery | [2, 5] |
2,791,825 | 2,791,826 | Put a tags round user highlighted text? | <p>I need to get the user selected area of a textarea and then insert <code><a></code> tags round it.</p>
<p>I use this to get the user selected area:</p>
<pre><code>var textComponent = document.getElementById('article');
var selectedText;
if (document.selection != undefined)
{
textComponent.focus();
v... | javascript jquery | [3, 5] |
2,397,902 | 2,397,903 | jQuery: toogle--> open only one and collapse other sibling items | <p>jfiddle: <a href="http://jsfiddle.net/ZmDs2/1/" rel="nofollow">http://jsfiddle.net/ZmDs2/1/</a>
Hi Im trying to accomplish collopsing other parent items while opening only one with jQuery toggle. </p>
<p>I tried </p>
<pre><code>var index = $(this).index();
$('.togglebox').eq(index).slideToggle("fast").siblings('.t... | javascript jquery | [3, 5] |
803,373 | 803,374 | JQuery onclick do something ... after click alert | <p>I am using this code:</p>
<p><code>onclick="$('#default').click();"</code> ... is there any way to return an alert of something if it's done sucessfully?</p>
<p>Update:</p>
<p>There seems to be a proble here:</p>
<pre><code>onclick="$('#default').click( function() { alert('clicked'); });"
</code></pre>
| javascript jquery | [3, 5] |
691,937 | 691,938 | How to prompt the "open with" menu after download a zip file | <p>In my app I download .zip files. Is there a way when those files are downloaded, have a button/notification when clicked prompt the "open with" menu with third party compatible apps? </p>
<p>How to do that without knowing which zip handling apps are installed in the user phone?</p>
<p>Also, how to apply to apk fil... | java android | [1, 4] |
1,494,878 | 1,494,879 | facebook app loading slow in android | <p>i took the example from </p>
<p><a href="http://developers.facebook.com/docs/guides/mobile/" rel="nofollow">http://developers.facebook.com/docs/guides/mobile/</a> now whenever </p>
<p>i run the app...either it takes too long time to load the face book sign-up or it never loads...it stays in whit screen with headin... | java android | [1, 4] |
756,888 | 756,889 | How to create deployable JavaScript file | <p>To give a quick example of my question, consider the JS file provided by Google to capture Analytics data that we paste in our files. How does this JS file get all the data? I want to know how to create such JS files that I can give out to others who can then run it on their own websites and yet, store data on my we... | php javascript | [2, 3] |
2,008,373 | 2,008,374 | How to check/pass setting status | <p>I have a preferences class that allows the user to turn on 'hints' from the settings of the application:</p>
<pre><code>public class Prefs extends PreferenceActivity {
//Option names and defualt values
private static final String OPT_HINTS = "hints";
private static final boolean OPT_HINTS_DEF = true;
@Override
pro... | java android | [1, 4] |
5,614,542 | 5,614,543 | How to unbind an event | <p>I'm binding a dropdown</p>
<pre><code>("#dropdownlist").change(function(){
//Do stuff
});
</code></pre>
<p>The above code gets called many times.</p>
<p>How can I unbind this event before binding it each time?</p>
| javascript jquery | [3, 5] |
4,807,737 | 4,807,738 | Thread stopping in synchronized block | <p>I am facing a problem with a stopping thread which is in a synchronized block. I am using TCP socket. The problem is that I am waiting on a <code>DataInputStream</code> object and I want to create a new socket again but it doesn't allow me to do because of the synchronized block.</p>
<p>I have tried with <code>Thre... | java android | [1, 4] |
3,719,990 | 3,719,991 | Convert datetime to Time and show in a label in GridView | <p>I have a grid view in which I have a label in which I want to show the date and time as</p>
<p><strong>Nov 19 at 07:30 am</strong></p>
<p>i have a field in the database which give the datetime value as <strong>2011-11-19 07:30:43.193</strong></p>
<p>How can I get the desired result?</p>
| c# asp.net | [0, 9] |
2,544,012 | 2,544,013 | Load a new value into an input from PHP with jQuery? | <p>I have some input like:</p>
<pre><code>'<input type="text" name="display-count" class="display-count" value="23" autocomplete="off" readonly="readonly" />';
</code></pre>
<p>And I'm using this jQuery code to remove the value it has and replace it with another one:</p>
<pre><code>var count = $('form.user-cou... | php jquery | [2, 5] |
2,344,621 | 2,344,622 | Change color depending on value | <p>I don't why this is not working. Can somebody tell me what is the problem with this?</p>
<pre><code>var x = $('#clicked_info').val();
if(x == 1) {
$('#companyname_ph').css({'color':'yellow'});
}
else if(x == 2) {
$('#companyname_ph').css({'color':'red'});
}
</code></pre>
| javascript jquery | [3, 5] |
1,084,240 | 1,084,241 | Session var not accessible in my script | <p>I have two <code>$_SESSION</code> variables impossible to access in any script of my page but it's sure they exist in the PHP code of the same page when I use <code>echo</code> to display their values.</p>
<p>I can display in jQuery every classical PHP variables I want with the following code, but it's impossible w... | php javascript jquery | [2, 3, 5] |
3,863,866 | 3,863,867 | How to make sure the values are increments of 12 in jQuery? | <p>Ok so I have an ajax call that I need to preform if and only if the user has a quantity of 12 because the items are sold as dozens</p>
<p>Here is my html</p>
<pre><code><input class="items" type="text" name="quantity_26" size="3"></span><br>
<input class="items" type="text" name="quantity_27" ... | javascript jquery | [3, 5] |
5,184,106 | 5,184,107 | JavaScript Best Practices: where should I include my JavaScript? | <p>I am building a website using PHP and JavaScript, and I feel that I have a good grasp on where to include my JavaScript, but a more specific situation has come up that has me confused. I currently have all of my JavaScript in one external file, which is being included on every PHP page.</p>
<p>Let's say that I hav... | javascript jquery | [3, 5] |
608,145 | 608,146 | Populate a form with data from an associative array with jQuery | <p>Last time <a href="http://stackoverflow.com/questions/169506/get-form-input-fields-with-jquery">I asked about the reverse process</a>, and got some very efficient answers. I'm aiming for least lines of code here. I have a form of fields and an associative array in the {fieldname:data} format, I want to populate a co... | javascript jquery | [3, 5] |
1,111,182 | 1,111,183 | Content slider like a slideshow | <p>I have almost identical content slider like <a href="http://www.webdeveloperjuice.com/2010/01/12/lightest-jquery-content-slider-ever-made-380-bytes/" rel="nofollow">this one</a>: </p>
<p>How could I make it rotate automatically? I have tried different ways but I cant make it work. I have tried putting a click on t... | javascript jquery | [3, 5] |
5,288,395 | 5,288,396 | Loading an image buried within several divs when the parent div is shown by a .show jQuery command | <p>I have a jQuery script running on an ASP site that shows hidden DIVs when the id of a select form matches the div's ID:</p>
<pre><code>$(document).ready(function(){
$('select[name$="_77"]').change(function() {
$(".select_77").hide();
$(".select_77[id='" + this.value + "']").show();
})
})
</c... | javascript jquery | [3, 5] |
4,964,236 | 4,964,237 | "too much recursion" in my rotating banner script | <p>My rotating banner script is throwing a "Too much recursion" error when the <code>iKeyless.widget.Rotator.rotate();</code> function is called within <code>init();</code>. I can't figure out why, <code>init();</code> is only called once and there's a defer() on the second call.... when the page loads it lags before ... | javascript jquery | [3, 5] |
2,077,593 | 2,077,594 | PHP jQuery - Dynamic load or complete Page | <p>i want to write a middle sized web-application in php with mysql and jquery.
Does it make sense to generate only one "startup" page and load every content site dynamic with a jquery post ?</p>
<p>And does it make sense to make a folder structure like</p>
<pre><code>images
index.php
func.js
content
/ news
... | php jquery | [2, 5] |
1,401,430 | 1,401,431 | Access method in class library | <p>I've moved a class in my project into a class Library in the same solution. I've added a reference in the web project to the class library.</p>
<p>How do I access the methods in the class library?</p>
| c# asp.net | [0, 9] |
2,268,077 | 2,268,078 | Tracking incoming URL | <p>I have a situation where I need to change some CSS on a page based off the URL where the visitor came from. I'm using a form to submit a value to a new page (a checkout page) which is hosted on a different server/site than where the form resides. I have different forms sending this info over to the checkout page o... | javascript jquery | [3, 5] |
1,888,709 | 1,888,710 | Insert scripts into an existing function? | <p>This function is built into the page and I cannot modify the original .js file:</p>
<pre><code>cool.lol = function () {
// contents here
}
</code></pre>
<p>Is there a way for me to append this function with some of my own scripts?</p>
<p>Like this:</p>
<pre><code>cool.lol = function () {
// contents h... | javascript jquery | [3, 5] |
1,772,879 | 1,772,880 | replacing page content with .html(content) is not working | <p>I have a weird problem in jQuery. The problem is that I can smoothly use <code>$('#container').html(content)</code> to replace the page content but to specific page. It is not working all around. Gives 'TypeError' message in console. Is there any probability that using SlickGrid can cause such error. Because error i... | javascript jquery | [3, 5] |
5,320,558 | 5,320,559 | jquery how to get the index of a click event when after doing an ajax call | <p>In the following code how would I use <code>$(this).parents('#friendRequest').remove();</code> in my ajax success callback function, and use <code>$(this)</code> to get selector of the click event in the first line?</p>
<pre><code>jQuery(".notyAcceptFriendRequest").on('click', function() {
notyId = jQuery(this)... | javascript jquery | [3, 5] |
5,866,328 | 5,866,329 | how button click event works in combobox? | <p>I am trying to dynamically append options in a combo box.</p>
<p>How does button click event work in a combo box element? I am using change event. But I need button click event in the combo box. How can I 'uniquify' the combo box element in jquery?</p>
| javascript jquery | [3, 5] |
212,550 | 212,551 | jQuery - How do I make custom event fire only once? | <p>I need to control the order in which events are fired. To ensure that my custom event is fired only after another event has finished I am triggering the custom event in the handler of the first event.</p>
<pre><code> $(".HwRadioButton").click(function(event) {
//Stuff that needs to happen before custom ev... | javascript jquery | [3, 5] |
537,988 | 537,989 | Getting system Mydocument path using C#.net(Web based Application) | <p>Am using C#.net(Web based) and Am trying to get Mydocument file path using following code </p>
<pre><code> Label1.Text = System.Environment.GetEnvironmentVariable("USERPROFILE") +"\\My Documents\\";
or
Label1.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
</code>... | c# asp.net | [0, 9] |
4,000,317 | 4,000,318 | modify class in stylesheet in codebehind | <p>I am Working in asp.net and c#.</p>
<p>I have a css stylesheet named STYLE.css in my application,and i have a some classes in that stylesheet.I want to change the style in that classes in my codebehind.How to do that.Give ur suggessions.</p>
<p><strong>Style.CSS</strong>:</p>
<pre><code> .someclass
{
//some ... | c# asp.net | [0, 9] |
1,397,042 | 1,397,043 | btnAdd_Click fires when i press F5 | <p>Hi I've a simple code to insert data into db in button click event. It is executing fine and insert data into db. After inserting data if i press f5 button it is again inserting a new row into db with the same values.</p>
<p>Button click event fires on each f5 button (refresh)</p>
<p>Wat is the problem?</p>
<p>Th... | c# asp.net | [0, 9] |
1,952,887 | 1,952,888 | Get the position(index) of an element in the parent | <p>I want to get the position of a an element in its parent. For example</p>
<pre><code><div>
<h2 class="one">A</h2>
<span>Something</span>
<h2 class="two">B</h2>
<h2 class="three">C</h2>
</div>
</code></pre>
<p>Now suppose I get a reference of h2.two $('h2.... | javascript jquery | [3, 5] |
3,631,526 | 3,631,527 | How can I program a decimal addition with JavaScript | <p>How can i program this, the decimal shift needs to be programed that most of it I think , the rest would be just a normal add, any thoughts on how to program this? This is for an incrementer I'm building, the user can press plus or minus and increment a text input.</p>
| javascript jquery | [3, 5] |
3,830,542 | 3,830,543 | On submit values lost | <p>I have a javascript that fires on change of radio button. On my radio button also have this code below.</p>
<pre><code><input type="radio" name="design" style="vertical-align: middle" value="1" onchange="this.form.submit()" <?php if(isset($_POST['design'])){ if($_POST['design'] == 1) {echo "checked";}} ?... | php javascript jquery | [2, 3, 5] |
1,674,332 | 1,674,333 | how facebook control elements stays open while navigating | <p>i was wondering how facebook controls its new slideshow / pircture viewer black box while navigating through images with arrow keys via jquery or what ever technique.</p>
| php jquery | [2, 5] |
4,524,716 | 4,524,717 | Calling A Function In External Javascript Asp.Net | <p>I am having trouble calling an external javascript function from my asp.net page</p>
<p>I have a file called user.js which I have this..</p>
<pre><code> UseThisNewThing:function () {
alert("In Function External");
}
</code></pre>
<p>My asp.net page references this file in the head tag..</p>
<pre><code><scri... | javascript asp.net | [3, 9] |
2,540,802 | 2,540,803 | JQuery hide/show gone wrong | <p>Here is a simplified example of what i'm working with, working around preexisting code:</p>
<p>Basically I have 2 divs I want to hide/show in multiple places(stage 1, stage 2, stage 3,etc), as so: </p>
<pre><code>var blue_div = "#Blue";
var red_div = "#Red";
var blue_stage = "#Blue" + count;
var red_stage = "#Red"... | javascript jquery | [3, 5] |
4,187,274 | 4,187,275 | Removing dropdown item from .aspx at pageload | <p>I have the following code that removes the item selected in dropdown1 from dropdown2 when a value in dropdown1 is selected:</p>
<pre><code>protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList2.Items.Remove(DropDownList1.SelectedItem);
}
</code></pre>
<p>that... | c# asp.net | [0, 9] |
1,004,903 | 1,004,904 | JQuery Sync Selected Radio Button between 2 radio button groups | <p>I know it can be done with input boxes using keyup paste on JQuery but what about Radio buttons?</p>
<p>Example:</p>
<p>User Selects option from Area A (radio button) and it selects(syncs) area B</p>
<pre><code><!--AREA A (Source) -->
<input id="radio_A" name="radio_A" type="radio" value="Value1" />
&... | javascript jquery | [3, 5] |
2,504,132 | 2,504,133 | Partially expanding a div to preview contents | <p>When I hover over a div, I want another div (which starts as <code>display:none</code>) to partially expand downward, revealing only the top of its contents. How can I partially expand a hidden div with jQuery? Preferably so that the div fades out towards the bottom. There don't seem to be parameters for the <code>t... | javascript jquery | [3, 5] |
5,211,029 | 5,211,030 | get all child elements that are not a table | <p>I try to get all children, but skip tables:</p>
<p>What I have is:</p>
<pre><code>var allElements = $("body").children();
$.each(allElements, function(i, element)
{
// Do something
}); // each element
</code></pre>
<p>Now I look for either a way, that allElements does not include tables or a function, that retu... | javascript jquery | [3, 5] |
838,091 | 838,092 | Uncaught SyntaxError: Unexpected identifier | <p>It seems I have found myself yet again in quite of a pickle. From what I understood via searching this issue was that if <code>var</code> is <code>int</code>, this error might occur. But as far as my amateur Javascript skills go, I did not detect such a thing in my completely <a href="http://blog.alexmaccaw.com/svbt... | javascript jquery | [3, 5] |
3,384,064 | 3,384,065 | In asp.net, how can I tell what triggered an additional page_load call? | <p>Greetings.</p>
<p>Is there a good way to determine what is calling my Page_Load method? I've got a few Componentart WebUI grids that call it, although I've checked all of those (using the gridName.IsCallback property). I've also got an update panel, but I'm not sure how to check if it is the caller.</p>
<p>I'm b... | c# asp.net | [0, 9] |
2,994,126 | 2,994,127 | Problem with removing child | <p>I have two drop down forms. When the first is "changed" the second is populated with some data via ajax.<br>
It's work but the value of the second drop down is not cleared on every request (I'm using $('#second_drop_down').children().remove();)</p>
<p>Here is sample code</p>
<pre><code>$('#first_drop_down').live(... | javascript jquery | [3, 5] |
5,025,157 | 5,025,158 | php/python date conversion | <p>Guys, I have a python script which builds up a MySQL table with timestamps that look like: </p>
<pre><code>2011-04-18 09:54:45
</code></pre>
<p>To interface with this MySQL table, I need a php script to match updates. If I run this in PHP:</p>
<pre><code>$todaysdate = date(DATE_RFC822);
print $todaysdate;
</code... | php python | [2, 7] |
4,534,906 | 4,534,907 | Creating custom jQuery class | <p>I am creating a photo gallery for my website. I want a grid of the photos displayed when the page loads. Then when the user hovers over each photo, the photo enlarges a little.</p>
<p>I created the javascript for the hovering, but I do not know how to properly package this into a class.</p>
<p>Basically, I want to... | javascript jquery | [3, 5] |
3,948,991 | 3,948,992 | jQuery solution for content zooming/switching? | <p>I'm designing a page for a kiosk at a local business that displays both a flash solar monitor as well as a slideshow of images of their new green roof but want a way to focus on each of these objects individually, making the one in focus larger in the foreground while having the other smaller and more subtle in the ... | javascript jquery | [3, 5] |
106,847 | 106,848 | how can I get asp.net aspx page name from javascript? | <p>Trying to get the aspx name from the current page from javascript?</p>
| javascript asp.net | [3, 9] |
1,176,250 | 1,176,251 | Time duration based city and country asp.net | <p>I want to find out the duration between two different time zone. Issue is, I have only city and country with two date time.
I am thinking, If I will able to get the time zone based on City and country then I will able to subtract the duration.</p>
<p>Supposed I am listing flight result page with departure date tim... | c# asp.net | [0, 9] |
4,350,828 | 4,350,829 | Detect close tab/browser without message etc? | <p>I would like doing in javascript (jQuery):</p>
<pre><code>if (close tab || close window) {
$.ajax({
type: "POST",
url: "process_form.php",
data: dataString
});
}
</code></pre>
<p>Is this possible without message if you want leave page etc?</p>
| javascript jquery | [3, 5] |
996,059 | 996,060 | How to process groups of duplicate fields and organize by common field key - PHP / Array | <p>Looking to mimic what's going on on this website where you can add multiple field groups: When you click "add another card", it duplicates the field -- I've got this covered with jquery and clone(). However, if you input two gift cards with the same amount, on the next step they've combined the quantities for tho... | php javascript | [2, 3] |
3,123,405 | 3,123,406 | Screen scape altered info from another website | <p>I'm trying if it is possible to get the result of another site after clicking some items and altering some data on that site.</p>
<p>For example, you have a site which asks you first for some input and then gives a result. This result i want to have and save it to a database and display it on my own site. Is there ... | c# asp.net | [0, 9] |
37,897 | 37,898 | Better way to find Class in event.target parentnodes using jquery and javascript? | <p>Currently, I check the target of the input box keyup event to see if it is contained within a div wit class "editorRow" using:</p>
<p>var $parentClass = event.target.parentNode.parentNode.parentNode.className;</p>
<p>Is there a better way to do this in case extra markup is added between the div and the span tags?<... | javascript jquery | [3, 5] |
5,200,590 | 5,200,591 | How to parse XML from another server using JavaScript or jQuery? | <p>I am new to Javascript. I need to parse XML using javascript or jQuery which is another server. I tried by using the below code. But when I executed it, it was not going to success method.</p>
<p>I was able to parse the XML which is in the same folder. Is it possible in javascript to access content from another ser... | javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.