Professional Web Applications Themes

Can jscript make a QUERY to MYSQL, obtain data and put the values in some text boxes? - PHP Development

Hi, I need to make a SELECT query to MYSQL (probably with PHP) but through jscript, then with jscript put the results in some objects!!. The idea is that when the user click a <select> item and with 'onclick' event jscript 'call' a PHP file (that makes a QUERY to MYSQL [SELECT data1, data2, data3 FROM TABLE WHEN ID='SELECT.VALUE') so JScript obtain data1, data2 and data3. Then with this data and jscript put in on zom text boxes. Can this be done? thank you....

  1. #1

    Default Can jscript make a QUERY to MYSQL, obtain data and put the values in some text boxes?

    Hi,

    I need to make a SELECT query to MYSQL (probably with PHP) but through
    jscript, then with jscript put the results in some objects!!.

    The idea is that when the user click a <select> item and with 'onclick'
    event jscript 'call' a PHP file (that makes a QUERY to MYSQL [SELECT data1,
    data2, data3 FROM TABLE WHEN ID='SELECT.VALUE') so JScript obtain data1,
    data2 and data3. Then with this data and jscript put in on zom text boxes.

    Can this be done?

    thank you.


    David Guest

  2. #2

    Default Re: Can jscript make a QUERY to MYSQL, obtain data and put the valuesin some text boxes?

    David Méndez wrote: 
    ok i do know of an example where javascript called a php file [which
    could then do whatever] ... see the firefox downloadometer here:
    http://www.infocraft.com/projects/ffcounter/
    the php file in question retrieved an rss feed however im sure there is
    a way to change that if you just use the js for inspiration
    Kieren Guest

  3. #3

    Default Re: Can jscript make a QUERY to MYSQL, obtain data and put the values in some text boxes?

    David,

    I think that you should be able to find some good resources if you do a web
    search on "remote scripting."

    The URLs that I have are,

    http://www.codeproject.com/aspnet/AlvaroRemoteScripting.asp

    http://msdn.microsoft.com/library/en-us/rmscpt/html/rmscpt.asp

    but they are oriented towards ASP. I came across examples in other
    languages, but I didn't save the links because I work in ASP. Hope this
    helps.

    David

    "David Méndez" <com> wrote in message
    news:org... 
    data1, 


    David Guest

  4. #4

    Default Re: Can jscript make a QUERY to MYSQL, obtain data and put the values in some text boxes?

    In bericht <org>, schreef com ... 

    this looks like an example of AJAX, where javascript is used to update a page
    instead of updating the complete page. It's a rather new approach on dynamic
    websites. Google uses it a lot (gmail, google suggest, google maps, ...)

    http://en.wikipedia.org/wiki/AJAX
    or use google

    Jan831
    Jan831 Guest

Similar Threads

  1. Can we bind the values from cfselect to display thoseinto cfinput text boxes.
    By sharon212 in forum Coldfusion Flash Integration
    Replies: 1
    Last Post: December 7th, 12:33 AM
  2. Values in Text Boxes
    By pinball4200 in forum Coldfusion - Getting Started
    Replies: 3
    Last Post: October 13th, 09:07 PM
  3. Can you make list boxes wrap text so information goes onto the next line?
    By GrahamStudio21 webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 3
    Last Post: January 16th, 10:54 AM
  4. text boxes values
    By Sandra in forum Microsoft Access
    Replies: 3
    Last Post: August 21st, 09:27 AM
  5. Make text boxes "forget" values
    By Emil Kvarnhammar in forum ASP.NET General
    Replies: 0
    Last Post: July 16th, 07:53 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139