What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: [WebDNA] Adding Graphics to Directory

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102565
interpreted = N
texte = "Error: Unable to access file. Unable to delete 'bah blah blah..." is a permissions issue. -Dan On Mon, 18 May 2009 13:23:16 -0500 Tony Miller wrote: > In a nutshell, >=20 > SiteBuilder is a great solution for quick sites, but I want/need to le= arn how to build my own=20 >custom solutions eventually. The directory is 'Good enough' to get us s= tarted at this point and=20 >then have a more detailed discussion about adding functions later so th= is will be an ongoing=20 >project. The SB sites are pretty complicated for someone who is just le= arning. >=20 > They want a business directory. So I added some fields to map the addr= ess, etc. >=20 > After locking myself in a closet at home so no one would bother me, I = got the code to add the=20 >photos and display them figured out too. >=20 > The only problem I have now is when I upload an image to add it to the= folder of available=20 >images ( directoryfiles ) it works and uploads the images, but I get th= e following error on the=20 >resulting page: >=20 > Error: Unable to access file. Unable to delete '../photofile/ nameoffil= e .Ignroing [DeleteFile]=20 >context > Error: Unable to access file. Unable to delete '../photofile/Thumb/ nam= eoffile .Ignroing=20 >[DeleteFile] context > Error: Unable to access file. Unable to delete '../photofile/original/ = nameoffile .Ignroing=20 >[DeleteFile] context >=20 > As far as I can tell, it is using java script to do the actual upload.= Here is the code I am=20 >using to do the upload (copied from another page and tweaked): >=20 > [!]--------------------------------------------------------------------= - [/!] > [!] Entry added to allow photo uploads from Directory pages = [/!] > [!]--------------------------------------------------------------------= - [/!] >=20 > [!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Upload Dir= ectory Photo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D[/!] > [Showif [datasource]^directory] > 3D"" >
>
action=3D"upload_multiphotos2.tpl"> > > action=3Dedit&datasource=3D[datasource]&DAT_ID=3D[dat_id]"> > > > > > >=20 > > Please specify a photo to upload for your directory:
> [!]Add Photos to Dat= abase[/!] > Choose file: onChange=3D"displayImage(0);">
> 
>    > >
>=20 > Here is the java code from the page I copied the form from: >=20 > >=20 > [Text]GraphicPath=3D[lookup=20 > db=3Dprefs.db&value=3DPRODUCT_GRAPHIC_PATH&lookInField=3DPREF&returnFie= ld=3Dvalu e][/Text] >=20 > I also had to modify the GraphicPath using DIRECTORY_GRAPHIC_PATH pref= I added to the prefs.db. >=20 > I don't currently have the java code at the top of the edit_database.i= nc file. Do I need it=20 >there and that is what is causing the errors? >=20 > This is already better than the product we are paying for now. At leas= t we can edit the records=20 >in a web browser in WebDNA and it's free. >=20 > I'm learning slowly, but surely. One day I hope to be able to start fr= om scratch with custom=20 >stuff, but that is a long way off right now. >=20 > Thanks Govinda. >=20 > Tony Miller > tmiller@thehawkeye.com >=20 > On May 15, 2009, at 3:09 PM, Govinda wrote: >=20 >> Tony, I have never played with sitebuilder at all since we always =20 >> built everything custom here.. (always special weird deal needs), >> BUT I always have the desire to help when I perceive the question =20 >> is within range of what I know. If you just want a quick tweak to =20 >> existing sitebuilder templates to get quick results, then I'll hush =20 >> up, but if you want a dialogue leading to you learning how to =20 >> manipulate things all you like to satisfy this and future needs, =20 >> then see if you can describe what you want in more generic terms =20 >> (assuming the audience has not seen those sitebuilder templates) =20 >> and then we can suss out some solutions. Others may chime in too =20 >> in various ways.. I am only speaking for my own participation. >> >> -Govinda >> >> >> On May 15, 2009, at 1:35 PM, Tony Miller wrote: >> >>> I am trying to add graphics to the directory listings that behave =20 >>> similar to the graphics on the products pages. >>> >>> I have 6.0a commerce edition and am working in a sitebuilder site. =20 >>> It looks like it will take a major overhaul to the database, admin =20 >>> forms and display pages. >>> >>> If it's possible to add some include calls to add the =20 >>> functionality, that would save me a bunch of time. If not, I'll =20 >>> keep digging. >>> >>> Thanks >>> >>> Tony Miller >>> tmiller@thehawkeye.com >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Adding Graphics to Directory (Donovan Brooke 2009)
  2. Re: [WebDNA] Adding Graphics to Directory (Terry Wilson 2009)
  3. Re: [WebDNA] Adding Graphics to Directory (Tony Miller 2009)
  4. Re: [WebDNA] Adding Graphics to Directory ("Dan Strong" 2009)
  5. Re: [WebDNA] Adding Graphics to Directory (Tony Miller 2009)
  6. Re: [WebDNA] Adding Graphics to Directory (Govinda 2009)
  7. Re: [WebDNA] Adding Graphics to Directory ("Dan Strong" 2009)
  8. Re: [WebDNA] Adding Graphics to Directory (Tony Miller 2009)
  9. Re: [WebDNA] Adding Graphics to Directory (Govinda 2009)
  10. [WebDNA] Adding Graphics to Directory (Tony Miller 2009)
