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 |
|---|---|---|---|---|---|
1,363,044 | 1,363,045 | Jquery: shake effect not working | <p>Sorry to be a pain, but im really frustrated this isn't working for me at all</p>
<pre><code>$(document).ready(function(){
$('.wrap').effect("shake", { times:3 }, 300);
});
</code></pre>
| javascript jquery | [3, 5] |
607,110 | 607,111 | How to separate data received from $.get() callback function | <p>I have this:</p>
<pre><code><div ><span id="compareResult"></span>&nbsp;&nbsp;<span id="result"></span></div>
$.get(
'data.php',
{ valA: $(this,'option:selected').val() , valB:$(this,'option:selected').val()},
function(childData){
$('#resu... | php jquery | [2, 5] |
4,109,114 | 4,109,115 | Setting a time for flicker animation on img | <p>I'm using this code to make my logo flicker on my website. But It becomes annoying when it continues to flicker while browsing, how can I set a time to allow it to flicker for something like the first 15seconds on page load, then stops?</p>
<p><strong>JS code I'm using:</strong></p>
<pre><code>$(document).ready(
f... | javascript jquery | [3, 5] |
1,612,421 | 1,612,422 | How can I load static configuration information | <p>In my code, I use JavaScript for UI and PHP for back end. I also use PHP to store application settings and sometimes my UI code needs to access this information. My configuration file looks something like this (config.php):</p>
<pre><code>$resolution_x = 1920;
$resolution_y = 1080;
etc...
</code></pre>
<p>When I n... | php javascript | [2, 3] |
974,686 | 974,687 | Get select selected value | <p>I have a url like this:
<code>index.php/home/lista_modelo_ajax?id="+$('#colecoes').val(),</code></p>
<p>The thing is that the: <code>$('#colecoes').val()</code> is always the first item of the select, not the one I choose.</p>
<p>Any ideas?</p>
<p>Thanks in advance.</p>
<p><strong>EDIT</strong></p>
<pre><code>&... | javascript jquery | [3, 5] |
3,884,505 | 3,884,506 | Video converting into mp3 on Java, Android | <p>I need to convert mp4/flv files info mp3 in my Android application, but I don't know C/C++ and Android NDK. Do you know libraries/methods for easy converting on Java? Thank you for anyway. </p>
| java android | [1, 4] |
5,675,557 | 5,675,558 | What's the most native way to connect android app to a webserver? | <p>I'm new to android developing but I have an app in mind, that needs to be connected to a Webserver (implemented as a java servlet if it makes a difference) in order to receive data (both real-time ajax-like and not real-time). What's the best way to perform such communication in the android interfaces ? </p>
<p>Tha... | java android | [1, 4] |
5,347,375 | 5,347,376 | C# ASP.NET cs0246 issue | <p>I'm having an issue where I keep getting error message CS0246 on my web server, but not in my visual studio environment. The issue is coming from a dll I reference in my project. The server cannot find my namespace for my dll.</p>
<p>To solve this I tried copying every file in my project directory to my web server,... | c# asp.net | [0, 9] |
5,584,168 | 5,584,169 | jquery slider - animating timeline | <p>I'm using the jquery slider function for a timeline</p>
<pre><code>$("#content-slider").slider({
min: 0,
max: 300,
step: 1,
change: handleSliderChange,
//start: getImageWidth,
slide: handleSliderSlide
});
function handleSliderSlide(event, ui) {
$("#content-scroll").prop({scrollLef... | javascript jquery | [3, 5] |
5,172,753 | 5,172,754 | Reset number to 1 if number is over than 10 | <p><code>num</code> is a variable which is dynamically changed within 1 to 9.</p>
<p>I must update the value in HTML for example let say the <code>num</code> is 6,</p>
<p>i need to set 1st field as 6, second field as 7, third field as 8 and so on</p>
<p>in simple version, <strong>6, 7, 8, 9, 1, 2, 3, 4, 5</strong></... | javascript jquery | [3, 5] |
5,400,555 | 5,400,556 | Sorting Jquery Tab Panel | <p>I have a tab panel. </p>
<p>It can add tabs dynamically by clicking the <code>add tab</code> button. </p>
<p>A typical use case scenario will be this: </p>
<ul>
<li>I have multiple tabs open Tab-1, Tab2, Tab-3, and Tab-4 in the panel </li>
<li>and remove some of them Tab-2 and Tab-3 from the panel by closing the ... | javascript jquery | [3, 5] |
5,458,527 | 5,458,528 | iPhone development - what do i need to get started? | <p>I'm looking to start developing an iPhone app. I have zero experience in objective C but have expeirence in C#. I'm just wondering what do I need to develop an iPhone app? Where do i start? What is the best tool to develop in? Do I need a Mac to develop the app or can I do it on a PC with a low amount of pain?</p>
... | c# iphone | [0, 8] |
941,644 | 941,645 | choose the selected value in a item template | <p>I have a method called BindItems() and this method gets the values to a DataTable and then a GridView is bound to it.</p>
<p>Then I have an itemtemplate in that gridview which contains a drop down, this drop down gets populated from 1 -14 from code behind under Gridview_RowDataBound, now I need to figure a way to g... | c# asp.net | [0, 9] |
1,980,361 | 1,980,362 | jQuery - Best way to populate a hidden field with list data? | <p>I have two unordered lists populated with users. The idea is to drag users from one list to add them to a group in the other list. Each user also has a dropdown to select a role in the group.</p>
<p>I'd like to add to/remove from a hidden field with the values of the "added" users and their role. I'm not really sur... | javascript jquery | [3, 5] |
5,084,933 | 5,084,934 | getting image width and height from javascript when using asp.net FileUpload | <p>that's my code :</p>
<pre><code> <script type="text/javascript">
$(document).ready(function(){
$("#<%=fileUpload.ClientID%>").change(function () {
alert(// width + height );
});
});
</script>
<asp:FileUpload ID="fileUpload" runat="server" class="upload" />
</code></pr... | javascript asp.net | [3, 9] |
298,027 | 298,028 | Making table rows but not table headers clickable in jquery | <p>Currently I am using</p>
<pre><code>$('#mytable tr').click(function() {
blah blah
});
</code></pre>
<p>This makes all rows, including the headers clickable. How can I exclude the headers or <code><th></code>'s?</p>
| javascript jquery | [3, 5] |
2,774,417 | 2,774,418 | Detect finger drag using Javascript on touch phones? | <p>Is there a way to detect finger drags using Javascript on touch phones? I'm currently using jQuery and the mousemove() method doesn't appear to work on my Andorid phone.</p>
<p><strong>EDIT:</strong> I suppose I should clarify that this is for a web application.</p>
<p><strong>EDIT 2:</strong> I found a duplicate... | javascript iphone android | [3, 8, 4] |
1,554,914 | 1,554,915 | PHP JQuery cross domain | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/752319/cross-domain-ajax-request-with-jquery-php">Cross Domain Ajax Request with JQuery/PHP</a> </p>
</blockquote>
<p>I hope you can help
I have a php page on a subdomain which onclick needs to execute a PHP scr... | php jquery | [2, 5] |
5,061,067 | 5,061,068 | Get element value and then subtract by 1? | <pre><code><span id="tcount-1">100</span>
<span id="tcount-2">100</span>
<span id="tcount-3">100</span>
</code></pre>
<p>What I am trying to do is grab the value within span id=tcount-X (where X can be any ID value) and then subtract 1 from it. </p>
<p>So I know I can easily hid... | javascript jquery | [3, 5] |
1,900,804 | 1,900,805 | How to avoid the checkbox 'Stop execute scripts on this page' in the Javasript message box? | <p>How can I avoid the checkbox 'Stop execute scripts on this page' in the Javasript message box?
<img src="http://i.stack.imgur.com/3ZvNQ.png" alt="enter image description here"></p>
<p>Regards,
David</p>
| javascript asp.net | [3, 9] |
537,855 | 537,856 | ASP.NET - How to load page via server-side code (C#) with MVC Pattern in place? | <p>I am trying to use more server-side code (MVC pattern in place) and one of the methods that I am thinking of implementing is something like: LoadWebPage(). If a user is on a page, say Page1.aspx, and they click on a hyperlink, I would like to call the above method, LoadWebPage(). But the problem is, I do not know ... | c# asp.net javascript | [0, 9, 3] |
1,201,082 | 1,201,083 | create hour live(online)? | <p>How do I create a local hour(<code>time zone -> UTC + 3:30</code>) with seconds?<br>
<strong>I not want use of plugin.</strong><p></p>
<p>I don't use of the following example because it gets the time of computer. It is only for display of what I want.<br>
<strong>EXAMPLE</strong>: <a href="http://jsfiddle.net/HZ... | javascript jquery | [3, 5] |
5,671,914 | 5,671,915 | Is there any way I could auto-fill the fields on this registration page? | <p>I have a link to a registration page:
<a href="https://www.website.ws/orderflow/index.dhtml?sponsor=gditraffic&src=DSP_66&last_page=DSP_66" rel="nofollow">Registration Page</a></p>
<p>When I take users to the page, I'd like to save them a load of time, frustration and calories to burn, by filling in the fie... | javascript jquery | [3, 5] |
1,740,757 | 1,740,758 | jQuery and ASP.NET Control issue | <p>If I have a custom ASP.NET control that renders as an html control with an ID, I'm trying to add an attribute to the input control with jQuery.</p>
<p>However, I'm running into some issues:</p>
<p>First, my jQuery is not able to select it.</p>
<p>I have so far:</p>
<pre><code>$(document).ready(function() {
$(... | asp.net javascript jquery | [9, 3, 5] |
4,900,027 | 4,900,028 | Call jQuery function from ASP.NET code behind C# | <p>I have the following jquery function</p>
<pre><code>> <script type="text/javascript">
>
> $(document).ready(function() {
>
> $('#callGrowel').click(function() {
> $.growlUI('Email Received', 'from Joe Bloggs');
> });
> });
>
> </script>... | c# asp.net jquery | [0, 9, 5] |
5,211,033 | 5,211,034 | Passing c# function as parameters to Javascript | <p>Im trying to call a javascript function on a onclick method on a hyperlink, im also trying to pass a c# function as the parameters of the javascript function but it doesn't work. Any suggestions?</p>
<pre><code><a href='#' onclick='ShowTrack(<%#getTopHREF(Container.DataItem)%>); '>
</code></pre>
<p>Fir... | c# javascript asp.net | [0, 3, 9] |
229,981 | 229,982 | FileUpload method for asp.net website | <p>net and am just wondering if there is a method for the
file upload tag in a library anywhere ?</p>
<p>Thanks guys heres my code</p>
<pre><code><asp:FileUpload ID="FileUpload1" runat="server" ForeColor="white" />
</code></pre>
| c# asp.net | [0, 9] |
3,300,072 | 3,300,073 | How to hide sub-menu when other menu clicked JQuery | <p>I'm trying to figure out one thing, I have a one page website and want hide sub-menus under portfolio when other menu links cliked <a href="http://jsfiddle.net/kuuwj/15/" rel="nofollow">http://jsfiddle.net/kuuwj/15/</a></p>
<h1>HTML</h1>
<pre><code><ul id="navbar">
<li><a href="#home" id="nav-ho... | javascript jquery | [3, 5] |
4,320,669 | 4,320,670 | regular expression mobile and landline number | <p>i want to have a mobile phone number in this format (021)123-4567 or (027)123-4567 or landline number in this format (04)970-0676. i have a regular expression which does that except it doesn't contain the '-' and the first 3 or 2 digits are wrapped in the curly brackets (027) or (04) character.<br>
what I want also ... | javascript jquery | [3, 5] |
3,484,486 | 3,484,487 | need to get id of current element | <p>So, I have several tables that I iterate over using jQuery based on the class, but my behavior needs to change just slightly depending on the id of the element I'm in. Here's my code:</p>
<pre><code><table id="Brokers" class="nodeTable" border=1 />
<table id="Controllers" class="nodeTable" border=1 />
&... | javascript jquery | [3, 5] |
5,623,504 | 5,623,505 | How to implement search option within my website | <p>I am developing a website.</p>
<p>I want to implement searching features within my website with <code>C#</code> and <code>ASP.NET</code></p>
<p>that means suppose anybody enter a keyword into <code>textbox</code> and that keyword will be searched within my website.</p>
| c# asp.net | [0, 9] |
1,342,445 | 1,342,446 | JQuery selector for (ASP.NET) ButtonField in GridView | <p>I have a couple of ButtonFields in my gridview, corresponding to "Edit" and "Delete".</p>
<p>I'd like to use JQuery in my code for a delete confirmation popup.</p>
<p>ButtonField renders as "a href"'s in HTML, but I'm at a loss in forming a JQuery selector that targets only the "Delete" link, since ButtonField doe... | asp.net jquery | [9, 5] |
1,143,273 | 1,143,274 | jquery executes declared function without me clicking | <p>i wonder why the browser displays "logged in" without me having clicked on the link i id-tagged with clickhere. it displays it everytime i refreshes the page.</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
function login(){
alert("logged in");
}
$("#clickhe... | javascript jquery | [3, 5] |
148,946 | 148,947 | jQuery delay: Speeding up queue? | <p>I have a slideshow which basically changes the src attribute of an image and fading it in and out.</p>
<pre><code>function startSlideshow() {
if (i >= images.length) { i = 0 }
var path = images[i].path;
var name = images[i].name;
i++;
image.attr('src', path)
image.animate({opacity:1}, ... | javascript jquery | [3, 5] |
4,971,928 | 4,971,929 | Listview with multiple strings | <p>I am trying to create a Listview with multiple strings. </p>
<p>Right now I have a function that it will do</p>
<pre><code> while(i <= 10){
//GETS DATA FROM WEBPAGE ETC
a = DATAFROMWEBPAGE1;
b = DATAFROMWEBPAGE2;
c = DATAFROMWEBPAGE3
}
</code></pre>
<p>1... | java android | [1, 4] |
5,032,981 | 5,032,982 | What are the major differences between Python and PHP? | <p>I know PHP a little. But Python is totally new for me. I only know it's something "similar", right? Or wrong? What are the differences I should know?</p>
| php python | [2, 7] |
3,570,682 | 3,570,683 | Caching the blur event using jQuery | <p>I need to do something when a blur event is fired from a text box.</p>
<p>The problem is the blur event is also fired when the user presses the "Enter" key
and when the mouse is clicked somewhere else.</p>
<p>I need to do some specific action when the mouse is clicked somewhere else; how would I do it?</p>
| javascript jquery | [3, 5] |
4,635,188 | 4,635,189 | How to implement Open ID as per in the start of Stack overflow | <p>Can any one give me a live example to implement Open Id concept as per in used in Stack overflow means when i click on Login i would like to have the same behaviour as per in the site</p>
| c# asp.net | [0, 9] |
3,597,148 | 3,597,149 | Render a byte[] as Bitmap in Android | <p>I'm getting a byte array from a JNI call, and trying to construct a Bitmap object with it.</p>
<p>My problem is, the following code, returns null.</p>
<pre><code> byte[] image = services.getImageBuffer(1024, 600);
Bitmap bmp = BitmapFactory.decodeByteArray(image, 0, image.length);
</code></pre>
<p>Any tips... | java android | [1, 4] |
5,162,030 | 5,162,031 | Locale country Android problem ISO | <p>What give you this in return</p>
<pre><code>getSimCountryIso()
</code></pre>
<p>Returns for USA for example "USA" "US" or something else????
Help me guys!!!
Thank you in advance</p>
| java android | [1, 4] |
5,413,876 | 5,413,877 | jQuery $.each multiple div names | <p>Hello following problem,
i need the id attribute string for each div in a loop how i can make this ?</p>
<pre><code><div id="3r23r32_ProgressBar" class="upload-progress-bar"></div>
<div id="gfdgfdgfd_ProgressBar" class="upload-progress-bar"></div>
</code></pre>
<p>Here is my sample jquery c... | javascript jquery | [3, 5] |
2,888,934 | 2,888,935 | Passing data between PHP webpages from a dynamically generated list | <p>I have a PHP code which generates a dynamic list inside a form like the following, note that the list is built dynamically from database:</p>
<pre><code>echo '<form name="List" action="checkList.php" method="post">';
while($rows=mysqli_fetch_array($sql))
{
echo "<input type='password' name='code' id='code'... | php javascript jquery | [2, 3, 5] |
2,436,847 | 2,436,848 | Problem while animating boxes using jQuery | <p>On my webpage, I have a few boxes one below the other, on the right side. Each box has a '+' and '-' button which maximizes/minimizes to the specified size, similar to that in portlets. But, for some reason, it is not working as it is suppose to.
Here is the code for '-' button:</p>
<pre><code><script type="tex... | php javascript jquery | [2, 3, 5] |
609,359 | 609,360 | Double quotes breaking jQuery (Very simple) | <pre><code> <?
//SQL SELECT HERE
$result = mysql_query($sql);
$options = '';
while ($row = mysql_fetch_array($result)) {
$options .= '<option>Data: ' . $row['data'] .'</option>';
}
?>
$("#multiSelect").html("<?=$options?>");
</code></pre>
<p>The above i... | php javascript jquery | [2, 3, 5] |
2,887,753 | 2,887,754 | how can i do this codes work only in a specific div tags | <pre><code>$(document).ready(function()
{
$(":input").focusout(function () {
var a= $(this).closest("tr").attr('id');
var b= $(this).closest("td").attr('id');
var c = $(this).attr("value");
$.post("database.php", { trAdress:a , tdAdress:b, value:c});
});
});
</code></pre>
<p>could... | javascript jquery | [3, 5] |
1,446,129 | 1,446,130 | How to set readonly property of a textbox in javascript | <p>i have a textbox whose property i need to set as readonly...
how to set that?
I tried </p>
<pre><code>document.getElementbyid("txtbox").readonly=true;
document.getElementbyid("txtbox").disable=true;
document.getElementbyid("txtbox").setattribute("readonly","readonly");
</code></pre>
<p>all these are not working fo... | javascript asp.net | [3, 9] |
5,927,085 | 5,927,086 | Get full html instead of just innner html | <p>I want to get the html including the selector that I am using to get the html</p>
<p>let's say I have</p>
<pre><code><div id="foo">
<div id="bar">content</div>
</div>
</code></pre>
<p>when I do <code>$('#foo').html()</code> I get</p>
<pre><code><div id="bar">content</div>
</... | javascript jquery | [3, 5] |
315,327 | 315,328 | Waiting values from child window | <p><code><Asp:Button ID=... onclick="openChildWindow()"</code></p>
<pre><code><asp:label ID="label1" ....>
</code></pre>
<p>I have a web page containing a button and a label. When I click the button, openCHildWindow() execute:</p>
<pre><code>openChildWindow()
{ //open child window...
//some other functions... | javascript asp.net | [3, 9] |
3,986,281 | 3,986,282 | How to reload page every 5 second? | <p>Hi I am converting one layout to html , once I make the changes in code html/css then every time I have to hit F5. is there any simple javascript/ jQuery solution for this. </p>
<p>like i add the script and its reload the whole page every 5(or specific time)</p>
<p>thanks</p>
| javascript jquery | [3, 5] |
4,418,328 | 4,418,329 | C# Programmer would like to develop first website | <p>I am a C# Programmer and I want to develop my first website.</p>
<p>I have a C# Application, methods of which I would like to use on a back end Server.</p>
<p>Am I correct in thinking I can use a ASP.NET front end and hook it up to a C# back end?</p>
<p>The website objective is to select a file on the front end, ... | c# asp.net | [0, 9] |
6,004,147 | 6,004,148 | Fill list from different table based on primary id | <p>I have 3 table which have relation with each others... In 1st table, i have student details contains studentid (PK), studentname, dob, etc... </p>
<p>Table 2 contain course consist of coursecodeid(PK), studentid(FK), coursename, teachername and etc..</p>
<p>Table 3 contain grade consist of studentid(fk), courseid(... | php javascript | [2, 3] |
2,270,022 | 2,270,023 | Is there any way to redirect to a new page and write some content with jquery on that page? | <p>I am making a function which searches the database for flight information. I want user to be redirected on "ticket.php" if the response is true. I want to update the content of the page "ticket.php" using jquery. But jquery doesn't work. Am I doing something wrong here ? Here's part of javascript. It's an external j... | javascript jquery | [3, 5] |
1,538,239 | 1,538,240 | Javascript - Want to jump to new div at scroll event | <p>I'm building a one-page site with the content area as large content boxes stacked down the page. </p>
<p><a href="http://salondoreen.com/lowercasemenu.html" rel="nofollow">http://salondoreen.com/lowercasemenu.html</a></p>
<p>I'm looking for ideas on a way to use javascript to jump to each content box. With a one-p... | javascript jquery | [3, 5] |
4,974,761 | 4,974,762 | Adding other items in toolbox from dll, do I still need the dll if I give someone the source? | <p>I have AjaxControlToolkit.dll , I've added the dll items into my toolbox and I've worked with some items in my asp.net project.</p>
<p>My question is : If I give someone the entire source without the dll located on my desktop , and in my project I used some items from the dll , are they still working(the items) on ... | c# asp.net | [0, 9] |
281,175 | 281,176 | how to check a array of imgs is fully loaded | <p>i got the code here
a array like this var pics = ['1.jpg','2.jpg','3,jpg'];</p>
<p>loop throught the array</p>
<pre><code>var j = 0;
var(var i in pics){
$(document.createElement(img)).attr('src',pics[i]).load(function(){
alert(pics[i]+'is loaded');
j++;
})}
if(j == pics.length){
alert('fully loaded');}
... | javascript jquery | [3, 5] |
1,254,811 | 1,254,812 | Convert JSON into uri-encoded string | <p>I got a JSON/javascript object which I would like to get <code>x-www-form-urlencoded</code>.</p>
<p>Something like <code>$('#myform').serialize()</code> but for objects.</p>
<p>The following object:</p>
<pre><code>{
firstName: "Jonas",
lastName: "Gauffin"
}
</code></pre>
<p>would get encoded to:</p>
<p>... | javascript jquery | [3, 5] |
52,503 | 52,504 | How to read the width and the height of a flash file in C# or JS? | <p>What will i do to read the width and the height of a flash file (*.swf) in C# or JS?</p>
<p>I tried a solution in CodeProject.com but return value of height is incorrect.</p>
| c# javascript | [0, 3] |
4,647,010 | 4,647,011 | window.open and sending form data not working | <p>I'm trying to open new window and send form data
with <strong>javascript</strong> and <strong>jquery-1.8.3</strong>. But, It's not woriking.</p>
<p>This is source code.</p>
<pre><code><a href="#" onclick="printPage()">Print this</a>
<script type="text/javascript" src="/common/js/jquery-1.8.3.min.js... | javascript jquery | [3, 5] |
5,892,759 | 5,892,760 | Check all check boxes and check specific check box in an array | <p>I am using this <strong>javascript</strong> function for checking all check box...it's working fine but if I want to check a specific check box 1 or 2 or more then I get an array of all but I didn't get specific check box value please tell me if any function in javascript or jQuery exists to do this. </p>
<pre><cod... | javascript jquery | [3, 5] |
4,425,940 | 4,425,941 | call vimeo video using ajax? | <p>I have this example code, but i believe when i call the ajax function that is not loaded. How can i load an external script as below? Thanks</p>
<pre><code> <?php if (is_ajax_request()): ?>
<div id="movie5" class="movie"></div>
<script>
var swf = s... | php javascript jquery | [2, 3, 5] |
5,442,559 | 5,442,560 | Java FilePath Android | <p>I have an android app that I am trying to get a file path for a SAX parser. I have the following structure:</p>
<pre><code>assets:(Where my xml file is)
src(same level as assets)
com
msi
androidrss(The calling java file is in here)
</code></pre>
<p>I tried several variations of this:</p>
<pre>... | java android | [1, 4] |
2,173,220 | 2,173,221 | How to get the current state of the page in C#? | <p>I have a page which contains many links and upon expansion of each link i have grid and button.The button when clicked will be redirected to an new page where some process is done and returns a message via querystring.My problem is how to show the message returned from new page exactly in the previous state(example:... | c# asp.net | [0, 9] |
916,554 | 916,555 | How can i do button on hold for two second call function1 if less then two second call function2? | <p>I have this button which is not working correctly for hold button for a period (but it works like click only). </p>
<p>Where i was trying to do if the button is <code>hold</code> for greater/equal then 2 seconds then <code>callfunction1</code>, if the button was pressed less then 2 seconds then <code>callfuntion2</... | javascript jquery | [3, 5] |
3,832,764 | 3,832,765 | Uncaught ReferenceError: $ is not defined? | <p>How come this code throws an "Uncaught ReferenceError: $ is not defined" - when it was OK before? </p>
<pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
$('#tabs > ul').tabs({ fx: { opacity: 'toggle' } });
$('#featuredvid > ul').tabs();
});
</code></pre>
<p>Results in t... | javascript jquery | [3, 5] |
338,133 | 338,134 | setTimeout adding +1 to for loop "i" during elapsed time | <p>I have 3 sequential or subordinates drop-down menus that could be either selected by the user ( which works fine ) or, in some instances, need to be selected via js.</p>
<p>I have set a timeout to give time to js to populate the first drop-down before the options are available to be selected in the sequence. It doe... | javascript jquery | [3, 5] |
4,812,172 | 4,812,173 | jquery weekcalendar resize/drop variables current div | <p>I am customizing the jquery weekcalendar to use json to read/write data to a mysql database.</p>
<p>What works so far, loading the cal from db, creating and storing new events on cal and deleting events on the calendar.</p>
<p>I run into problems trying to get the time/date variables when you resize an event on th... | javascript jquery | [3, 5] |
3,929,326 | 3,929,327 | Jquery Substring Replace | <p>I am building a CMS that uses query strings to show different editors.</p>
<p>Example:</p>
<pre><code>editors.php?editor=Articles
</code></pre>
<p>I need to make the word article singular for a button that say "New Article". I want to use the same query string editor value to avoid a big if statement.</p>
<p>I n... | php jquery | [2, 5] |
794,680 | 794,681 | Database add item to list view? | <p>I download this database script and i was wondering how can i convert it to instead add a item to a list view.. its a really easy understandable database code..</p>
<p><a href="http://www.anotherandroidblog.com/wp-content/uploads/2010/08/AABDatabase.zip" rel="nofollow">http://www.anotherandroidblog.com/wp-content/u... | java android | [1, 4] |
1,450,798 | 1,450,799 | Match method doesnt work in a user function | <p>I have this function:</p>
<pre><code>function checkMobile(){
return $('#js-mobile').val().trim().match(/^09[0-9]{9}$/);
}
</code></pre>
<p>And this in-line code:</p>
<pre><code> $('#js-mobile').val().trim().match(/^09[0-9]{9}$/);
</code></pre>
<p>I dont know why this code doesnt work in my function but work ... | javascript jquery | [3, 5] |
5,443,798 | 5,443,799 | PHP Variables inside JQuery/Javascript | <p>I have some javascript/jquery code and need to some php into it be the syntax seems to be wrong...</p>
<p>This is what I'm doing:</p>
<pre><code>$.post("myphp.php?something=$phpvariablehere",{ etc....
</code></pre>
<p>The result right now is that it's taking <strong><em>$phpvariablehere</em></strong> as a string ... | php javascript jquery | [2, 3, 5] |
5,386,933 | 5,386,934 | jQuery/JS for different pages - best way of doing this? | <p>Apologies if this is a silly question, and I'm not even sure of the best way of wording it...</p>
<p>At the moment I have a site with maybe 20+ different uses of jQuery, all varying from page to page. I'm just wondering what the best way is to store this code?</p>
<ul>
<li>Everything in one big jquery.myfunctions.... | javascript jquery | [3, 5] |
2,174,803 | 2,174,804 | passing php variable to javascript syntax issue | <p>trying to upload pictures to a users folder /uploads/$uid i think i have the variable syntax right maybe the syntax in file path is incorrect /uploads/user/ </p>
<pre><code>(function($){
$.simpleuploader = {version: '0.1'};
$.fn.simpleuploader = function(options){
// the container to inject the form into
... | php javascript | [2, 3] |
5,580,424 | 5,580,425 | Understanding javascript function calls in format of myFunc(arg).something() | <p>I'm trying to understand the format of the Javascript functions that jQuery, among other people, use.</p>
<p>For instance <code>jQuery(arg).hide()</code> or <code>$("#obj").hide</code></p>
<p>I'd like to write similar format functions but I don't understand how.</p>
<p>I know how to write</p>
<pre><code>function... | javascript jquery | [3, 5] |
478,393 | 478,394 | How to get the user authentication in Splash Activity | <p>I'm working on a small app that has a Splash Screen and a User Login. </p>
<p>I want to launch different tab menu based on the user's ID. </p>
<p>Let say I have an Admin who has ID == "100" will get AdminTabActivity and rest of others will get UserTabActivity. so I wrote it like this. I'm simply passing the user I... | java android | [1, 4] |
5,146,017 | 5,146,018 | How do I find all elements with a specific attribute? | <p>I have a number of elements on my page that have a <code>lang</code> attribute. How do I select only the elements with a <code>lang</code> attribute? </p>
<p>i.e.</p>
<pre><code><div lang="english">Test</div>
<span lang="english">is cool</span>
<span lang="anotherlanguage">is also go... | javascript jquery | [3, 5] |
2,439,500 | 2,439,501 | Android-Simulate mouseover/hover | <p>How can you simulate a mouseover event in an android app?
I have to detect if the user is touching/hovering over a particular part of the screen for more than 2 seconds.</p>
| java android | [1, 4] |
4,036,102 | 4,036,103 | ASP.NET C# DataTable DropDownList Issue | <p>I have a datatable/source binded to a drop down list in ASP.NET C#.</p>
<p>I am trying to return the selected drop down list value using:</p>
<pre><code>dropdownlist.Text
</code></pre>
<p>However, this just returns the first list value. How can i get it to return the selected drop down list value?</p>
| c# asp.net | [0, 9] |
3,927,825 | 3,927,826 | How to pass TextBox value to DynamicPopulateExtender query? | <p>Hi I am trying to do DynamicPopulate on DropDownList2 when the value of textbox2 changes, how can I pass the value to TextBox2 to the sql query of DynamicPopulate. </p>
<pre><code><asp:DropDownList ID="DropDownList2" runat="server"
DataSourceID="SqlDataSource1"
onselectedindexchanged="Drop... | c# javascript asp.net | [0, 3, 9] |
1,631,809 | 1,631,810 | Reset setTimeout every button click? | <p>Here is My Code</p>
<blockquote>
<p>var sec = 10 var timer = setInterval(function() {<br>
$('#timer span').text(sec--);
}, 1000);</p>
</blockquote>
<p>it setTimeout for 10seconds and if I click reset button will setTimeout again with 10seconds</p>
| javascript jquery | [3, 5] |
5,266,224 | 5,266,225 | Setting Custom Attributes For Item using GCheckout | <p>I am using .net google checkout utility GCheckout.dll to setup various shopping cart settings and product attributes. every thing is ok but i want to sent custom field information like shirt color, size etc via google checkout button. sample code below</p>
<pre><code>GCheckout.Checkout.ShoppingCartItem item = new G... | c# asp.net | [0, 9] |
1,755,528 | 1,755,529 | ASP.Net: GridView control and combobox woes part 2 | <p>This is a follow up to: <a href="http://stackoverflow.com/questions/7637920/asp-net-gridview-control-and-combobox-woes">ASP.Net: GridView control and combobox woes</a></p>
<p>I've implemented my code as kd7 has answered but I'm getting a "System.NullReferenceException: Object reference not set to an instance of an ... | c# asp.net | [0, 9] |
3,606,330 | 3,606,331 | Send information from javascript to php file | <p>I have this function <code>onEdit()</code> and now I want to send the value of variable id to a php file (let's call it <code>test.php</code>) so that using that value I can auto fill the popup called <code>modtemplate</code> which is located in <code>test.php</code> file.</p>
<p>Is there any way to accomplish this... | php javascript | [2, 3] |
476,874 | 476,875 | Adding extra parameters to url src with jquery? | <p>I cant think in how i can do this some help please.
I get some json objects and one of the values has html tags, some images, of course i cant fetch the images because they have relative urls, and the site it is host in a sub-domain.
Is there any way to add the <a href="http://example.com/" rel="nofollow">http://e... | javascript jquery | [3, 5] |
2,555,841 | 2,555,842 | Drop Down Problems | <p>I am trying to create a drop down list. I have it working but not fully, using this code:</p>
<pre><code>$(document).ready(function(){
$("#zone-bar li em").hover(function() {
var hidden = $(this).parents("li").children("ul").is(":hidden");
$("#zone-bar>ul>li>ul").hide()
$("... | javascript jquery | [3, 5] |
3,957,390 | 3,957,391 | jquery image slider gallery | <p>I'm trying to add images dynamically im my preview element.So when I click a thumbnails image will load and slide.</p>
<pre><code><div id="imageGallery">
<div id="loading"></div>
<a class="thumbnail"><img alt="Image 1" src="../../baContent/image1.jpg" /></a>
<a cla... | javascript jquery | [3, 5] |
5,596,396 | 5,596,397 | Minimize jQuery Function | <p>I have a function that adds change events for form items based on the row name(uses the database to get these).</p>
<p>Heres the current function:</p>
<pre><code> $sql = "SELECT * FROM product WHERE storeno = '1' ORDER BY descript";
$result = mssql_query($sql, $msConnection);
if ($result && mss... | php javascript jquery | [2, 3, 5] |
5,309,175 | 5,309,176 | Reset number to 1 if number is over than 10 | <p><code>num</code> is a variable which is dynamically changed within 1 to 9.</p>
<p>I must update the value in HTML for example let say the <code>num</code> is 6,</p>
<p>i need to set 1st field as 6, second field as 7, third field as 8 and so on</p>
<p>in simple version, <strong>6, 7, 8, 9, 1, 2, 3, 4, 5</strong></... | javascript jquery | [3, 5] |
3,196,339 | 3,196,340 | selecting textViews and getting their values | <p>I am trying to accomplish following things</p>
<p>Suppose I have 5-6 <code>TextViews</code> with values <code>S N A K E</code> </p>
<p>Now, I want to press <code>S</code> textView then slide my finger over <code>N</code> to select it too and then move my way to E. I want to do that so that i can get "<code>SNAKE<... | java android | [1, 4] |
2,193,559 | 2,193,560 | How to get different string values depending on the locale? | <p>I have an app which shows html files from assets folder. I would like to translate some files.
For example I have files in folder assets/fr for french users and in assets/en for others.</p>
<p>Here is the line which I want to change:</p>
<pre><code>String htmlFileName = "m" + bundle.getString("defStrID") + ".html"... | java android | [1, 4] |
5,554,864 | 5,554,865 | History.go(-1) not working in IE | <p>I have a go back button and i have used the following piece of code in my aspx page</p>
<p><code><input type="button" runat="server" value="Back" onclick="Javascript:history.go(-1); return=false;" /></code></p>
<p>The prob is its working fine in Firefox but when i am trying it in IE its not working. Can some... | javascript asp.net | [3, 9] |
1,993,595 | 1,993,596 | syntax error T_PAAMAYIM_NEKUDOTAYIM! | <p>buy.php:</p>
<pre><code><form action="cart.php" method="post">
<?php foreach($product['varieties'] as $variety): ?>
<input style="width:10px; margin-left:9px; " name="price[]" type="checkbox" value="<?php echo $variety['price'] . '_' . $variety['size']; ?>" />';
<?php end foreach; ?&... | php javascript | [2, 3] |
2,550,926 | 2,550,927 | Can I give a 'web address format' to my local host application | <p>I host a local application on my machine which i provide access on network by normally type "http://computername/app". Can I change it to a real web address format "www.myapplication.org" for my local hosting.</p>
<p>I would appriciate for every of your suggestion.</p>
<p>vic,</p>
| c# asp.net | [0, 9] |
875,182 | 875,183 | Why is this JS variable being run on page load | <p>I don't understand why <code>MC.caro.myTimer()</code> is being run on a page load, its a variable. So how is this getting run without me calling it.</p>
<p>I thought it might be something to do with my auto executing function? </p>
<pre><code> var MC = {};
(function($){
"use strict";
MC... | javascript jquery | [3, 5] |
4,119,920 | 4,119,921 | How to Hide page Header and page footer in reportviewer (RDLC) with visual Studio 2010 | <p>In my .rdlc report I need to hide the page header and footer on my web page. But when i print the report , i want to display the page header and in footerin my report(.rdlc).</p>
| c# asp.net | [0, 9] |
4,197,570 | 4,197,571 | How to hide an ACTIVITY to call another ACTIVITY and run it on background and show it again? | <p><em>*</em>*I'm working on an android project, where I have to give a facility of reading eBook while listening audio songs on Samsung tab(Android 3.2 and above). For that I need to hide the audio player view to go to the file browser to select eBook. </p>
<p>I need your help to find out, how to hide the <strong>Aud... | java android | [1, 4] |
3,296,560 | 3,296,561 | Add <br> tag in asp.net gridview column data | <p>I am working on gridview and I am binding the data from code behind</p>
<p>Dim dataTblRep As New DataTable
Dim dataRowRep As DataRowdataRowRep = dataTblRep.NewRow</p>
<pre><code>dataRowRep("Batch Number") = "Totals : "
dataRowRep("Batch details") = "A" & <br/> & "B"
dataRowRep("Completed Docs") = To... | c# asp.net | [0, 9] |
2,251,706 | 2,251,707 | Request.Url.Port giving wrong port | <p>I am given a Live IP from my support team something like <code>http://201.121.152.168:68/</code>. Now in normal circumstances you would think 68 is the port. However when I do a Request.Host I get <code>201.121.152.168</code> and when I do Request.Port I get <code>80</code>. So where did the number 68 go? It's neith... | c# asp.net | [0, 9] |
1,345,637 | 1,345,638 | Get values of multiple buttons via JQuery | <p>I want to do something when a certain button is pressed via JQuery and PHP. The problem is however, the buttons on my page are dynamically generated, all with different values. So it could be three, four buttons,...etc.</p>
<p>The two main problems are:</p>
<p>1) Only the first button is recognized by Javascript, ... | php jquery | [2, 5] |
5,047,956 | 5,047,957 | How to hide my dynamicly created divs? | <p>I have created a script that creates divs based on number of li elements and that part is working fine. Now what I would like to do is to <b>hide these div's</b> (dynamicly created) but it is not working. Can someone tell me what I am doing wrong here? THX!!
<br/><a href="http://jsfiddle.net/utTre/" rel="nofollow">F... | javascript jquery | [3, 5] |
796,725 | 796,726 | Is it possible to send response from php server to iphone? | <p>i am posting form from iphone to php, where data is collected and inserted to database.how should i get response from server that data is success fully inserted in tables?</p>
| php iphone | [2, 8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.