Solved

Hyperlinks and popup-additional information

Posted on 2011-03-20
5
807 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 110

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ModalPopup  question 22 37
php subtract from date 2 26
[form-control] Retain values after a POST action 21 31
Find RGB colors from a screen. 2 15
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

685 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