Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-13-2011, 08:12 PM   PM User | #1
Gaogier
New to the CF scene

 
Join Date: Nov 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Gaogier is an unknown quantity at this point
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/
Gaogier is offline   Reply With Quote
Old 11-14-2011, 12:56 AM   PM User | #2
blaze4218
Regular Coder

 
Join Date: Apr 2005
Location: Texas
Posts: 448
Thanks: 24
Thanked 63 Times in 63 Posts
blaze4218 is an unknown quantity at this point
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
blaze4218 is offline   Reply With Quote
Old 11-14-2011, 07:54 AM   PM User | #3
Gaogier
New to the CF scene

 
Join Date: Nov 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Gaogier is an unknown quantity at this point
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?
Gaogier is offline   Reply With Quote
Old 11-14-2011, 03:05 PM   PM User | #4
blaze4218
Regular Coder

 
Join Date: Apr 2005
Location: Texas
Posts: 448
Thanks: 24
Thanked 63 Times in 63 Posts
blaze4218 is an unknown quantity at this point
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
blaze4218 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:25 PM.


Advertisement
Log in to turn off these ads.