Another quick question if I may.  What if I didn't want to store the URL in 
a database at all?  Can you have conditionals inside the db.define_table?  
Or maybe have separate function that would return the URL string and call 
it from inside the _href.  Something like:

_href='http://' + get_url(shipment.url) + value

Would it be better to do it this way, eliminating the need for a separate 
table to store the URLs?  Although "better" probably depends on what you 
are trying to do.

On Tuesday, May 1, 2012 4:02:29 PM UTC-4, Anthony wrote:
>
> I had entered the carrier.url as "www.bing.com/search?q=" instead of "
>> http://www.bing.com/search?q=";.
>>
>
> Yes, without the "http://";, the browser will still see it as a relative 
> URL and add it to the current domain. Instead of storing http:// with the 
> URL, you could also do:
>
> _href='http://' + row.carrier.url + value
>
> Anthony
>

Reply via email to