Solved

Hyperlinks and popup-additional information

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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)

856 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