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 |
---|---|---|---|---|---|
873,348 | 873,349 |
Comparisons between date as facebook by jquery
|
<p>How to compare the time/date between dates as how facebook does? Please see the attached image to understand my requirement.
Is there any solution using jquery?</p>
<p><img src="http://i.stack.imgur.com/hQz7j.jpg" alt="enter image description here"></p>
<p>I tried as following js code, but i not have output in it code. what do i do?</p>
<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/U9NV8/" rel="nofollow">http://jsfiddle.net/U9NV8/</a></p>
<pre><code>function mydiff(date1,date2,interval) {
var second=1000, minute=second*60, hour=minute*60, day=hour*24, week=day*7;
date1 = new Date(date1);
date2 = new Date(date2);
var timediff = date2 - date1;
if (isNaN(timediff)) return NaN;
switch (interval) {
case "years": return date2.getFullYear() - date1.getFullYear();
case "months": return (
( date2.getFullYear() * 12 + date2.getMonth() )
-
( date1.getFullYear() * 12 + date1.getMonth() )
);
case "weeks" : return Math.floor(timediff / week);
case "days" : return Math.floor(timediff / day);
case "hours" : return Math.floor(timediff / hour);
case "minutes": return Math.floor(timediff / minute);
case "seconds": return Math.floor(timediff / second);
default: return undefined;
}
}
alert(mydiff('2010-01-25','2010-02-20',1))
</code></pre>
|
javascript jquery
|
[3, 5]
|
4,519,016 | 4,519,017 |
Ajax url navigation
|
<p>I'm trying to make something similar to GitHub that loads content based on the url.</p>
<p>I saw this <a href="http://stackoverflow.com/questions/2586661/url-navigation-in-an-ajax-based-website">article</a>, but I do not want to use a plugin. I would like to write my code manually.</p>
<p>One article I saw <a href="http://yensdesign.com/2008/11/creating-ajax-websites-based-on-anchor-navigation/" rel="nofollow">here</a>, they kept checking the document.location.hash for any changes, then load the content. Is there a better way to achieve this? </p>
<p>The following are what Im thinking about:</p>
<ol>
<li>Load content on page load.</li>
<li>Load content on url change.</li>
<li>Change url from anchor tag without reloading page.</li>
<li>SEO.</li>
<li>Back button.</li>
</ol>
|
javascript jquery
|
[3, 5]
|
4,136,326 | 4,136,327 |
Simple Modal not working in IE 9
|
<p>Below is URL of the page which works fine in Firefox, chrome, Safari but for some reason it is not working in IE 9.</p>
<p>Modal shows a banner when page loads.</p>
<p><a href="http://tinyurl.com/b52drmt" rel="nofollow">http://tinyurl.com/b52drmt</a></p>
<p>link for modal i am using <a href="http://www.ericmmartin.com/projects/simplemodal-demos/" rel="nofollow">http://www.ericmmartin.com/projects/simplemodal-demos/</a></p>
<p>Script looks fine to me, unfortunately i am not able to fix it so far.</p>
|
javascript jquery
|
[3, 5]
|
5,072,529 | 5,072,530 |
Get value of HREF from Anchor tag using JQuery
|
<p>I have an anchor tag like this</p>
<pre><code><a class="k-link" href="#">Add New Details</a>
</code></pre>
<p>After clicking on the link i need to get the value of </p>
<pre><code><list id="getval"> #=Id# (5) </list>
</code></pre>
<p>I have written the code something like this.</p>
<pre><code>$(document).ready(function () {
$(".k-link").click(function(){
var a = document.getElementById(getval).value;
alert(a);
window.location = "/PoDetails/Create/" + a;
});
});
</code></pre>
<p>The above code is not working as expected. How can i fix this issue. Please help me for this.</p>
|
javascript jquery
|
[3, 5]
|
3,151,242 | 3,151,243 |
Missing } in XML Expression
|
<p>I am trying to change our site to load a Header through jquery using the .load() function but to do so I need to set the Title of the page. </p>
<p>From another StackFlow question it was suggested to do something as simple as </p>
<pre><code>$(document).ready(function() {
document.title ='Name Changed to Protect the Innocent';
});
</code></pre>
<p>When i do this I get the firebug error
<code>Missing } in XML Expression</code> for that line in the script</p>
<p>I am sure there is probably an easy solution but it is certainly escaping me. </p>
|
javascript jquery
|
[3, 5]
|
5,397,534 | 5,397,535 |
How to reuse a dropdownlist each row of a table instead of rebuilding it
|
<p>I have a table the uses the same dropdown list in each row. I thought that I could just create one dropdown list and then reuse it in each new row, but the table only ends up with one row unless I create "new" dropdownlist. Am I approaching this all wrong? </p>
<p>In the interest of efficiency, is there a way to build the list once and then reuse it by creating another instance of it or something? I was trying to avoid rebuilding that list umpteen times. </p>
<p>Thanks</p>
<pre><code>private void UserRoles()
{
Table table = MakeTable();
Ewo.sqlDataStore.Administrator sql = new Ewo.sqlDataStore.Administrator();
DataSet dataset =sql.SiteUserRoleList();
DropDownList sel = RoleList(dataset.Tables[0]);
if(tools.validDataSet(dataset))
{
if (dataset.Tables.Count > 1)//existing roles are #2, show the roles the user is part of
{
foreach (DataRow dRow in dataset.Tables[1].Rows)
{
table.Rows.Add(CreateRoleRow(Convert.ToString(dRow["SitePageGroupName"]), sel));//add a row with data
}
}
table.Rows.Add(CreateRoleRow(sel));//add a blank row on the bottom
}
AdminSiteUerRoles.Controls.Add(table);//add it all to the page
}
</code></pre>
|
c# asp.net
|
[0, 9]
|
924,765 | 924,766 |
How can I load an apk dependency from the android market?
|
<p>I'm using google moderator as a simple way to collect feedback for my application. There's a google moderator app on the market that provides a better interface than the website for mobile users. </p>
<p>Getting to the point: Is there a way to get it to install along with your application or a reasonable way to identify if another package is available so I can direct users to the market to download it? </p>
|
java android
|
[1, 4]
|
5,123,459 | 5,123,460 |
Android proximity alert,from kml file
|
<p>im trying to plan and build a small android app that takes in a kml file of co-ordinates, these coordinates are grouped together as a lineString with maybe a couple of dozen points in each linestring, im trying to build an app that as the user travels if they are within a set of these cordinates marked as a line on the road an alert will be prompted, there may be thousands of these lines within one kml file, I know how to prompt alerts etc. but was wondering if my approach of parsing all these cordinates when the program starts then constantly check if a user is near any of them and if inside the linestring prompt would be a good way to go about it? this way does not seem efficient at all, any ideas would be great before i get started.</p>
<p>ex.<br>
lineString
coordinates
cordinates 1
.......... 2
etc.........
/cordinates
/lineString</p>
<p>maybe thousands of these lines</p>
<p>Many thanks</p>
|
java android
|
[1, 4]
|
4,880,468 | 4,880,469 |
regex parsing a dynamic parameter from url string
|
<p>I have a URL as follows: www.mysite.com?paramNamePrefixXXX=value</p>
<p>What is the best way to parse the url for the parameter name / value where XXX is dynamic/unknown..</p>
<p>Since I don't know the parameter name at render time.. I'd like to match on the 'startswith.. 'paramNamePrefix' + XXX (where XXX is some string..) and return the value</p>
<p>jquery offer a simple way to do this?</p>
|
javascript jquery
|
[3, 5]
|
3,943,542 | 3,943,543 |
how do I add items to listview dynamically in android
|
<p>Can anybody help me? I'm trying to create a ListView in Android, and I'm trying to load items into it using code (not using XML)</p>
<p>Here's the code that I have so far</p>
<pre><code>tweetList = (ListView)this.findViewById(R.id.tweetListView);
TextView tv;
for(int i=0;i<20;i++)
{
tv = new TextView(this);
tv.setText("I'm a textView");
tweetList.addHeaderView(tv);
}
tweetList.invalidate();
</code></pre>
<p>What am I doing wrong? The items are not showing in runtime</p>
<p>EDIT: I changed the code as per the answers below and here's the code I have now</p>
<pre><code> tweetList = (ListView)this.findViewById(R.id.tweetListView);
ArrayAdapter<TextView> aa = new ArrayAdapter<TextView>(this, R.id.tweetListView);
tweetList.setAdapter(aa);
TextView tv;
for(int i=0;i<20;i++)
{
tv = new TextView(this);
tv.setText("I'm a textView");
//tweetList.addHeaderView(tv);
aa.add(tv);
}
tweetList.invalidate();
</code></pre>
<p>I'm getting an exception now</p>
<pre><code>11-10 01:32:16.002: ERROR/AndroidRuntime(867): android.content.res.Resources$NotFoundException: Resource ID #0x7f050030 type #0x12 is not valid
</code></pre>
<p>Why am I not able to add them dynamically now?</p>
|
java android
|
[1, 4]
|
2,030,021 | 2,030,022 |
Next question which depends on the button you press
|
<p>I'm a complete newb writing out a small little script in which the third question depends on what button you press on the second question, however I am completely lost as to how I should proceed :/</p>
<p><a href="http://jsfiddle.net/pufamuf/uSuqB/6/" rel="nofollow">http://jsfiddle.net/pufamuf/uSuqB/6/</a></p>
<p>Thank you so much :)</p>
|
javascript jquery
|
[3, 5]
|
4,201,529 | 4,201,530 |
ASP.Net 2012 Unobtrusive Validation with jQuery
|
<p>I was playing with Visual Studio 2012 and I created an <strong>empty ASP.Net Web Application</strong>, when I tried to add the <em>traditional validator controls</em> to a new page, this error occurs:</p>
<blockquote>
<p>WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).</p>
</blockquote>
<p>What are the steps to fix it?</p>
<p>This is my page markup:</p>
<pre><code><asp:Panel runat="server" ID="pnlUsername" GroupingText="Username settings">
<div>
<asp:Label ID="usernameLabel" Text="Please enter your username" runat="server" AssociatedControlID="username" />
</div>
<div>
<asp:TextBox runat="server" ID="username" />
<asp:RequiredFieldValidator ErrorMessage="The username is required" ControlToValidate="username" runat="server" Text=" - Required" />
</div>
</asp:Panel>
</code></pre>
|
c# asp.net
|
[0, 9]
|
88,174 | 88,175 |
jQuery: consecutive Ajax requests allowed?
|
<pre><code>$(document).ready(function() {
$("#firstTimeSubmit").click(function(event) {
event.preventDefault();
var name = $("#firstTimeText").val();
if (name == "" || name.length > 12) {
$("#updates").html("<b>Dummy! Invalid name!</b>");
} else {
$.ajax({
type: "GET",
url: "http://hiscore.runescape.com/index_lite.ws?player=" + name,
success: function() {
$.ajax({
type: "POST",
url: "includes/handlers/firsttime.php",
data: { name: name },
success: function() {
$("#updates").html("<b>Now tracking: " + name + "</b>");
},
error: function() {
$("#updates").html("<b>Already being tracked.</b>");
}
});
},
error: function() {
$("#updates").html("<b>Name doesn't exist.</b>");
} }
});
}
});
});
</code></pre>
<p>Should the $.ajax request inside the other $.ajax request work?</p>
|
javascript jquery
|
[3, 5]
|
4,902,540 | 4,902,541 |
How to create movement from button on google map Android
|
<p>Need to make navigation buttons on the map, can someone tell how to do such a thing, no tutorial on this subject is not found, and as such I do juzat not imagine. Card in the phone led, now you need to add a touch of a button, or go up or down or left or right. Does anyone have any examples? Or at least tell me what event and how to move the map?</p>
|
java android
|
[1, 4]
|
5,161,396 | 5,161,397 |
Toggle show/hide <div> element with jQuery
|
<p>I have used following Jquery to show div on button click, with following code. But its not showing the div on button click.</p>
<pre><code>$(document).ready(function(){
$("#addbutton").show();
$("#addchild").show();
$('#close').click(function(){
$("#addbutton").slideToggle();
});
});
</code></pre>
<p>Where addbutton is id of button, addchild is div that I want to show, and finally close is id of anchor that will close the div addchild.</p>
<p><strong>Don't reduce reputation, and if you are mention reason for that.</strong></p>
|
javascript jquery
|
[3, 5]
|
666,080 | 666,081 |
selecting uploaded images with jQuery
|
<p>I have list of uploaded images in a div. For example this: <a href="http://jsfiddle.net/CymEv/" rel="nofollow">http://jsfiddle.net/CymEv/</a>
I want to select multiple images from the list (by clicking on it, and deselect by clicking again (eg. toggle), and I want to get the names of selected images. How can I do this by using php and jquery? Thanks for the help.</p>
|
javascript jquery
|
[3, 5]
|
5,855,428 | 5,855,429 |
jQuery.get() Variables Scope
|
<p>I'm working with jQuery's Ajax but in my case I need to store the response in global variables:</p>
<pre><code>var points = Array()
$.get("/data", {"id": 1}, function(data) {
for (var i=0; i < data.length; i++) {
points[data[i].someid] = data[i];
}
alert(points[22].someid.toString()); // it works fine
});
alert(points[22].someid.toString()); // undefined
</code></pre>
<p>However when I try to access the variable points outside of the scope of $.get() I just get an undefined object. But I get the right object inside $.get().</p>
<p>What's the best way/standard to manage context and scope in this case?</p>
|
javascript jquery
|
[3, 5]
|
5,066,143 | 5,066,144 |
Android Book similar to Effective Java (Joshua Bloch)
|
<p>Do you know a book similar to Effective Java but the main concentration is the Android Environment? </p>
<p>I mean, there are a lot of programming resources in android, also in java but what I am thinking is a kind of compilation. A good example: Effective Java book is a compilation of java language best practices. </p>
<p>Surely almost all of java programming discipline advised in Effective Java were applicable in Android app development since applications are both in java language. But what I'm looking for is a book that concentrates not only in java language but the Android environment as well. Like for example, what is the best way to manage singletons in Android, when you should use singletons and when not, another one is managing activities, swipe, gesture management - these I think will be different if you are developing app for Android environment compared to; if you are creating a web app or desktop app.</p>
|
java android
|
[1, 4]
|
4,217,878 | 4,217,879 |
IF File Exists Javascript
|
<p>Can anyone see anything wrong with this? It stops the image changing when the image is not here as I want but it does not change the image all the time when it does!</p>
<p>Cheers,
Shaun </p>
<pre><code>var myFile = "/_images/multi/" + productCode + "/" + imgCodeAlt + "_l.jpg";
if (myFile.exists()) {
$("#imgMain img").attr({
rel: 'lightbox',
src: "/_images/multi/" + productCode + "/" + imgCodeAlt + "_l.jpg"
});
}
</code></pre>
|
php javascript
|
[2, 3]
|
1,122,823 | 1,122,824 |
hide/show div on image click with jquery?
|
<p>I am trying to show/hide div when click on an image. when I click on the image nothing happens. What is wrong with my code</p>
<pre><code><script type="text/javascript">
$('#close').click(function(){
$('#main').show();
$('#login').hide();
});
</script>
<div style="float:right;"><a href="#">Close <img id="close" src="assets/close.png"></a></div>
</code></pre>
|
javascript jquery
|
[3, 5]
|
2,459,740 | 2,459,741 |
registering javascript function using ScriptManager.RegisterClientScriptBlock
|
<p>I have following script registered on page load:</p>
<pre><code> ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "watermark", "function WaterMark(txtWaterMark, event,text) { if (txtWaterMark.value.length > 0 && event.type == 'mouseover') {txtWaterMark.style.color = '#c6c1c1'; if(txtWaterMark.value == text) {txtWaterMark.value = text;} } if (txtWaterMark.value.length > 0 && event.type == 'mouseout') {txtWaterMark.style.color = 'gray';if (txtWaterMark.value.length == 0){txtWaterMark.value = text;} } if (event.type == 'focus' ) {alert(txtWaterMark.value); if(txtWaterMark.value == text){txtWaterMark.value = '';} } }", true);
</code></pre>
<p>Can I create this function in aspx and register in cs ?</p>
|
c# asp.net
|
[0, 9]
|
971,049 | 971,050 |
$("#but0_0").attr(...) works but $(hid).attr(...) does not work when hid === "#but0_0"
|
<p>On Safari 4.0, I have a check that prints "????" if hid === "#but0_0"</p>
<p>Works:</p>
<pre><code>$("#but0_0").attr("onmousedown",function(){alert("Aha!");});
</code></pre>
<p>Doesn't work:</p>
<pre><code>var id = "but"+y+"_"+x;
var hid = "#"+id;
if (hid === "#but0_0") console.debug("????");
$(hid).attr("onmousedown",function(){alert("Aha!");});
</code></pre>
<p>The console shows "????" so the code is getting hit and the variable is "the same" (from === string compare point of view) as the string literal but apparently jQuery's $() operator knows the difference?</p>
<p>I have 30 divs to manipulate and I need to compute the id of the div at run time. Any ideas? It's probably something simple like pulling out a "string" from a "String" or some such <a href="http://lists.canonical.org/pipermail/kragen-tol/2005-May/000782.html" rel="nofollow">JavaScript stupidity</a>.</p>
|
javascript jquery
|
[3, 5]
|
1,346,689 | 1,346,690 |
How can I access the row in a RowCommand event
|
<p>I am trying to find a DropDown element in the GridView_RowCommand but it says that GridViewCommandEventArgs does not contain a definituon for 'Row'. I need to do this in this event because i am evaluating a GridView Command. See failing code below</p>
<pre><code>protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Add")
{
DropDownList Myddl = null;
ClientClass client = new ClientClass();
Myddl = e.Row.FindControl("ddlClients") as DropDownList;
if (Myddl != null)
{
updated = client.InsertUpdateClient(ClientID,
int.Parse(e.CommandArgument.ToString()), departmentID);
}
else
{
Labels.Text = "There was an error updating this client";
}
}
}
</code></pre>
|
c# asp.net
|
[0, 9]
|
3,364,746 | 3,364,747 |
jquery swap images on click and hide then
|
<p>I'm trying to build a menu. OVer a canvas I load different images and position them using CSS. Currently I operate with SHOW / HIDE with a lots of code duplication. My questions are:
- instead of just hidding an image, how can I change it on click with another one? and then again hide it, if I should click another button?
- is it possible to write all this code somehow simpler?</p>
<p>Thanks a lot...</p>
<pre><code> $("#ten").click(sizeTen);
function sizeTen(){
cb_ctx.lineWidth = 10;
clickSound();
$(this).hide();
$("#twenty").show();
$("#forty").show();
$("#sixty").show();
}
$("#twenty").click(sizeTwenty);
function sizeTwenty(){
cb_ctx.lineWidth = 20;
clickSound();
$(this).hide();
$("#tenClick").show();
$("#ten").show();
$("#forty").show();
$("#sixty").show();
}
$("#forty").click(sizeForty);
function sizeForty(){
cb_ctx.lineWidth = 40;
clickSound();
$(this).hide();
$("#ten").show();
$("#twenty").show();
$("#sixty").show();
}
$("#sixty").click(sizeSixty);
function sizeSixty(){
cb_ctx.lineWidth = 60;
clickSound();
$(this).hide();
$("#ten").show();
$("#twenty").show();
$("#forty").show();
}
</code></pre>
|
javascript jquery
|
[3, 5]
|
139,104 | 139,105 |
Java conversion to php?
|
<p>Is it possible to convert this java code snippet to php?</p>
<pre><code>public void testBalanceReturnsToZeroOnVending()
{
sodaVendor.insertCoin(50);
sodaVendor.insertCoin(20);
sodaVendor.insertCoin(5);
// The price is right!
assertEquals("We have entered correct money",
SODA_PRICE,
sodaVendor.getCurrentBalance());
sodaVendor.dispenseItem();
assertEquals("After vending, the balance of soda vending machine is zero",
0,
sodaVendor.getCurrentBalance());
}
</code></pre>
|
java php
|
[1, 2]
|
4,561,713 | 4,561,714 |
Create intermediate element with jQuery
|
<p>I want to invoke a creation of div with certain class just below the invoke button, how can I do that most efficiently with jquery?</p>
|
javascript jquery
|
[3, 5]
|
208,683 | 208,684 |
change inputType
|
<p>How can I change the <code>inputType</code> if is verified a particular situation?</p>
<pre><code>if(currentMethod.equals(3))
{
display.setText("");
if(nuovo.equals("")) /**se nell'EditText non ci sta scritto nulla,numero2 = 0**/
{
Toast t = Toast.makeText(Convertitore.this, "Inserire un numero", Toast.LENGTH_SHORT);
t.show();
return;
}
}
</code></pre>
<p>If <code>currentMethod</code> is equal with the element in the vector, I want that the <code>inputMethod</code> of the <code>EditText</code> changes.</p>
<p>The <code>InputType</code> in the <code>main.xml</code> is set to <code>Number</code>, I want that when <code>currentMethod</code> equal with the element in the vector, the <code>inputType</code> is <code>Number|Text</code></p>
|
java android
|
[1, 4]
|
4,356,710 | 4,356,711 |
CA2000 object 'comm' is not disposed along all exception paths
|
<p>I have a bunch of methods like so in my DAL in VS 2010. When I run the "new" Code Analysis option i get the message - Warning CA2000 object 'comm' is not disposed along all exception paths. Call System.IDisposable.Dispose on object 'comm' before all references to it are out of scope.</p>
<p>I understand I could use another using statement for the SQLCommand however if prefer to do it like I have with the Try/Finally block. My understanding is the Finally block executes last and does the cleanup. Does anyone see anything wrong here with my dispose call? </p>
<pre><code> public List<Product> GetAllProducts()
{
List<Product> prodList = new List<Product>();
using (SqlConnection connection = new SqlConnection(GetConnection()))
{
SqlCommand comm = new SqlCommand("GetAllProducts", connection);
connection.Open();
comm.CommandType = CommandType.StoredProcedure;
SqlDataReader dr = comm.ExecuteReader();
try
{
while (dr.Read())
{
Product obj = new Product();
obj.ProductID = Convert.ToInt32(dr["ProductID"].ToString());
obj.Product = dr["Product"].ToString();
//etc....
prodList.Add(obj);
}
}
finally
{
comm.Dispose();
dr.Close();
}
}
return prodList;
}
}
</code></pre>
|
c# asp.net
|
[0, 9]
|
3,209,607 | 3,209,608 |
jQuery tree menus won't expand!
|
<p>I'm using the <a href="http://wordpress.org/extend/plugins/cms-tree-page-view/" rel="nofollow">Page Tree View</a> plugin and I may have done something recently to install the latest version of JDK that screwed up my jquery in WordPress because now the menu items won't expand. They appear, and they even show the loading wheel, but nothing is executed.</p>
<p>Any tips for debugging?</p>
|
jquery javascript
|
[5, 3]
|
4,942,998 | 4,942,999 |
How to access CISCO Tapi from .Net Application
|
<p>I am new to Tapi. Please apologizes me, if anything is wrong or not clear. </p>
<p>I need a c++ wrapper for accessing cisco Tapi from my application (Developed in .net 3.0 with c#) I Searched on web, I got free wrapper and sample code like (Julmar Itapi and Atapi and Helan warn wrapper). These wrappers are used access the Microsoft Tapi 2.1 and 3.0.</p>
<p>But what I am searching is, How to access CISCO Tapi from my .net application. Is there any free wrapper available to access CISCO Tapi? I didn't get any information and other related links from web. </p>
<p>Thanks in advance. </p>
|
c# c++
|
[0, 6]
|
3,290,401 | 3,290,402 |
Headaches with radios in Jquery
|
<p>I have 2 radios:</p>
<pre><code><input id="a_15_0" type="radio" value="abc" name="a_15"/>
<input id="a_15_1" type="radio" value="xyz" name="a_15"/>
</code></pre>
<p>Both are unselected. I have only the name of the radio, i.e <code>a_15</code>, but not the IDs.</p>
<p><strong>1)</strong> How can I get the value of the selected option of this radio? E.g if the user clicked 'xyz', how can I get it? Right now I'm using:</p>
<pre><code>var val=$('[name="a_15"]').val();
</code></pre>
<p>Which always gives abc even when xyz is selected.</p>
<p><strong>2)</strong> How can I get xyz to be selected through javascript, without knowing the ID of the radio which says xyz? Doing:</p>
<p>$('[name="a_15"]').val('xyz');</p>
<p>Changes the value of both radios to xyz rather than selecting the one whose value had been xyz.</p>
<p>Do I need to use <code>document.myForm.a_15.value</code>? Would that work consistently?</p>
|
javascript jquery
|
[3, 5]
|
1,849,264 | 1,849,265 |
get the ful imagepath for any image on the web
|
<p>If I get any image tag from any website I want to be able to get the full path to the image file.</p>
<p>eg:</p>
<pre><code>src="http://www.example.com/images/foo.gif" //This is fine
src="images/foo.gif"
src="/images/foo.gif"
</code></pre>
<p>for the bottom two src attributes, how can i get the full image path?
I want to treat the src attribute universally and always get the full path of an image.</p>
|
c# asp.net
|
[0, 9]
|
599,422 | 599,423 |
how to create a list of span for a given array
|
<p>Let's say I have an object which looks like that:</p>
<pre><code>var users = ['user1', 'user2'];
</code></pre>
<p>For this object I would like to create a list of span like that:</p>
<pre><code>"<span>user1</span><span>user2</span>"
</code></pre>
<p>I did try the following code</p>
<pre><code>$('<span/>').text(users);
</code></pre>
<p>but it does not work properly, any ideas?</p>
|
javascript jquery
|
[3, 5]
|
270,410 | 270,411 |
Easiest way to get element parent
|
<p>Suppose i have this structure of elements:</p>
<pre><code><div class="parent">
<div class="something1">
<div class="something2">
<div class="something3">
<div class="something4"></div>
</div>
</div>
</div>
</div>
</code></pre>
<p>And code like this:</p>
<pre><code>$(".something4").click(function(){
//i could do it like this...
$(this).parent().parent().parent().parent().parent();
});
</code></pre>
<p>But that seems to be stupid, is there a better way to do this?</p>
<p>also i can't just say <code>$(.parent)</code> because there are many divs like this with class <code>parent</code> in my page.</p>
|
javascript jquery
|
[3, 5]
|
3,083,251 | 3,083,252 |
Why isn't my switch block (switching on $(e.target) .attr("class")) working?
|
<p>I am trying to figure out why this code doesn't work.. <br></p>
<p>All i want is to have simple event delegation to assign one event listener.</p>
<p>it only alerts, it doesn't animate.
Please let me know whats wrong here:</p>
<pre><code>$(document).ready(function() {
var img = $("img");
$("span").click(function(e){
var targetClicked = $(e.target).attr('class');
//the alert works fine
alert(targetClicked)
switch(targetClicked){
// i deleted the rest of the cases
case d:img.stop(false,true);
break;
case e:img.slideDown().animate({"width":200, height:200, opacity:0.4,});
break;
//nothings works here as well
case f:alert("hi");
break;
}
});
});
</code></pre>
|
javascript jquery
|
[3, 5]
|
679,844 | 679,845 |
Is it possible for an Android app to modify the screen at all times?
|
<p>To give a ridiculous example, could you have a water app/service that stayed on the display AT ALL TIMES (or perhaps only when not actively using another application) and caused ripples to occur when you touched the screen? I would not want an app like this, but it's just an example.</p>
<p>I know there is a live wallpaper for this, but it is in the background. What if you wanted the affect on top of your icons and widgets and UI as well?</p>
<p>Is this possible?</p>
|
java android
|
[1, 4]
|
536,086 | 536,087 |
How can I say this in jQuery?
|
<p>I want to append some text after 2 closing divs to a sector element.</p>
<pre><code><a href="" class="thingIClicked">Click me</a>
</div>
</div>
// this is where I want to append the text
</code></pre>
<p>My code appends the text after the link. How can I say "append it after the 2nd closing div"?</p>
<pre><code>$('a.thingIClicked').click(function() {
$(this).append('hello');
});
</code></pre>
|
javascript jquery
|
[3, 5]
|
1,104,135 | 1,104,136 |
View and Shadowbuilder
|
<p>I am working on a <strong><code>dragdrop</code></strong> game, but I have small problem, that when I click in a view the shadow builder appears first at the right-top-corner and then it moves with the touch place. </p>
<p>Aslo the shadow builder is smaller than the initial view. How can I make it as the initial view? </p>
<pre><code>private final class MyTouchListener implements OnTouchListener {
public boolean onTouch(View view, MotionEvent motionEvent) {
if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
ClipData data = ClipData.newPlainText("", "");
DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(view);
view.startDrag(data, shadowBuilder, view, 0);
view.setVisibility(View.INVISIBLE);
}
return true;
} else {
return false;
}
}
</code></pre>
|
java android
|
[1, 4]
|
4,891,105 | 4,891,106 |
Calling server side function from client side
|
<p>I am using <code>Asp.Net/C#</code> in my application.My current situation is that I am using <code>Jquery</code> tabs on one of my pages , I have tabs in the following order</p>
<ol>
<li>Personal Details</li>
<li>Additional Details</li>
<li>Submit Data</li>
<li>Show Records</li>
</ol>
<p>On the tab Show Records I am allowing the user to enter customer name whose records will be displayed in <code>Asp.Net Gridview Control</code> , The <code>GridView</code> is populated with the data on the click of an <code>Asp.Net Button</code> , My issue here is that when the user clicks the button , as it is a server control the page is refreshed and the Personal Details tab is shown and the the user needs to go to the tab Show Records to view the data in the <code>Grid View</code>.It shows the data from the database properly , but It is not what I need.When the button is clicked the tab Show Record should be visible.One solution I researched was to use <code>Html button</code> and call the function from client side.Can you guys suggest me some solution or using the html button is the best solution.
Thanks</p>
|
c# jquery asp.net
|
[0, 5, 9]
|
2,798,722 | 2,798,723 |
Is there a php function like python's zip?
|
<p>Python has a nice <a href="http://docs.python.org/library/functions.html#zip"><code>zip()</code></a> function. Is there a PHP equivalent?</p>
|
php python
|
[2, 7]
|
5,578,558 | 5,578,559 |
Unable to execute dex: Multiple dex files define
|
<p>I know this question has been asked here a few times before. But i haven't seen any possible solution yet.
Before i make the project 'Run as Android Application' , if i do not clean it, i receive the following error and have to restart Eclipse ... and clean again.</p>
<pre><code>Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/jstun/core/attribute/MessageAttributeInterface;
</code></pre>
<p>com.jstun.core... is a part of my src folder, of course i can't remove it. And even if i remove that package, another package will show up as an error like:</p>
<pre><code>Unable to execute dex: Multiple dex files define Landroid/support/v4/app/ActivityCompatHoneycomb;
</code></pre>
<p>I've seen this error since updating to ADT 15, i'm using Eclipse Galileo on Ubuntu
Do you have any idea? Thanks for any reply!</p>
|
java android
|
[1, 4]
|
4,707,084 | 4,707,085 |
selecting div that contains div with a certain value
|
<p>I have several outer divs, all of them contain 3 inner divs <code>class1</code> <code>class2</code> <code>class3</code>. I want to select the outer div based on the value attribute of its inner div that has <code>class1</code>. For example, I want to select the first div because its <code>class1</code> div has value <code>x</code>. How do I do this with jquery?</p>
<pre><code><div> <-----this is the div I want to select
<div class="class1" value="x"></div>
<div class="class2" value="y"></div>
<div class="class3" value="z"></div>
</div>
<div>
<div class="class1" value="a"></div>
<div class="class2" value="b"></div>
<div class="class3" value="c"></div>
</div>
</code></pre>
|
javascript jquery
|
[3, 5]
|
3,010,670 | 3,010,671 |
How can I detect the browser in JavaScript?
|
<p>I need to detect the browser with JavaScript.</p>
<p>I have an image gallery with different js files for FireFox, Chrome, and IE. How can I detect the browser display the corresponding file?</p>
|
javascript asp.net
|
[3, 9]
|
2,860,396 | 2,860,397 |
Animated toggle in jQuery not linking through
|
<p>Im trying to make an animated list that when an item is clicked, a child UL toggles display and becomes visible. The problem is however, when the user then clicks a child LI within the newly visible List, the display is then toggled again as opposed to the link going to a new page...</p>
<p>My jQuery is...</p>
<pre><code>//Product range expander
$('.product-range ul li a').click(function() {
$(this).parents("li").find("ul").toggle('slow')
return false;
});
</code></pre>
<p>Markup...</p>
<pre><code><ul>
<li>
<a href="#">United Kingdom</a>
<ul style="display: none;">
<li><a href="page1.html">Product</a></li>
<li><a href="page2.html">Product</a></li>
<li><a href="page3.html">Page</a></li>
</ul>
</li>
</ul>
</code></pre>
|
javascript jquery
|
[3, 5]
|
3,166,818 | 3,166,819 |
Displaying different images at different times with JQuery
|
<p>I have a rotator on a homepage that rotates every 10 seconds or so. I'm trying to set it up to where at 7p, 8p, and 9p it displays a specific image and doesn't rotate (if it has to rotate, that's fine, but at least want it to start on a specific image), and then the rest of the time it rotates as normal.</p>
<p>Ok, I'm new to Javascript and Jquery, but I've attempted to do this here:</p>
<p><a href="http://kacvtv.org/test.htm" rel="nofollow">http://kacvtv.org/test.htm</a></p>
<p>Now, I know there are some problems. For instance, I have no idea how to get it to rotate if it doesn't fall between those times.</p>
<p>But also, seeing how the it's not displaying the correct image right now, obviously I've made other mistakes.</p>
<p>Any ideas?</p>
|
javascript jquery
|
[3, 5]
|
4,850,725 | 4,850,726 |
How to create an array from elements of another array using javascript
|
<p>I'm trying to filter an array to build another array with the results I get. But the combination of functions I have been using with jQuery haven't workk so far. So I would appreciate some advice about how to solve this.</p>
<p>Here is the example of what I'm trying to implement:</p>
<p>This is my first array:</p>
<pre><code>var data =[salt.1200, salt.1100, salt.1000, salt.0900, salt.0800, salt.0700, current.1200, current.1100, current.1000, current.0900, current.0800, current.0700];
</code></pre>
<p>And from this array I would like to build two different arrays, one for salt and one from current.</p>
<p>I have tried to use a for loop with a jQuery grep function on it and split, but that didn't worked.</p>
<pre><code>var plotsArray = [];
for (var i=0; i<data.length; i++){
plotsArray = jQuery.grep(data, function(a){
return (a.split(".") == 'salt')
});
}
console.log('plotsArray: '+plotsArray);
</code></pre>
<p>Also, I been trying to do is to read the first part of the string until the dot and then build an array base on that result. Using for example array filter, but I haven't figure it out how to read just until the dot.</p>
<p>I will appreciate any guidance on how to solve this.</p>
<p>Regards,</p>
|
javascript jquery
|
[3, 5]
|
4,240,702 | 4,240,703 |
call local image in drawable with html (WebView)
|
<p>This question has been asked few times in forums, but in my code, i can't display my image. I think it's not the right method :</p>
<pre><code>webViewContact.loadData(db.getParametres().get(0).getInformationParam(), "text/html", "utf-8");
</code></pre>
<p>getInformationParam() recup the HTML code, like :</p>
<pre><code><img src=\\"file:///android_asset/logoirdes_apropos.jpg\\"/> <b>Test</b>
</code></pre>
<p>My image file is in drawable, how i can display it ?</p>
|
java android
|
[1, 4]
|
5,450,399 | 5,450,400 |
Is there a way to include PHP value inside a javascript function?
|
<p>I want to dynamically tell a javascript which <code><div></code> to hide, but I dont know how to send the request to the javascript as it is a client side script.</p>
<p>for eg:</p>
<pre><code><?
$divtohide = "adiv";
?>
<script language="javascript">
function hidediv($divtohide) {
................
}
</script>
</code></pre>
|
php javascript
|
[2, 3]
|
1,451,752 | 1,451,753 |
How to save a file with information from another program
|
<p>I'm trying to write a program that will help me label ports for work. I am using CDPR to find the information. The command prompt gives me a read out and I want to use the Port ID value only.
I want to manually enter the patch panel info in a box and the switch port auto fills with the Port ID that CDPR provides.
I want both information to be saved in a file that says the patch panel info and switch port beside it.</p>
<ul>
<li>Enter patch panel info</li>
<li>Retrieve info from CDPR</li>
<li><p>Save to file</p>
<p>pp:A24 port:1/0/7</p></li>
</ul>
|
c# java
|
[0, 1]
|
5,566,992 | 5,566,993 |
Using click event while button is disabled
|
<p>I need to check on clicks while the button is disabled is this possible? Or is there any other way to this?</p>
<p>HTML:</p>
<pre><code><form id="form">
<input type="submit" id="submit" value="Submit" />
</form>
</code></pre>
<p>JS:</p>
<pre><code>$("#form").submit(function (e) {
e.preventDefault();
return false;
$("#submit").on("click", function () {
alert("Bla");
});
});
</code></pre>
<p>JS Fiddle: <a href="http://jsfiddle.net/hjYeR/1/" rel="nofollow">http://jsfiddle.net/hjYeR/1/</a></p>
|
javascript jquery
|
[3, 5]
|
1,322,594 | 1,322,595 |
Checkboxlist count function not working
|
<pre><code> function isSubCateChecked() {
var chkBoxList = document.getElementById("ctl00_ContentPlaceHolder1_chkSubCategory");
var chkBoxCount = chkBoxList.getElementsByTagName("input");
var isCheck = false;
for (var i = 0; i < chkBoxCount.length; i++) {
if (chkBoxCount[i].checked)
isCheck = true;
}
if (!isCheck) {
alert("Please Select a Sub Category From Product info Tab!");
return false;
}
else
return true;
}
<asp:Button ID="btnSave" runat="server" BorderWidth="1px" Width="70px" OnClick="btnSave_Click"
CssClass="SaveButton" Height="22px" CausesValidation="true" OnClientClick="if(!isSubCateChecked()) return false;" />
</code></pre>
<blockquote>
<p>This is my java script code plz help me in code my javascript and below code is button of calling that function</p>
</blockquote>
|
javascript jquery asp.net
|
[3, 5, 9]
|
5,627,723 | 5,627,724 |
jQuery OOP technique confusion
|
<p>I'm looking at <a href="http://jamietalbot.com/2010/08/22/object-oriented-jquery-plugins/" rel="nofollow">Jamie Talbot's technique for OOP in jQuery</a>. I pretty much understand this for the most part, however I'm getting slightly lost when trying to understand the logic for this:</p>
<pre><code>result = $(result);
var template = result[0];
if (template)
{
for (var i in template)
{
if (typeof (template[i]) == 'function')
{
result[i] = function()
{
this.each(function()
{
this[i]();
});
};
}
}
}
</code></pre>
<p>I understand up to the <code>if (typeof (template[i]) == 'function')</code> block, that the code is looking at each public method that is declared in the plugin, but after that it boggles me.</p>
<p>Is there any chance somebody could step by step me through this?</p>
<p>Here's Jamie's original code.</p>
<pre><code>(function($) {
$.fn.encapsulatedPlugin = function(plugin, definition, objects, options) {
var result = [];
objects.each(function() {
var element = $(this);
if (!element.data(plugin)) {
// Initialise
var instance = new definition(this, options);
// Store the new functions in a validation data object.
element.data(plugin, instance);
}
result.push(element.data(plugin));
});
// We now have a set of plugin instances.
result = $(result);
// Take the public functions from the definition and make them available across the set.
var template = result[0];
if (template) {
for ( var i in template) {
if (typeof (template[i]) == 'function') {
result[i] = function() {
this.each(function() {
this[i]();
});
};
}
}
}
// Finally mix-in a convenient reference back to the objects, to allow for chaining.
result.$ = objects;
return result;
};
})(jQuery);
</code></pre>
|
javascript jquery
|
[3, 5]
|
1,460,217 | 1,460,218 |
Should clone(true) be used when appending cloned elements, or on() with clone(false)?
|
<p>When cloning an element and appending it to another element, is it better to clone the events off the original element, or using on() so the events need not be cloned? Better is based on being faster, using less memory, and being the more official way of doing it. Please explain why one way is better than another. Thank you</p>
<p>Option 1 where events are not cloned</p>
<pre><code>$('#add').click(function(){$("#list").append($("#clone").clone(false));};
$("#list").on("click", "a", function(){alert('hello');});
</code></pre>
<p>Option 2 where events are cloned</p>
<pre><code>$('#add').click(function(){$("#list").append($("#clone").clone(true));};
$("#clone a").click(function(){alert('hello');});
</code></pre>
<p>HTML common to both options</p>
<pre><code><a href="javascript:void(0)" id="add">Click</a>
<li id="clone"><a href="javascript:void(0)">Click</a></li>
<ul id="list"></ul>
</code></pre>
|
javascript jquery
|
[3, 5]
|
3,410,202 | 3,410,203 |
whats the pros/cons with working with PHP as opposed to asp.net or the whole .net framework?
|
<p>I'm currently working with php but everyone is telling me that asp.net is so much better. What is the real story?</p>
|
php asp.net
|
[2, 9]
|
4,915,435 | 4,915,436 |
Variables inside methods
|
<p>I have this method:</p>
<pre><code>public String Nov2()
{
String[] ops = new String[] {" + ", " - ", " * ", " / "};
int i = rand.nextInt(4-0) + 0;
String op1 = ops[i];
int novnum1 = rand.nextInt(101-1) + 1;
int novnum2 = rand.nextInt(101-1) + 1;
String novnum1str = Integer.toString(novnum1);
String novnum2str = Integer.toString(novnum2);
String nov2Exp = novnum1str + op1 + novnum2str + " = ";
setContentView(R.layout.gameview);
TextView display = (TextView) findViewById(R.id.exp);
display.setText(nov2Exp);
return nov2Exp;
}
</code></pre>
<p>It returns the string nov2Exp, but what i want to do is actually work out the expression this method generates. novnum1 and novnum2 are my two terms and op1 supplies the operation, how could i make the result of the expression accesible to the rest of the program from this method?</p>
|
java android
|
[1, 4]
|
5,372,024 | 5,372,025 |
Select Element From List by Index with jQuery
|
<pre><code><form id="foo">
<input></input>
<input></input>
<input></input>
</form>
</code></pre>
<p>I want to do:</p>
<p><code>document.getElementById("foo").getElementsByTag("input")[1];</code></p>
<p>But in jQuery. I want to select a certain object under #foo by an index.</p>
<p>This is my first guess as to how to do this:</p>
<p><code>$('#foo input[1]').val("BlahBlah");</code></p>
<p>I think it would be the same in CSS too.</p>
|
javascript jquery
|
[3, 5]
|
4,836,604 | 4,836,605 |
JQuery change the value of an <img src="" by ID
|
<p>I need some simple JQuery code so I can change the src value of a specific img.</p>
<p>It's currently:</p>
<pre><code><img id="myImage" src="image1.gif" />
</code></pre>
<p>and I need to change it to:</p>
<pre><code><img id="myImage" src="image2.gif" />
</code></pre>
<p>using JQuery.</p>
|
javascript jquery
|
[3, 5]
|
4,726,946 | 4,726,947 |
Am I missing something? My values don't get stored into my array
|
<p>I have this</p>
<pre><code> var selected = []
$('#SelectBoxContainer .DDLs :selected').each(function (i, selected)
{
alert($(selected).val());
selected[i] = $(selected).val();
});
</code></pre>
<p>My alert is telling me that it is going through this loop and getting the select box values. Yet once everything is said and done there is nothing in my "selected" array.</p>
|
javascript jquery
|
[3, 5]
|
2,609,613 | 2,609,614 |
ImageMap display in asp.net
|
<p>I have building image with seating positions, I have to display selected location of image on button click. example If user select seat num 120 I have to locate seat num 120 and highlight the seat num. Image is very big 2000x1500 size so I have to show the image with selected position ,like in google map it display searching location..</p>
<p>Please let me know how to achive this.
Thanks in advance.</p>
|
c# asp.net
|
[0, 9]
|
1,757,679 | 1,757,680 |
using both auto post back and validators
|
<p>have a pulldown with both AutoPostback set to true and a validator.
When I select an "invalid" value from the pulldown, the validator message
shows briefly, then a postback occurs and the errormessage is gone!
this is my code:</p>
<pre><code><asp:TextBox ID="SerialFrom_txt" runat="server" BackColor="White" BorderColor="#188F3E"
BorderStyle="Solid" BorderWidth="3px" Width="200px" OnTextChanged="SerialFrom_txt_TextChanged"
AutoPostBack="true"></asp:TextBox>
<asp:RegularExpressionValidator ID="SerialFrom_rv" runat="server" ValidationExpression="^[a-zA-Z]{2}[0-9]{7}$"
Text="error" ControlToValidate="SerialFrom_txt" />
</code></pre>
<p>and my behind code for post back is:</p>
<pre><code>protected void SerialFrom_txt_TextChanged(object sender, EventArgs e)
{
if (string.Compare(RoleFrom_lbl.Text, SerialFrom_txt.Text) > 0)
{
Error_lbl.Text = "Serial From must be greater than " + RoleFrom_lbl.Text + "!";
SerialFrom_txt.BackColor = System.Drawing.Color.FromName("red");
SAVE_btn.Enabled = false;
}
else
{
Error_lbl.Text = "";
SerialFrom_txt.BackColor = System.Drawing.Color.FromName("white");
SAVE_btn.Enabled = true;
}
}
</code></pre>
<p>so please tell me what should I do?</p>
|
c# asp.net
|
[0, 9]
|
2,817,568 | 2,817,569 |
lightbox promblem in master page
|
<p>I am using LightBox v2.0.4 with master pages on a web site and I am having problems with the loading.gif and closelabel.gif images appearing.
In lightbox.js, whenever I run the program it gives error in this line</p>
<pre><code> fileLoadingImage:
'images/loading.gif',
fileBottomNavCloseImage: 'images/closelabel.gif',
</code></pre>
<p>But if run the above application with out using master page every thing works fine with no issue.
Whenever we implement with Master page we get a javascript error.
Have any one got this type of error? How did you solve it?</p>
<p>Any help would be great.</p>
|
asp.net jquery
|
[9, 5]
|
2,451,550 | 2,451,551 |
Stack OverFlow in Plain Javascript
|
<p>I am using simple windows.open function to open up a popup window. While teh same is working fine in another page.</p>
<p>Basically there is a user control and that user control has simple table. In there I am using a link button where ONClientClick I am using windows.open('some.aspx'). But it is giving error like Stack OverFlow at line No.</p>
<p>I am unable to get the basic meaning if this thing, why this error can generate and what it signifies?</p>
<p>Thanks.</p>
|
asp.net javascript
|
[9, 3]
|
2,650,516 | 2,650,517 |
Jquery: Setting permanent height to an specific tab & resize plugin
|
<p>I am working with jquery sliding tabs. I have found a resize plugin that helps the tabs adjust to expanding content. The only thing is that i want to set a permanent height to tab 1(st_content_1). The code i have below works but it is a bit faulty. </p>
<ul>
<li>Should place in the function if statements?</li>
<li>Check for the height of the first tab and then set it?</li>
<li><p>Or a any better solution?</p>
<p>You can check my <a href="http://webprolearner2346.zxq.net/slidingtabs/horizontal.html" rel="nofollow">EXAMPLE</a>. </p></li>
</ul>
<p>Jquery</p>
<pre><code> $('.st_tab_view').resize(function() {
var height = 250
$('div#st_content_1').css('height', height+'px');
var $this = $(this);
$this.closest('.st_view').css('height', $this.height());
});
</code></pre>
|
javascript jquery
|
[3, 5]
|
4,989,302 | 4,989,303 |
jQuery if statement with variable mathematical operator
|
<blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10591243/is-there-a-way-to-make-a-comparison-operator-a-variable">Is there a way to make a comparison operator a variable?</a> </p>
</blockquote>
<p>So I am looking for something similar to this question <a href="http://stackoverflow.com/questions/11847359/python-if-statement-with-variable-mathematical-operator">python if statement with variable mathematical operator</a> but in jQuery/Javascript</p>
<p>Essentially something like </p>
<pre><code>var one = "4";
var two = "6";
var op = "==";
if (one op two) {
//do something
}
</code></pre>
<p>is this possible?</p>
|
javascript jquery
|
[3, 5]
|
571,859 | 571,860 |
How to append the output of a servlet using JQuery
|
<p>I am currently making a website. Basically when the user scrolls to the bottom of the screen I am going to download another 10 posts (I'm making a little social network). To do this I have downloaded JQuery. The following JavaScript is ran when the user scrolls to the bottom of the page:</p>
<pre><code>page++;
var next = 'posts?page=' + page;
$('.pContainer').append("code that loads the servlet in the next var goes here");
</code></pre>
<p>Inside the posts servlet I have a few out.println statements to test this. I have tried using JSP: Include tags inside the append brackets but it does not work.</p>
|
java javascript jquery
|
[1, 3, 5]
|
627,973 | 627,974 |
How to create public and private members?
|
<p>I'm a bit confused, how can I create public and private members.</p>
<p>My code template so far is like:</p>
<pre><code>(function()){
var _blah = 1;
someFunction = function() {
alert(_blah);
};
someOtherFunction = function() {
someFunction();
}
}();
</code></pre>
|
javascript jquery
|
[3, 5]
|
4,739,146 | 4,739,147 |
Disable LinkButton when OnClick Event Fires
|
<p>I have an asp:LinkButton as follows:</p>
<pre><code><asp:LinkButton ID="LinkButtonNewServicesCategory" runat="server"
OnClientClick="this.disabled=true;return false;"
style="float:left;margin-right:5px;" CausesValidation="False">new services category</asp:LinkButton>
</code></pre>
<p>The intent is that when the LinkButton is clicked, it disables itself and returns false to prevent the postback (this control is used as a trigger for an animation). </p>
<p>The behavior I'm experiencing is that the LinkButton correctly triggers the animation and returns false, but does not disable itself. </p>
<p>It's inside an updatepanel, but I'm sure that no postback is occurring. </p>
<p>Why doesn't this.disabled=true work?</p>
|
asp.net javascript
|
[9, 3]
|
269,689 | 269,690 |
Collapsable div, but from a certain point defined in a variable
|
<p>E.g. I have a div that contains all the text like:</p>
<pre><code><div class="text-container">
<p>
Though we welcome the idea of a smaller connector, we're miffed that Apple couldn't just adopt the semi-industry standard of Micro-USB. That would make things easier for smartphone users across the globe. Yet, even so, the smaller connector may be a smart move for the future. The 30-pin connector has been around since 2003, long before the iPhone even existed: frankly, it's a dust magnet. A smaller connector helps shave extra space to achieve a smaller phone with perhaps a bigger battery. The new connector cable will mainly be used for syncing and charging by most people who own an Apple TV or Bluetooth/AirPlay accessories.
</p>
</div>
</code></pre>
<p>And I would like to create something like this:</p>
<pre><code><div class="text-container">
<p>
Though we welcome the idea of a smaller connector...<a href="some-javascript-to-show-more">[show more]</a>
</p>
</div>
</code></pre>
<p>I guess I should get all the content of the div and then Find the first e.g. 50 character and put there a link and all the other text put in some div which will be hidden, and after the click on the link the other stuff show up.</p>
<p>It should be toggle-like and change the text from [show more] to [show less] if it is expanded and vice versa.</p>
<p>Any advice how to achieve this with plain javascript and jquery itself and without other jQuery plugins?</p>
|
javascript jquery
|
[3, 5]
|
3,297,769 | 3,297,770 |
jQuery - change value of css class dynamically
|
<p>I have an image slider written in jQuery. I need the images to be in groups of two (like a magazine) so i have classes .pageLeft and .pageRight that apply a left- or right-margin equal to the width of the container minus the width of a page img (.page class). I want to be able to fullscreen this slider and dynamically calculate and change the width of the .page and the margin value of the .pageLeft/.pageRight classes. Is there any way to do this, or am I going about this all wrong?</p>
<p>The best way I could think to do this would be to write the classes to the DOM directly, but then I would have to empty and add every time.</p>
<p>Here is an example of what I'm trying to say</p>
<pre><code>nPageWidth = 768;
nPageWidthPlusMargin = ($('#container').width() / 2);
nPageMargin = nPageWidthPlusMargin - nPageWidth;
</code></pre>
<p>and then use that value to change margin-left = nPageMargin for the class in the css.</p>
<p>Sorry if this is a confusing question. Thanks for your time.</p>
<p>EDIT: The main reason I'm trying to do it this way is to maintain the aspect ratio of the images by setting the width of the image to be 3:4 the height of the image which is set to 100% of the container.</p>
|
javascript jquery
|
[3, 5]
|
1,430,801 | 1,430,802 |
Auto Load and Refresh Div every 10 Seconds with jQuery
|
<p>I'm working with a nice little Jquery that auto loads and refreshes a div every bla bla Seconds.
Works perfectly on all browsers then I load up IE and bang what a surprise no luck! :(</p>
<p>Index.html</p>
<pre><code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
var auto_refresh = setInterval(
function ()
{
$('#load').load('reload.php').fadeIn("slow");
}, 10000); // refresh every 10000 milliseconds
<body>
<div id="load"> </div>
</body>
</script>
</code></pre>
<p>reload.php</p>
<pre><code><?
echo time(); //just a timestamp example..
?>
</code></pre>
<p>Any ideas guys?</p>
|
javascript jquery
|
[3, 5]
|
3,311,085 | 3,311,086 |
When should I define an hash code function for my types?
|
<p>Is there any other reason for implementing an hash code function for my types other than allowing for good use of hash tables? </p>
<p>Let's say I am designing some types that I intend to use internally. I know that types are "internal" to the system, and I also know I will never use those types in hash tables. In spite of this, I decide I will have to redefine the equals() method.</p>
<p>Theory says I should also redefine the hash code method, but I can't see any reason why, in this case, I should do it.</p>
<p>Can anyone point me out any other reason?</p>
<p>This question can be rephrased to : <em>in which situations should we implement a hash code method in our types.</em></p>
<p>PS : I am not asking how to implement one. I am asking <em>when</em>.</p>
|
c# java
|
[0, 1]
|
2,021,063 | 2,021,064 |
replacing div content with a click using jquery
|
<p>I see this question asked a lot in the related questions, but my need seems very simple compared to those examples, and sadly I'm just still too new at js to know what to remove...so at the risk of being THAT GUY, I'm going to ask my question...</p>
<p>I'm trying to switch out the div contents in a box depending on the button pushed. Right now I have it working using the animatedcollapse.toggle function, but it doesn't look very good. I want to replace it with a basic fade in on click and fade in new content on next button. </p>
<p>Basic idea:</p>
<pre><code><div>
<ul>
<li><a href="this will fade in the first_div"></li>
<li><a href="this will fade in the second_div"></li>
<li><a href="this will fade in the third_div"></li>
</ul>
<div class="first_container">
<ul>
<li>stuff</li>
<li>stuff</li>
<li>stuff</li>
</ul>
</div>
<div class="second_container">
<ul>
<li>stuff</li>
<li>stuff</li>
<li>stuff</li>
</ul>
</div>
<div class="third_container">
<ul>
<li>stuff</li>
<li>stuff</li>
<li>stuff</li>
</ul>
</div>
</div>
</code></pre>
<p>I've got everything working with the animated collapse, but it's just an ugly effect for this situation, so I want to change it out.</p>
<p>Thanks!
Joel</p>
|
javascript jquery
|
[3, 5]
|
4,617,289 | 4,617,290 |
How to select multiple li item using control key in jquery?
|
<p>Here i am selecting a single li item in one list and on click of the add button the selected item will be moved to the next lsit</p>
<pre><code> $("#list3 li").click(function () {
$("#list3 li").removeClass('clicked');
$(this).addClass('clicked');
});
$("#add").click(function () {
$("#list3 li.clicked").removeClass("clicked").appendTo('#list4');
});
</code></pre>
<p>and</p>
<pre><code> .clicked {
border: 3px solid blue;
}
</code></pre>
<p>Here i need to select multiple li items using the control key and if i click add button all the selected li items has to be moved to another list..Any suggestion?</p>
|
jquery asp.net
|
[5, 9]
|
2,977,524 | 2,977,525 |
Porting mypaint to C#?
|
<p>I want to develop a cross language project with mypaint in Visual Studio. I want to open and access mypaint python and c++ code in Visual Studio and add C# code for new parts, including using C# libraries. How would I go about doing this? How do I get the different parts into Visual Studio from the sourcecode or should I try to make a assemblies from mypaint to use in the C# code. Can anyone help me? Has any work been made before? I cannot find anything on the forum or on Internet.</p>
<p>Mypaint is an open source project and is written in python and c + + code, see www.mypaint.org. Since the project is open source I have access to a clone from gitorious, but I need to get it in and access it from C# in Visual Studio. </p>
|
c# c++ python
|
[0, 6, 7]
|
4,606,411 | 4,606,412 |
How to compare if string has a enter key in the end using jquery/javascript?
|
<p>I have a string value from a user input box. I have to figure out if last char is a enter key (line feed).</p>
<p>Thats the code. Here I am checking if last char has a whitespace. Now I also have to check if last char is enter key (carriage return or line feed). How can i do this?</p>
<pre><code>var txt = $get("<%= txtUserText.ClientID %>");
if (txt.value.substring(txt.value.length -1) !== ' ' || <checkifLastCharIsEnterKey>)
//my code to take action
</code></pre>
<p>*<strong>*I don't think i need a keypress or keyup event because this above piece of code is not invoked at the time of user input.</strong></p>
|
c# asp.net javascript jquery
|
[0, 9, 3, 5]
|
2,250,436 | 2,250,437 |
Is there a method to retrieve the file name of a class?
|
<p>Is there a method to retrieve the file name of a class?</p>
<p>Specifically I would like to create a static method (CreateLink) in a base class (BasePage) to automatically return the path and filename of the page called.</p>
<p>I code in .C# ASP.NET</p>
<pre><code>private const string TEMPLATE =
"~/One.aspx";
public static HyperLink CreateLink()
{
HyperLink link = new HyperLink();
link.Text = "Click here";
link.NavigateUrl = String.Format(TEMPLATE);
return link;
}
</code></pre>
<p>Is it possible to avoid the use of TEMPLATE hardcoded variable? Is it possible to retrieve the One.aspx path from file name and location?</p>
|
c# asp.net
|
[0, 9]
|
4,511,587 | 4,511,588 |
How to create draggable widgets?
|
<h2>Background</h2>
<p>I am tasked with developing the front-end to an analytics product that presents the information to the user in a customizable dashboard like the one used by Google Analytics:
- Dashboard is comprised of draggable widgets arranged in a grid layout
- Widgets have a drag handle which can be clicked by the user to start dragging
- Widgets can be re-ordered by dragging and dropping the widget</p>
<h2>Question</h2>
<p>Part 1. Using jQuery (or any other open source Javascript API) can anyone explain to me how such a feature is implemented, from a high level overview.</p>
<p>Part 2. Can you recommend any resources for me to read that may be relevant to implementing this feature, or any foreseeable related features? (books, links, api docs, tutorials)</p>
|
javascript jquery
|
[3, 5]
|
3,792,984 | 3,792,985 |
Android: ListView fixed height of child view
|
<p>Please advice how to set fixed heigh (in dip) for the child view of ListView component?</p>
<p>I am using relative layout as root layout for the child view</p>
<p>when I set backgoround image to relative layout it becomes very height (maybe because backgoround picture is large) and I want to set precisely the height in dp.</p>
|
java android
|
[1, 4]
|
752,119 | 752,120 |
PHP to PYTHON inter communication
|
<p>How can I run a Python script store in another server from PHP? I have googled for this and found many solutions to run Python files from PHP, but those were for Python files stored locally. Mine's on a another server.</p>
|
php python
|
[2, 7]
|
5,246,995 | 5,246,996 |
Template Control events occurs in second click.Not on First Click
|
<p>i Don't know what i missing here.</p>
<p>i have a gridview in which a template control contains a link button.At link button click i scroll down to bottom of page<code>[Focusing a Panel Control]</code>. See this how i doing the <a href="http://stackoverflow.com/questions/9360706/do-the-scrolling-in-client-brower-window">Scrolling by Javascript</a></p>
<p>but it's not occurring on first click .that happens in second click.</p>
|
c# javascript asp.net
|
[0, 3, 9]
|
1,488,994 | 1,488,995 |
How I do javascript string manipulation?
|
<p>I have a variable like this:</p>
<pre><code>var data= [{"Timestamp":1349816400000,"TaskEffortLeft":123},{"Timestamp":1352498400000,"TaskEffortLeft":-123}]
</code></pre>
<p>Now I want to strip out those "Timestamp": and "TaskEffortLeft": and also change curly brackets into big bracket and make it Like this:</p>
<pre><code>var data= [[1349816400000,123],[1352498400000,-123]]
</code></pre>
<p>How do I do that?
Thanks for your help in advance.</p>
|
javascript jquery
|
[3, 5]
|
2,279,652 | 2,279,653 |
Method Swizzling in Android using java
|
<p>Is it possible to do method swizzling in android using java? i would like to intercept a system method and log its parameters then process it normally </p>
|
java android
|
[1, 4]
|
2,832,144 | 2,832,145 |
Android Bluetooth sharing possible?
|
<p>Before Start working on android Bluetooth i wanted to ask some Questions.</p>
<p>1) what are the limits of Bluetooth in android.
2) what were the Bluetooth Features different API's provide.
3) how many devices can we connect simultaneously with one server.
4) can a single device can send and receive at a time.</p>
|
java android
|
[1, 4]
|
1,493,492 | 1,493,493 |
Change value control in asp.net basend on custom event triger
|
<p>Hi i want to update value in textbox when event trigger..i know how to do it in winform..but i cant do it in webform..</p>
<pre><code> protected void Page_Load(object sender, EventArgs e)
{
if(IsPostBack)
return;
else
myClass.MyEvent += new MyClass.MyEventDelegate(Default_MyEvent);
}
private void Default_MyEvent(string value)
{
txtBox.Text = value;
}
</code></pre>
<p>above code doesn't change text value of my textbox in asp.net but it works in winform. How to do it in webform?</p>
<p>*Edit</p>
<p>I try to create file transfer application via socket on web. I already done this in desktop application.
Basically when client open web page then client will connected to server on spesific port. and every data transmitted to client from server, then in then web form there will be an changing in text of the textbox.</p>
|
c# asp.net
|
[0, 9]
|
1,991,826 | 1,991,827 |
cells.InnerHtml not getting correct way
|
<pre><code>protected void ReadHtmlTable(string patientName, string startHour, string startMinute, int rowspan)
{
for(int i = 0; i <= tableAppointment.Rows.Count - 1; i++)
{
for(int j = 0; j <= tableAppointment.Rows[i].Cells.Count - 1; j++)
{
if(tableAppointment.Rows[i].Cells[j].InnerHtml.Trim() == startHour)
{
if(tableAppointment.Rows[i].Cells[j + 1].InnerHtml.Trim()== startMinute)
{
tableAppointment.Rows[i].Cells[j + 2].InnerText = patientName;
tableAppointment.Rows[i].Cells[j + 2].RowSpan = rowspan;
tableAppointment.Rows[i].Cells[j + 2].Style.Add("color", "green");
tableAppointment.Rows[i].Cells[j + 2].Style.Add("background", "green");
}
}
}
}
}
</code></pre>
<p>Above code is my server side code which executes on OnSaveStateComplete(EventArgs e) event . i am reading my html table in c#. when i check its first cell second cell text then its give result like this "\r\n\t\t\t\t\t\t\t\t\t08:00\r\n\t\t\t\t\t\t\t\t" .I have use trim at end but not work.</p>
|
c# asp.net
|
[0, 9]
|
4,852,464 | 4,852,465 |
Show/Hide Multiple Divs
|
<p>I am trying to trigger a show/hide of one div at a time.</p>
<p>What is happening is that all the divs (.shareLink) are opening at the same time.</p>
<p>Below is my jqury:</p>
<pre><code>$(document).ready(function(){
$(".shareLink").hide();
$("a.trigger").click(function(){
$(".shareLink").toggle("400");
return false;
});
});
</code></pre>
<p>Below is my HTML:</p>
<pre><code><dl class="links">
<dd>content</dd>
<dt class="description">content</dt>
<ul class="tools">
<li><a class="trigger" href="#">Share Link</a></li>
</ul>
</dl>
<div class="shareLink">
<?php print check_plain($node->title) ?>
</div>
</code></pre>
<p>Any help with the above problem would be much appreciated.</p>
<p>Cheers.</p>
|
javascript jquery
|
[3, 5]
|
4,495,023 | 4,495,024 |
response from server width jquery Ajax
|
<p>i can use this below code for sending any data to server and getting successful result, but my code dont sent respond <code>$data</code> is true or false.
code is can successful insert to database
localhost PHP file:</p>
<pre><code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.post("http://www.test.com/index.php", {userCode:"ttt-ddd-fff"},
function(data){
alert (data.message);
},'json');
});
</script>
</head>
</html>
</code></pre>
<p>Server:</p>
<pre><code><?php
include_once ('./AFactory.class.php');
$database= new AFactory;
$db=new AFactory();
$link=$db->getDBO();
$query=array('id'=>NULL,'userCode'=>$_POST['userCode']);
$sql=$db->insertQuery(' `test`.`users`',$query);
if ( mysql_query($sql) )
{$data['success']=true;$data['message']='ok';}
else
{$data['success']=false;$data['message']='no';}
echo json_encode($data);
?>
</code></pre>
|
php jquery
|
[2, 5]
|
1,497,316 | 1,497,317 |
how to set separate css to each menu item in the asp menu control
|
<p>i have a menu control like below</p>
<p><strong>menu1 menu2 menu3 menu4</strong></p>
<p>how to set separate ccs for each menu?.
menu1--css1
menu2--css2
menu3-css3.. like this</p>
<p>Thanks.</p>
|
c# asp.net
|
[0, 9]
|
4,215,629 | 4,215,630 |
how to make this carousel continious?
|
<p>Does anyone one know how to make this carousel continious ? here is the source <a href="http://www.ajaxdaddy.com/demo-jquery-carousel.html" rel="nofollow">http://www.ajaxdaddy.com/demo-jquery-carousel.html</a></p>
<p><code>jQuery('#mycarousel').jcarousel({
vertical: true,
size: 6,
scroll: 4
});
</code></p>
|
javascript jquery
|
[3, 5]
|
5,018,739 | 5,018,740 |
Which jQuery/css menu library for working with ASP.NET TreeView or Menu controls
|
<p>I'm looking for a good jQuery or CSS, or combo, library to enance my left side menu in an an intranet application. I don't like the 'hover only' expand/collapse style of the ASP.NET Menu control on its own, and I don't like the 'icon-click only' expand/collapse style of the TreeView control on its own.</p>
<p>I plan on trying the CSS Control Adapters, to render the menu with some self-respect, i.e. as nested <code><ul></code> or <code><ol></code> elements instead of the usual orgy of tables. Beyond that, I need something to give a bit of style and menulike behaviour to these nested lists, and I would prefer a jQuery plugin for this. Which should I use?</p>
|
asp.net jquery
|
[9, 5]
|
1,132,574 | 1,132,575 |
JQuery Only Toggle if checkbox gets checked .. possible?
|
<p>I am using the code below where it toggles between 2 div's.
My problem is that I'm using a checkbox to trigger the toggle.
What I need is that...</p>
<p>If the checkbox is NOT check and the user checks it ... then it toggles but if the checkbox is already checked then do not toggle.</p>
<p>Is this possible at all?</p>
<p>Current code is below:</p>
<pre><code> <script type="text/javascript">
$(function(){
$('.togglelink').click(function(){
$('#one').toggle();
$('#two').toggle();
});
});
</script>
</code></pre>
|
javascript jquery
|
[3, 5]
|
3,543,275 | 3,543,276 |
changing html tags with javascript and get the value on server side
|
<p>I have this HTML tag:</p>
<p><code><span id="pricea" runat="server">13323223</span></code> and I am changing this value with JavaScript:</p>
<pre><code><script type="text/javascript">
$(function () {
$("#pricea").hover(function () {
document.getElementById("pricea").innerHTML = "1234"
});
});
</script>
</code></pre>
<p>Now,when I do postback after clicking <code>asp:Button</code>, the span value returns to be the original value and I can't take the new value that was changed by the JavaScript.</p>
<p>I thought maybe use request.form("pricea"), but it seem to be working only for input fields, so my question is:</p>
<p>how can I get the value of this span (after it was change by the JavaScript) in server side?</p>
<p>thanks for any help</p>
|
javascript jquery asp.net
|
[3, 5, 9]
|
4,128,454 | 4,128,455 |
Jquery mobile and Android integration
|
<p>I have fair knowledge of Android and sometimes had played with Jquery.<br>
Now I want to develop a Android app with Jquery mobile but not sure how it works together.<br>
Can anybody please share some good link to work with Android and Jquery mobile ? </p>
<p>Thanks,<br>
Ajinkya.</p>
|
jquery android
|
[5, 4]
|
5,423,687 | 5,423,688 |
form keeps getting submit event without pressing submit button
|
<p>I am trying to make a form so when user click button then it will submit but the problem is that it is keep getting on function even if I am not pressing submit button. here is my code</p>
<pre><code>$(function () {
var url, container, form,
View = {
init: function () {
container = $('.container');
form = $('.search#form');
console.log(form);
View.loadViews();
$(document).on('submit', '#form', View.findView());
},
findView: function () {
console.log('helllo');
return false;
},
loadViews: function (view) {
$(container).load('search.html');
}
};
View.init();
});
</code></pre>
<p>In code above the line <code>$(document).on('submit', '#form', View.findView());</code> keeps calling findView() method whereas I want to call it when user click submit button. How can I fix this?</p>
|
javascript jquery
|
[3, 5]
|
216,722 | 216,723 |
Can jquery animate the css background property?
|
<p>I know that you can <code>.animate() background-image</code> with jQuery. But can you <code>.animate()</code> <code>background: url(myImageURL) top center repeat-y</code> ?</p>
<p>EDIT </p>
<p>The purpose of the function is to animate from <code>background: undeclared</code> to <code>background: url(images/red_curtain.jpg) top center repeat-y</code> :)</p>
|
javascript jquery
|
[3, 5]
|
3,960,133 | 3,960,134 |
Print multiple documents continuously
|
<p>I want to implement a continious printing of document.Please see image below<img src="http://www.freeimagehosting.net/uploads/c87bde9396.png" alt="alt text"></p>
<p>When I choose the checkboxes then click the print button, all the information of a particular applicant will be printed.Take note that each document was printed on a new page. I found a soluton from this forum <a href="http://bytes.com/topic/asp-net/answers/861073-print-multiple-files-continuously" rel="nofollow">http://bytes.com/topic/asp-net/answers/861073-print-multiple-files-continuously</a></p>
<p>But I need an additional resources about this to implement the best solution for this functionality.Any ideas?</p>
|
c# javascript
|
[0, 3]
|
6,007,674 | 6,007,675 |
dynamic string with javascript
|
<p>for my login system,i have checked login credentials with php code in same file,but when user successfully logged in, i want to show You have logged in just bottom to the login form with javascript..how to do that!?</p>
|
php javascript
|
[2, 3]
|
5,835,582 | 5,835,583 |
Disable href with jquery/js
|
<p>I am having difficulties in disabling href links through jquery. I am using this method I modified. Can some please advise or help me in figuring this out?
Thank you.</p>
<p><strong>jquery/js</strong></p>
<pre><code><script>
$('.next-tab').click(function() {
$('.st_tab_active').attr('disabled','disabled');
var tab= $('.st_tab_active').parent().next().children('a');
tab.removeAttr('disabled');
tab.trigger('click');
return false;
});
</script>
</code></pre>
<p><strong>html</strong></p>
<pre><code><ul class="st_tabs">
<li><a href="#st_content_1" class="st_tab" disabled="disabled">Horizontal Tab #1</a></li>
<li><a href="#st_content_2" class="st_tab" disabled="disabled">Horizontal Tab #2</a></li>
<li><a href="#st_content_3" class="st_tab" disabled="disabled">Horizontal Tab #3</a></li>
<li><a href="#st_content_4" class="st_tab" disabled="disabled">Horizontal Tab #4</a></li>
<li><a href="#st_content_5" class="st_tab" disabled="disabled">Horizontal Tab #5</a></li>
</ul>
</code></pre>
|
javascript jquery
|
[3, 5]
|
2,822,621 | 2,822,622 |
Difference between x.toString() and x+""
|
<p>Back in college one of my profs. taught us to just do <code>x + ""</code> as a quick conversion from basic types to strings.<br>
I don't remember which class it was in I had him for some Java and C++ courses(I haven't used either for some time now), but I use it in C#/.Net now which is what I'm primarily developing in lately.</p>
<p>Is there an advantage to using <code>.toString()</code> over <code>+""</code> for basic types such at int, decimal, float...?
What cases would <code>.toString()</code> be better?</p>
<p>Note:I was shown <code>.toString()</code> as well, that prof just recommended <code>+""</code> because it was shorter and I have just done that since then without questioning it.</p>
|
c# java
|
[0, 1]
|
2,085,018 | 2,085,019 |
Display only HTML links jQuery
|
<p>I have a url and I want to display only the html links or URLs using jQuery.</p>
<p>Thanks
Jean</p>
|
php jquery
|
[2, 5]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.