Jump to content

Using the results from a MySQL select (php) in my Javascript program.


Repeater

Recommended Posts

I want to use the results from a SELECT on my database in my Javascript code. I realize I am trying to transcend the Client / Server domain exclusivity thing. At the moment, I succeed in fetching my data and echoing it (server side). This is OK. NOW, is there a trick to getting my record data into my calling JAVASCRIPT code so I can do some work with it using Javascript?

 

Thanks very much.

Link to comment
Share on other sites

I would probably look into some AJAX for this sort of thing. I personally would suggest looking at jQuery's ajax functionality (here's a basic screencast, I'm sure you can find others too with a web search or two: http://blog.themeforest.net/tutorials/jquery-for-absolute-beginners-day-13/) I'm sure it can also be done with other methods, using a different Javascript framework, or no framework at all, but I suggest jQuery for the ease of use.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...