473,394 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

HELP! pulling information into a website

Hi,

Please be nice :) I don't exactly know how to explain this or if I am
using the correct terminology.

Some background:

I am working on a signup page for my website. This page has a
javascript src which is a query to a database which returns the results
of the query as a java script array That array then populates all my
drop down menu's(with a function set to be ran upon the <body> being
loaded) so I can update my pricing and services directly from the
database instead of altering my html.

The above is not part of my problem but I am mentioning it because that
query is the EXACT same as the query I need help with but instead of
being static (so I can hardcode it on the website) this query changes
dependent on an address field.
I have a function being called whenever the address field changes, that
function takes the address input and puts it into a URL Query. If I
take that URL and then manually go to the address bar and put in in, it
works. IE I can create the dynamic Query fine I just don't know how to
use it.

MY PROBLEM:

I don't know how to get that java script array into my page so I can
utilize it in functions and build a popup window out of it. If I
create a get form and do document.formname.action = MyURL and then
press the submit button instead of getting that javascript array it
just outputs it on the browser as text.

If further explination is required just let me know.

Dec 6 '05 #1
1 1088
VK

af*****@gmail.com wrote:
Hi,

Please be nice :) I don't exactly know how to explain this or if I am
using the correct terminology.
Fine by me but be aware of OTHERS ;-)
MY PROBLEM:

I don't know how to get that java script array into my page so I can
utilize it in functions and build a popup window out of it. If I
create a get form and do document.formname.action = MyURL and then
press the submit button instead of getting that javascript array it
just outputs it on the browser as text.

If further explination is required just let me know.


Briefly I want to:
1) get data from your server
2) these data should be presented as a JavaScript array
3) getting this data should not reload the current page
4) immediately upon the data is ready you want to repopulate the form
on the current page

Is it correct?

If it is then two blocks will do the job for you:

AJAX will let you to retrieve new data from the server while staying on
the same page.
<http://www.ajaxtoolbox.com>

JSON will let you to stransmit JavaScript objects (including arrays)
back and forth to the server.
<http://www.json.org>

More details could be found in this thread:
<http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/ff0b1ea144e5ee1e/8836d58fbc4405f4#doc_8836d58fbc4405f4>

Dec 7 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
5
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time...
0
by: mmerhej | last post by:
hello i'm new 2 access 07 the following command creates a report named "Labels print_query" that i need 2 del. after print Private Sub Command14_Click() Application.Run "acwzmain.mlbl_Entry",...
2
by: embz | last post by:
this post concerns three pages. 1. this page: http://www.katherine-designs.com/sendemail.php i get the following errors: a lot of it seems to deal with the PHP code i inserted to the page....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.