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 |
---|---|---|---|---|---|
898,026 | 898,027 | programming question on asp.net and javascript using radio button and textbox and file upload | <p>Hi
I have two radio button,one text box and one file upload.I want when first radio button is checked then text box is required and if i checked second radio button then file upload is required in asp.net.I set two required field on both text box and file upload.
Is it possible using java script that one radio button and text box or second radio button and file upload will be activated, if yes then what is the code.
Please help me.
Any help is important.
Thanks.</p>
| c# javascript asp.net | [0, 3, 9] |
3,029,992 | 3,029,993 | Getting "Error on page" error in internet explorer 7 | <p>I have created a page in javascript and in it i created an infragestics grid control which i can display the data for a search criteria. The C# code is working fine. It is reading the data from the database but not displaying the results on the web page. The page loads with a yellow mark at the corner saying "Error on page". what to do? is it a code issue or browser problem. Hoe can fix it.. please help</p>
| c# javascript | [0, 3] |
3,694,132 | 3,694,133 | How to detect if video is currently playing in page without using youtube/ggole api | <p>Situation: I have a page that shows a stream of posts (news) submitted by our members. I have a setInterval() in this page that causes it to refresh every x seconds - if user is idle for x seconds. </p>
<p>Recently I have added video posts where user can click on an item and video would begin to play immediately in the page (so far I'm only using youtube iframes).</p>
<p>The problem: my auto refresh sometimes refreshes the news content while user is watching a video and being "idle"... which causes video to close and content to reset...etc. Meaning, user will loose his/her position in the video and have to start over.</p>
<p>My question: how do I detect if this page has at least one video that is currently "playing"? I'd like to use this to decide if auto refresh should occur or not.</p>
<p>Note: I'm not currently in favor of using the custom player or google/youtube js api because soon I will be adding support for videos from other services such as vimeo, 56.com...etc.</p>
<p>Question rephrased: is there a "universal" javascript or jquery method to detect if a video is currently playing in the document or window?</p>
<p>Thank you!</p>
| javascript jquery | [3, 5] |
2,382,114 | 2,382,115 | jquery animate the page background-color on page load | <p>I'm attempting to just change the background colour of a webpage upon page load. I see no reason why this shouldn't work, "body" is the correct element I wish to manipulate. I am using <a href="http://docs.jquery.com/UI/Effects/animate" rel="nofollow">http://docs.jquery.com/UI/Effects/animate</a> as a reference.</p>
<pre><code>$(document).ready(function(){
$("body").animate({ backgroundColor: "#000000" }, 1000);
});
</code></pre>
| javascript jquery | [3, 5] |
1,558,517 | 1,558,518 | Calling a javascript library from ASP.NET | <p>This is a fairly newbie question I'm sure. I'm looking at replacing our server side charting library with the open source javascript library 'flot'. I can use ASP in the javascript used to call the library as per the following example</p>
<pre><code><div id="placeholder" style="width: 600px; height: 300px;">
</div>
<script type="text/javascript">
$(function () {
var d = [<%
for (var i = 0; i < 10; i++) {
if(i > 1)
Response.Write(",");
Response.Write("[" + i + "," + Math.Sin(i) + "]");
}%>];
$.plot($("#placeholder"), [d]);
});
</script>
</code></pre>
<p>This works a charm but what I really need to do is display data from a method in my code behind file (and ultimately a database). A quick Google suggests that I need to use AJAX to accomplish this but I would like to do it on page load.</p>
<p>It strikes me as something that should be simple to do but then I am relatively new to web development (I'm a windows forms developer by trade and an MS Certified one at that so I know my way around C#).</p>
<p>Any help or pointers would be greatly appreciated.</p>
<p>Cheers,</p>
<p>Neil.</p>
| javascript asp.net | [3, 9] |
5,468,010 | 5,468,011 | Timer with interval alert | <p>I have a jquery timer on my page that counts down from 10 to 0. At 5 seconds I want to show a warning message then at 0 seconds I want to show another message. </p>
<p>I have used the code below which will do the count down in the form field as well as give the alerts, however the countdown stops when the alerts show:</p>
<pre><code>$(function(){
var count = 10;
countdown = setInterval(function(){
$("#Exam_Timer").val(count + " seconds remaining!");
if (count == 5) {
alert('Only 5 Seconds Left');
}
if (count == 0) {
alert('Times Up')
}
count--;
}, 1000);
});
</code></pre>
<p>Can someone let me know how I would restructure this so that the alerts do no stop the countdown?</p>
<p>I tried putting the alert into a separate function but that did not help. I have created a Fiddle:</p>
<p><a href="http://jsfiddle.net/CQu7T/" rel="nofollow">http://jsfiddle.net/CQu7T/</a></p>
| javascript jquery | [3, 5] |
4,130,476 | 4,130,477 | jquery trying to achieve mouse direction & angle | <p>Im trying to do a mouse direction + angle script just like the game "Pixel". I want to be able to move the element around with my mousemove event and have the element feel the direction and point its tip towards it. I cant seem to understand how the method works, I tried several different approaches to figure out the direction of the mouse movement to an angle but none worked. Here is an example of the game, of course its in flash but the method should be possible in jquery. <a href="http://www.agame.com/game/pixel.html" rel="nofollow">http://www.agame.com/game/pixel.html</a></p>
<p>if anyone every came across a jfiddle for this or knows a good approach let me know.</p>
<p>EDIT*</p>
<p>I tried this below and it almost works but only when the direction of the mouse is moved left and right. Up and down seems to be in-versed and flipped</p>
<pre><code>var follow = $(".you");
var xp = 0, yp = 0;
var loop = setInterval(function(){
xp += (mouseX - xp) / 5;
yp += (mouseY - yp) / 5;
follow.css({left:xp, top:yp});
}, 15);
var lastx = 0;
var lasty = 0;
var img = $('.you');
var offset = img.offset();
function mouse(evt){
var mouse_x = evt.pageX; var mouse_y = evt.pageY;
var degree=getDirection(lastx,lasty,mouse_x,mouse_y);
lastx=mouse_x;
lasty=mouse_y;
img.css('-moz-transform', 'rotate('+degree+'deg)');
img.css('-webkit-transform', 'rotate('+degree+'deg)');
img.css('-o-transform', 'rotate('+degree+'deg)');
img.css('-ms-transform', 'rotate('+degree+'deg)');
}
$(".field").mousemove(mouse);
function getDirection(x1, y1, x2, y2,ns)
{
var dx = x2 - x1;
var dy = y2 - y1;
return (Math.atan2(dx, dy) / Math.PI * 180);
}
</code></pre>
| javascript jquery | [3, 5] |
4,840,293 | 4,840,294 | Retrieve row number based on value in DataTable | <p>I want to know the exact row number and I'm using this code</p>
<pre><code>DataRow[] resultsize = dt.Select("psize like '%" + hdncurrentsize.Value + "%'");
</code></pre>
<p>but result is always <code>1</code> but not the exact matching row number.</p>
| c# asp.net | [0, 9] |
4,269,596 | 4,269,597 | How to set a view state in a master page? | <p>I need to check whether an event is fired from the master page or not. For that i kept a count in the viewstate . This is throwing exception on page load. I'm just calling the below line in a pageload</p>
<pre><code>Int32 count = Int32.Parse(this.ViewState["Count"].ToString());
</code></pre>
<p>Please help.</p>
| c# asp.net | [0, 9] |
979,232 | 979,233 | JQuery wait a number of seconds before the next line of code is executed | <p>I need a simple way or pausing a few seconds before the next line of code is executed.</p>
<p>So I have:</p>
<pre><code>$('.myClass').show();
//WAIT FOR 5 SECONDS HERE
$('.myClass').hide();
</code></pre>
| javascript jquery | [3, 5] |
146,496 | 146,497 | Android java Screen as an button | <p>How can I make the screen as a button?
I want to make a game where you click on the hole screen not just a button in Xml.
I want this code to be in Java not Xml.
Anyone with a tip out there?</p>
| java android | [1, 4] |
1,648,008 | 1,648,009 | What is unique identity of an Internet connected device IP / MAC? | <p>I am making a script that show popup only one time , then it will never show again on that device.. </p>
<p>How is it possible to do this?</p>
<p>I have already tried by using cookies, but these can be deleted by the user and so the effect is limited.</p>
<p>Another question is what is wholly unique per device, IP Address or MAC Address?</p>
| php javascript | [2, 3] |
598,941 | 598,942 | jQuery limit sortable to parent table row | <p>So I have a table which has several categories, with several items underneath in each category.</p>
<p>Something like: </p>
<pre><code> <tr>
<td>Category1</td>
</tr>
<tr>
<td>Item1<td>
</tr>
<tr>
<td>Item2</td>
</tr>
<tr>
<td>Item3</td>
</tr>
<tr>
<td>Category2</td>
</tr>
<tr>
<td>item1</td>
</tr>
</code></pre>
<p>I want to be able to sort each "item" within its category only. So "item1" inside "category2" should not be able to be dragged to "category1". Not really sure how to accomplish this.</p>
| javascript jquery | [3, 5] |
5,620,507 | 5,620,508 | Issue with text area key down event using jQuery | <p>We're having problems trying to implement a word counter similar to the one on twitter which decrements when the user types in the text field. Unfortunately it's quite glitchy as once you've deleted all the characters via backspace it displays that you only have 84 characters left (unless you hit backspace again). If you it the delete button the counter goes down even when it has removed nothing from the screen at the end of the text(I'm guessing it removes the 'invisible' character that is causing it to say 84 instead of 85 in the example before). All I want if for it to operate like the one on twitter</p>
<pre><code>/* Limit textarea for cancelation policy to 85 characters*/
$('.counter').text(85-($('#txtCpolicy').val().length));
$('#txtCpolicy').keydown(function(e) {
var current = $(this).val().length;
$('.counter').text(85 - ($('#txtCpolicy').val().length));
if(current >= 85) {
if(e.which != 0 && e.which != 8) {
e.preventDefault();
}
}
});
</code></pre>
<p>Hope you can help</p>
| javascript jquery | [3, 5] |
3,797,692 | 3,797,693 | Switch Membership Profile to other Profile without password? | <p>I've an application where every user stores his settings with the AspNetSqlProfileProvider in the aspnet_Profiles table. Now I want to give the administrator the possibility to switch to another user to see his settings. But I don't know the windows password of the other user (and I don't want to know it) so I'm not able to use the windows impersonate function, right?</p>
<p>So is there any possibility to switch to another user profile without password?</p>
<p>Thanks!</p>
| c# asp.net | [0, 9] |
3,321,507 | 3,321,508 | How to run android emulator with sd card | <p>HI,</p>
<p>I download and build android 1.5r3 source.
I did 'lunch 1' and then 'make'.</p>
<p>And when it is done, I run my emulator like
out/host/darwin-x86/bin/emulator -sdcard sd256m.img</p>
<p>But when I click 'Gallery', it said 'No Media Found'.
I am sure the sd card i created (sd256m.img) has images in there.</p>
<p>Can you please tell me why I don't see any images in the sd card?</p>
<p>Thank you.</p>
| java android | [1, 4] |
5,393,290 | 5,393,291 | Listview cacheColorHint having problem? | <p>I'm trying to scroll the item in listview. It works properly with (android:cacheColorHint="#00000000"). But, now i want to scroll with selecting item only should change it's color like orange. How to do this? Is it Possible? Thanks in Advance.</p>
| java android | [1, 4] |
3,127,882 | 3,127,883 | android Toast and View help | <p>I am trying to create a Helper class to display Toasts in my android app, as follows.</p>
<p>public class ToastHelper{</p>
<pre><code>final static Toast toastAlert(String msg) {
LayoutInflater inflater = LayoutInflater.from(Main.self.getApplicationContext());
View layout = inflater.inflate(R.layout.toast_layout, (ViewGroup) findViewById(R.id.toast_layout_root));
TextView tv = (TextView)layout.findViewById(R.id.toast_text);
tv.setText(msg);
Toast toast = new Toast(Main.self.getApplicationContext());
toast.setDuration(Toast.LENGTH_SHORT);
toast.setView(layout);
return toast;
}
</code></pre>
<p>}</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toast_layout_root"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip"
android:background="#FFF"
>
<TextView android:id="@+id/toast_text"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:textColor="#000"
/>
</code></pre>
<p></p>
<p>My code is based on the example at: <a href="http://developer.android.com/guide/topics/ui/notifiers/toasts.html" rel="nofollow">http://developer.android.com/guide/topics/ui/notifiers/toasts.html</a></p>
<p>My problem is, when I try to inflate the view, I can't call findViewById without the View from the activity I am calling toastAlert in. Is there a way I can access that view?</p>
| java android | [1, 4] |
1,792,872 | 1,792,873 | Display exception message through javascript alert in asp.net | <p>I am trying to show exception message through javascript alert box.</p>
<p>Here is the sample code.</p>
<pre><code>public static void HandleException(Page page, Exception ex)
{
string message = ex.Message.ToString();
ScriptManager.RegisterClientScriptBlock(page, page.GetType(), "", "alert('"+message+"');", true);
}
</code></pre>
<p>It runs if i give literal values for the string variable.
e.g.</p>
<pre><code>string message = "Hello World";
</code></pre>
<p>But it fails if I give message = ex.Message;</p>
<p>Any Idea?</p>
| c# javascript asp.net | [0, 3, 9] |
533,245 | 533,246 | How can I get a HTML data value as a string with jQuery? | <p>I have the following in my source HTML:</p>
<pre><code><li><a href="#" data-value="01">Test</a></li>
</code></pre>
<p>I want to get the value of the data attribute so I am using the following:</p>
<pre><code>var abc = $(this).data('value');
</code></pre>
<p>This works okay BUT not if there is a leading zero. For example the above
placed the value "1" into abc. </p>
<p>Is there a way that I can get it not to convert the "01" into "1" ?</p>
| javascript jquery | [3, 5] |
5,894,608 | 5,894,609 | Is Android's JavaScript environment documented? | <p>I'm looking for a JavaScript reference for Android's JavaScript environment, the objects provided by the browser, similar to the Mozilla Developer Center. Where is it?</p>
<p>I'm really looking for the browser documentation, specifically which XMLHttpRequest extensions have been implemented.</p>
| javascript android | [3, 4] |
5,101,420 | 5,101,421 | How to use object in javascript or jquery | <p>I need to create object parameter some thing like this </p>
<pre><code>sample_data=[{
name: 'new',
data: [1, 0, 2, 8, 1]
}, {
name: 'open',
data: [1, 2, 3, 7, 1]
},{
name: 'closed',
data: [5, 4, 3, 1, 1]
},{
name: 'onhold',
data: [1, 1, 2, 0, 1]
}, {
name: 'completed',
data: [0, 0, 5, 1, 2]
}];
</code></pre>
<p>I had totally 6 arrays all the name parameters in array1 and all data parameters in another arrays. </p>
<p>Is there any option to built object as my requirement above, using arrays that i have</p>
<p><strong>My arrays:</strong></p>
<pre><code>name_array=Array("new","open","closed","onhold","completed");
new_data=Array(1, 0, 2, 8, 1);
open_data=Array(1, 2, 3, 7, 1);
closed_data=Array(5, 4, 3, 1, 1);
onhold_data=Array(1, 1, 2, 0, 1);
completed_data=Array(0, 0, 5, 1, 2);
</code></pre>
<p>Help me how to create object using these array in javascript or jquery.</p>
| javascript jquery | [3, 5] |
5,380,699 | 5,380,700 | Dropdown HTML form's Plug-in(Sparbox) doesn't work inside the lightbox(prettyPhoto) | <p>I am using prettyPhoto plug-in and it works fine. I added a new plug-in, Sparbox for customizing an HTML form. This works outside the lightbox but not inside. <br/></p>
<p>Please take a look. At the bottom you can see the dropdown menu works just fine but when you click on upload at top and the lightbox shows up the dropdown menu inside doesn't work when you click on it. I've been trying different plug-ins for customizing the form but it seems the problem is prettyPhoto. <br/>
This is the URL <a href="http://melt.li/UTvr" rel="nofollow">http://melt.li/UTvr</a> <br/>
I will appreciate any help...</p>
<p>Thanks!</p>
| javascript jquery | [3, 5] |
1,329,546 | 1,329,547 | How to set Timed splash screen or image at website startup? | <p>I need an image or a splash screen at website startup and it have to close after 5 seconds and redirect to main page.
How to achieve this in asp.net ?</p>
| c# javascript asp.net | [0, 3, 9] |
179,511 | 179,512 | group trs for hover | <p>is there a way to group tr's in a table so when you hover over lets say five of them the hover function is fired?</p>
<p>I can do this individually but I would like 5 rows to act as one group. So anywhere in that 5 rows the hover is in affect. When you hover out it goes away. </p>
<p>I am currently using this for individual rows.</p>
<pre><code>$('#second_step tr').hover(function(){
$(this).css('background','#eff0ef');
},function(){
$(this).css('background','#fff');
});
</code></pre>
| javascript jquery | [3, 5] |
3,350,688 | 3,350,689 | Create array of values from array of objects | <p>Is there any tool to to create: </p>
<pre><code>[ 'John', 'Sam', 'Marry' ]
</code></pre>
<p>from:</p>
<pre><code>[ { name: 'John' }, { name: 'Sam' }, { name: 'Marry' } ]
</code></pre>
<p>?</p>
| javascript jquery | [3, 5] |
304,860 | 304,861 | How to find Ajaxfileupload control inside Listview When in Editmode | <p>I'm trying to find ajaxcontroltoolkit:ajaxfileupload which is placed inside a ListView in EditItemTemplate mode.
I need to say i already tried to find this control in my ListView in these two events without result: ItemEditing and ItemDataBound.
Should I forget to use ajaxfileupload inside ListView or GridView? or is there any solution for this problem?!</p>
| c# asp.net | [0, 9] |
5,951,761 | 5,951,762 | problem adding javascript to control | <p>i am using this script in .cs page..</p>
<pre><code>public void messagebox(string msg)
{
Label lbl = new Label();
lbl.Text = "<script language='javascript'>" + Environment.NewLine + "window.alert('" + msg + "')</script>";
Page.Controls.Add(lbl);
}
</code></pre>
<p>error as</p>
<p>The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).</p>
| c# javascript | [0, 3] |
2,065,093 | 2,065,094 | Read Status code | <pre><code>conn = (HttpURLConnection) connectURL.openConnection();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestMethod("POST");
conn.connect();
int code = conn.getResponseCode();
</code></pre>
<p>I have successfully established a connection. I am trying to pass the information over the internet.When the url is opened via browser I am getting response as</p>
<pre><code>{"status":"0","responseCode":"1001","response":"Wrong Settings."}
</code></pre>
<p>For correct status is returned as 1.</p>
<p>Is there any method where I can get the status only.I have been trying the following methods but every time I am getting code (below is code snippet) as -1 irrespect of status code when I am verifying manually via browser</p>
| java android | [1, 4] |
4,442,258 | 4,442,259 | facebook share a page in c# | <p>When I click 'Share', then it opens facebook share page in a new tab. I want to show temp.jpg in left bar in this page. How to do this?</p>
<p>test.aspx</p>
<pre><code><div id="page-wrap">
<!-- AnythingSlider #1 -->
<ul id="slider1" style="width: 778px; height: 452px; background:#fff;">
<li>
<div style="float: left; padding-right: 35px; padding-left:50px;">
<img src="../../img/temp.jpg" style="width: 264px;
height: 377px; border: none;" />
<uc:DownloadControl ID="DownloadControl1" runat="server" PageParameters="1" />
</div>
</li>
<li>
<uc:DownloadControl ID="DownloadControl2" runat="server" PageParameters="2" />
...
</code></pre>
<p>DownloadControl.ascx</p>
<pre><code><div style="float: left">
<a class="icerik" id="facebookShare" runat="server" target="_blank">
<img border="0" src="images/facebook.jpg" alt="Resorts"
title="Hotels & Resortss" /> Share </a>
</code></pre>
<p></p>
<p>DownloadControl.ascx.cs</p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
facebookShare.HRef = "http://www.facebook.com/sharer.php?u=http://www.test.com/test.aspx";
}
</code></pre>
| c# javascript jquery asp.net | [0, 3, 5, 9] |
2,444,057 | 2,444,058 | What does <?> mean in Android? | <pre><code>public void onItemClick(AdapterView<?> parent, View v, int pos, long id)
</code></pre>
<p>What is the meaning of <code><?></code> in the above code?</p>
| java android | [1, 4] |
91,672 | 91,673 | Javascript splitting | <p>lets say i have this variable</p>
<pre><code>var image = "image.jpg";
</code></pre>
<p>I'm trying to split the content of the variable image and insert _thumbs into it to get something like <code>image_thumbs.jpg</code>.</p>
<p>How do i go about this?
Many Thanks.</p>
| javascript jquery | [3, 5] |
5,336,855 | 5,336,856 | Accessing each CalendarDay in Calendar Control without using the DayRender Event | <p>I need to manipulate the appearance of the an ASP.NET calendar control. I have data that I need to display on the calendar control but I don't want to access the data from within the DayRender event. How do I access the CalendarDay object that represents each day in the calendar without being within the DayRender event?</p>
| c# asp.net | [0, 9] |
5,490,237 | 5,490,238 | PHP/Javascript: Restart Form Button Isn't Working, Code Insde | <p>Basically I want a confirmation box to pop up when they click the button asking if they sure they want to restart, if yes, then it destroys session and takes them to the first page. Heres what i got...</p>
<pre><code>echo "<form id=\"form\" name=\"form\" method=\"post\" action=\"nextpage.php\">\n";
echo " <input type=\"button\" name='restart' value='Restart' id='restart'
onclick='restartForm()' />";
</code></pre>
<p>and for the script...</p>
<pre><code><script type=\"text/javascript\">
<!--
function restartForm() {
var answer = confirm('Are you sure you want to start over?');
if (answer) {
form.action=\"firstpage.php\";
session_destroy();
form.submit();
} else
alert ('Restart Cancelled');
}
// --
</script>";
</code></pre>
<p>EDIT: Note that pressing the button brings up the confirm box, but if you click okay nothing happens sometimes. Sometimes if u click cancel it still submits the form (To the original action)</p>
| php javascript | [2, 3] |
3,445,456 | 3,445,457 | Getting a Syntax/Parse error when using jQuery in Velocity | <pre><code><script type="text/javascript>
(function($, win) {
function mySettingsInitJS () {
var self = this;
var opts = {
'params' : "userId=" + userId;
};
self.init = function() {
self.initUnlinkAction();
};
self.initbtnAction = function() {
$('#Btn').click(self.btnAction);
};
self.btnAction = function(e) {
if(e) { e.preventDefault(); }
jQuery.post(
'http://abc/rest/PostRequest',
opts.params, function(data) {
alert('This worked!');
}, "json");
};
}
function win.MyFilesSettingsInitJS = new MyFilesSettingsInitJS();
}(jQuery, window));
</script>
</code></pre>
<p>I have this this script in a velocity template page and a Btn also in it. Which is basically a fancy Link. I am also sure the rest API on the server side is working fine. But somehow my java script function is not called. Could some one please help me ? </p>
| javascript jquery | [3, 5] |
4,414,886 | 4,414,887 | In Java what is idomatically most similar to raising a Python ValueError? | <p>If I were writing a Python function which received an argument with the correct type, but a value out of bounds, then I might throw a ValueError or one of it's sub-classes.</p>
<p>For example, suppose I had a function which added up the prices on an invoice. If one of the prices had a negative value or one of the item-counts was not positive and non-zero I might raise VE.</p>
<p>My current project is in Java, but the situation is the same:</p>
<p>A pricing function accepts only numbers within a specific range - what's the most sensible kind of exception object to throw that tells another Java developer their input is out of that sensible range?</p>
| java python | [1, 7] |
4,786,760 | 4,786,761 | JQUERY: Dynamic AJAX and html element removal | <p>Consider this code:</p>
<pre><code><tr>
<td>
<input type="checkbox" name="20081846" value="20081846" class="chk-input">
</td>
<td>20081846</td>
<td>AGONOY, JAY TAN</td>
</tr>
</code></pre>
<p>Let's say I have N of these in a table (with different sets of data). What I am planning is, if the user checks the input box, it will delete the users are checked. I got it using this JQUERY </p>
<pre><code>var del_users = function(btn,chk,url) {
$(btn).click(function(){
$(chk).each(function(){
if($(this).attr('checked') == 'checked') {
//pass code data
}
});
});
}
</code></pre>
<p>Which works, I just have to do the function that deletes the data. </p>
<p>My next problem is, once the data is deleted, I want the row displayed in the table to be removed in the display. Other than refreshing the entire entries, is there a way to selectively remove the checked "tr" elements?</p>
| javascript jquery | [3, 5] |
1,145,740 | 1,145,741 | trouble accessing working HTTPService from Android | <p>I have a working .Net WCF HTTP service. If I put the URL into I.E, FireFox, or google Chrome browsers, I get back the correct stream. But when I try to access that same service in an android app (running in Eclipse) I get a socketException with the detail message "Permission Denied". The service is running on my machine in the Visual Studio web hoster and the client is running in the android emulator also on my machine.</p>
<p>The line that gets the exception is:
InputStream in = new BufferedInputStream(urlConnection.getInputStream()); </p>
<p>(I have an earlier post on this same program where the url is www.android.com and I'm getting "invalid url")</p>
<p>Might anyone have a clue why the browsers have no problem with it and the android client is getting permission denied?
thanks,
Gary</p>
<pre><code> HttpURLConnection urlConnection = null;
try
{
URL url = new URL("http://localhost:8080/TeamTask/Tasks");
urlConnection = (HttpURLConnection) url.openConnection();
InputStream in = new BufferedInputStream(urlConnection.getInputStream());
readStream(in);
}
catch (MalformedURLException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
catch (IOException e)
{
e.printStackTrace();
}
</code></pre>
| java android | [1, 4] |
5,583,166 | 5,583,167 | Is there really no way to programmatically click a link using PHP? | <p>I have been trying for a while now trying to figure out how to programmatically click a link using PHP and/or javascript. I have it setup so if the user clicks a link it will refresh a table. You don't really need to know why I want to do this b/c then it will go down a whole long road of confusion. Just know that there is a link to be clicked and I really really want to programmatically click that link using PHP and/or javascript. </p>
<p>Is there really no way to do this?</p>
<p>Edit: The code where I need to put the auto-click is in PHP, which would have to create and trigger some javascript or jquery or whatever.</p>
<p>Edit 2: Ok, now that you're all confused ... the real problem is that I have a Drupal form that has a property set to use AJAX when submitting. So the submission is done using the jquery plugin that is a module for Drupal. The AJAX setting is just an attribute setting and I do not have access to the underlying code that goes along with the submission of the form. Which forces me to have to refresh the table after the button is clicked. I really wish I could just attach the refreshing to the button click event for the submit of the form. But since I don't have access to that code I don't believe it's possible.</p>
| php javascript | [2, 3] |
1,358,924 | 1,358,925 | how to sum values in each row of a column of html table generated from database in jsp using javascript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6931775/how-to-sum-columns-of-html-table-generated-from-database-in-jsp-using-javascript">how to sum columns of html table generated from database in jsp using javascript?</a> </p>
</blockquote>
<p>hey i want to sum all the values in one column of html table and get total at the bottom. I am working on jsp. The values in each block is pulled from database so there are no values which have been feeded into the table manually. </p>
<p>I have seen few javascript code which sums the column values but those tables have data which was written manually. for eg 1321 1213654
But my table in jsp page has rows something like this: - <%=size%> <%=area%> where area and size are variables who carry value which was pulled from database.</p>
<p>Can anybody suggest me solution with code? thanks</p>
| java javascript | [1, 3] |
446,881 | 446,882 | Storing String on array java | <p>I want to know if is it possible to Store a String variable on a String array?
I cant explain it well but here is what i do:</p>
<pre><code> String st1 = "",st2 = "",st3 = "",st4 = "";
String[] str = {st1,st2,st3,st4};
</code></pre>
<p>Unfortunately when i use for loop the str gets the value of st1 and st2 and st3 ans st4 not the variable it self..</p>
<p>This is what i want to do exactly on my mind..
Whenever a have a String array for example:</p>
<pre><code>String[] containsValue = { "hi", "hello", "there" };
String strHi, strHello, strThere;
String[] getContainsValue = { strHi, strHello, strThere };
for (int x = 0; x < getContainsValue.length; x++) {
getContainsValue[x] = containsValue[x];
}
The value of:
strHi = "hi"
strHello = "hello"
strThere = "there";
</code></pre>
<p>Basically i want to transfer that value of containsValue[] to 3 String which is strHi, strHello, strThere that are stored in getContainsValue[]. Then use for loop to asign value to them came from containsValue[].
Is this posible? If so then can you give me some format how to do it? thanks..</p>
| java android | [1, 4] |
5,620,754 | 5,620,755 | Jquery increment numbers with a limit of 5 | <p>I'm adding text fields with a onclick. What I'm trying to do is limit the amount of boxes to about 5.</p>
<p>I also need to increment the number to use as an ID.</p>
<p>my code: </p>
<pre><code>jQuery('#add_slider_image').click(function() {
var i = 0
var plus = ++i;
jQuery('.form-table').append("<tr><td><input type'text' value='' name='slider[]' /><input type='button' name='sliderbut' value='Upload' id='button' rel='"+ plus +"' /></td><tr>");
var count = jQuery.('#button').attr('rel');
if(count=5){
alert('Limit reached');
}
})
</code></pre>
<p>THanks</p>
| javascript jquery | [3, 5] |
286,883 | 286,884 | jQuery access parent object attribute? | <p>So I have this code:</p>
<pre><code>function theObject(){
this.someelement = $("#someelement");
this.someotherelement = $("someotherelement");
this.someelement.fadeOut(500, function(){
this.someotherelement.attr("title", "something");
this.someelement.fadeIn(500);
});
}
</code></pre>
<p>for some reason <code>this.someotherelement</code> is undefined. I'm guessing because it's wrapped in a <code>function(){}</code>?</p>
| javascript jquery | [3, 5] |
2,788,610 | 2,788,611 | ASPX Accessing master page function | <p>I am trying to access a function placed in master page code-behind from another ASPX page as follows.</p>
<p>Main.master.cs:</p>
<pre><code>public partial class Main : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
...
}
public static bool test()
{
return true;
}
}
</code></pre>
<p>Product.aspx:</p>
<pre><code><%@ Page Language="C#" MasterPageFile="~/Main.master" EnableEventValidation="false"
AutoEventWireup="true" ValidateRequest="false" CodeFile="Product.aspx.cs" Inherits="Common_Product" Title="Product" %>
...
<asp:Label id="test123" runat="server" />
</code></pre>
<p>Product.aspx.cs:</p>
<pre><code>using SiteABC.Accelerate;
public partial class Common_Product : SiteABC.Accelerate.SerializePageViewState
{
private void Page_Load(Object sender, EventArgs e)
{
Main cm = (Main)Page.Master;
test123.Text = "yo | " + cm.test();
}
}
</code></pre>
<p>This results in a compiler error:</p>
<pre><code>Compiler Error Message: CS0176: Member 'Main.test()' cannot be accessed with an instance reference; qualify it with a type name instead
</code></pre>
<p>What is wrong in this scenario?</p>
<p>Thank you.</p>
| c# asp.net | [0, 9] |
4,365,099 | 4,365,100 | Android 2.3X kills Apps into the Background | <p>I always used Android 2.2 for my Apps. But currently I upgraded to Android 2.3.X Gingerbread. So if I start my App and go back to the android "desktop", the app is kill by 3-4 Minutes.</p>
<p>I think it will be killed after some minutes inactivity, but I need to run it in background to read some mobile status. </p>
<p>How can I set my App as a "Background" App, so that Android will not longer kill it?</p>
<p>Thanks for Help...</p>
<p>Regards, Rookee</p>
| java android | [1, 4] |
3,421,352 | 3,421,353 | load function after page_load | <p>How to load a function after page load is completed?<br>
I mean after rendering is completed or after the aspx file loaded i need to call a function: </p>
<pre><code>void create_doc()
{
create_word();
}
</code></pre>
<p>when loading the page Im assigning some values to lables.. After loading the page i need to read the whole page and save it into a word doc </p>
| c# asp.net | [0, 9] |
2,713,527 | 2,713,528 | How can I wait a while and then change variable? | <p>I have a little code using jquery and I want to wait like, 300ms and then change a variable. I tried setTimeout but it wouldn't work, it just made the variable change instantly.</p>
<pre><code>setTimeout(animationWait = 0, 300);
</code></pre>
<p>(I defined animationWait earlier globally in the document) Basically what I'm trying to do is wait for a click to end before another click can be done. So i thought I'd set a variable and then wait 300ms, </p>
<pre><code>$('#up-arrow').live('click', function(e) {
if(animationWait == 0) {
animationWait = 1;
.... /* Code */
}
}
</code></pre>
<p>So I need to change the animationWait back to 0 again after a delay to run the code. I've tried a bunch of stuff but it's still not working, any ideas?</p>
| javascript jquery | [3, 5] |
1,637,531 | 1,637,532 | jquery animation issue in IE | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6139924/jquery-not-proceeding-to-next-page">jquery not proceeding to next page</a> </p>
</blockquote>
<p>I have jquery, it works fine in FF, but issue is with IE, image is loading but animation is not happening.</p>
<p>html source code:</p>
<pre><code><SCRIPT type="text/javascript">
var $ = jQuery.noConflict();
$('#toHide').show().doTimeout(100,function() {
$('#toHide').find('safeForma3').submit();});
</SCRIPT>
</code></pre>
<p>html code: </p>
<pre><code><div id="toHide" class="pb-text-align-center">
<img style="display: inline" src="img/load.gif" />
<form wicket:id="safeForm" class="clearfix">
<input type="hidden" wicket:id="submitted" value="false" />
</form>
</div>
</code></pre>
<p>goto this link <a href="https://admit.belgacom.be/WCE/ESW/selectBundle/productId/hbs_pstn_int_comf" rel="nofollow">https://admit.belgacom.be/WCE/ESW/selectBundle/productId/hbs_pstn_int_comf</a> and click new customer, street as rue maes, no as 7, postcode as 1000. click continue, in FF iamge with animation is happening, but in IE only images are shown but no animation is happening.</p>
| javascript jquery | [3, 5] |
3,824,477 | 3,824,478 | How to attach Event Listeners to only newly created elements? | <p>When I fire a function I want it to apply listeners just to elements I pass, particular <code>this</code> jQuery element. </p>
<pre><code>addEventListeners(this);
function addEventListeners(el) {
$(el).mouseenter(function() {
$(this).stop(true,true).switchClass("", "HIGHLIGHT", 400, "easeInOutQuad");
});
$(el).mouseleave(function() {
$(this).stop(true,true).switchClass("HIGHLIGHT", "", 400, "easeInOutQuad");
});
}
</code></pre>
<p>It fires from AJAX result:</p>
<pre><code> $.post(url,{el:wartosc_inputa},function(returned) {
var data = $(returned).hide();
$("#listaElementow").prepend(data);
data.slideDown();
loading();
addEventListeners(this);
});
</code></pre>
<p>How to code it good? This code is not passing variables from <code>addEventListeners(this);</code> to function.</p>
| javascript jquery | [3, 5] |
4,970,473 | 4,970,474 | onkeyup instead of on submit | <p>I'm using JTube found over here: <a href="https://github.com/monkeecreate/jTube/blob/master/examples/other/search/index.html" rel="nofollow">JTube at github</a></p>
<p>I'm trying to make a request on keyup instead of on submit. This is the script:</p>
<pre><code> var qsParm = new Array();
function qs() {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++) {
var pos = parms[i].indexOf('=');
if (pos > 0) {
var key = parms[i].substring(0,pos);
var val = parms[i].substring(pos+1);
qsParm[key] = val;
}
}
}
$(function() {
qs();
if(qsParm['search'] == '' || qsParm['search'] == null || qsParm['search'] == undefined)
qsParm['search'] = 'splinter cell';
else
qsParm['search'] = unescape(qsParm['search']);
$('input[name=search]').val(qsParm['search']);
$.jTube({
request: 'search',
requestValue: qsParm['search'],
limit: 10,
page: 1,
success: function(videos) {
$(videos).each(function() {
$('#example').append('<li><a href="'+this.link+'"><img src="'+this.thumbnail+'"><br>'+this.title+'</a> - '+this.length+'</li>');
});
},
error: function(error) {
$('#example').html(error);
}
});
});
</code></pre>
<p>As far as I understand the function is ''qs'' So therefore I tried:</p>
<pre><code>$("input").onkeyup(function(){
qs();
return false;
});
</code></pre>
<p>Did not work. I tried many other things with no success. Help is appreciated.</p>
| javascript jquery | [3, 5] |
2,493,190 | 2,493,191 | How to get hidden field value when check box is checked in a repeater controller? | <p>I have asp.net repeater controller and I am trying to get the value of a hidden field when <code>CheckBox1_CheckedChanged</code></p>
<pre><code><ul id="sortable">
<asp:Repeater runat="server" ID="rep_sortable">
<ItemTemplate>
<li class="ui-state-default">
<span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
<%# DataBinder.Eval(Container.DataItem, "Body") %>
<%# DataBinder.Eval(Container.DataItem, "Completed") %>
<asp:CheckBox ID="chb_com" runat="server" AutoPostBack="True" Checked='<%# DataBinder.Eval(Container.DataItem, "Completed") %>' oncheckedchanged="CheckBox1_CheckedChanged"/>
<asp:HiddenField ID="hf_reminderID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ReminderID") %>'/>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
</code></pre>
<p>c#</p>
<pre><code>protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
foreach()
}
</code></pre>
| c# asp.net | [0, 9] |
565,508 | 565,509 | jQuery: clicking nested elements | <p>I have the following markup</p>
<pre><code><ol>
<li class="ListItem">
<span class="sub">@qItem.CategoryText</span>
<input type="image" src="http://icons.iconarchive.com/icons/tatice/just-bins/256/bin-red-full-icon.png" width="30" class="deleteIcon" name="QuestionId" value="@qItem.Id" />
</li>
</ol>
</code></pre>
<p>and the following script</p>
<pre><code>$(".ListItem").click(function(){
doActionA();
});
$(".deleteIcon").click(function(){
doActionB();
});
</code></pre>
<hr>
<p>When I click in image, it also triggers click of ListItem. I understand this is because image is inside ListItem. but I want ListItem's click not to be fired when image is clicked.
Is there any way to do that ?</p>
| javascript jquery | [3, 5] |
18,462 | 18,463 | session in c# and ASP.net | <p>I've been trying to pass the course_code session value as a parameter but it gives nothing - the page just appears to be blank. I've tried to print the session course_code to check whether it was saved correctly and it was printed correctly. </p>
<p>Also, I'm sure that the SQL stored procedure is written correctly as i've tested it many times and it gives a correct output each time. Can anyone help me?</p>
<pre><code>String ConnStr2 = ConfigurationManager.ConnectionStrings["MyRuMoR"].ToString();
SqlConnection conn2 = new SqlConnection(ConnStr2);
conn2.Open();
SqlCommand cmd2 = new SqlCommand("PollsQ", conn2);
cmd2.CommandType = CommandType.StoredProcedure;
cmd2.Parameters.Add("@code", (string)Session["course_code"]);
SqlDataReader rdr2 = cmd2.ExecuteReader();
</code></pre>
| c# asp.net | [0, 9] |
114,230 | 114,231 | Is Python's C interface faster than JNI? | <p>I was reading <a href="http://stackoverflow.com/q/7699020/165103">What makes JNI calls slow?</a> and I was wondering if Python's C interface is any better than JNI.</p>
<p>I heard that if you want to make certain parts of your python programs faster, or if a certain part of the program was really hurting your program's performance, you write them in C, and make Python call them.</p>
<p>Does the C interface it incur the same costs JNI does? why or why not?</p>
| java python | [1, 7] |
5,004,766 | 5,004,767 | When does an input field value equals '', null or undefined | <p>In which cases do an input field value equals <code>''</code>, <code>null</code> or <code>undefined</code>.</p>
<p>I'm trying to check empty fields</p>
<pre><code>if($('#cur').val() == 'undefined' || $('#cur').val() == '' || $('#cur').val() == 'null'){
alert('Blank');
}
</code></pre>
| javascript jquery | [3, 5] |
701,097 | 701,098 | How to calculate width of an line of text in Jquery? | <p>I am trying to figure out how to calculate just the width of one line of text with jquery.</p>
<p>I have the following text in an string</p>
<blockquote>
<p>"Line 1</p>
<p>Line 2</p>
<p>Line 3</p>
<p>Line 4 Blah</p>
<p>Line 5"</p>
</blockquote>
<p>When testing to find the width of the text which is shown on the page it always shows 77 px from where line 4 is the longest.</p>
<p>The text is put in using Jquery command .append() on the element id #text</p>
<p>the code used for the element is</p>
<pre><code><div id = 'terminal'><pre><span id = 'text'></span></pre>
</code></pre>
<p>How would I calculate just the width of Line 5?</p>
<p>Thanks - Ryan</p>
| javascript jquery | [3, 5] |
785,773 | 785,774 | Create commonly used method for asp.net website | <p>Is it possible to create a function that can be called by multiple different pages in asp.net?</p>
<p>Say for example I have a method that takes two int parameters and adds them together and spits out the result</p>
<pre><code>public int test(int a, int b)
{
return a+b;
}
</code></pre>
<p>If I wanted to use this function on three different pages, how would I do it?</p>
<p>notes:
using C#
.NET 4
Entity Framework</p>
| c# asp.net | [0, 9] |
5,230,385 | 5,230,386 | JavaScript before jQuery | <h3>Duplicate:</h3>
<blockquote>
<ul>
<li><a href="http://stackoverflow.com/questions/122902/what-are-some-of-the-pros-and-cons-of-using-jquery">What are some of the pros and cons of using jQuery?</a></li>
<li><a href="http://stackoverflow.com/questions/215589/should-i-avoid-using-a-javascript-library-while-learning-how-to-write-ajax-client/215599">Should I avoid using a JavaScript library while learning how to write AJAX client code?</a></li>
</ul>
</blockquote>
<p><hr /></p>
<p>I've read it so many times... "I'd learn JavaScript before learning something like jQuery" - but is this really necessary for every situation? Sure, some people like to know what's going on under the hood, but are there any serious negative side effect of heading straight for jQuery tutorials/books? I want to learn something in my spare time and I've decided on jQuery (or JavaScript if anyone can convince me strongly enough).</p>
| javascript jquery | [3, 5] |
1,680,743 | 1,680,744 | Get the name of a prototype constructor inside the constructor itself in javascript | <p>Is it possible to get the name of a class inside the class itself in javascript? It would be useful for recursions on dynamically created classes in my middleware.
Think that was an very improperly post — so I better define the problem I want to solve:</p>
<pre><code>MyClass = function(){
this.classname = ??? // Here is required and needed to store as a property
}
MyClass.prototype.log = function(){
alert(this.classname); // The alert should be MyClass
}
var myClassObj = new MyClass();
myClassObj.log();
</code></pre>
| javascript jquery | [3, 5] |
5,810,751 | 5,810,752 | jQuery $.post callback function calling location.reload() without using an anonymous function | <p>Consider the following:</p>
<p>wrap callback in anonymous function (works)</p>
<pre><code>$('#updateView').change(function(e) {
$.post(URL + "actions/updateView.php",
{ view: $(this).val() },
function() {reloadPage();}
);
});
</code></pre>
<p>call function directly (cookie is set but doesn't seem to update before page reload)</p>
<pre><code>$('#updateView').change(function(e) {
$.post(URL + "actions/updateView.php",
{ view: $(this).val() },
reloadPage()
);
});
</code></pre>
<p>For what i am doing the first works but the second doesn't. the function reloadPage (shown below) reloads the page after updateView.php updates a cookie. For some reason using the second version the cookie isn't getting set before the page is reloading. but if i refresh the page my self, it "finds" the new value for the cookie.</p>
<p>is there something in the jQuery docs about this? I couldn't find anything.</p>
<pre><code>function reloadPage() {location.reload(true);}
</code></pre>
<p>I am using jQuery 1.4.1, Php 5.2.5, Apache 2.2.11</p>
| javascript jquery | [3, 5] |
2,149,620 | 2,149,621 | How to Add PHP Variables in a Jquery Notification | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7141860/passing-variables-from-php-to-javascript">passing variables from php to javascript</a> </p>
</blockquote>
<p>I am using <a href="http://dev.thrivingkings.com/read/Sticky-A-super-simple-notification-system-built-with-jQuery" rel="nofollow">this awesome</a> jQuery Stick Notification Plugin which creates notifications upon clicking various buttons.
I used the following code to display the notification box...</p>
<pre><code>$(".notify").click(function() {
$.sticky('The page has loaded!');
});
</code></pre>
<p>Can i make it display some PHP variables in place of static text message?</p>
<p>Hope i've made it clear enough.</p>
| php jquery | [2, 5] |
5,208,614 | 5,208,615 | jQuery: just show/hide and not slideIn/Out | <p>I am working on a tabbed navigation, here is an <a href="http://jsfiddle.net/" rel="nofollow">example</a> . For now the contens slidesUp/Down but I want it just to disappear/appear. Any Ideas?</p>
<pre><code> // When the document loads do everything inside here ...
$(document).ready(function(){
// When a link is clicked
$("a.tab").click(function () {
// switch all tabs off
$(".active").removeClass("active");
// switch this tab on
$(this).addClass("active");
// slide all content up
$(".content").slideUp();
// slide this content up
var content_show = $(this).attr("title");
$("#"+content_show).slideDown();
});
});
</code></pre>
| javascript jquery | [3, 5] |
454,492 | 454,493 | App crashed when drawing to canvas, waiting, then drawing again | <p>So, I'm trying to draw to canvas like, </p>
<pre><code>canvas.drawBitmap(bmp, 0, 0, null);
</code></pre>
<p>That works perfectly, even with nothing. It's when I try a timer of some sort, it crashes.
I just want to put 2 pictures, showing after each other, so Picture 1, then Picture 2 then do whatever else.
So if anyone can help?</p>
| java android | [1, 4] |
4,803,115 | 4,803,116 | pass string from c# to unmanaged c# using managed c++ wrapper | <p>I currently have a simple unmanaged C++ method which just displays a messageBox. I have created a managed c++ wrapper for this, which I then reference in my c# application.
I need to be able to pass strings and other variables from the c# into the unmanaged c++ and back again but I am having trouble with the conversion of the strings as my c++ knowledge is very basic.</p>
<p>My end goal is to be able to call complicated functions from our legacy unmanaged c++ libraries via my new c# app (not using DLLImport or COM) but I am trying to create a simple example before progressing.</p>
<p>Thanks in advance.
Rich</p>
| c# c++ | [0, 6] |
42,926 | 42,927 | How do I make this web service work? | <p>I am a new developer and trying to develop a web service in C# by following <a href="http://dotnetguts.blogspot.com/2007/09/all-about-web-service-in-net.html" rel="nofollow">this tutorial</a>. I did everything as explained in that tutorial, however, I did not get any data from the Northwind database and I got the following page when I pressed the Invoke button:
<img src="http://i.stack.imgur.com/VLvfT.png" alt="enter image description here"> </p>
<p>As you will see in the tutorial, I did not add the ConnectionString to the web.config file. Should I do that? </p>
<p>My code:</p>
<pre><code>public class WSGetCustomerCountryWise : System.Web.Services.WebService
{
public WSGetCustomerCountryWise()
{
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod(Description = "It will generate Customer List, CountryWise")]
public System.Xml.XmlElement
GetCustomerCountryWise(string sCountry)
{
string sConn = ConfigurationManager.ConnectionStrings["connStr"].ToString();
string sSQL = "select CustomerId, CompanyName, ContactTitle, City from Customers where country = '"+sCountry+"'";
SqlConnection connCustomer = new SqlConnection(sConn);
DataSet dsCustomer = new DataSet();
SqlDataAdapter sda = new SqlDataAdapter(sSQL, sConn);
sda.Fill(dsCustomer);
System.Xml.XmlDataDocument xdd = new System.Xml.XmlDataDocument(dsCustomer);
System.Xml.XmlElement docElem = xdd.DocumentElement;
return docElem;
}
}
</code></pre>
| c# asp.net | [0, 9] |
1,058,279 | 1,058,280 | Copy first element in an array and replace the last | <p>I have a javascript array with x amount of values.</p>
<p>How can I replace the last element in that array with the first? (Not switch positions but remove the last array and put the first in the last position)</p>
<p>Example:</p>
<p>Initial Array: [9, 14, 23 ,12 ,1]
Final Array: [9, 14, 23, 12, 9]</p>
| javascript jquery | [3, 5] |
3,880,243 | 3,880,244 | how to add control to the page? | <p>Controls must be added to a page like this.</p>
<pre><code><div>
<%
for(int i=0; i<10; i++)
{
Label lab=new Label();
lab.Text="Text"+i;
Response.Write(lab);
}
%>
</div>
</code></pre>
<p><strong>OR</strong></p>
<pre><code><div>
<% for(int i=0; i<10; i++)
{
Response.Write("<asp:Label runat='server' Text='Text' />");
}
%>
</div>
</code></pre>
<p><strong>How to do it?</strong></p>
| c# asp.net | [0, 9] |
2,983,407 | 2,983,408 | can I call a PHP method to run asynchronously? | <p>When a user views a certain profile page I need to send the end user an email but would like to do this asynchronously if at all possible. Can this be done with PHP? I really don't want to wait for the PHP function to complete before rendering the rest of the page. It should be seamless to the user.</p>
<p>Or is this a better solution from the client side:</p>
<pre><code>$.post("msg.php?user=xxx", function(data) {
....
}, "json");
</code></pre>
<p>Is there a preferred method? </p>
| php jquery | [2, 5] |
4,655,347 | 4,655,348 | how to apply marquee in android for string | <p>I am trying to implement marquee a style to print string in android. I'm able to to it with static data but for dynamic it isn't displaying the marquee style.</p>
<p>When I print:</p>
<pre><code>String st="this is test application testing for marquee"
</code></pre>
<p>I get the marquee style.</p>
<p>However, after parsing when I'm getting data:</p>
<pre><code><TextView
android:id="@+id/twxmorq"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:ellipsize="marquee"
android:focusable="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:padding="5dip"
android:scrollHorizontally="true"
android:singleLine="true"
android:textColor="#FF0000" />
</code></pre>
<p>I run:</p>
<pre><code>myString = myString + "| "+ json_data.getString("news_title").toString();
txt1 = (TextView) findViewById(R.id.twxmorq);
txt1.setText(myString1);
</code></pre>
<p>and I <em>don't</em> get the marquee style when I print <code>mystring</code>.</p>
<p>Please help me.</p>
<p><strong>Summary</strong>: For the string ' ST ' I'm getting a marquee style printed string but for <code>mystring1</code> I am not getting marequee style.</p>
| java android | [1, 4] |
1,171,810 | 1,171,811 | How to play .swf with flash player lite in android 2.2 sdk in java? | <p>How can I get the full path of flash player lite, </p>
<p>and use it to play my target <code>.swf</code> ?</p>
| java android | [1, 4] |
922,790 | 922,791 | Running c# code on button click in aspx | <p>I have an aspx page with a button on it. When the user clicks on a button, i have to run some c# code in a seperate .cs file. What is the way to do this? Currently i have a way of using form.action to forward the request to another aspx page but is there a way to run c # code upon a button press?</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
2,055,092 | 2,055,093 | Photo tagging system | <p>I have a gallery system (and user database) built in ASP.NET and I want to add a tagging feature like Facebook.
There must be some kind of photo tagging system, and I don't want to write my own from the beginning.</p>
<p>Can somebody please target me for a code providing this feature or help me where should I start writing the code?</p>
| javascript jquery | [3, 5] |
5,192,277 | 5,192,278 | passing function to css property | <p>Is it possible to pass function as a value to all the css property?
Refer the code here:</p>
<pre><code> <script>
$("div").click(function() {
$(this).css({
width: function(index, value) {
return parseFloat(value) * 1.2;
},
height: function(index, value) {
return parseFloat(value) * 1.2;
}
});
});
</script>
</code></pre>
<p>I really dont have any clue why the above code is working.Can anyone explain advantages as well as disadvantages of passing function to properties?Also is this method of passing func
tion applicable to all other css properties and non-css properties? plz help clarify in detail</p>
| javascript jquery | [3, 5] |
528,334 | 528,335 | related to high chart loading time in django server | <p>Hi I am doing a web application. In that in one page i am displaying high chart. But for some values high chart is loading in 1 sec but for some values it is taking 1min time. How can i reduce the time.</p>
<p>Above script is used to load the chart. But why is that taking 1min time to load chart? and also it si taking less time to take value but that chart is taking lot of time to load</p>
| javascript jquery | [3, 5] |
5,993,590 | 5,993,591 | Cross-Page Posting a GridView | <p>I have a problem with Cross-Page Posting a GridView.</p>
<p>The error I'm getting is the following:
<strong>Object reference not set to an instance of an object.</strong></p>
<p>Steps I took:</p>
<ol>
<li>Create the new Page and add a GridView</li>
<li><p>Create a button with PostBack to the new page.</p>
<pre><code><asp:Button ID="Button1" Text="Button 1" PostBackUrl="~/Page2.aspx?button=1" runat="server" />
</code></pre></li>
<li><p>Adding code behind to the new Page.</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
if (Page.PreviousPage == null)
{
Label1.Text = "Vul een planing in.";
}
else
{
ContentPlaceHolder pageContent =
(ContentPlaceHolder)(Page.PreviousPage.FindControl("Content1"));
GridView1.DataSource = pageContent.FindControl("GridView2"); // In this line I'm getting the error
}
}
</code></pre></li>
</ol>
<p>Looking at the error I forgot a reference. Thnx for the help:)</p>
| c# asp.net | [0, 9] |
595,257 | 595,258 | With jQuery, how can I implement a "page loading" animation? | <p>When I submit a form using jQuery, I want to display an animation image (<code>load.gif</code> or <code>progressbar.gif</code>, etc.) for a few seconds.</p>
<p>How can I show a GIF image in jQuery?</p>
| javascript jquery | [3, 5] |
4,605,881 | 4,605,882 | how to get the right class name innerHTML content? | <pre><code><div class="Name">
<div class="Image"></div>
<ul>
<li><h5><span class"myName">I want this text</span></h5></li>
<li class="description">The description</li>
</ul>
<button class="myButton">My Button</button
</div>
</code></pre>
<p>(multiple items with the same structure)</p>
<p>if my structure is constructed this way,
how can I get the class myName to have its content as a variable?</p>
<pre><code>$(".myButton").click(function () {
var itemName = $(this).siblings(".myName").innerHTML ??
}
</code></pre>
| javascript jquery | [3, 5] |
409,625 | 409,626 | How to execute jquery script before page load? | <p>I need to execute javascript before Page load in ASP.NET application.</p>
<p>My function returns user location, and I would like to pass value to server side and load data based on location.</p>
<p>The problem is javascript function executes after page load.</p>
<p>Here is my code:</p>
<pre><code> $(function () {
getLocation();
});
</code></pre>
<p>in getLocation function I set hidden field value</p>
<pre><code>$("#<%= HfLocation.ClientID %>").val(location);
</code></pre>
<p>in code behind I try to get value but it's always empty</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
var location = HfLocation.Value;
}
</code></pre>
| c# javascript jquery asp.net | [0, 3, 5, 9] |
503,922 | 503,923 | Zoom a webview in android programmatically | <p>I have a canvas 1000x800 inside an Android webview. When the user launches an event I'd like to center the webview into the point 300x300 and showing an zoom to show an area of 300x300 approximately. If the zoom was animated would be perfect (like when double tapping the webview in that point) </p>
<p>how can I do it (with javascript or with the webview calls?</p>
| java javascript android | [1, 3, 4] |
2,381,306 | 2,381,307 | Java integers Return Strange Result While Compare Two Integers? | <pre><code> Integer i1= new Integer(9);
Integer i2= new Integer(9);
if(i1==i2){
System.out.println("true");
}else{
System.out.println("false");
}
int i3=9;
int i4=9;
if(i3==i4){
System.out.println("true");
}else{
System.out.println("false");
}
if(i3==i2){
System.out.println("true");
}else{
System.out.println("false");
}
</code></pre>
<p><strong>In Above Code First if-else print false, Why ?.But when second Return true and also third have true.I think wrapper classes(Like double,boolean,char)cant compare True ?</strong> </p>
| java android | [1, 4] |
2,244,294 | 2,244,295 | Add line breaks after n numbers of letters in long words | <p>A have a string that can reach up to 100 characters in lenght. Is there an easy way to insert line breaks in the word every 10th letter? For example:</p>
<pre><code>aaaaaaaaaaaaaaaaaaaaaaaaa
</code></pre>
<p>Should turn in to</p>
<pre><code>aaaaaaaaaa<br/>aaaaaaaaaa<br/>aaaaa
</code></pre>
<p>I know that i can modify html with the html() method, but im not sure how to count characters and insert the tags. Thanks</p>
| javascript jquery | [3, 5] |
3,847,468 | 3,847,469 | How can I get certain text from wikipedia? | <p>Take this for example:
<a href="http://en.wikipedia.org/wiki/United_States_Bill_of_Rights" rel="nofollow">http://en.wikipedia.org/wiki/United_States_Bill_of_Rights</a></p>
<p>Under the "Amendments" section, I want to get what each bullet point says, and display them in a nice list in an android application. I know there's a wikimedia api, but I have absolutely no idea how to use it, and from what I understand of it, you can get the text under a section, but I'm not sure if you can get each bullet point separately.</p>
<p>What would be the best way to do this? Or instead of this, should I just spend my time copying the text from over 300 pages onto a text file, and reading it in the application?</p>
| java android | [1, 4] |
1,715,474 | 1,715,475 | Restrict dragging of div based on css class | <p>I use the below code to arrange my divs : </p>
<pre><code>$( ".myDivs" ).sortable({
connectWith: [".myDivs"]
});
</code></pre>
<p>Is it possible to amend this code so as to exclude divs that can be sorted(moved) which contain a particualar css value : </p>
<pre><code><div class="myDivs excludeThisCss"><Excluded From Move></div>
</code></pre>
| javascript jquery | [3, 5] |
3,644,110 | 3,644,111 | Showing menus in multiple activity in android | <p>I have a Listview,when i click on the list it shows the details part,in that activity it <strong>shows 3 menu option Details,Party and Attachment</strong>.When i click on details it should show the same details part.After i click on Party it shows list of parties and again whn i click on menu it shows 3 menu option Details,Party and Attachment and clicking on details menu should show the same details part.
Is that possible, plz help me out.</p>
| java android | [1, 4] |
1,382,280 | 1,382,281 | How can I validate I have drawn something in jSignature panel or not? | <p><code>jSignature</code> is having canvas and it has a class. How can I validate jSignature whether I have drawn something or not ?</p>
<p>I have added one bind for click event.</p>
<pre><code>$sigdiv.bind('click', function(e) {
$("#num_strok").val(parseInt($("#num_strok").val()) + 1);
});
</code></pre>
<p>Problem is even I click some corner also <code>num_strock</code> get increases. And for some dragging it will not increase.</p>
<p>I have tried in Google whether it has any built in <code>isEmpty</code> function is there or not. But I have not found anything. </p>
| javascript jquery | [3, 5] |
5,459,116 | 5,459,117 | 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 neither coming in Host nor in port. That is why my whole application is breaking. Can anybody suggest what is going wrong and how can I correct this?</p>
<p>What am I missing here?</p>
<p><strong>Update:</strong> If I do <code>request.Headers["Host"].ToString()</code> I get full host with port i.e 201.121.152.168:68</p>
| c# asp.net | [0, 9] |
2,285,492 | 2,285,493 | How to implement Custom Audio Capcha in ASP.Net | <p>We have created a Custom Capcha generator using C#.Net. Now we have requirement to upgrade our Capcha to include audio feature(Listen Capcha). Our major constraint is that we cannot use any third party components(Dlls)</p>
<p>Please guide me to implement such functionality.</p>
<p>Thanks in advance.</p>
| c# asp.net | [0, 9] |
4,969,623 | 4,969,624 | What repository can I save to without having admin rights? | <p>I'm facing a problem with an Internet application I'm working on right now (programming in C#).</p>
<p>I have to create a report and then send it via email to a certain user. After I create the report, I save it first into a temporary file, then attached it to the email giving the file path.</p>
<p>It's working on my computer because I have the administrator right, but it doesn't for my coworkers who don't have the admin right on their computer.</p>
<p>The file path I'm using is:</p>
<pre><code>string filePath = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.InternetCache),
fileName
);
</code></pre>
<p>Is there any temporary repository I can use that doesn't require admin rights?</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
3,205,696 | 3,205,697 | Jquery mobile select box can work only once | <p>I have a question, my jquery mobile select box can work only once....</p>
<p>![enter image description here][1]</p>
<p>this is my screenshot from my website.</p>
<p>Question, when i click firstly number 1 select box, then this seclect box works. but when i firstly click number 2 box, then click the number 1 box, number 1 can bot be opened. </p>
<p>i dont no what's wrong....
need your help.
now add my code. </p>
| javascript jquery | [3, 5] |
4,101,942 | 4,101,943 | Memory AccessViolationException Error Calling DLL From C# | <p>I'm encountering a strange memory read/write error while calling a compiled DLL from C#. I use DllImport to get a handle to the function we need, which writes a return value to a parametric pointer to an int (i.e., int* out). This function is called multiple times within a thread, and runs successfully over the execution life of the first thread. However, if one launches another thread after the first has completed, the call to the external dll throws an AccessViolationException. Since the multiple calls from the first thread execute successfully, I'm thinking this is somehow related to the first thread not releasing the pointers to the relevant integer parameters(?). If so, how can I explicitly release that memory? Or, perhaps someone has a different insight into what might be going on here? Thank you very much.</p>
<p>EDIT: Danny has requested more specifics, and I'm happy to oblige. Here is where the external routine is invoked:</p>
<pre><code> int success = -1;
unsafe
{
int res = 0;
int* res_ptr = &res;
int len = cmd.ToCharArray().Length;
int* len_ptr = &len;
CmdInterpreter(ref cmd, len_ptr, res_ptr);
success = *res_ptr;
}
</code></pre>
<p>Where CmdInterpreter is defined as:</p>
<pre><code> [DllImport("brugs.dll", EntryPoint="CmdInterpreter",
ExactSpelling=false, CallingConvention = CallingConvention.StdCall)]
public static unsafe extern void CmdInterpreter(ref string cmd, int *len, int *res);
</code></pre>
<p>Please let me know if there is any additional info that would be helpful. Thank you!</p>
| c# c++ | [0, 6] |
5,803,150 | 5,803,151 | Is storing uploaded image file by date a good option? | <p>Is it a good option to store uploaded images, for a website that takes images of people's items, in a directories by date? E.G: A file uploaded today would be stored SOMEDIRPATH/2011/12/21/GUID.img - I don't want to overload a directory with a bunch of images and I want to plan for a site where any number of people could be uploading images. This is on a Windows NTFS file system.</p>
<p>Also note that I will save the path in the database.</p>
<p>I have checked and this is not a duplicate question. No answers exist for this question.</p>
| c# asp.net | [0, 9] |
4,608,299 | 4,608,300 | Member turns to undefined | <p>I've developed a jQuery plugin which has default options:</p>
<pre><code>$.fn.incromentor.defaults = {
max : 65355,
min : 0
};
</code></pre>
<p>In the initialization of the plugin, I merge the user options with plugin default options using <code>$.extend</code></p>
<pre><code>function init( $elm, options )
{
this.$element = $elm;
this.options = $.extend( {}, $.fn.incromentor.defaults, options );
}
</code></pre>
<p>So the problem is, if user sets <code>min</code>or <code>max</code> to <code>0</code>, that property turns to undefined!<br>
Why is this and how can I store a simple 0?</p>
<p>Here a jsFiddle: <a href="http://jsfiddle.net/KDXa6/2/" rel="nofollow">http://jsfiddle.net/KDXa6/2/</a></p>
<p><strong>Edit</strong><br>
After linting the code in JSLint, the error dissapeared so I suspect there was an obscure error in my typing.</p>
| javascript jquery | [3, 5] |
3,166,994 | 3,166,995 | Need some help with my jQuery input styler | <p>Here's the, stripped down, code:</p>
<pre><code>$(document).ready(function()
{
var $input = $('input[type="checkbox"]');
$input.wrap('<div class="stylecheck-container" style="display: inline" />').addClass('stylecheck').hide();
$container = $input.parent('div.stylecheck-container');
if ($container.parent('label').length > 0)
{
$container.append($container.parent('label').text() + ' ');
$container.parent('label').replaceWith($container);
}
$input.change(function()
{
alert(1);
});
$container.click(function()
{
if ($input.is(':checkbox'))
{
if ($input.is(':checked'))
$input.attr('checked', true);
else
$input.attr('checked', false);
}
});
});
</code></pre>
<p>The problem I'm having is that when I try and remove the parent label, the change no longer gets detected.</p>
<p>If I comment out the line 6 if statement, it works fine.</p>
<p>What's the deal?</p>
| javascript jquery | [3, 5] |
2,677,035 | 2,677,036 | Regular expression for text field | <p>I want to every word start with capital letter and rest of are should be in small letters while entering in text field.</p>
<p>I don't know how to give regular expression.</p>
| javascript jquery | [3, 5] |
5,051,871 | 5,051,872 | Unable to call a parameterized javascript function on my page load | <p>I have a javascript function as follows:</p>
<pre><code> function textCounter(field, rem, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else
rem.value = maxlimit - field.value.length;
}
</code></pre>
<p>Here I am trying to set the value in a textbox(rem) on the basis of length of string in another multiline textbox (field).
On my page load I am trying to call it as shown below:</p>
<pre><code>this.Page.ClientScript.RegisterStartupScript(this.GetType(), "testFunction", "textCounter(txtRemark," + txtRemarksRem.ClientID + ", '2000')", true);
</code></pre>
<p>But it does not seem to work.
What am i doing wrong here.</p>
<p>Issue that I am trying to solve is that onkey up and keydown attribute of multiline textbox I am able to call the function and set correct valut in counter textbox(rem) but on page load its value is again set to default.
If there is any other solution, please suggest.</p>
<pre><code>txtRemark.Attributes.Add("onKeyUp", "textCounter(this," + txtRemarksRem.ClientID + ", '2000')");
txtRemark.Attributes.Add("onkeydown", "textCounter(this," + txtRemarksRem.ClientID + ", '2000')");
</code></pre>
<p>The above code seems to work fine(setting the counter value on keyup or down.</p>
| javascript asp.net | [3, 9] |
1,994,723 | 1,994,724 | how to collaborate between javascript and php | <p>i am calling a javascript for image gallery and php on a single page.
let me show you some code to make things clear:</p>
<p><strong>PHP</strong>
<pre><code>echo "<form method = post action = 'user_submit.php'>";
// get possible answers using question ID
$query = "SELECT aid, atitle FROM answers WHERE qid = '$qid' ORDER BY aid ASC";
$result = mysql_query($query) or die("ERROR: $query.".mysql_error());
if (mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_object($result)) {
echo "<div id=captionbox style='width: 110px;float:left;color:#FFF;text-align:center;'>";
echo "<a href='#' class='thumb' ><img class='thumb-img' src='images/roadies/th".$row->aid.".jpg' /> </a>";
echo "<input type = hidden name = aid id = rd".$row->aid." value = ".$row->aid.">".$row->atitle."</input>";
echo "</div>";
}
echo "<input type = hidden name = qid value = '".$qid."'>";
echo "<br/>";
echo "<input type = submit name = submit value = 'Vote!'>";
}
echo '</form>';
</code></pre>
<p>}</p>
<p>the above code fetches object ids and places jpeg images accordingly (thumbnails).
now when i click on these thumbnails the javascript opens an overlay to display the large version. i want to pass the value of <code>$row->aid</code> to javascript.</p>
<p>then from the javascript i want to fill out a form and pass the <code>$row->aid</code> and the form to <code>user_submit.php</code> to add it to the DB.</p>
<p>i am new to php. please help me out.</p>
| php javascript | [2, 3] |
5,576,732 | 5,576,733 | view pdf files and prevent save and print options in c# | <p>I want to load my pdf file in a web page. The user should not have the provison to save or print the file.
the below code opens the pdf file as attachment,
but i want to open it directly in the page.</p>
<p>Please also provide any javascript that can disable the pdf menu bar too..</p>
<pre><code> Response.ContentType = "Application/pdf";
Response.AppendHeader("content-disposition", "attachment; filename=" + old_filename + ".pdf");
Response.TransmitFile(Server.MapPath("~/pdf_files/" + old_filename));
Response.End();
</code></pre>
| c# javascript asp.net | [0, 3, 9] |
5,399,513 | 5,399,514 | Prevent the entering of users that have entered the wrong password more than 3 times | <p>I want to prevent entering of the users that have entered their password more than three times. I save their IP in session and set time-out for one minute. I don't know if this solution is good or not but there is a problem when wrong password is entered for three times. The code works correctly but, when the session times out, if I don't refresh the page it's not work. The user should be able to try again, but if I refresh it, the user can try again. What's the problem?</p>
<p>Here is my code...</p>
<pre><code> if (olduser.Trim() == username.Trim() && password.Trim()==oldpass.Trim())
{ retval =olduser;
HttpContext context = HttpContext.Current;
context.Session[retval.ToString()] = retval.ToString();
}
else
{
string ip = HttpContext.Current.Request.UserHostAddress;
HttpContext failuser = HttpContext.Current;
failuser.Session.Timeout =1;
if (failuser.Session[ip] != null)
failuser.Session[ip] = (int)failuser.Session[ip] + 1;
else
failuser.Session[ip] = 1;
retval = failuser.Session[ip].ToString();
if((int)failuser.Session[ip]>2)
retval = "!";
}
return retval;
}
</code></pre>
| c# asp.net | [0, 9] |
5,359,032 | 5,359,033 | why can't I pass jquery objects as arguments in functions? | <p>I'm trying to pass a jQuery selected object into a function, and the function will do a <code>.html()</code> on it.</p>
<p>Html:</p>
<pre><code><div id="box">this is a box</div>
</code></pre>
<p>Js:</p>
<pre><code>var fillBox = function(box, text) {
box.html(text);
}
(function() {
var box = $("#box");
fillBox(box, "new text");
});
</code></pre>
<p>The box stays as <code>"this is a box"</code> and never gets updated, even tho the function is called. I even tried <code>$(box).html(text)</code> inside the function, but that doesn't fix it. Is this do-able?</p>
<p><a href="http://jsbin.com/iqixoj/5/edit" rel="nofollow">http://jsbin.com/iqixoj/5/edit</a></p>
| javascript jquery | [3, 5] |
5,123,171 | 5,123,172 | Avoid caret move during a textarea live update | <p>I would like to create something similar to google doc in html. More than one people can edit the same file at the same time, a live edit very similar to google doc.</p>
<p>On the server side, everything is ok (I use play2 and akka) but on client side (in javascript):</p>
<ol>
<li>If I update the text without typing, the caret position stay at the same place in the text area</li>
<li>If user types when the textarea is updated, <strong>caret position go at the end</strong> of the textarea and this is really annoying. </li>
</ol>
<p>Mechanism of update is a cometd. It can update the textarea at any moment.</p>
<p>Do you have an idea or component who support live update in JS ? Synchonization in javascript (or jQuery) or something else ? :) Do you know how google implement it in google doc ?</p>
<p>Thank you for your help</p>
| javascript jquery | [3, 5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.