Vote count: 0 I am new to AJAX, i came from a code in inteet about sending Ajax to php file. The problem is i dont know if the data is submitted or what happen. The alert box doesn't pop up if it was submited success: function () { alert('form was submitted'); } Here is the full form from html : Name Email...
ادامه مطلبVote count: 0 I am currently developing a website where notification is needed. Therefore, I would like to call AJAX and detect changes on my database (storing notifications) constantly in a certain interval. So my question is, as there are many users calling the AJAX at a same time and at constant rate, will performing such task burden the server? And will this burden the browser for each users? I had a little bit of performance issues (slow loading / lag) when testing the website when I enable this method. If this method is bad, can I have some suggestion for alteative method for this task? Any help is appreciated =) asked 21 secs agoHL96 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to get value of dynamic generated inputs. Here is my code and what I want actually Here is my Code: function activehead_standard(){ var cnt = 4; for(i=1;i...
ادامه مطلبVote count: 0 basically i have a form and in that form i have a useame textbox with a submit button. now what i want is that before we submit the form i want to send the text value to server so the server could check if the useame has not been taken by any other user and then submit the form, based on research i had, i found this tutorial useful https://scotch.io/tutorials/submitting-ajax-forms-with-jquery, altough this tutorial is using php for server coding and i am using java servlet but my ajax script never gets to execute. here is my code: $(document).ready(function() { // process the form $('form').submit(functio...
ادامه مطلبVote count: 0 how to add runtime in ibm mobilefirst 7.1 in remote server ? As of now I have remote server where already one runtime exist, I had deploy .wlapp and .adapter file in console and I am testing in device and its working fine as mentioned in IBM MobileFirst Platform 7.1 - No runtime environment deployed in this server Question is how can i add(deploy) another runtime ? asked 32 secs agoGaurab Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have created new user in SQL Server 2012 on one of my cloud machines. But when I try to access any database other than the system ones, they are not accessible. Showing dialog "The Database XXX is not accessible". How can I access all the tables which are created by other users? OR how can I make user who has all the database object access? edited 9 secs agomarc_s asked 1 min agoRajaram Shelar Let's block ads! بخوانید...
ادامه مطلبVote count: 0 First thanks to the great job!!! I tried to add a signature pad, on a android application using a custom view: public class Firma extends View{ // defines paint and canvas private Paint drawPaint; private Path path = new Path(); public Firma(Context context, AttributeSet attrs) { super(context); setFocusable(true); setFocusableInTouchMode(true); setupPaint(); } private void setupPaint() { // Setup paint with color and stroke styles drawPaint = new Paint(); int paintColor = Color.BLACK; drawPaint.setColor(paintColor); drawPaint.setAntiAlias(true); drawPaint.setStrokeWidth(5); drawPaint.setStyle(Paint.Style.STROKE); drawPaint.setStrokeJoin(Paint.Join.ROUND); drawPaint.setStrokeCa...
ادامه مطلبVote count: 0 Originally I was using the following to swap the values of 2 variables at random when the page loaded: var value1 = 260; var value2 = 325; var chosenValue = Math.random() < 0.5 ? value1 : value2; if (value1 == chosenValue) { var val = value1; } else { var val = value2; } if (value1 == chosenValue) { var val2 = value2; } else { var val2 = value1; } However now I need to swap out 4 values and I no idea how to go about doing that. var value1 = 260; var value2 = 325; var value3 = 195; var value4 = 130; Note that each value must be used only once and must be displayed in random order each time page is loaded. help? asked 1 min agoBruce Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I call this action method using an ajax call: [AuthorizeCheckCreator] [HttpPost] [OutputCache(Location = OutputCacheLocation.None, NoStore = true)] public ActionResult Delete(Guid id) { // code.... retu Content("ok"); } I have created a custom AuthorizeAttribute for checking permission of the user (I wanted to make sure whether the user is owner the record or not): public class AuthorizeCheckCreatorAttribute : AuthorizeAttribute { public IRequest RequestService { get; set; } protected override bool AuthorizeCore(HttpContextBase httpContext) { RequestCheckUserViewModel request; if (httpContext.Request.IsAjaxRequest()) { var ajaxId = JsonConvert.DeserializeObject(System.Text.Enco...
ادامه مطلبVote count: 0 I am accessing an Azure Database via MS SQL Server 2014 Management Studio. I do not own the Azure database that I am coecting to. I have coected to this database in the past (with occasional difficulties) but for some reason when I now use the Coect to Server I get the following error: The odd thing is that IP referred to in the error message is my router's IP address as opposed to the IP addressed assigned to me (I checked my IP address using ipchicken(IPCHICKEN). Does anyone know what is happening? asked 28 secs agouser918967 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm begier in ssis ,install this software on my client pc in my company: my question is this,can i install that software on the server and my employee work with that software remotly?thanks all. asked 1 min agobehzad razzaqi Let's block ads!...
ادامه مطلبVote count: 0 I have a gallery that shows every photo/video from my camera roll in fullscreen.I added a PHPhotoLibraryChangeObserver to my app, so if something changes in the library it should also change in my gallery. You can navigate through the photos/videos with sliding.If I exit my app (pressing the home button not manually close it), take a photo with the camera and open it again everything works fine.Now my problem is that if I take a screenshot, the camera roll also changes and then the program doesn't work well anymore. This code I use for observering the camera roll: PHPhotoLibrary.sharedPhotoLibrary().registerChangeObserver(self) and this function: func photoLibrary...
ادامه مطلبVote count: 0 i have a shell script and argument as date . I'm looking for some help in design ,where i will have to create UI and pass the date . So that It will call the shell script with argument[it should open unix terminal and call the shell script with useame and password] . The whole shell script runs on LINUX server. i would preferably looking on Mark-logic/Java/Unix and Scala. I should not use web server in my application. Can some one please suggest how to call the shell script from java application with out using Appserver/Webserver. asked 32 secs agoxmlalcholic...
ادامه مطلبVote count: 0 please I am new in hosting projects. I am trying to deploy a laravel project to a shared hosting platform but it keeps giving me this error 500 -Inteal Server Error. It is currently working in my localhost. I have checked other site but with no avail even though .htaccess has been said to be the course but i am yet to figure it out. I have been trying for 5days but have not gotten it. This is my .htacess file Options -MultiViews RewriteEngine On # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ inde...
ادامه مطلبVote count: 0 I have a website and a mobile app backend panel. The website that I have is built in wordpress deployed on apache server. The mobile backend is built in .NET and works from IIS server. Can I access both of these under same domain names? eg: domaiame.com -- Points to wordpress website on apache and domaiame.com/webservices -- Points to mobile app backend on IIS Please suggest the best solution for this. asked 1 min agoAspiring Developer Let's block ads!...
ادامه مطلبVote count: 0 i'm trying to make an array with 30 integer elements between 0 and 2 randomly chosen. When some number is chosen 10 times, i can't append it anymore. In the end, i need an array with 30 elements with 10 numbers 0, 10 numbers 1 and 10 numbers 2. Here's what i'm trying: import random array_size = 30 number = 3 counter = [0, 0, 0] solution = [] for i in range(array_size): number = random.randrange(number) #generates numbers between 0 and 2 while counter[number] > 10: number = random.randrange(number) counter[number] += 1 solution.append(number) As result, i have more than 10 elements of the same number. I believe the problem is in the random number that i put in the while is not c...
ادامه مطلبVote count: 0 I put together a form to submit data into a MySQL database. It worked before just fine I get an error - no response from mysqli coection but no mysql_error appears. I understand there is some room here from SQL injection - please discard that. Coection PHP Page Form PHP Page Attraction *...
ادامه مطلبVote count: 0 my web application is ruing but when I submit the html form data, the galsfish server4.1.1 throws an exception -java.lang.NullPointerException . My servlet code: package com.amir; import java.sql.*; import java.io.IOException; import java.io.PrintWriter; import java.sql.DriverManager; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.*; public class LoginServelet extends HttpServlet { Coection co; @Override public void init(ServletConfig config) throws ServletException { super.init( getServletConfig()); try { Class.forName("com.mysql.jdbc...
ادامه مطلبVote count: 0 I've been having a problem using Visual Studio to coect to a networked sql server with a networked user, a local administrator, and a domain administrator. Here's the coection string in Visual Studio: string coecitonstring = "Server=development;Database=testdb;User Id=TestUser;Password=TestPassword;"; co = new SqlCoection(coecitonstring); 1) Ruing Visual Studio as non-administrator and as an administrator, I get the following error. {"A network-related or instance-specific error occurred while establishing a coection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote coections...
ادامه مطلبVote count: 0 I am trying to run Inte JS functional test-cases using local Selenium server. I am trying to run the test cases with chrome in mobile emulated mode. But, I am not able to figure out the right configuration. I have tried using this environment. environments: [ { browserName: 'chrome'} , 'mobileEmulation': { "deviceName": "Google Nexus 5", "deviceMetrics": {'width': 360, 'height': 640, 'pixelRatio': 3}} } ], Also, I have tried capabilities: { 'selenium-version': '2.53.1', 'idle-timeout': 30, "screen-resolution": "360x640" } and capabilities: { 'selenium-version': '2.53.1', 'idle-timeout': 30, 'mobileEmulationEnabled': true } Is this even possible? asked 17 secs agoDevendra Bhatte...
ادامه مطلب