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 |
---|---|---|---|---|---|
5,279,378 | 5,279,379 | Server side validation for required fields | <p>I am having an issue with the requiredfieldvalidator control not working on an ASP.net page. I have completed the attributes of that field properly, but when I test it, the postback is allowed to happen even if the field in question is blank. </p>
<p>So I want to do server side validation instead. What is the best way to do that? In the event that caused the postback? Also, if I find out the field is blank, how do I get the user back to the screen with all other values they placed on other fields intact and a message saying "This field cannot be blank".</p>
<p>EDIT:</p>
<p>This is the code:</p>
<pre><code><asp:TextBox ID="fName" TabIndex="1" runat="server" Width="221px" CausesValidation="True"></asp:TextBox>
<asp:RequiredFieldValidator ID="FNameRequiredFieldValidator" runat="server"
ControlToValidate="fName" InitialValue="" ErrorMessage="Filter Name cannot be blank."
ToolTip="Filter Name cannot be blank.">*</asp:RequiredFieldValidator>
</code></pre>
| c# asp.net | [0, 9] |
3,012,104 | 3,012,105 | HttpWebRequest is very slow | <p>hi all am requesting a handler file from another handler file that returns an image,when i request my HttpWebRequest taking more time to get the response...here is my code please help.</p>
<pre><code>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpCookie cookie = context.Request.Cookies["ASP.NET_SessionID"];
Cookie myCookie = new Cookie(cookie.Name, cookie.Value);
myCookie.Domain = url.Host;
request.CookieContainer = new CookieContainer();
request.CookieContainer.Add(myCookie);
request.Timeout = 200000;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
responseStream = response.GetResponseStream();
</code></pre>
| c# asp.net | [0, 9] |
3,182,853 | 3,182,854 | How can I match password confirmation by Jquery | <p>I have a jqury code which going to match passwords from text fields which taken from
<a href="http://code.google.com/p/rcciit-wp-techtrix-event-management-plugin/source/browse/trunk/js/jquery.validationEngine-en.js?spec=svn5&r=5" rel="nofollow">here</a>
.But its not completed.Can any one help me with how to match the password from textfields by this code? thanks</p>
<p>here is my jquery code sgement for massword matching. I need to have the logic for "none" part I think.</p>
<pre><code>{
"confirm":{ // password matching
"regex":"none",
"alertText":"* Your field is not matching"},
"telephone":{
"regex":"/^[0-9\-\(\)\ ]+$/",
"alertText":"* Invalid phone number"},
"email":{ // For email validation
"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
"alertText":"* Invalid email address"}
}
</code></pre>
<p>I think in this code the didn't give the matching loginc in "regex":"none", part. Can anyone help with this?</p>
| javascript jquery | [3, 5] |
1,323,343 | 1,323,344 | Consultation about copy and paste from my program | <p>i have this code for copy text from my program</p>
<pre><code>final ClipboardManager clipBoard = (ClipboardManager)getSystemService(CLIPBOARD_SERVICE);
</code></pre>
<p>but when i go out from my program and try to paste to another program - its not working</p>
<p>what can be the problem ?</p>
| java android | [1, 4] |
4,018,444 | 4,018,445 | How to put image in HashMap by giving a specific url | <pre><code>private static final String picpic = "picpic";
private ArrayList < HashMap < String, Object>> myBooks;
myBooks = new ArrayList<HashMap<String,Object>>();
HashMap < String, Object> hm;
hm = new HashMap<String, Object>();
drawable=LoadImage("http://www.wauhaha.com/smart/company/album/pic.jpg");
hm.put(picpic, drawable);
myBooks.add(hm);
final ListView listView = (ListView)findViewById(R.id.list);
SimpleAdapter adapter = new SimpleAdapter(this, myBooks, R.layout.listbox, new String[]{picpic}, new int[]{R.id.image1});
listView.setAdapter(adapter);
</code></pre>
| java android | [1, 4] |
4,114,310 | 4,114,311 | Android: How can I get ip address from an android app? | <p>Is it possible to get the ip address from android app?</p>
| java android | [1, 4] |
5,228,663 | 5,228,664 | How to set the value to a variable in the script(.js) file from the script in aspx file | <p>Im having a variable 'multi' , the same name i used within the js file. I need to set a value to the variable within my aspx page and pass it on to the javascript file. Couldnt find any help. </p>
<p>aspx script code</p>
<p></p>
<pre><code> var itemdata = [];
var multi;
//var plot;
$(document).ready(function () {
$.ajax({
type: "POST",
url: "ChartBinder.asmx/BindChart",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
//alert(multi);
var resultObj = $.parseJSON(response.d);
multi = resultObj;
// alert(resultObj.Pie);
multi.Trend = resultObj.Trend;
//alert(multi.Trend);
$.getScript('Scripts/highcharts.src.js', function () {
DrawPie(resultObj.Pie);
DrawTrend(resultObj.Trend);
// do something here
});
},
error: function (msg) {
alert("Error");
}
});
});
</code></pre>
<p>js script</p>
<pre><code>(function () {
var seriesCount = window.multi.Trend.length;
var newcolors = [];
for (i = 0; i < seriesCount; i++) {
newcolors[i] = multi.Trend[i].color;
}
})
</code></pre>
| javascript jquery asp.net | [3, 5, 9] |
3,897,859 | 3,897,860 | Add Dynamic CheckBox Handle CheckedChanged Event ASP.NET | <p>plz help me the event is not firing & how can i find which check box control fired event</p>
<pre><code>chkList1 = new CheckBox();
chkList1.Text = row["subj_nme"].ToString();
chkList1.ID = row["subjid"].ToString();
chkList1.Checked = true;
chkList1.Font.Name = "Verdana";
chkList1.Font.Size = 12;
chkList1.AutoPostBack = true;
chkList1.CheckedChanged += new EventHandler(CheckBox_CheckedChanged);
Panel1.Controls.Add(chkList1);
protected void CheckBox_CheckedChanged(object sender, EventArgs e)
{
Label1.Text = "Called";
}
</code></pre>
| c# asp.net | [0, 9] |
5,561,566 | 5,561,567 | Linking android XML to a Java class? | <p>I have "main_activity.xml" which is linked to MainActivity.java class, but I wish to link my "login_activity.xml" to "Login.java" class.</p>
<ul>
<li>How to link each android XML to separate Java class ?</li>
</ul>
| java android | [1, 4] |
4,038,871 | 4,038,872 | SimpleCursorAdapter is undefined? | <p>Below is the sample of code giving me grief. The simpleCursorAdapter works if I put it outside of the textchangedlistener but not in I keep getting the message</p>
<blockquote>
<p>The constructor SimpleCursorAdapter(new TextWatcher(){}, int, Cursor, String, int, null) is undefined</p>
</blockquote>
<pre><code>txt.addTextChangedListener(new TextWatcher() {
public void onTextChanged(CharSequence s, int start, int before, int count) {
//onTextChanged
}
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
//beforeTextChanged
}
public void afterTextChanged(Editable s) {
//afterTextChanged
typedText = s.toString();
Cursor cur = db.rawQuery("SELECT * FROM " +
DB_TABLE +" where field LIKE '%" + typedText + "%'" , null);
String displayFields = "field";
int displayViews = R.id.bmark_visits;
setListAdapter(new SimpleCursorAdapter(this,
R.layout.testlist, cur,
displayFields, displayViews, null
));
}
});
</code></pre>
| java android | [1, 4] |
1,279,058 | 1,279,059 | cancel server side submit funcion in asp.net with javascript | <p>I also made this question before but the problems remains here:</p>
<p>I have this code:</p>
<pre><code><asp:Button ID="CrearCuenta" UseSubmitBehavior="false" OnClientClick="return validate()" runat="server" Text="Ready" />
</code></pre>
<p>The javascript code:</p>
<pre><code>function validate()
{
return false;
}
</code></pre>
<p>But in case that it return true, <strong>how do i execute de server side onclick function??</strong> Thats what i cannot figure out.
I know that similars question have been posted before, but none answer the question above.</p>
| c# javascript asp.net | [0, 3, 9] |
1,925,440 | 1,925,441 | Can I display my android emulator in a web page or java application? | <p>I need to create a java application that contain two blocks, left and right.
In the right block,Can I display an android emulator ?</p>
<p>Thanks in advance</p>
| java android | [1, 4] |
5,379,769 | 5,379,770 | PHP session variable is retrieved in Javascript but becomes undefined | <p>I have two session variables that I retrieve in a Javascript code. This is how the code is set up:</p>
<pre><code><html>
<head>
</head>
<body>
<p><?php echo $_SESSION['userid'] ?></p> --> This works and value is shown
<p><?php echo $_SESSION['accesstoken'] ?></p> --> Value is also shown
<script type="text/javascript">
var userid = <?php echo $_SESSION['userid'] ?>;
var token = <?php echo $_SESSION['accesstoken'] ?>;
alert(userid); --> this works and shows pop up with value
alert(token); --> this doesnt work and is undefined
</script>
</body>
</html>
</code></pre>
<p>This is the value of userid: 551234131</p>
<p>This is the value of my token:
AAADAq39fEZA0BAAVJyvfZAiu1kIcaHG4SFVzuBWl3hXfC9W0g26JaqXwZAHuNdIhh2eFDkwyopunCsZCCW3jZADT8DQBjZCAdRTC5PkgtN4wZDZD</p>
<p>Before the token value is stored in the session variable it is actually held inside another javascript variable without any problem (i.e I can call that variable with alert() and the token is shown).</p>
<p>So transfering this value FROM javascript TO session variable = no problem.
But transfering the same value FROM session variable TO Javascript = doesnt work.</p>
<p>At first I thought there was a problem with datatypes so I tried casting it to a string value but it doesnt work. Any idea on what could cause this situation?</p>
| php javascript | [2, 3] |
5,134,562 | 5,134,563 | What can I use to retreive the area that a user marks on an image in my app? | <p>My app takes a picture of the user and I want the user to mark where their eyes, mouth, and ears are on the image. The ears are just one point but the mouth is a selection of the whole mouth area</p>
<p>I have got the taking a picture part done but how can I go on about allowing the user to highlight he mouth area and then get those pixels? </p>
| java android | [1, 4] |
2,418,779 | 2,418,780 | Is there any benefit to defining a utility function directly on the jQuery object? | <p>Are there any specific benefits derived from defining a utility function directly on the jQuery object:</p>
<p>For instance, given the following two constructs:</p>
<pre><code>$.someUtility = function(){
//do some something with jQuery
}
var someUtility = function(){
//do some something with jQuery
}
</code></pre>
<p>Is there any specific reason I would want to use the first example over the second?</p>
<p><strong>Quick Update:</strong>
I don't need to do any chaining, and my utility is not a plugin in the traditional sense; It will not perform any operations on a jQuery selector.</p>
| javascript jquery | [3, 5] |
1,975,670 | 1,975,671 | Why can't I make a proper SQL/PHP query using javascript? | <p>I am trying to make a query to an SQL database and I can't figure out why my code won't work. When I call the javascript function:</p>
<pre><code>function calledfunction(){
var date = new Date(document.getElementById("datetime1").value);
var dateformat = "'"+date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate() + " " + date.getHours() +":" + date.getMinutes()+"'";
alert("Value is: " + dateformat);
microAjax("genjsonphp.php?stdt="+dateformat, function(data) {
//edited out
}
</code></pre>
<p>I get the alert: Value is: '2011-12-6 0:0'</p>
<p>When I copy the value in the alert and paste it so the above code becomes:</p>
<pre><code>function calledfunction(){
var date = new Date(document.getElementById("datetime1").value);
var dateformat = "'"+date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate() + " " + date.getHours() +":" + date.getMinutes()+"'";
alert("Value is: " + dateformat);
dateformat = '2011-12-6 0:0';
microAjax("genjsonphp.php?stdt="+dateformat, function(data) {
//edited out
}
</code></pre>
<p>Then the code works fine. Does anyone have an idea what is going wrong?</p>
| php javascript | [2, 3] |
5,335,344 | 5,335,345 | The right way to use php in jquery function | <p>Do I use the php in jquery function the right way? Because for editing I use NuSphere PhpED and it says "unexpected ','" but if I run the page its working, I don't get any error.</p>
<pre><code><?php
$luna = $month;
$an = $year;
?>
<script>
$(function() {
get_data(<?php echo "$luna"; ?>, <?php echo "$an"; ?>);
});
</script>
</code></pre>
| php jquery | [2, 5] |
1,912,251 | 1,912,252 | Group (average) values from two arrays | <p>I have 2 arrays with the following data:</p>
<pre><code>Array1 = [A, A, A, A, B, B, B, C, C, C, C, C];
Array2 = [4, 2, 4, 6, 3, 9, 6, 5, 4, 6, 2, 8];
</code></pre>
<p>I want to create 2 new arrays from these values:</p>
<pre><code>Array3 = [A, B, C];
Array4 = [4, 6, 5];
</code></pre>
<p>The values in Array 4 are the averages from Array2.</p>
<p>How should the javascript or jquery code look like to create Array3 and Array4?</p>
<p>edit:</p>
<p>I would like to group the values like this:</p>
<pre><code>Array1 Array2
A 2
A 4
------------------
B 2
B 6
------------------
C 3
C 6
C 9
result:
Array3 Array4
A 3 Average from 2 and 4
B 4 Avarage from 2 and 6
C 6 Average from 3, 6 and 9
</code></pre>
| javascript jquery | [3, 5] |
1,112,317 | 1,112,318 | Key code for "mouse key up" and "mouse key down" | <p>How to access the key code for "mouse key up" in JavaScript?<br>
If I press the left mouse button then key code is one.</p>
<p>I want to fire some code when <code>onmousekeyup</code>. But whenever the mouse gets key up, this code does not fire. So I want to try using keycode for mouse key up when key is released (key up).</p>
| javascript asp.net | [3, 9] |
5,973,744 | 5,973,745 | jQuery, find li class name (inside ul) | <p>I have ul with a number of li inside. All li have an id "#category" but different classes (like ".tools", ".milk", ".apple").</p>
<p>Using jQuery. I do : </p>
<pre><code>$("li#category").click(function(){ some_other_thing ( .... )});
</code></pre>
<p>now i have to put a li's class "name" — (a string indeed) inside the some_other_thing() function instead of ....</p>
<p>How it can be done?</p>
| javascript jquery | [3, 5] |
801,456 | 801,457 | How do I run a webmethod with jQuery Asp.Net | <p><strong>How do I run a webmethod with jQuery. Asp.Net
the method load it the GridView</strong></p>
<pre><code>[WebMethod]
public void GetGrid()
{
DataProviderDataContext db = new DataProviderDataContext();
GridView1.DataSource = db.Employees.ToList();
GridView1.DataBind();
}
<asp:GridView ID="GridView1" runat="server">
</asp:GridView>
</code></pre>
| asp.net jquery | [9, 5] |
4,789,471 | 4,789,472 | Equal spaced, full width menu? | <p>I have a menu with four options which I need to sit below an image like so:</p>
<pre><code>----------------------------------------------------------------
| This is an image |
----------------------------------------------------------------
Menu 1 Menu 2 Menu 3 Menu4
</code></pre>
<p>These size is responsive, so I'm positioning the menu items dynamically. My problem is how to calculate the menu widths so that the spacing is equal as well as Menu1 and Menu4 meeting the edge of the image.</p>
| javascript jquery | [3, 5] |
4,406,419 | 4,406,420 | how to show confirmation alert with three buttons 'Yes' 'No' and 'Cancel' as it shows in MS Word | <p>I have showing a confirmation alert box through my javascript as following</p>
<pre><code>function checked() {
if (hdnval.toLowerCase() != textbox1.toLowerCase()) {
var save = window.confirm('valid')
if (save == true)
{
return true;
}
else
{
return false;
}
}
}
</code></pre>
<p>the confirmation alert is showing with two btn OK and Cancel.</p>
<p>I want to show 3 button in my confirmation alert 'Yes' 'No' 'Cancel', as it shows in MS Word.</p>
<p>is it possible if yes then its possible? please someone help me.</p>
<p>thanks in advanced.</p>
| javascript asp.net | [3, 9] |
1,325,143 | 1,325,144 | javascript issue in sharepoint | <p>I am having issues making a <code>javascript</code> work. Basically i just use this script for different web parts which have the <code>.q1table</code> class to insert some other classes.</p>
<p>I am getting an error uncaught type error Property $ of object[object window] is not a function.This works fine when the page is in normal mode but in edit mode it throws error.</p>
<p>can some one please tell me what am i doing wrong here.</p>
<pre><code> jQuery('.q1Table tr').each(function (index) {
var $wp = $(this).find('tr:first'); ---this line throws the error
var $1TR = $wp.closest('tr');
$1TR.addClass("TitleBar");
$1TR.removeClass('ms-Header');
</code></pre>
<p>Thanks</p>
| javascript jquery | [3, 5] |
4,391,569 | 4,391,570 | How to check for correct url | <p>I am working on a current web app and we would like to determine if the page being requested is correct or not, we do this in a <code>Global.asax</code> on the <code>Application_BeginRequest</code> method, we check for the urls such as if someone enters <code>http://mywebtest/badurl</code> then we send them to a custom 404 page, but we are having trouble making it work when it has a .aspx extension, there are pages that are good with aspx extensions but others that do not exist should be fowarded to the custom 404. How can we do this?</p>
<pre><code>If a page with .aspx is requested that does not exist,
to redirect it to the custom 404 page?
</code></pre>
<p>I was trying something like (but its just a guess) and it did not work..</p>
<pre><code>if ((string)System.IO.Path.GetExtension(Request.Path) == string.Empty)
{
HttpContext.Current.RewritePath("~/custom404.aspx");
}
</code></pre>
<p>Thank you</p>
| c# asp.net | [0, 9] |
5,063,504 | 5,063,505 | Android Phone number Calling Function in an Activity | <p>I am developing Android Application having Contact Us Page having Phone Number. I had given the Phone number in xml file as below:</p>
<pre><code><TextView
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="1-869-270-9099"
android:textSize="11sp"
android:textColor="#104082"
android:textStyle="normal"
android:layout_width="wrap_content"
android:id="@+id/textView4"
android:layout_x="72dp"
android:layout_y="160dp"/>
</code></pre>
<p>I had created the Alert Dialog Box and when the phone number is clicked the alert dialog box will be shown programatically as below:</p>
<pre><code> @Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case (R.id.textView4):
Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Do you want to Call?");
builder.setCancelable(false);
builder.setPositiveButton("Call", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
//Do Calling a Number
}
});
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
});
AlertDialog dialog = builder.create();
dialog.show();
}
return super.onCreateDialog(id);
}
public void onClick(View v) {
switch(v.getId()){
case (R.id.textView4):
showDialog(R.id.textView4);
break;
}
}
</code></pre>
<p>Here my issue is <strong>to implement the "Calling a Phone Number" Function in the onClick "PositiveButton" method.</strong> Please help me how to get a DialPad with the number present in the xml file with the SampleCode/Links.</p>
| java android | [1, 4] |
2,224,675 | 2,224,676 | appending info to a text file | <p>I have a web site with which I am adding records to a database and The info I am also writing to a log file which is part of the website.
The info is written to the file fine...the only question I do have is how to add information with each input into the database.
As it is at the moment the information is put int the lof file but with each new insert into the database the existing record in the log file seems to be overwritten and replaced with a new insert so that there is always only one record added to the log file.
Advice perhaps...
this is the code I used in the btnClick event.</p>
<pre><code>protected void btnSubmitRating_Click1(object sender, EventArgs e)
{
int rating = 0;
try
{
if (radRating.Items[0].Selected)
{
rating = 1;
}
if (radRating.Items[1].Selected)
{
rating = 2;
}
else if (radRating.Items[2].Selected)
{
rating = 3;
}
else if (radRating.Items[3].Selected)
{
rating = 4;
}
else if (radRating.Items[4].Selected)
{
rating = 5;
}
FileStream rate = new FileStream(Server.MapPath("~/rateBooks.log"), FileMode.Open, FileAccess.ReadWrite);
BufferedStream bs = new BufferedStream(rate);
rate.Close();
StreamWriter sw = new StreamWriter(Server.MapPath("~/rateBooks.log"));
sw.WriteLine("userName " + txtUserName.Text + " " + "bookTitle " + txtBookTitle.Text + " " + "ISBN " + txtISBN.Text);
sw.Close();
Service s = new Service();
s.bookRatedAdd(txtBookTitle.Text, rating, txtReview.Text, txtISBN.Text, txtUserName.Text);
btnSubmitRating.Enabled = false;
radRating.Enabled = false;
}
catch (Exception em)
{
lblError.Text = em.Message;
//lblError.Text = "This book has already been reviewed by yourself?";
}
}
</code></pre>
<p>Kind regards</p>
| c# asp.net | [0, 9] |
4,848,741 | 4,848,742 | Unable to find cookie that was set a request ago | <p>I am trying to develop a simple single sign on solution using ashx file for setting/deleting cookies. .Net 4.0, C#.
I am making a web request (from sitea.com/) to an ashx resource (on a different domain siteb.com/file.ashx) to set a cookie, then I make another request (from sitec.com/) to the same resource (at siteb.com/file.ashx) to see if the same cookie exists. Unfortunately, it comes back as null. When I fiddle it, I can see cookie being there (in request/response headers on siteb.com) on both occasions.</p>
<p>What I don't understand is, how can it be not available via code. I tried using context.Request.Cookies (context comes from public void ProcessRequest(HttpContext context) method), HttpContext.Current.Request.Cookies, also on Response, but no success.</p>
<pre><code>HttpCookie AuthCookie = context.Request.Cookies["SiteCookie"];
</code></pre>
<p>PS: I am writing code on all ends, that is making requests and checking cookie validations. Any idea what could be the problem?</p>
| c# asp.net | [0, 9] |
3,871,502 | 3,871,503 | Android Button Doesn't Respond After Animation | <p>I have a basic animation of a button after it is pressed currently in my application. After the button finishes animating, I can no longer click on it. It doesn't even press with an orange highlight.</p>
<p>Any help?</p>
<p>Here's my code:</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
animation = new AnimationSet(true);
animation.setFillAfter(true);
Animation translate = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 5.0f);
translate.setDuration(500);
animation.addAnimation(translate);
LayoutAnimationController controller = new LayoutAnimationController(animation, 0.25f);
generate = (Button)findViewById(R.id.Button01);
generate.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
keyFromTop();
}
});
}
public void keyFromTop(){
generate.setAnimation(animation);
}
</code></pre>
| java android | [1, 4] |
1,024,317 | 1,024,318 | How can I fire an asp.net button event via jquery or java script? | <p>I want when I click on "Doit" string it fire my asp.net button .</p>
<p>This is my "DoIt"</p>
<pre><code><a id="" href="#"">Doit</a>
</code></pre>
<p>And my asp.net button event is :</p>
<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("rightclick.aspx");
}
</code></pre>
<p>How can I do this ? Please help me ..</p>
| c# jquery | [0, 5] |
4,357,500 | 4,357,501 | References Asp.net JS files | <p>I have a notepad filled with references to over 1k .js files. I would like for my page to check this file and add each as a reference eg: </p>
<pre><code><script type="text/javascript" src="####.js"></script>
</code></pre>
<p>any idea or examples on this.
Thanks</p>
| javascript asp.net | [3, 9] |
2,154,450 | 2,154,451 | Javascript and Lightbox | <p>I want to add Lightbox to a image which is output by Javascript. The image link is built up dynamically so thats why I am doing it this way!</p>
<p>I have looked on S.O. but no luck with what is already there...</p>
<p>The code currently is;</p>
<pre><code>$("#imgMain img").attr("src","/_images/multi/"+productCode+"/"+imgCodeAlt+"_l.jpg");
</code></pre>
<p>And i somehow need to append it with rel="lightbox"</p>
<p>Thanks in advance :)</p>
<p>Shaun</p>
| javascript jquery | [3, 5] |
2,010,141 | 2,010,142 | Get empty space in container | <p>How to get an empty (in example white) area in a container with Javascript?
Is there a ready jQuery function or something equal?</p>
<p><img src="http://i.stack.imgur.com/7uFo9.png" alt="screen"></p>
<p>I need the width, height, left and top position of the 'empty' white area in Javascript.</p>
<p><strong><a href="http://jsfiddle.net/P4QHj/" rel="nofollow">http://jsfiddle.net/P4QHj/</a></strong></p>
<p>HTML </p>
<pre><code><div id="container">
<div class="box-item a">A</div>
<div class="box-item d">D</div>
<div class="box-item e">E</div>
<div class="box-item f">F</div>
</div>
</code></pre>
<p>CSS</p>
<pre><code>.box-item {
width: 100px;
height: 100px;
background-color: grey;
display:block;
position:absolute;
}
#container {
position:relative;
width:300px;
height:300px;
min-width:300px;
max-width:300px;
}
.a {
position:relative;
left:100px;
width:200px;
height:200px;
}
.d {
left:0px;
top: 200px;
}
.e {
left:100px;
top: 200px;
}
.f {
left:200px;
top: 200px;
}
</code></pre>
<p></p>
<p>TIA
frgtv10</p>
| javascript jquery | [3, 5] |
3,702,243 | 3,702,244 | Save Values of Dynamically created TextBoxes | <p>guys i am creating dynamic TextBoxes everytime a button is clicked. but once i have as many text boxes as i want.. i want to save these value Database Table.. Please guide how to save it into DB </p>
<pre><code>public void addmoreCustom_Click(object sender, EventArgs e)
{
if (ViewState["addmoreEdu"] != null)
{
myCount = (int)ViewState["addmoreEdu"];
}
myCount++;
ViewState["addmoreEdu"] = myCount;
//dynamicTextBoxes = new TextBox[myCount];
for (int i = 0; i < myCount; i++)
{
TextBox txtboxcustom = new TextBox();
Literal newlit = new Literal();
newlit.Text = "<br /><br />";
txtboxcustom.ID = "txtBoxcustom" + i.ToString();
myPlaceHolder.Controls.Add(txtboxcustom);
myPlaceHolder.Controls.Add(newlit);
dynamicTextBoxes = new TextBox[i];
}
}
</code></pre>
| c# asp.net | [0, 9] |
3,598,410 | 3,598,411 | redirect a page automatically | <p>how to automatically redirect an ASP.NET page to another after 1 minute using c# code.</p>
| c# asp.net | [0, 9] |
3,677,186 | 3,677,187 | Load sharedpreferences not giving me a value | <p>Here is my code.</p>
<pre><code> SharedPreferences sharedPreferences = getSharedPreferences(values,
MODE_PRIVATE);
str1 = sharedPreferences.getString("lu121", "test");
str2 = sharedPreferences.getString("lp5151", "test");
et_username.setText(str1);
et_pass.setText(str2);
</code></pre>
<p>by default str1 and str2 should have values of test but when i open the android application the edittexts are not set as test instead i see a blank. Is there something wrong with my code?</p>
| java android | [1, 4] |
2,871,744 | 2,871,745 | How to fetch key based on values from app.config file? | <p>I have an app.config file like this:-</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="botLogs" value="d:\TFS Projects-BotLogs/"/>
<add key="botfolder" value="C:\BOTSCONFIG"/>
</appSettings>
<connectionStrings>
<add connectionString="Server=1.1.1.1;Database=BGAppCrawling;UID=sa;Password=something;" name="VGDB"/>
<add connectionString="Server=1.1.1.1;Database=BGMappingStaging;UID=sa;Password=something;" name="VGDBMapping"/>
</connectionStrings>
</configuration>
</code></pre>
<p>Now I can fetch values based on keys in appSettings section like this:-</p>
<pre><code>string filePath = ConfigurationSettings.AppSettings["botLogs"].ToString();
</code></pre>
<p>But what is the way if I want to fetch key based on values from appSetting section ?</p>
| c# asp.net | [0, 9] |
4,256,450 | 4,256,451 | Sending lat and long to python server | <p>What if i want to send this data to my server Python After i already
open a connection and i want to send tis string , so here is my code , how to be able to send this </p>
<pre><code>String Text = "My current location is: " +
"Latitud =" + loc.getLatitude()+
"Longitud =" +loc.getLongitude() ;
</code></pre>
| android python | [4, 7] |
5,011,278 | 5,011,279 | Static Variable interference ASP.net? | <p>I am quite new to Web Development and ASP.net
but i was wondering the following question:</p>
<p>If I declare a static variable on a web page and several
users access the same page simultaneously. Is this static
variable unique to each user or will it interfere with
different users?</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
1,757,894 | 1,757,895 | Alert user before session expires, option to renew session | <p>I am setting session time in web config. I also have a javascript for detecting session timeout and letting the user know.</p>
<p>I would like to be able to alert the user 30 sec or a min or more before session timeout with a popup and to give them the opportunity to extend it or cancel and just let it timeout. Can this be done? I have tried to use various methods on the internet but none seem to work. They all require i download something and i dont want to have to do that.</p>
<pre><code> <script type="text/javascript">
var sessionTimeout = "<%= Session.Timeout %>";
function DisplaySessionTimeout() {
sessionTimeout = sessionTimeout - 1;
if (sessionTimeout >= 0)
window.setTimeout("DisplaySessionTimeout()", 60000);
else
{
alert("Your current Session is over due to inactivity.");
}
}
</script>
</code></pre>
<p>I am also checking for timeout in code behind and rediecting but thinking about just doing it in javascript.</p>
<pre><code>protected void Page_Init(object sender, EventArgs e)
{
CheckSession();
}
private void CheckSession()
{
if (Session["ASP.NET_SessionId"] == null)
{
// Session.RemoveAll();
Response.Redirect("Home.aspx");
}
}
</code></pre>
| c# javascript asp.net | [0, 3, 9] |
191,228 | 191,229 | Javascript, passing a variable into a click event? | <p>I really can't figure out how I would do this. It's more of a concept question than a code question so I'll just post an example:</p>
<pre><code>object = $('#div');
function doSomething(object) {
//iterates through a list and creates a UL with items in corresponding to that list.
$(body).append("<li id='clickme'>Hello world</li>");
}
function createModal(object) {
//creates modal dialogue.
doSomething(object);
//more stuff
}
$('#clickme').live("click", function() {
//I need access to object (not the object declared at first,
//the object passed into doSomething) here.
});
</code></pre>
<p>Any ideas how I would do such a thing? doSomething would create a set of LIs and have a parameter passed into it. When those LIs the function creates are clicked, they need to interact with the parameter that's passed into doSomething. Is there a way to bind them or something?</p>
<p>Sorry if I didn't make any sense.</p>
| javascript jquery | [3, 5] |
872,295 | 872,296 | changing links doesnt work with jquery | <p>I have got this link:</p>
<pre><code><a href="http://iml.com/wmaster.ashx?WID=124904080515&amp;cbname=liveealve&amp;LinkID=701&amp;queryid=138&amp;from=freevideo6&amp;promocode=BETLNK&amp;FRefID=-1&amp;FRefP=none&amp;FRefQS=none" rel="nofollow" title="Visit imLive.com" target="_blank" class="sitelink_external imlive">Visit imLive.com</a>
</code></pre>
<p>I want to use this code to add/change different url parameters:</p>
<pre><code> $("a.sitelink_external.imlive").each(function(){
$params=getUrlVars(document.URL);
var promocode_addition='';
if('INFO'==$params['ref']){
promocode_addition='LCI';
}
$(this).attr("href", 'http://im.com/wmaster.ashx?WID=124904080515&cbname=limdeaive&LinkID=701&queryid=138&promocode=LCDIMLRV" + i + promocode_addition+"&"FRefID=" + FRefID + "&FRefP=" + FRefP + "&FRefQS=" + FRefQS');
});
</code></pre>
<p>The problem is that that jquery code doesnt work..I tried to move it to document ready..but it doesnt work there too..</p>
| javascript jquery | [3, 5] |
135,650 | 135,651 | Prevent bubbling without Jquery | <p>When I move mouse over the container panel, the child panel is displayed but as soon as i move mouse over the child panel, the mouseout event is triggered and panel get hidden.</p>
<p>This is simplified version of my code because panels are located inside gridview and therefore i can't use document.getElementById("panelchild") as it is (the js will get the specific id latter), but for now i want to make it work for this simple case.</p>
<p>This is the partial script:</p>
<pre><code><script type="text/javascript">
function ShowPanel(e) {
// e = e || window.event;
// var evtSrc = e.target || e.srcElement;
var panel = document.getElementById("panelchild")
if (panel.style.display == "none")
panel.style.display = "";
else
panel.style.display = "none";
}
</script>
</code></pre>
<p>This is the markup:</p>
<pre><code><asp:Panel id="panelContainer" runat="server" onmouseover="ShowPanel(event)" onmouseout="ShowPanel(event)" >
<asp:HyperLink ID="lnkTitle" runat="server" style="float:left;margin-right:10px;" Text="This is title" NavigateUrl="www" />
<asp:Panel id="panelchild" runat="server" style="display:none" >
<a id="A1" href="javascript: void(0);" style="text-decoration: none;">
<img src="mylocalsite/images/Misc_Edit.gif" style="border:0px;float:left;" />
</a>
</asp:Panel>
</asp:Panel>
</code></pre>
| asp.net javascript | [9, 3] |
1,602,271 | 1,602,272 | What is the difference between loading JS in FF & IE | <p>I am currently working on a heavy web page. This page contains 5 tabs & each tab contains a gridview & multiple server controls. When i work in Edit mode I fetch data from database for all tabs using Ajax request & fill the controls using Jquery. This works fine in mozilla but IE 6 takes time to fill the controls because i think mozilla FF fills the controls sequentially but IE fills all controls asynchronously & displays when all controls are filled what is the best way to fill the controls in IE 6 faster way? </p>
| jquery asp.net | [5, 9] |
5,359,103 | 5,359,104 | Deserializing JSON as a Generic List | <p>I have a filter string as shown in the below format:</p>
<pre><code>{"groupOp":"AND","rules":[{"field":"FName","op":"bw","data":"te"}]}
</code></pre>
<p>I need to deserialize this as a Generic list of items.</p>
<p>Can anyone guide me on how to do this?</p>
| javascript asp.net | [3, 9] |
4,696,773 | 4,696,774 | is there a better way to do this without reflection? | <p>I need to set all of the properties of a class using the same function. Currently I am using reflection to get all of the properties and looping through to set their values. I know all of the properties, there is nothing dynamic happening.</p>
<p>Here is my code I am currently running in my constructor:</p>
<pre><code>foreach (PropertyInfo property in this.GetType().GetProperties())
{
// retreive the value and set it
property.SetValue(this, GetValue(field), null);
}</code></pre>
<p>Is there way to do something similar without using reflection?</p>
| c# asp.net | [0, 9] |
663,220 | 663,221 | show me the latitude and longtitude of that address | <p>I want to implement the google geocoder in my website, so that if I give the address of any location it gives me the latitude and longitude of that address. Are there any tutorials?</p>
<p>Just like this website: <a href="http://itouchmap.com/latlong.html" rel="nofollow">http://itouchmap.com/latlong.html</a></p>
<p>In this website I give the location of the address and it gives me the latitude and longtitude of that address, I want to do this, using php and javascript.</p>
| php javascript | [2, 3] |
1,302,892 | 1,302,893 | How can I programmatically run the ASP.Net Development Server using C#? | <p>I have ASP.NET web pages for which I want to build automated tests (using WatiN & MBUnit). How do I start the ASP.Net Development Server from my code? I do not want to use IIS.</p>
| c# asp.net | [0, 9] |
3,597,995 | 3,597,996 | PHP / mySQL output via javascript and dropdown | <p>Here is what I have in php:</p>
<pre><code>[Color, Size, Status]
Red, Small, 1
Red, Large, 0
Blue, Small, 1
Blue, Large, 1
</code></pre>
<p>I can get that output in php just fine like mentioned above. What I want to do is get this structured properly for dropdown in html and javascript/jquery (please continue reading for javascript purpose).</p>
<p>Basically there would be 2 dropdowns. One for Size and one for Color. The reason for javascript (preferably jquery) is to check the status. 1 means in stock and 0 for out of stock. So if someone were to select the combination of Red Color in Large Size it would be status of 0 (meaning out of stock)</p>
<p>I have been struggling on how to do this for few hours. Any help is much appreciated!!</p>
<p>----== UPDATE ==----</p>
<p>I have found a way to do this, but different than I had initially wanted to (using an array or ojbect in javascript)</p>
<p>Anyhow, my solution is posted here: <a href="http://jsbin.com/osipe5/2" rel="nofollow">http://jsbin.com/osipe5/2</a></p>
<p>Basically I output a bunch of combinations in a hidden input and then use the javascript to read them and update the text of the select options</p>
| php javascript jquery | [2, 3, 5] |
2,052,204 | 2,052,205 | Handle — while import csv file using C# | <p>I had written code (in C#) about to import csv file using <a href="http://www.filehelpers.com/" rel="nofollow">filehelper</a>.
I am facing one issue that if file contain any <a href="http://www.utexas.edu/learn/html/spchar.html" rel="nofollow">&mdash (—)</a> than it would replace by ? character (not exact ? instead some special character as per shown in below image)</p>
<p><img src="http://i.stack.imgur.com/e5bJs.jpg" alt="enter image description here"></p>
<p>How can i handle this by code?</p>
<p>Thanks.</p>
| c# asp.net | [0, 9] |
929,072 | 929,073 | PHP "Cancel" line of code | <p>I am using phpseclib to ssh to my server and run a python script. The python script is an infinite loop, so it runs until you stop it. When I execute python script.py via ssh with phpseclib, it works, but the page just loads for ever. It does this because phpseclib does not think it is "done" running the line of code that runs the infinite loop script so it hangs on that line. I have tried using exit and die after that line, but of course, it didnt work because it hangs on the line before, the one that executes the command. Does any one have any ideas on how I can fix this without modifying the python file? Thanks.</p>
| php python | [2, 7] |
1,735,555 | 1,735,556 | Mmimic C++ template functions in Java | <p>In C++ I can write a template function that takes the data type on which to act as an argument, so that a single function can be reused for more than on data type. Is there a provision for doing a similar thing in Java?</p>
<p>Thanks,<br>
Roger</p>
| java c++ | [1, 6] |
792,158 | 792,159 | Clear dynamic UserControl container | <p>How can I make _dynamicMaterials empty or clear the viewstate?</p>
<p>When the user clicks on submit I want to reset the container so all textboxes are empty.</p>
<p>Any ideas how I can work this out? </p>
<pre><code> private materials[] _dynamicMaterials; // Container for dynamically added UserControl "materials.ascx"
protected void Page_PreInit(object sender, EventArgs e)
{
GetPostBackControl(Page);
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if (!this.DesignMode)
{
int count = MySession.Current.UserControlCount;
_dynamicMaterials = new materials[count];
for (int i = 0; i < count; i += 1)
{
Control newcont = LoadControl("materials.ascx");
newcont.ID = "materialControl" + i.ToString();
myPlaceHolder1.Controls.Add(newcont);
_dynamicMaterials[i] = (materials)newcont;
}
}
}
</code></pre>
| c# asp.net | [0, 9] |
162,963 | 162,964 | Static variable does not get updated in Java | <p>I am seeing a bahavior that seems absurd. In my android app I have a static variable that is updated on the occurence of an event periodically. The problem is I initialize the variable and then update it in a thread on the event. Any changes to the variable I make in the thread are not getting reflected in the subsequent call. Its getting reset to the values I originally initialized them to. Is there something I am missing?</p>
<p>One thing is the static variable is an object with multiple objects inside it and its the values I set to the variables of these inner objects that are getting reset. The variables in the outer variable are getting set though.</p>
<p>EDIT: I know I need to post code but the code in question is from a large file and is not possible to paste. In order to post I have to reproduce the behavior in a smaller test code and hence I did not.</p>
<p>EDIT2: The process just spawns one thread. The initializing is done in the main process before the thread is spawned and the event handling is done in the thread. There are no multiple threads here. </p>
<p>EDIT3: Sorry about this. Turns out its a bug in my code. I did not quite understand the events that are generated and handled and the paramter in question was getting reset. I wish I could pretend this never happend but I will at least be sure not to post here in the middle of the night all frustrated :)</p>
| java android | [1, 4] |
5,848,988 | 5,848,989 | 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] |
1,935,173 | 1,935,174 | changing value in javascript object iterated using jquery | <p>OK So I have this piece of code :</p>
<pre><code>var el = {a:"b","isSel":true};
$.each(el,function(k,v){
if(k=="isSel"){
v=false
}
})
console.log(el);
</code></pre>
<p>but that doesn't change isSel to false... any clues?</p>
| javascript jquery | [3, 5] |
403,361 | 403,362 | How to catch link or button click? | <p>How do I catch all links and button pressed?
Without having to add my JavaScript method to every link and button?</p>
<p>Anytime my browser wanrs to redirect to page1.aspx
stop it from redirecting and have mt browser click a link found on the page to page2.aspx
instead!</p>
| c# asp.net javascript | [0, 9, 3] |
6,006,713 | 6,006,714 | Adding controls to a table control dynamically | <p>I have one table control "table1"</p>
<p>And added controls to it in click event of one button as :</p>
<pre><code>protected void Button2_Click(object sender, EventArgs e)
{
TableRow row;
TableCell cell;
for (int i = 0; i < 3; ++i)
{
TextBox txt = new TextBox();
txt.Text = i.ToString();
row = new TableRow();
cell = new TableCell();
cell.Controls.Add(txt);
row.Controls.Add(cell);
Table1.Controls.Add(row);
}
}
</code></pre>
<p>but i cant retrieve this controls in click event of another button. i think it is because of postback.</p>
<p>How can i prevent it?</p>
| c# asp.net | [0, 9] |
4,557,154 | 4,557,155 | Jquery help needed- infinite loop? | <p>i have a problem with this code:</p>
<pre><code> var par = [];
$('a[name]').each(function() {
if (($(this).attr('name')).indexOf("searchword") == -1) {
par.push($(this).attr('name'));
$('.content').empty();
for (var i = 0; i < par.length; i++) {
$(".content").append('<a id="par" href="#' + par[i] + '">' + par[i] + '</a><br />');
}
}
});
</code></pre>
<p>It causes ie and firefox to popup the warning window "Stop running this script". But it happens only when there is a very very large amount of data on page. Any ideas how to fix it?</p>
| javascript jquery | [3, 5] |
1,756,723 | 1,756,724 | Updating page with database information | <p>I am trying to make a refresh algorithm for my site but dont want to have a bunch of <code>$.post()</code> scripts being sent to the server checking for updates. So I was wondering if there were any good ways of sending updates to the page that is being viewed when something on a database is changed. </p>
| php jquery | [2, 5] |
4,931,178 | 4,931,179 | Explanation needed about linq queries | <pre><code>private bedrijf_modelDataContext dc = new bedrijf_modelDataContext();
public IList<Afdeling> selectAll()
{
var result = from a in dc.Afdelings
select a;
return result.ToList();
}
</code></pre>
<p>This code is supposed to return all the records from the Afdeling-table.
This code works, but it comes from my teacher, and there is no explanation whatsoever as to how this works. Can somebody explain what this exactly does? Thank you.</p>
| c# asp.net | [0, 9] |
292,801 | 292,802 | click function triggering function before event finishes | <p>I've built a dropdown menu that uses a slideUp event if the menu itself or anywhere in the body is clicked:</p>
<pre><code>$('html, .currentPage').click(function() {
$('.currentMenu').slideUp('fast', function() { myFunction(); });
});
</code></pre>
<p>I also have a function inside the slideUp event callback. </p>
<p>However, my problem is that the function is being called on html or .currentPage click whether the slideUp event has occurred or not.</p>
<p>How can I make it so the function(); <strong>ONLY</strong> happens if the slideUp event runs?</p>
| javascript jquery | [3, 5] |
1,598,323 | 1,598,324 | Adding callback functionality to my simple javascript function | <p>I am not writing a plugin. I am just looking for a simple clean way to let myself know when a certain function has finished executing ajax calls or whatever.</p>
<p>So I have this:</p>
<pre><code>function doSomething() {
...
getCauses("", query, function () {
alert('test');
});
...
}
function getCauses(value, query) {
//do stuff...
}
</code></pre>
<p>Of course the alert never happens. I have a $.ajax call inside getCauses and would like to alert or do some action after getCauses finishes executing and then running the line of code from where the function was called.</p>
<p>Ideas? Thanks.</p>
| javascript jquery | [3, 5] |
2,039,135 | 2,039,136 | The "not:()" selector isn't working with ".live()" when event binding | <p>When I added <code>live()</code> to some mousedowns, my <code>not:</code> conditional stopped working.</p>
<pre><code> $("body :not(" + _self.somevar + ")").live('mousedown',
function(event){
event.stopPropagation();
// some more code
}
</code></pre>
<p>When it wasn't <code>live()</code> it worked. Now that I use <code>live()</code>, when I mousedown on that item, it fires when it shouldn't.</p>
<p>Anyone know why <code>not:</code> is no longer adhered to?</p>
| javascript jquery | [3, 5] |
2,919,240 | 2,919,241 | Creating a Print Link | <p>I want to create a Print Button that will print a printer friendly version of the currently viewed webpage when selected. How should I go about this? I would like to show a print preview of the document in an ajax / jQuery popup window as well. Users can zoom in, zoom out, rotate the content as well. </p>
| javascript jquery | [3, 5] |
1,019,489 | 1,019,490 | Passing data through a hyperlink WITHOUT include the data in the URL | <p>I know how to pass data through a URL and how to receive the data using <code>$_GET</code> but I don't want the variables to show up in the URL.</p>
| php javascript | [2, 3] |
4,001,619 | 4,001,620 | Patterns for avoiding jQuery silent fails | <p>Is there any good practice to avoid your jQuery code silently fail? </p>
<p>For example: </p>
<pre><code>$('.this #is:my(complexSelector)').doSomething();
</code></pre>
<p>I know that every time this line get executed, the selector is intended to match at least one element, or certain amount of elements. Is there any standard or good way to validate that?</p>
<p>I thought about something like this:</p>
<pre><code>var $matchedElements = $('.this #is:my(complexSelector)');
if ($matchedElements.length < 1)
throw 'No matched elements';
$matchedElements.doSomething();
</code></pre>
<p>Also I think unit testing would be a valid option instead of messing the code.</p>
<p>My question may be silly, but I wonder whether there is a better option than the things that I'm currently doing or not. Also, maybe I'm in the wrong way checking if any element match my selector. However, as the page continues growing, the selectors could stop matching some elements and pieces of functionality could stop working inadvertently. </p>
| javascript jquery | [3, 5] |
3,216,498 | 3,216,499 | WordPress Jquery Fade in, Fade out effect | <p>I'm following <a href="http://hv-designs.co.uk/2010/01/13/learn-how-to-add-a-jquery-fade-in-and-out-effect/" rel="nofollow">a tutorial</a>.</p>
<p>I've included the hover.js with the following code:</p>
<pre><code>$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".imgopacity").css("opacity","0.5");
// ON MOUSE OVER
$(".imgopacity").hover(function () {
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
// ON MOUSE OUT
function () {
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.5
}, "slow");
});
});
</code></pre>
<p>But it doesn't work, on chrome it says:
<a href="http://i52.tinypic.com/4jnsdd.png" rel="nofollow">http://i52.tinypic.com/4jnsdd.png</a></p>
<p>Here's the site i'm working on: <a href="http://goo.gl/dlB1u" rel="nofollow">http://goo.gl/dlB1u</a></p>
<p>and this is the image wherein i applied the effect/css class:
<a href="http://i54.tinypic.com/6h1ds0.png" rel="nofollow">http://i54.tinypic.com/6h1ds0.png</a></p>
<p><em>sorry for posting image urls it says i can't post images yet on stackexchange</em></p>
| jquery javascript | [5, 3] |
5,119,306 | 5,119,307 | load function of jquery doesnt seem to work | <pre><code>$toolTip_inner.load('ajax/fetchUser_data.php',{ id: $tooltipText });
</code></pre>
<p>I am trying to load the content of the php file to <code>toolTip_inner</code> and passing the parameters..</p>
<p>The file fetchUser_data.php executes a mysql statement and retrieves, but before that it goes to this statement:</p>
<p><code>if( isset($_GET["id"]) )
{</code></p>
<p>and never goes to into the if condition, why is that?!??</p>
| php jquery | [2, 5] |
4,727,828 | 4,727,829 | I have two javascript block in the page , one is adding dynamicllay which is , providing all images. should add above existing javascript on page | <p>i am using following code to add javascript dynamically </p>
<pre><code> HtmlGenericControl scriptTagLinks = new HtmlGenericControl("script");
scriptTagLinks.Attributes["type"] = "text/javascript";
var scrip = "var aImgs=[" + appendString.ToString().TrimEnd(new char[] { ',' }) + "]";
scriptTagLinks.InnerHtml = scrip;
</code></pre>
<p>Javascript is adding to ascx page . But my problem I have two javascript block in the page , one is adding dynamicllay which is , providing all images. another one javascript as follows .</p>
<pre><code><script type="text/javascript>
window.onload = function () {
for (var i = 0; i < aImgs.length; i++) {
var oImg = new Image();
oImg.src = aImgs[i];
aImages.push(oImg);
oImg.onload = function () {
textureWidth = oImg.width;
textureHeight = oImg.height;
}
}}
</script>
</code></pre>
<p>but dynamically created javascript is being added below the script . But should add above the script like this .</p>
<pre><code> <script type="text/javascript">
var aImgs = [
'DesktopModules/DNAiusCubeImages/Check/pic1.jpg',
'DesktopModules/DNAiusCubeImages/Check/pic2.jpg',];
</script>
<script type="text/javascript>
window.onload = function () {
for (var i = 0; i < aImgs.length; i++) {
var oImg = new Image();
oImg.src = aImgs[i];
aImages.push(oImg);
oImg.onload = function () {
textureWidth = oImg.width;
textureHeight = oImg.height;
}
}}
</script>How can i achieve this .
</code></pre>
| c# javascript asp.net | [0, 3, 9] |
2,620,580 | 2,620,581 | how can we pass the variable into the function via url? | <p>I have designed an ASP.NET page which create graphs.</p>
<p>I have written a class file (which contain a function to render the graph, a function for entering data named <code>insertdata(string[] s,double[] d)</code>) in App_code folder.</p>
<p>I pass the value into the insertdata during <code>page_load</code> event.</p>
<p>I saw a feature of <strong>googlechart</strong> where you pass the value via URL it will create
a graph according to that passed value.</p>
<p>How can i pass the value into the <code>insertdata()</code> function through the URL?</p>
| c# asp.net | [0, 9] |
2,444,079 | 2,444,080 | Load records from database with dropdown selection without submit button | <p>I've got two submit buttons in my form: </p>
<ul>
<li>Button to submit/save the form and insert the input fields to the database.</li>
<li>Button to load the records into the form that are already in the database, based on a drop-down selection. For example to change the existing records in the database.</li>
</ul>
<p>Now i know how to submit a form without clicking the submit button:</p>
<pre><code>onChange = "this.form.submit()"
</code></pre>
<p>But what i want is to remove the 'Load button' to that if i make a selection in the drop-down it automatically loads the records, instead of submitting the total form with the code above.</p>
<p>Any idea how to achieve this?</p>
| php javascript jquery | [2, 3, 5] |
3,436,463 | 3,436,464 | How to reduce gap between 2 tables in Javascript | <p>I am using Javascript for my ascx control. I have 2 tables, one below the other. My code written is like </p>
<pre><code> </tr>
</table>
<table style="border-spacing: 15px;">
</code></pre>
<p>But when i execute, it shows almost 2 inch space between them. Can some help me out?</p>
<p>Thank you!!</p>
| javascript asp.net | [3, 9] |
172,364 | 172,365 | how to get photo from contacts? | <p>I want to get photo from contacts, if some contacts don't have photo to return default photo(just silhouette), how can I do that?
Thanks in advance,
Wolf.</p>
| java android | [1, 4] |
4,279,029 | 4,279,030 | How to extend jQuery's ajax | <p>This is rather a syntax question I am going to explain it jQuery's ajax functionality.</p>
<p>Let's say I want to control <code>dataType</code> of all ajax request according to <code>url</code>. For example url's with parameter <code>&parseJSON=true</code> should have a dataType of <code>'JSON'</code> automatically.</p>
<p>For example: </p>
<p><code>$.myajax({url:'http://example.com&parseJSON=true'})</code></p>
<p>should be equivalent to </p>
<p><code>$.ajax({url:'http://example.com&parseJSON=true', dataType: 'JSON'})</code></p>
<p>Basically, I need to check for URL and add dataType parameter if needed.</p>
<p>Thanks</p>
| javascript jquery | [3, 5] |
3,350,414 | 3,350,415 | Tron game keyevent issue | <p>I want to make a 'Tron-game like' little game, heres the code, i already made: <a href="http://jsfiddle.net/Jim_Y/KQW5w/2/" rel="nofollow">http://jsfiddle.net/Jim_Y/KQW5w/2/</a>
code snippet:</p>
<pre><code>$(document).keydown(function (e) {
if (e.keyCode == 37) {
// leftArrowPressed
palette.leftArrowPressed();
} else if (e.keyCode == 38) {
// topArrowPressed
palette.topArrowPressed();
} else if (e.keyCode == 39) {
// rightArrowPressed
palette.rightArrowPressed();
} else if (e.keyCode == 40) {
// bottomArrowPressed
palette.bottomArrowPressed();
}
return false;
});
Palette.prototype.leftArrowPressed = function () {
this.X = this.X - this.game.speed;
this.context.lineTo(this.X, this.Y);
this.context.stroke();
}
</code></pre>
<p>The problem is, when i press one of the arrow keys and draw a line, then press a different arrow key, there is a little break on the drawing, so the line-drawing is not continuous :/
Any advice?</p>
| javascript jquery | [3, 5] |
3,988,526 | 3,988,527 | Get attr form <a href> | <p>ive got a problem with getting attr from <code><a href></code>.</p>
<p>Got something likte this</p>
<pre><code><a href="#callback" realurl="callback.aspx">Callback</a>
</code></pre>
<p>And jQuery</p>
<pre><code>$('#callback').bind('pageAnimationEnd', function (e, info) {
var realurl = $(this).attr('realurl');
if (!$(this).data('loaded')) {
$(this).append($('<table border=0 width="100%" height="100%"><tr width="100%" height="100%"><td>Wczytuję...</td></tr></table>').
load(realurl, function () {
$(this).parent().data('loaded', true);
$('#ParentTest').html("test");
}));
}
});
</code></pre>
<p>And im getting all the time undefined from $(this).attr('realurl').</p>
| javascript jquery asp.net | [3, 5, 9] |
5,454,826 | 5,454,827 | How to hide div that is referenced by an anchor href on click with javascript (jQuery) | <p>I have several blocks of text separated into their own divs. I also have several links in a navigation bar that reference these divs with an anchor link. On click, I'd like to hide all other divs except the one referenced by the clicked link. I have:</p>
<pre><code><div id="navbar">
<ul>
<li><a href="#section1">Link 1</a></li>
<li><a href="#section2">Link 2</a></li>
<li><a href="#section3">Link 3</a></li>
<li><a href="#section4">Link 4</a></li>
</ul>
</div>
</code></pre>
<p>So, when I click 'Link 3'. I'd like to hide all divs except #section3.</p>
<p>I'm fine actually hiding/showing each section of text using CSS, but I can't figure out how to use the link's href attribute to reference the div name. </p>
<p>Thanks for your help, and let me know if you need clarification of what I'm asking.</p>
| javascript jquery | [3, 5] |
3,620,980 | 3,620,981 | Java/Android : passing accelerometer value from onSensorChanged method to onCreateSetContentView() | <p>I'm new on Java and Android programming language and this is the first platform that I studied.
I want to ask, how can I access the event.values[1] in this method?</p>
<pre><code>public void onSensorChanged(SensorEvent event) {synchronized (this){
if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER)
return;
mAccVals.x = (float) (event.values[1] * FILTERING_FACTOR + mAccVals.x * (1.0 - FILTERING_FACTOR));
//mAccVals.y = (float) ((-event.values[1] * FILTERING_FACTOR + mAccVals.y * (1.0 - FILTERING_FACTOR)));
mAccVals.z = (float) (event.values[2] * FILTERING_FACTOR + mAccVals.z * (1.0 - FILTERING_FACTOR));
scene.camera().position.x = mAccVals.x * .2f;
scene.camera().position.z = mAccVals.z * .8f;
scene.camera().target.x = -scene.camera().position.x;
scene.camera().target.z = -scene.camera().position.z;
}
</code></pre>
<p>I want to get event.values[1] and then display it on a textview</p>
<pre><code>protected void onCreateSetContentView()
{
setContentView(R.layout.custom_layout_example);
LinearLayout ll = (LinearLayout) this.findViewById(R.id.scene1Holder);
ll.addView(_glSurfaceView);
TextView myTextView = (TextView) findViewById(R.id.splashTitle);
myTextView.setText("Test " + event.values[1] );
return;
}
</code></pre>
<p>There's any suggestion how can I solve this problem?
Thanks in advance</p>
| java android | [1, 4] |
2,384,439 | 2,384,440 | jQuery validation is loaded but doesnt display error messages | <p>I have a simple site, which has a form and an inputbox. I want to validate weather or not this input box is filled, with jQuery validation. The validation plugin is loaded, but i dont get any error messages.</p>
<p>Here is my code:</p>
<p><a href="http://jsfiddle.net/euwPz/" rel="nofollow">http://jsfiddle.net/euwPz/</a></p>
<p>Whats wrong?</p>
| javascript jquery | [3, 5] |
1,391,208 | 1,391,209 | Which event in a PageIndicator can I use to get a click on the current tab? | <p>I have to catch the tab click event even when the current tab is the same clicked tab.
I tried the setOnPageChangeListener but none of the events are dispatched.
Also onClick and onTouch for the indicator don't dispatch.
How can I do that?</p>
<p>I'm using TabPageINdicator from Jake Wharton</p>
<p>Thanks</p>
| java android | [1, 4] |
358,532 | 358,533 | C# equivalent of fread | <p>I am in the process of converting some C++ code to C#, I am trying to figure out how I could write out and following C++ code in my C# app and have it do the same thing:</p>
<pre><code>fread(&Start, 1, 4, ReadMunge); //Read File position
</code></pre>
<p>I have tried multiple ways such as using FileStream:</p>
<pre><code> using (FileStream fs = File.OpenRead("File-0027.AFS"))
{
//Read amount of files from offset 4
fs.Seek(4, SeekOrigin.Begin);
FileAmount = fs.ReadByte();
string strNumber = Convert.ToString(FileAmount);
fileamountStatus.Text = strNumber;
//Seek to beginning of LBA table
fs.Seek(8, SeekOrigin.Begin);
CurrentOffset = fs.Position;
int numBytesRead = 0;
while (Loop < FileAmount) //We want this to loop till it reachs our FileAmount number
{
Loop = Loop + 1;
//fread(&Start, 1, 4, ReadMunge); //Read File position
//Start = fs.ReadByte();
//Size = fs.ReadByte();
CurrentOffset = fs.Position;
int CurrentOffsetINT = unchecked((int)CurrentOffset);
//Start = fs.Read(bytes,0, 4);
Start = fs.Read(bytes, CurrentOffsetINT, 4);
Size = fs.Read(bytes, CurrentOffsetINT, 4);
Start = fs.ReadByte();
}
}
</code></pre>
<p>The problem I keep running into is that <code>Start/Size</code> do not hold the 4 bytes of data that I need.</p>
| c# c++ | [0, 6] |
5,654,172 | 5,654,173 | Is there Android Intent concept in iPhone SDK | <p>Just switching from Android to iPhone. In Android I can make several apps and use a tabView to call each app as intent.</p>
<p>In iPhone, I can make several apps. I need a tab to call each apps or app views. Is there similar concept as intent in iPhone? Just switched to iPhone, copying all the other projects into the tabbar does not work out. If you have other methods to solve, I really appreciate. Thanks,</p>
| iphone android | [8, 4] |
4,932,967 | 4,932,968 | ASP.NET Popup and return value back to parent screen | <p>I have an ASP.NET Screen and if someone clicks a button to open a popup to select a value, i want the popup to return that value to a specfic text box behind.</p>
<p>How can this be done? It is on the same domain. Would ViewState work?</p>
| c# asp.net | [0, 9] |
4,989,172 | 4,989,173 | Prevent ddl from triggering unsaved changes warning while still executing OnSelectedIndexChanged event | <p>I'm using this jquery code to detect unsaved changes and warn users before they navigate away.</p>
<pre><code> var _changesMade = false;
$(document).ready(function () {
$('form').bind($.browser.msie ? 'propertychange' : 'change', function () {
_changesMade = true;
});
$(window).bind('beforeunload', function () {
if (_changesMade)
return 'There are unsaved changes which will be lost if you continue.';
});
});
</code></pre>
<p>It works fine except on a page where I have a cascading dropdownlist. I added this code to the asp:DropDownList control</p>
<pre><code>onChange = "_changesMade=false; return false;"
</code></pre>
<p>and it stops the warning, but it also stops the OnSelectedIndexChanged server code from executing, so now the second drop down is not being populated with the correct data. How can I prevent the popup and still execute the server code when the dropdownlist is changed?</p>
| javascript jquery asp.net | [3, 5, 9] |
1,223,263 | 1,223,264 | og:description 'content' unterminated string literal | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5296402/unterminated-string-literal">unterminated string literal</a> </p>
</blockquote>
<p>I have a problem setting og:description with followed function...</p>
<pre><code>function createFacebookMeta($title, $fcUrl, $fcImg, $fcDesc){
$fcDesc = (strlen($fcDesc) > 100) ? substr($fcDesc,0,150).'...' : $fcDesc;
$faceBook = "<script type=\"text/javascript\">
$(document).attr('title', '".$title."');
$('meta[property=\"og:title\"]').attr('content', '".$title."');
$('meta[property=\"og:url\"]').attr('content', '".$fcUrl."');
$('meta[property=\"og:image\"]').attr('content', '".$fcImg."');
$('meta[property=\"og:description\"]').attr('content', '".$fcDesc."');
FB.XFBML.parse();
</script>";
echo $faceBook;
}
</code></pre>
<p>as response i get in firebug </p>
<p>unterminated string literal</p>
<pre><code> $('meta[property="og:description"]').attr('content', 'Logos gedruckt<br /> //breaks here
</code></pre>
<p>even if i use striptags it reports same ... if i don´t set og:description default meta description is taken (np here) which is about the same lenght, as i read that fb takes arround 300 chars from it max</p>
<p>thank you</p>
<p>$fcDesc is db result</p>
<pre><code>$fcDesc = "Logos gedruckt
<br>
100% Baumwolle
<br>
Vorne: Logo
<br>
Rücken: Cash Ruls";
</code></pre>
<p>(product description)</p>
| php javascript jquery | [2, 3, 5] |
3,971,361 | 3,971,362 | Jquery - keeping it DRY - dynamically named functions? | <p>So I think the best way for me to keep my code is to call a function with a dynamic name. For example, I might need to call "productTemplate", "userTemplate", "orderTemplate", etc...</p>
<p>Is this possible with javascript/jquery? Also, is it a performance hit or not so much?</p>
| javascript jquery | [3, 5] |
5,751,908 | 5,751,909 | how to add pdf file as an attachment to an email | <p>I am dynamically storing each person report as <code>pdf</code> and should send it to them <code>attached with email</code>. How do i send it as an attachment to an email. Here is my code.</p>
<pre><code>public void Esendmail(string EmailFrom, string EmailTo, string EmailBody, string EmailSubject, string EmailCC)
{
MailMessage message = new MailMessage();
message.From = new MailAddress(EmailFrom);
message.CC.Add(EmailCC);
message.To.Add(new MailAddress(EmailTo));
message.IsBodyHtml = true;
message.Body = EmailBody;
message.Subject = EmailSubject;
SmtpClient client = new SmtpClient();
client.Send(message);
}
</code></pre>
| c# asp.net | [0, 9] |
1,287,880 | 1,287,881 | Replace text inside an element | <p>I'm needing to replace a portion of text inside arbitrary elements. I won't know anything about the structure of the element, including about any child elements it may have, but I have to assume there may be child elements with attached bindings. An example might be:</p>
<pre><code><div id="checkit">
Lorem ipsum textum checkum.
<input type="button" id="clickit" value="Click Me" />
</div>
</code></pre>
<p>Now, if I want to replace 'ipsum' with something else, I could grab the contents of #checkit with innerHTML, run replace on it, then set its innerHTML with the new text, but if a binding has been set on #clickit, the binding will be lost when innerHTML is updated.</p>
<p>I don't really need or want to replace the entire innerHTML of the element but I'm not sure how else to replace a portion of text in the element.</p>
<p>So my question is twofold:</p>
<ol>
<li>Suggestion on how to replace a portion of text within #checkit</li>
<li>Suggestion on how to replace innerHTML without losing bindings (or a way to save bindings inside #checkit and reapply them after replacing innerHTML)?</li>
</ol>
| javascript jquery | [3, 5] |
476,105 | 476,106 | What is the best way to accumulate items' IDs before sending them to the server? | <p>I have a ListView its item is selectable. I want after select some items (Client side using JQuery) to send their IDs the selected elements to the server for saving them.</p>
<p>What is the best way to accumulate them in the client side?</p>
<p>Is it using a Hidden field with a seperator between IDs ?</p>
<p>Or is there a better approuch?</p>
<p><strong>Edit:</strong></p>
<p>Notes: ID's are integers, The server side technology is ASP.Net.</p>
| javascript jquery | [3, 5] |
4,843,756 | 4,843,757 | What's the console.log() of java? | <p>I'm working on building an Android app and I'm wondering what the best approach is to debugging like that of console.log in javascript</p>
| java android | [1, 4] |
2,449,311 | 2,449,312 | an android app code | <p>string comparison not working.it is going to the next activity even if password does not match neeed help.Code is pasted below</p>
<pre><code>if(m.equals(w)) {
Toast.makeText(getApplication(), "done", Toast.LENGTH_SHORT).show();
Intent intent = new Intent();
intent.setClass(v.getContext(),Mysubactivity.class);
startActivity(intent);
}
</code></pre>
<p>I have declared m and w as two strings and assigned them to edittext using <code>String m = et.getText.toString();</code></p>
| java android | [1, 4] |
5,039,534 | 5,039,535 | jQuery, change div height to automatically fill out remainder of screen if content isn't already larger | <p>My site is structured roughly like this:</p>
<pre><code>-----------------
header
-----------------
|
|
side| main
|
|
-----------------
footer
</code></pre>
<p>I'm trying to get my "main" div to take all of the remaining height on the screen (and resize during window resizing), so that "footer" is always automatically pushed to the bottom of the screen (appearing to be stuck at the bottom of the screen).</p>
<p>However, I want this only to happen if the content of the "main" div isn't already at that height or even larger. I'm using jQuery but I have a hard time calculating this correctly. Can someone give me a pointer in the right direction?</p>
| javascript jquery | [3, 5] |
3,189,377 | 3,189,378 | jQuery fadeIn and fadeOut divs | <p>I have a working version of my code here:
<a href="http://jsfiddle.net/5Hqs3/24/" rel="nofollow">http://jsfiddle.net/5Hqs3/24/</a></p>
<p>As you can see, there is a default message that displays upon arrival. After a few moments, the cycle begins and "Billing Reminders" becomes bold and a billing message is displayed, then Collections, then Payments.</p>
<p>If you hover over one of the links, it displays that message. Works great.</p>
<p>However, I now need to add multiple messages per category so that the active link remains bold, but the 1st message fades away and a 2nd is displayed. Or a 3rd, and so on.</p>
<p>You'll see in the jsfiddle that I've got divs for the second message within each category that I need the jQuery to cycle through regularly, or when the user hovers over that link.</p>
<p>Any thoughts?</p>
| javascript jquery | [3, 5] |
5,290,315 | 5,290,316 | JQUERY won't work on local machine | <p>I'm trying JQUERY on my machine, but for some reason, nothing seems to work. Here's the test file:</p>
<pre><code><html>
<head>
<script type="text/css" src="jquery.js">
</script>
<script type="text/javascript">
$("p").mouseover(function () {
$(this).css("color","black");
});
$(document).ready(function(){
$("body").css("background-color","black");
$("body").css("color","white");
});
</script>
</head>
<body>
<h1>This is a test</h1>
<p>Roll over me!</p>
</body>
</html>
</code></pre>
<p>Nothing in there works. Also, if anybody wants to know, accessing through my domain and through the local both don't work. I'm really confused, because I copied most of that code off the internet, just in case there was something wrong with my typing.</p>
<p>For some reason, firefox is throwing this error:</p>
<p>Code: Evaluate<br>
$ is not defined<br>
<a href="http://hussain.mooo.com/jq.html" rel="nofollow">http://hussain.mooo.com/jq.html</a><br>
Line: 6<br>
$ is not defined<br>
<a href="http://hussain.mooo.com/jq.html" rel="nofollow">http://hussain.mooo.com/jq.html</a><br>
Line: 6 </p>
<p>New code (moved the p onmouseover handeler)</p>
<pre><code> <script src="jquery.js" type="text/css">
</script>
<script type="text/javascript">
$(document).ready(function(){
$("p").mouseover(function () {
$(this).css("color","black");
});
$("body").css("background-color","black");
$("body").css("color","white");
});
</script>
</code></pre>
| javascript jquery | [3, 5] |
4,552,635 | 4,552,636 | what is wrong with this jquery? | <p>I cant seem to figure this out. Something within this jquery code is breaking my site:</p>
<pre><code> $('.menu li').click(function() {
nextslide = $(this).attr('id').replace('m_', '');
if ($('#m_till').hasClass('active'))
currentslide = 'till';
else if ($('#m_receipts').hasClass('active'))
currentslide = 'receipts';
else
currentslide = 'support';
slide_right(currentslide, nextslide);
}
</code></pre>
<p>When I remove this code, my site works fine. So it has to be something within this function that is causing the problem.</p>
| javascript jquery | [3, 5] |
5,918,659 | 5,918,660 | Thread in javascript | <p>I have function <code>GoToCell(number);</code>
This feature renders the motion of the player.
I have such a situation occurs: the person calls this function two times before over the last execution of the call.
and a call is dropped and begins to run from 2 call. I need to call two did not work until an end is not how to implement it?</p>
| javascript jquery | [3, 5] |
5,058,973 | 5,058,974 | check if div contain a div based on id | <p>i have a li tag which was dynamically added. To that based on some condition i added a div with 4 child div to it. After adding all these dynamically my html design was like this</p>
<p><code></p>
<pre><code><ul>
<li id="liTab1">
<div id="TaskDetails">
<div id="div1"></div>
<div id="div2"></div>
<div id="div3"></div>
<div id="div4"></div>
</div>
</li>
</code></pre>
<p></code>
Now i wanted to remove the div2 and rebind it dynamically at 2nd position only...
is this possible, if so some sample code would be helpfull</p>
<p>Thanks in Advance....</p>
| jquery asp.net | [5, 9] |
5,024,127 | 5,024,128 | jQuery pop-up menu on Internet Explorer | <p>Here - <a href="http://desandr.ci-team.ru" rel="nofollow">http://desandr.ci-team.ru</a> (mouse click on "КАТАЛОГ")</p>
<p>On FF and Chromium works fine - on "mouse in" under element shows menu.
On internet explorer 8 - nothing. </p>
<p>What's this, and how i can fix that?</p>
| javascript jquery | [3, 5] |
5,751,035 | 5,751,036 | jQuery and Unicode characters | <p>I am calling a .txt file from a jquery ajax call. It has some special characters like <code>±</code>. This <code>±</code> is a delimiter for a set of array; data I want to split out and push into a JavaScript array.</p>
<p>It is not treated as <code>±</code> symbol when interpreted like this.</p>
<p>How do I get that data as just like browser content?</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.