> I'd like to get CF to pass my user information to another
> website which uses cookies to verify logins and have that site
> behave as though my little app was me.
A better way might be to use Javascript. Create
a form just like the login form on the site, but
change everything to hidden fields. Then add a
javascript function to automatically post the
form when the page loads.
> One last thing, what would be the best way to parse the html that
> comes back and create some CF variable which would hold all the
> links found on the page? My ideal scenario is to pull the menu
> off the page I'm retieving and add it to my own..kinda like
> making a CF driven favourites folder where the menu points to
> other websites and sections contained on those websites so that I
> can make "short-cuts" for "easy" access. :)
Parsing the pages would require regular expressions. That's not
such a big deal in itself, but calculating relative links,
finding the titles/descriptions of those links, etc., may add
up to a lot of work.
What may make life easier is if you could take advantage of an
existing HTML parser. If you have some duct tape and paper clips
handy, here's an idea that might work:
1) Write some javascript code to find all the links on the current
page, stick them in a WDDX object, and send it back to a CF template
via a form.
2) Write a CF template that grabs a given page, inserts the
javascript and form in step 1, and sends the modified page
to the browser.
Patrick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists