Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
rottmanja #1
Creating a Link in a dg
I have a dg that is returning values from my db. One of the values that is
returned from my cfc is a link to the file that is displayed in the dg. How can
I make it so that when someone clicks on a record in the dg it opens a new
browers to the returned value fld_docLink.
IE I click on the record testrecord1. It opens a new browser window, and hte
url is populated with the returned vaule from my cfc.
rottmanja Guest
-
Creating a pop up window from a link
I was wondering if someone could help me. I'm building a new website and awhile ago I saw a cool effect which someone did on their site. Basically... -
creating an email link in PDF (v7)
Hi, I would think this is the simplest thing on earth to do, and yet I'm getting nowhere with online help or pulling down menus. I know how to... -
Creating email link
Can anyone tell me how to create an "Email this page to a friend" link? Thx! -
Problem with creating External Link
Hi, In Contribute 3.1 - I cannot create an external link to this address: ... -
CSS and creating a txt link which changes colour
Hi, Ok I've created a style sheet called "bluelink" this works fine and the choosen txt changes colour. My problem is when the link is unactive it... -
Simeon #2
Re: Creating a Link in a dg
Well you will need to create a cellRenderer to display the link in the
datagrid. I have an example of how to do this on my blog:
[url]http://www.simb.net/blog/index.cfm/2006/1/9/Dispatch-Events-from-a-cellRenderer[/url]
When you through the event you will want to stick the url in as a property of
your event. Then when the parent object catches it you can use an AS function
to load up a new window. :) I dont remember what the AS function to do that
is though, sorry. See if this makes any sense after looking at the example.
Simeon Guest
-
Simeon #3
Re: Creating a Link in a dg
In fact in the comments on that page, jesse warden links to an example that does exactly what you are looking for. So take that for service :)
Simeon Guest
-
ntsiii #4
Re: Creating a Link in a dg
A cell renderer may be overkill for this functionality.
You could just use getURL().
Tracy
ntsiii Guest
-
Simeon #5
Re: Creating a Link in a dg
Thanks Tracey,
I would love to see an example of this, because I dont see how you can know
which grid cell is being clicked and send the correct url without having a
cellrenderer. At least not very easily.
Do you have an example you can share?
Simeon Guest
-
ntsiii #6
Re: Creating a Link in a dg
Something like:
var sURL:String = event.target.selectedItem.url;
getURL(sURL, "myWindow");
ntsiii Guest



Reply With Quote

