Solved

Hyperlinks and popup-additional information

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
echo button 13 47
Test ddwrt:UserLookup 1 24
Jquery autocomplete 10 31
JavaScript check IF number exists THEN ... 9 62
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now