Links Fields in Data Binding

Links Fields in Data Binding

am 07.08.2007 18:36:25 von Elliot J

Hi all,

I am using some basic HTML to read the contents of a CSV file into a page.
Ie:




















DATE EVENT


What I want to have is an internet link in one column of the data (let's say
the EVENT field for now). Currently, if there is a link reference in my .csv
file, the final page simply displays the HTML code, not the actual link.

Can anyone help me crack this, or point me in the right direction. I have
been mainly learning from
http://msdn2.microsoft.com/en-us/library/ms531385.aspx but I'm not quite
understanding how to achieve what I'm after.

Thanks for any thoughts in advance.

EJ

Re: Links Fields in Data Binding

am 07.08.2007 18:55:19 von dorward

On Aug 7, 5:36 pm, "Elliot J" wrote:
> I am using some basic HTML to read the contents of a CSV file into a page.

That isn't "basic HTML', its proprietary Microsoft gubbins.

I'd scrap it all and switch to something along the lines of
http://developer.yahoo.com/yui/datatable/

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Re: Links Fields in Data Binding

am 08.08.2007 09:46:10 von Elliot J

"David Dorward" wrote in message
news:1186505719.110353.242920@19g2000hsx.googlegroups.com...
> On Aug 7, 5:36 pm, "Elliot J" wrote:
>> I am using some basic HTML to read the contents of a CSV file into a
>> page.
>
> That isn't "basic HTML', its proprietary Microsoft gubbins.
>
> I'd scrap it all and switch to something along the lines of
> http://developer.yahoo.com/yui/datatable/
>
> --
> David Dorward
> http://dorward.me.uk/
> http://blog.dorward.me.uk/

Hi David,

Thanks for the response, but this looks way more sophisticated than what I
need - admittedly, I've only glanced over the page so far. Additionally, all
the source files are located elsewhere on the internet, which is a problem
as my project is intranet based, and I require it function with as little
dependency on the internet as possible.

EJ

Re: Links Fields in Data Binding

am 08.08.2007 10:14:16 von dorward

On Aug 8, 8:46 am, "Elliot J" wrote:
> Thanks for the response, but this looks way more sophisticated than what I
> need

But (by using standards) doesn't lock you into a single browser on a
single platform, and (by being published under the BSD license) can be
edited to do whatever you want it to do.

> Additionally, all the source files are located elsewhere on the internet

YUI can be downloaded and provided locally rather than using the
central servers.

http://sourceforge.net/project/downloading.php?group_id=1657 15&filename=yui2.3.0.zip

(This is linked from the YUI homepage).

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Re: Links Fields in Data Binding

am 08.08.2007 10:25:35 von Elliot J

"David Dorward" wrote in message
news:1186560856.122022.98580@l70g2000hse.googlegroups.com...
> On Aug 8, 8:46 am, "Elliot J" wrote:
>> Thanks for the response, but this looks way more sophisticated than what
>> I
>> need
>
> But (by using standards) doesn't lock you into a single browser on a
> single platform, and (by being published under the BSD license) can be
> edited to do whatever you want it to do.
>
>> Additionally, all the source files are located elsewhere on the internet
>
> YUI can be downloaded and provided locally rather than using the
> central servers.
>
> http://sourceforge.net/project/downloading.php?group_id=1657 15&filename=yui2.3.0.zip
>
> (This is linked from the YUI homepage).
>
> --
> David Dorward
> http://dorward.me.uk/
> http://blog.dorward.me.uk/

Ah yeah, my bad. I did find the downloable resource pack on my return to the
site. Can't find any examples of dynamically streaming my data from CSV
files though, which is how my users are storing/uploading/maintaining the
data I need to update on my pages. All the examples I've seen so far seem to
expect the data to be pre-defined within the source files, or maybe I just
need to read into it more.

Thanks for your help, once again.

Re: Links Fields in Data Binding

am 08.08.2007 10:50:10 von dorward

On Aug 8, 9:25 am, "Elliot J" wrote:

> Ah yeah, my bad. I did find the downloable resource pack on my return to the
> site. Can't find any examples of dynamically streaming my data from CSV
> files though

Writing a CSV parser in JS shouldn't be too tricky, although it would
probably be a half dozen line program in Perl with the Text::CSV and
JSON modules.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Re: Links Fields in Data Binding

am 08.08.2007 17:20:37 von Ben C

On 2007-08-08, David Dorward wrote:
> On Aug 8, 9:25 am, "Elliot J" wrote:
>
>> Ah yeah, my bad. I did find the downloable resource pack on my return to the
>> site. Can't find any examples of dynamically streaming my data from CSV
>> files though
>
> Writing a CSV parser in JS shouldn't be too tricky, although it would
> probably be a half dozen line program in Perl with the Text::CSV and
> JSON modules.

CSV parsers are harder than they look. You'd think it would just be
s.split(/\s*,\s*/) or something, but CSV has some rather nasty quoting
and/or escaping rules.

Re: Links Fields in Data Binding

am 08.08.2007 17:43:55 von dorward

On Aug 8, 4:20 pm, Ben C wrote:

> CSV parsers are harder than they look. You'd think it would just be
> s.split(/\s*,\s*/) or something, but CSV has some rather nasty quoting
> and/or escaping rules.

Harder then they look, but not too hard despite that. I'd certainly
attack it with a tokeniser rather then a regex though.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/