hi, i want ajax to be called only once, but insted it calls everytime when i click on the button. my script: $(document).ready(function(){ $("#modal-launcher-user").click(function(){ $('#preloader_image_edit').show(); $.ajax({ url: "image_edit.php", cache: false, }) .done(function( html ) { $("#preloader_image_edit").hide(); $( "#results_image_edit" ).append( html ); }); }); });

Member Avatar
Member Avatar
+0 forum 3

Option Explicit Dim card(1 To 52) As String Dim cardused(1 To 52) As String Dim deck(1 To 52) As String Dim profit As Integer Dim playerscore(1 To 5) As Integer, dealerscore(1 To 5) As Integer Dim playercards As Integer, dealercards As Integer Dim currentcard As Integer Dim playerscard(1 To 6) As String, dealerscard(1 To 6) As String Dim playercount As Integer, dealercount As Integer Dim random As Integer Dim aces As Integer Dim x As Integer Private Sub Form_Load() Randomize cmdDeal.Enabled = False For x = 1 To 13 card(x) = "Heart" & x Next x For x = 1 …

Member Avatar
Member Avatar
+0 forum 1

consider public class awah{ private int x=0; private int y; private int w; public awah(int width){ w=width; } public void sety(){ y=(Int)(Math.random()*4);}//meth1 public int gety(){ return y; } public void setx (){ x+=this.gety(); } public int getx(){ return x; } public void showUpdate(){ System.out.println(x); } }//end of awah public static void main(String[] args){ awah m = new awah(5); m.showUpdate(); } I expected the update to show the updated value of x+y but it doesn't I want to be able to update the variable x whenever y is set to some random number //frustrated

Member Avatar
Member Avatar
+0 forum 1

Hello, I have been working on a program that I got to work successfully, but when I transferred it to having only function calls in my main(), I started to get run errors telling me that something is being used without being initialized after I enter the second number. Basically the user inputs two numbers and an operator of their choice. The output on the screen should be something like 23*2=46. Am I missing something? :[ Thanks. [CODE]#include <iostream>; using namespace std; void GetData(int& num1, int& num2, char& optr); void Calc(int num1, int num2, char& optr); void DisplayResult(int num1, int …

Member Avatar
Member Avatar
+0 forum 3

Dear Friends, Am developing a sms based website. i bought the gsm modem. problem how to connect the com port through php and querying the gsm modem with AT Commands ?? Please help me out [COLOR="Red"]Modem:- Visontek 82GH USB MODEM It supports at commands. [/COLOR] Note:- Am sending sms and making calls through their software but how to connect the modem through gsm modem i dont know. Please help me. Thanks in advance Radhakrishna Rayidi 9666055540

Member Avatar
Member Avatar
+0 forum 2

Google [URL="http://googlevoiceblog.blogspot.com/2010/08/make-and-receive-calls-in-gmail.html"]announced[/URL] today that Gmail users can now make free calls from a computer to a phone. The service will be free for calls in North America until at least the end of the year. [ATTACH=right]16893[/ATTACH] Until now users could call other Gmail users' computers for free, but now the service is expanded to phones, including international calls at rates as low as two cents a minute. This is another step forward for Gmail and certainly an attempt at competing with other leading Internet telephony providers like Skype. Gmail's international rates appear comparable to Skype's, which start at 2.1 cents …

Member Avatar
Member Avatar
+2 forum 7

I have created a JFrame contaning a JTabbedPane. What I am trying to accomplish is the changing of tabs within my 'addCustomer()' class via an ActionListener. What I was trying was to call the method 'setTab(int c)' located in my 'BoatLog()' class, from my 'addCustomer()' class to set the index value of the private variable 'tabbedPane'. I want to be able to press the 'addBoat' button to switch to the tab of index value of 1. The following are my two classes. [CODE=java]package boatlog; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class BoatLog extends JFrame { //Opens BoatLog class private …

Member Avatar
Member Avatar
+0 forum 3

I am relatively new to delphi. what i am try to do it to open a new form from the main one as a pop-up window, let the user input certain values in there (two integers and a check box), and use these values as parameters in a procedure to call in the main form (to create a new object), when the user clicks the 'done' button in the pop-up form, also closing & freeing the popup. i cannot add the main form in the uses list of the pop-up form, as this creates a circular reference, because the pop-up …

Member Avatar
Member Avatar
+0 forum 5

I am trying to access some functions with in a dll I downloaded. I know I need to use ctypes, but all the examples and tutorials use windll.kernel or windll.user32 respectively. How would I go about calling a function with in xyz.dll? EDIT: Never mind, with a bit more digging i found it. [CODE] from ctypes import * fd = windll.LoadLibrary("xyz.dll") [/CODE]

Member Avatar
Member Avatar
+1 forum 1

The End.