Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php to Ajax or something?

    Hello

    I will first explain what I am trying to do.

    http://runehints.com/calculators/mining - use gaogier to test

    You see that it has 3 pages before you get to the actual calculator well thats not very user friendly, and as our users 86% of them use our calculators daily, I think its best if we make them user friendly.

    Here is a design I want http://runehints.com/images/calclayout.png

    Here is the code http://pastebin.com/bAHHeVkU

    Now if your still confused on how I want the calculators to work, you can view this http://global-rs.com/calculators/mining/

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    448
    Thanks
    24
    Thanked 63 Times in 63 Posts
    So, what exactly are you asking?
    It looks like what you need to do here is setup an ajax call on your clientside page that will call the server (executing the php code) and receive the echo statement containing your HTML table and use javascript to place that on the page. Is that what your going for?
    Allwisend bin ich nicht, doch viel ist mir bewursst
    -Goethe

  • #3
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't actually know what it is I am looking for.

    Quote Originally Posted by blaze4218 View Post
    It looks like what you need to do here is setup an ajax call on your clientside page that will call the server (executing the php code) and receive the echo statement containing your HTML table and use javascript to place that on the page. Is that what your going for?
    If this would make it work just like our rivals then yeah, I just tell that to the developer and they should know?

  • #4
    Regular Coder
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    448
    Thanks
    24
    Thanked 63 Times in 63 Posts
    I don't know the background of your dev...

    your competitor appears to have their table already built in the HTML, and their AJAX call just gets the raw data from the server, then inserts that into the HTML table (which would be more efficient than fetching the whole HTML from the server with each AJAX request) and you could go that route if you wanted. Or, considering what you already have- the quick shortcut would be to do what I said before. It would save a little dev time now, but cost more in the long run...

    Either one would accomplish your goal of having a similar calculator to your competition (because they are using AJAX for their calculator).
    Allwisend bin ich nicht, doch viel ist mir bewursst
    -Goethe


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •