Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: ajax question

  1. #21
    Elite Member
    Join Date
    Jun 2010
    Gender
    Male
    Posts
    1,018

    Quote Originally Posted by c-chan View Post
    <form name="autoSumForm">
    <input type=text name="firstBox" value="" onFocus="startCalc();" onBlur="stopCalc();"> +
    <input type=text name="secondBox" value="" onFocus="startCalc();" onBlur="stopCalc();"> =
    <input type=text name="thirdBox">
    </form>

    kani? di jud ni mao akong code ha. bale mao lang ni siya basis. ako rani nakit ana sa net.
    try daw ni...same goes for second box

    <input type=text name="firstBox" value="" onChange="calc();" > +

  2. #22
    C-chan,
    You have to know the technical details about AJAX before diving into something.

    Let's open our minds..... at first impression AJAX is a Javascript that refreshes a partial of the page and NOT THE ENTIRE PAGE. In a browser point of view, your AJAX page must be accompanied with RANDOM identifier (or GET parameter) to trick the browser that it's always a new page, internet browsers are fond of storing temporary information.

    To put it simply, your second PHP script must be called treatly as a different page, without refreshing or bothering your main page. Overall, you are only calling the second page using only Javascript without leaving your MAIN PAGE.

    It's hard to teach you online, but it's better that you self study.
    You can read this.. this also helps. LINK AJAX Create an XMLHttpRequest Object
    Last edited by dodie; 07-07-2010 at 11:37 PM.

  3. #23
    dali rani imo problem gamiti lang ni og Ajax Post Request para sure ka ma pasa dyud ang total ngadto sa other php file. try to read how to use => AJAX Form POST Request - HTML Form POST/Submit with AJAX/Javascript Example/Tutorial

  4.    Advertisement

Page 3 of 3 FirstFirst 123

Similar Threads

 
  1. 5 Questions Every Man Dreads -- and Why
    By tikboy in forum "Love is..."
    Replies: 43
    Last Post: 03-04-2012, 01:40 PM
  2. Hair Care~ Information, Tips, Questions and Answers please
    By chime_888 in forum Fitness & Health
    Replies: 103
    Last Post: 09-03-2011, 04:03 PM
  3. A Question on Guys who dump girls
    By SweetCatEyes in forum "Love is..."
    Replies: 247
    Last Post: 05-24-2011, 09:50 AM
  4. Replies: 59
    Last Post: 05-05-2009, 10:00 PM
  5. How To Ask Questions The Smart Way
    By $dbpasswd in forum Support Center
    Replies: 14
    Last Post: 02-03-2006, 06:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top