javascript from remote server, present in different way

Posted on 2003-03-19
Medium Priority
Last Modified: 2013-12-24
I was wondering how the following could be achieved. I already have a web page where I query the database and generate HTML and send to the page. Now I want to write on top of this existing page to query the results but to format it differently.

User clicks on the link on page 1, on the server the data is retrieved and sent back to the page and the page displays the table...

Now I want,

User clicks on a link on page 2, which in turns points to link 1 on page 1, get the output and format it differently to show as a different table.

Please help.
Question by:samima
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Expert Comment

ID: 8171594

clarifications :
1. Is it that u want the same data to be displayed in 2 differnt formats.
2. or is it that when u click on a link on page 1 - u query the db & get different results ???

if its case 1. then things can be handled differently

u can create 2 pages with different formats based on the same query & show only page1 to the user.
now when the user clicks on the link on page 1 - instead of querying the DB again & getting the result - simply redirect the user to the page2 - which shows the records in different format.

this same logic can be applied if its case 2 as well

let me know - if i am getting u right !


Expert Comment

ID: 8174069
please give example of what do you mean by page i, page 2

something like page one will have customer infor,...etc

Author Comment

ID: 8175177
Thanks Anand.

I want something like case 1 but my problem is that page 2 has no access to the database that page 1 has. So, I cannot use what you suggested.

Let me tell you what I exactly want.
There is a site that accesses the personal records of employees of a company and displays some info on their web page. They also provide a sniplet that you can put in your page's HTML to show this info on your web page. When I do this I do get all the required info but in the format that is set by them. I want to reformat it to fit the look and feel of my website.

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

LVL 17

Expert Comment

ID: 8178908
can i have a look at what exactly u r getting [sniplet format] & how is it preformatted.

once i look at it - may be i cld guide u on how to reformat it - in ur own way.

also tell me how the results wld be used on page2 .. is it that the sniplet ur talking abt - has them in it - or its provided seperately ... just to know exactly what u want

also if u can provide a link to ur page - i cld see it running [if possible]


Accepted Solution

Wasistdas earned 1500 total points
ID: 8182704
Parse data with <cfhttp> rework it on your local server, create a query, populate it with the parsed data and display the data whatever way you wish.
LVL 17

Expert Comment

ID: 8196875

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question