"Error: Unable to access file. Unable to delete 'bah blah blah..." is a permissions issue. -Dan On Mon, 18 May 2009 13:23:16 -0500 Tony Miller wrote: > In a nutshell, >=20 > SiteBuilder is a great solution for quick sites, but I want/need to le= arn how to build my own=20 >custom solutions eventually. The directory is 'Good enough' to get us s= tarted at this point and=20 >then have a more detailed discussion about adding functions later so th= is will be an ongoing=20 >project. The SB sites are pretty complicated for someone who is just le= arning. >=20 > They want a business directory. So I added some fields to map the addr= ess, etc. >=20 > After locking myself in a closet at home so no one would bother me, I = got the code to add the=20 >photos and display them figured out too. >=20 > The only problem I have now is when I upload an image to add it to the= folder of available=20 >images ( directoryfiles ) it works and uploads the images, but I get th= e following error on the=20 >resulting page: >=20 > Error: Unable to access file. Unable to delete '../photofile/ nameoffil= e .Ignroing [deletefile]=20 >context > Error: Unable to access file. Unable to delete '../photofile/Thumb/ nam= eoffile .Ignroing=20 >[deletefile] context > Error: Unable to access file. Unable to delete '../photofile/original/ = nameoffile .Ignroing=20 >[deletefile] context >=20 > As far as I can tell, it is using java script to do the actual upload.= Here is the code I am=20 >using to do the upload (copied from another page and tweaked): >=20 > [!]--------------------------------------------------------------------= - [/!] > [!] Entry added to allow photo uploads from Directory pages = [/!] > [!]--------------------------------------------------------------------= - [/!] >=20 > [!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Upload Dir= ectory Photo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D[/!] > [Showif [datasource]^directory] > 3D"" >
>
action=3D"upload_multiphotos2.tpl"> > > action=3Dedit&datasource=3D[datasource]&DAT_ID=3D[dat_id]"> > > > > > >=20 > > Please specify a photo to upload for your directory:
> [!]Add Photos to Dat= abase[/!] > Choose file: onChange=3D"displayImage(0);">
> 
>    > >
>=20 > Here is the java code from the page I copied the form from: >=20 > >=20 > [text]GraphicPath=3D[lookup=20 > db=3Dprefs.db&value=3DPRODUCT_GRAPHIC_PATH&lookInField=3DPREF&returnFie= ld=3Dvalu e][/Text] >=20 > I also had to modify the GraphicPath using DIRECTORY_GRAPHIC_PATH pref= I added to the prefs.db. >=20 > I don't currently have the java code at the top of the edit_database.i= nc file. Do I need it=20 >there and that is what is causing the errors? >=20 > This is already better than the product we are paying for now. At leas= t we can edit the records=20 >in a web browser in WebDNA and it's free. >=20 > I'm learning slowly, but surely. One day I hope to be able to start fr= om scratch with custom=20 >stuff, but that is a long way off right now. >=20 > Thanks Govinda. >=20 > Tony Miller > tmiller@thehawkeye.com >=20 > On May 15, 2009, at 3:09 PM, Govinda wrote: >=20 >> Tony, I have never played with sitebuilder at all since we always =20 >> built everything custom here.. (always special weird deal needs), >> BUT I always have the desire to help when I perceive the question =20 >> is within range of what I know. If you just want a quick tweak to =20 >> existing sitebuilder templates to get quick results, then I'll hush =20 >> up, but if you want a dialogue leading to you learning how to =20 >> manipulate things all you like to satisfy this and future needs, =20 >> then see if you can describe what you want in more generic terms =20 >> (assuming the audience has not seen those sitebuilder templates) =20 >> and then we can suss out some solutions. Others may chime in too =20 >> in various ways.. I am only speaking for my own participation. >> >> -Govinda >> >> >> On May 15, 2009, at 1:35 PM, Tony Miller wrote: >> >>> I am trying to add graphics to the directory listings that behave =20 >>> similar to the graphics on the products pages. >>> >>> I have 6.0a commerce edition and am working in a sitebuilder site. =20 >>> It looks like it will take a major overhaul to the database, admin =20 >>> forms and display pages. >>> >>> If it's possible to add some include calls to add the =20 >>> functionality, that would save me a bunch of time. If not, I'll =20 >>> keep digging. >>> >>> Thanks >>> >>> Tony Miller >>> tmiller@thehawkeye.com >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ "Dan Strong"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Server Freeze (1998) problems with 2 tags shakur (1997) RE: Promise of future help (1998) More Shopping Cart Problems (2000) Not really WebCat (1997) 2.0Beta Command Ref (can't find this instruction) (1997) Searching Multiple DBs (1997) shipcost (1997) RE: Which [index]? (1997) WebCat is different user (1999) WebCatalog as a ListServ (1998) CloseDataBase vs CommitDataBase (2007) reading a email (2000) Major Security Hole IIS NT (1998) question: search return in order (1997) Quick ShowIf question (1997) shaopping cart limits (2000) Problems with [Applescript] (1997) Speed Admin? (Was FlushDatabases) (1997) setitems, one more thing (1997)