473,378 Members | 1,390 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,378 software developers and data experts.

Need to add a popup feature to existing pages...HELP

14
I'm desperately trying to find a way to add a popup function to a database thats already existing so that database items show as a popup in a store setting...can anyone take a run at helping a newbie here...

Thanks Gang
DougB
Dec 9 '06 #1
1 1078
DougB
14
OOooops,

I guess I should have added some of the code so you can see what I'm up against, sorry..

Expand|Select|Wrap|Line Numbers
  1. createCatalogDB();
  2. if (total_ordered > 0) {
  3.   document.writeln('<a href=shoppingcart.html>' + 'view shopping cart</a>');
  4. }
  5. else {
  6.   document.writeln('Shopping cart is empty.');
  7. }
  8. document.writeln('<hr>' + '<br />');
  9.  
  10. for (var n = 0; n < catalogDB.length; n++)
  11. {
  12.   document.writeln('<table width="800" align="center">');
  13.   document.writeln('<tr><th align="left" height="300" width="195">' +
  14.           '<img src="' + catalogDB[n].imageSrc + '" border="1" ' +
  15.           'alt="' + catalogDB[n].item + ' "</th>');
  16.   document.writeln('<td><b>' + catalogDB[n].item + '</b> </b><br />');
  17.   document.writeln('Catalog Number: ' + catalogDB[n].number + '<br />');
  18.   document.writeln('<i>'+ 'Price $' + catalogDB[n].price + '.00' + '</i><br />');
  19.   document.writeln('<a href="javascript:addCatalog(\'' +
  20.           catalogDB[n].number + '\')">' +  'Purchase</a><br />'); 
  21.   document.write('</td></tr></table>');
  22.  
I have to add a popup link to this script so that when the item gets clicked on they can see a larger image and details in the popup..

Hopefully someone will be able to help out here..thanks all
DougB
Dec 9 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: CG | last post by:
Hi, I have an ASP application. On one of my pages I have a link to a popup. This popup has a link. When the user clicks this link my popup closes and another Popup is displayed. In this...
5
by: Willem van Isselmuden | last post by:
Hello, I've a problem I hava a page with different popup windows, when I hit a link the first one pops up and with the first open i would like to hit the second link in the parent page so the...
9
by: Bill M. | last post by:
How do pop-up blocker programs work? Do they intercept http transactions and strip-out window.open() commands? Is there a single methodology? Thanks
2
by: Maik | last post by:
I Need a popup-killer script
0
by: James Andrus | last post by:
I don't know anything about making web pages, .NET, etc. I have noticed that my Norton Internet Security (2003) ad/popup blocker is blocking the loading of .aspx pages. The results of a Google...
8
by: Orloff | last post by:
Hi, on most (all?) browsers, when you put the pointer on a <a href="..." title="popup text">this is a link</a> without clicking on the link, there is a popup caption with the "popup text". I...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
3
by: Learner | last post by:
Hello, I have two buttons on one of my VehicleDetails.aspx page. Obiviously these two buttons takes the user to two different pages. Now my client is interested in having a linkbutton instead of...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.