Solved

Hyperlinks and popup-additional information

Posted on 2011-03-20
5
803 Views
Last Modified: 2012-05-11
I am trying to setup a grid with information about products and its sales data.

I have been using this jquery plugin TableGear (http://andrewplummer.com/code/tablegear/).

I need to setup a grid where the one column contains an Hyperlink, which when selected, pops up another window with extra filler information about the order.

Something similar to http://4.bp.blogspot.com/_-84GVyQJ0EQ/TPAm-RNYAOI/AAAAAAAAAKY/fUp0P_AWIdI/s1600/jqGridWebPartPopup.png

How can I achieve the same with TableGear / jQuery?
0
Comment
Question by:nainil
  • 3
5 Comments
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
ID: 35177374
I'm guessing that your data comes from a data base of some sort, right?  Why not start the app development process by making sure that your queries work correctly.  Just generate plain HTML statements to verify the data flow.  Then once that works you can start adding complexity like jQuery and plug-ins.
0
 

Author Comment

by:nainil
ID: 35177741
I have tried that and now, decided to move to using jQuery / plugins to enhance functionality.

TableGear was suggested by EE members itself. It is easy to customize and work with. However, I was unable to get hyperlinks show up in the grid developed using jQuery/ TableGear and decided to request some help here.


0
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 250 total points
ID: 35178494
Well. What can I say.
Visited tablegear and looked at the first example.

http://andrewplummer.com/demos/tablegear/example1.php

It sorts dates and amounts alphabetically. That is of course not very clever.
UPDATE: Seems that was just on the first page. I have informed Andrew that he should not give a complex example with a simple sort on the first demo page of many.
0
 

Accepted Solution

by:
nainil earned 0 total points
ID: 35181492
Finally figured it out:

See attached code.

Thank you.
$options["transform"]["<FIELD>"] = array("tag" => "a",
									"attrib" => array("href" => "http://google.com/{DATA}"),
									"html" => "{DATA}"
									);

Open in new window

0
 

Author Closing Comment

by:nainil
ID: 35221166
Figured out the solution with some additional troubleshooting.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

777 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