Tagged Questions
0
votes
3answers
40 views
How to print data using javascript/jquery
I have the next js code.
var myData=[];
for(j=1;j<=Pages;j++)
{
$.ajax({
type: 'get',
url: 'link.xml'+j,
async: false,
dataType: 'xml',
success: ...
-1
votes
0answers
17 views
why I am not able to upload image in internet explorer with this script?
I got success to upload image on server in chrome and firefox but didn't get success in IE even not getting any error have I done somthing wrong ? pls guide me, thanx a alot
<body>
...
0
votes
0answers
22 views
Show hidden div after login error: JQuery and AJAX
I'm using Jquery AJAX to catch login error,
but when i submit a bad login i can't see the div loginError
i searched on http://api.jquery.com
i used this example ...
0
votes
1answer
45 views
Focus on the new tab
I need all your help for the following approach.
My requirement is
1) Loading a page with two tabs namely SEARCH and DETAILS.
2) By default DETAILS tab should not be enabled.
3)In Search Page, on ...
0
votes
2answers
20 views
not able to call web service from webview
I am not able to call web service or no alert is being shown:
my activity code:
mWebView = (WebView)findViewById(R.id.webViewRootAciviy);
mWebView.setWebViewClient(new WebViewClient());
...
0
votes
1answer
13 views
jquery datePicker beforeShowDay not working for 2014
Hi i am trying to get jquery datePicker to get working for 2014 Year dates. it works Perfect with 2013 dates but not for 2014 date
here is my code
<script>
$(document).ready(function ...
0
votes
1answer
18 views
qTip and dynamically added elements issue
I have page with UpdatePanel where I add some forms on click on the page.
In those new added elements I have images that must use qTip.
I have this:
$(document).ready(function () {
...
0
votes
2answers
48 views
Difference between using variable self vs this
I have been struggling with the use of these "this" with the .bind() method and the use of the variable "self = this". In getting two different results with those, so I'm missing one concept. The case ...
0
votes
2answers
26 views
Redirect and scroll to specfic content
hi guys can any one have idea whenever i click from footer link a new page will be open and the will scroll to a specific content below is the screen shot. Condition is the website is in yii ...
0
votes
1answer
31 views
Converting jQuery script to vanilla JS to optimize performance? [on hold]
I know questions like this have been asked several times before, but it seems like it's always because the person asking doesn't know how to write vanilla JS.
I DO know how to write vanilla JS. No ...
1
vote
1answer
24 views
Display loading image and load the new page on the page linking
First I want to say that my english is not so good I'm Dutch!
Anyway, I was recently on a website and when I wanted to open a new page on that site there was a loading icon ward than the content of ...
0
votes
1answer
28 views
Execute JavaScript if HTML file has been updated 2
From this page I got a great answer, see below the code.
One problem occurs for me.
This script is checking itself. The code is in index.html and it will check if there are changes on index.html. If ...
0
votes
0answers
17 views
Trying to use webfonts to submit an inline edit line within a grid, instead of a button
I have constructed a Grid which supports inline editing with the help of serverside MVC asp.net code and a razor view. It works fine with "input" and "button" elements as shown below:
<td>
...
0
votes
0answers
7 views
rails bootstrap modal dialog load selected content from a list of content via ajax
I am having trouble with the the bootstrap modal box displaying different content as clicked.
I have a list of histories which i looped to listed them out as buttons with a date and when I click a ...
0
votes
2answers
27 views
refrer function name in ajax, reverse callback on fail
I have no idea that how can i achieve this.
i am using jquery 1.9 for ajax call back
i have a function
let say
function a (param){
//calling a fucntion this will perform ajax
data = ...
0
votes
2answers
35 views
Jquery to get the value of Dropdown list
I'm using following html for dropdownlist,
<select id="dd">
<option>Select ReportType</option>
<option value="1">Blocked Details</option>
<option ...
0
votes
0answers
24 views
Maps API autocomplete + JQuery.get
I'm trying to develop something like facebook event page, where user goes to events and pushes '+Create Event' and a dialog shows up.
What I've tried so far:
I have an evento.php page like this: ...
0
votes
0answers
19 views
how to view the footer template text box of child grid in nested grid view?
I am new to dot net. i am trying to create nested grid,now I am struck up to view the footer template text box of child grid in nested grid view and I tried in google but there is no such a solutions. ...
0
votes
2answers
35 views
how to session set value in javascript? [duplicate]
I need help...
var languageID = document.getElementById('drpLanguage').value;
//alert(languageID);
if (languageID == "1") {
<%Session["languageIDD"] = ...
1
vote
0answers
43 views
How to refresh div with updated php code in jQuery Mobile?
Within a jQuery Mobile page, I have a div which needs to be refreshed after a php mysql JSON call is made. This call updates the number of entries in a database. This update needs to be displayed ...
0
votes
1answer
34 views
empty title of dialog in Jquery UI
I write this script that user check checkbox info that want to delete and click delete button it delete info with ajax.my problem is that when in first time i delete everything is fine but in second ...
0
votes
1answer
38 views
use call back in jquery ajax to set a selected text selected in drop down
I am populating a country state and city drop down list, but I am able to populate the data in the drop down list but what i want is to also set the selected value of option which I have requested ...
0
votes
1answer
18 views
Displaying 2sets of different images randomly in sequential divs
I have 2 sets of different images.
first set is: img1.jpg, img2.jpg, img3,jpg
second set is: imga.jpg, imgb.jpg, imgc.jpg
Also I have three different divs #one, #two, #three.
The every set of ...
0
votes
0answers
17 views
Need help to Implement Jump to Page functionality [on hold]
I am displaying first 500 records to the last and I offer the user to select the page size of 10,20 and 50 records to be shown per page, the next and previous clicks are working fine as of now, but I ...
0
votes
1answer
21 views
Displaying 2sets of different images randomly
I have 2 sets of different images.
first set is:
img1.jpg, img2.jpg, img3,jpg
second set is:
imga.jpg, imgb.jpg, imgc.jpg
Also I have three different divs #one, #two, #three.
The every set of ...
0
votes
3answers
22 views
How to jsonify objects from sqlalchemy?
I'm using Flask, SQLAlchemy and javascript. I need to pass the results of my query to javascript in the json format, through AJAX, but I keep getting this error:
raise TypeError(repr(o) + " is not ...
-1
votes
1answer
41 views
Is it possible to make an AJAX call to javascript instead of ASP?
I am making somewhat of a Content Delivery Network but what I want to do is have a jQuery AJAX call to a javascript file instead of an ASP file. The javascript file would then handle the input and ...
1
vote
2answers
38 views
Page transition animation similar to Medium.com
I'm trying to find out how does medium do the animation when you click the bottom button to load the next article.
To see it, please head over to a Medium article, scroll to bottom and click to go ...
0
votes
0answers
13 views
justgage with value refreshing from sliders
I am trying to implement justgage javascript plugin with manual sliders.
I want to implement something similar to the following link:
http://www.o2.co.uk/data-calculator
Can you please guide me how ...
0
votes
4answers
33 views
suggestions for optimizing my jquery
Instead of writing such lines again and again, what should be the professional way & optimized way to write this same code? Please help
$(function(){
$('<img ...
0
votes
1answer
34 views
AJAX Uncaught reference error, unclear why?
I am in the process of converting my existing standard JS ajax functions to jQuery. So far I have converted all but one successfully, which seems to be causing an uncaught reference error.
For my add ...
0
votes
0answers
24 views
Submitting a Javascript touched form
Alright. I'm trying to create my own ecommerce script with Paypal as the gateway. The part I'm currently stuck on is the coupon system.
I'm dealing with it in a very uncommon way. There is a little ...
0
votes
2answers
51 views
Load content in div on page load
I currently have the following:
HTML:
<div class="content-class"></div>
JQuery Ajax:
$(document).ready(function() {
$(document).on("click", ".content-class", function(event) {
...
0
votes
0answers
6 views
Auto Scroll Div to last item of the page
i have developed a message web application in mvc4 it is working fine but the problem is that when i am appending the msg in div it is going autoscroll to last item but i cant see my previous page by ...
0
votes
1answer
30 views
If JSONP is just dynamic script, when is the request made?
Apparently JSONP requests using jQuery.ajax is not really asynchronous, rather it just uses the Script DOM Element approach, adding a script tag to the page. I discovered that from here: ...
1
vote
0answers
25 views
How to do a POST request in a chrome extension?
I am making a chrome extension to send a post request to a certain URL, and I don't care about the response. When I run my javascript in my browser it works fine but if I put in the chrome extension, ...
0
votes
1answer
25 views
how to find current request is ajax or not in mvc3 view javascript
i have div with max height and overflow - auto, when div size overflows scroll bar added automatically, but i set
$("#itemsdiv").scrollTop(10000);
so that scroll bar is always at bottom .
Now i ...
0
votes
4answers
17 views
how to just receive info from sevlet via jquery without sending request
I have a difficulty to deal with the following scenario:
lets say I have 2 jsp pages: page1 and page2
when user click a button in page2 that button sends id to page1 and according to that Id I get ...
2
votes
0answers
18 views
post serialise form pass null value to my controller
I am serialising my form and post it via javascript function
<form id="myform">
@model MyTable
<input type="hidden" name="Id" value="@Model.Id"/>
<input type="text" name="Email" ...
0
votes
3answers
33 views
Jquery AJAX posting variable to server file
Using Jquery AJAX to read a number from a server file, increment the number, and write the number back to the server file.
I can read the file fine, I just can't post to the file.
<script>
var ...
0
votes
1answer
31 views
How to Keep the same HTTP request in different pages
I have a web application which does downloads of some reports in differents pages in my app, I retrieves the report's data from an external API, I am using AJAX call to get this data. As expected, if ...
0
votes
1answer
32 views
jquery, ajax, json data chunking
I need to return a large amount of json data via an ajax call. Is there a built in jquery or javascript function to handle "chunking" of the data
ie: I need to be able to handle the data as it is ...
0
votes
0answers
9 views
DHIS2 system settings
I have a problem with using a system called dhis2. It is probably not so familiar, but maybe someone could give me a pointer. I am suposed to do a POST request to the server ...
1
vote
3answers
31 views
Jquery to get the value of selected dropdown option
I'm using following html for dropdownlist,
<select id="dd">
<option>Select ReportType</option>
<option value="1">Blocked Details</option>
<option ...
-1
votes
2answers
25 views
SyntaxError: missing : after property id
It shows Syntax Error: missing : after property id near '<img src="loading.gif" />';`
<script>
$(document).ready(function() {
$("#client").on("change", function() {
...
0
votes
0answers
13 views
overriding dreamweaver cs5 file path for linked script file
Good Day, my issue has to do with how I have structured my folders/files in my site and how files are dynamically loaded.
The file structure is as follows:
root
include (this is where I put all my ...
0
votes
1answer
36 views
Consistently get data from action in controller with in MVC $.ajax()?
I have this code in my controller:
int number = 0;
public JsonResult JsonData()
{
for (int i = 0; i < 21; i++)
{
number += i;
return Json(number, ...
0
votes
2answers
33 views
Function that responds to new DOM [duplicate]
I have the following function that counts the number of characters left the user has to type in a textarea:
$("textarea").keyup(function() {
var max = 500;
var length = $(this).val().length;
...
0
votes
1answer
34 views
Exporting algorithm visualization via email [closed]
I have an implemented algorithm visualization. I want to export this whole visualization to someone's email address so that he can open and view the whole visualization. For example, i have ...
0
votes
1answer
32 views
405 from ajax get - suspect csrf stuff misbehaving
I have some JavaScript that looks like:
$(document).ready(function() {
var csrftoken = getCookie();
$.ajaxSetup({
cache : false,
data : null,
...