WebDNA Discussion
| GMT 02/09/10
12:37 PM
Choose a Catagory
   
Welcome: Guest
CategoryDescriptionAccess# of Posts# of TopicsLast Poster
•  WSC AnnouncementsLook here for the latest reports from WSC!DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR188Donovan
•  WebDNA ProgrammingProgramming techniques, questions, tips, and solutions.DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR15140Donovan
•  Server Config and TroubleshootingServer Problems and Questions Here!DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR9424Donovan
•  Installation NotesInstallation HowTo's for various WebDNA installsDNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR114vsm
•      Function Library BuildersTalk about 'Kustom' function building!DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR54Donovan
•      Internet CommercePolicies, Strategies, Security etc..DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR142Donovan
•      WebDNA LoungeOff topic - Conversation at it's least moderated! ;-)DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR126y2work
•      WebDNA SuggestionsHave a feature request? Post it here!DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR125Terryfic
•      Forum SuggestionsNot a place to vent!.. but rather a place to add useful suggestions. DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR31Donovan
•      Bug ReportingPost your potential WebDNA language bugs here.DNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR449Govinda
•      Enterprise Featuresdiscussion about the enterprise features in WebDNADNA Open Source DevelopersWebDNA Development TeamPUBLICMarketingWebDNA ExecutivesMODERATOR22Donovan
LATEST (4) POSTS!

Donovan Brooke

Donovan Brooke
group:
registered: GMT - 05/09/2007
You need to be logged in to reply
Go To: Subject: Re: WebDNA AJAX request
Hi Aaron,

WebDNA will work in basically the same way PHP does.. only currently (until perhaps the next release of WebDNA (up to the powers that be)), WebDNA only supports text responses and not XML responses. So use:
'responseText' in place of 'responseXML' in your javascript file for now. You may have to rewrite some of the AJAX code snippets you find.

Donovan


DATE: GMT - 02/08/2010 | 04:45 AM    

Aaron Kaczmarek


group:
registered: GMT - 01/30/2010
You need to be logged in to reply
Go To: Subject: WebDNA AJAX request
how do you send an AJAX request to a webdna (tpl or dna) page? I setup a javascript drag and drop list where I want to update a db as the list gets reordered. I'm not real savvy on AJAX or Javascript, so I've been using mostly open source resources for this which are php oriented. Kind of confused as to how to do the same thing with webdna.
DATE: GMT - 02/06/2010 | 05:01 PM    

KM


group:
registered: GMT - 11/21/2008
You need to be logged in to reply
Go To: Subject: Re: Can anyone help me with adding a field to products.db?
I've addressed and solved the problem of cutting off HTML code in the description already. The *only* HTML code that is present in the description field is something where we added code so people can click on a button to see additional images of the products.

The way I solved the cutoff problem was this:

[GetChars start=1&end=1000][Grep search=(a href)&replace=!--&ignorecase=T][Grep search=(img src)&replace=!--&ignorecase=T][Grep search=(/a)&replace=br&ignorecase=T][description][/Grep][/Grep][/Grep][/GetChars]


So I'm replacing any instances of a href and img src with !-- to rem out that coding when it tries to execute on the specials page. That way we keep it in the description on the product pages, but can eliminate it from the specials page. Then I replaced the /a code with a br. I couldn't figure out any better way to accomplish eliminating the potential for the cutoff point to come in the middle of HTML code. I'm sure there is probably another way to do it more directly rather than this improvised solution. I was worried about not having a corresponding --> to close the <!-- but when I used this as is, it worked and is displaying exactly as we want it, so I wasn't going to quarrel with success.

So since that cutoff in the middle of HTML code issue has been solved and isn't a worry, is there a way to stop what gets displayed on the first <p>? I think that would be an easier fix than adding the short description field. I'd want to set that up to have something working now, and then I'll play around more with the shortdescriptions approach later.

OK and will do on everything else.

Cool on the text editor being fine. I just wasn't sure if the way I was doing it was what was causing the failure. I was grasping at straws for something that might work at that point due to knowing nothing about needing to flush the databases. I thought maybe if I edited the .db file in a more "proper" manner, it would work, but then I couldn't find anything that would open the .db file and then save it as a .db file. Everything wanted to change it to a different file extension after I made my modification and wanted to save.
DATE: GMT - 02/05/2010 | 09:55 AM    

Donovan Brooke

Donovan Brooke
group:
registered: GMT - 05/09/2007
You need to be logged in to reply
Go To: Subject: Re: Can anyone help me with adding a field to products.db?
If you are including HTML into your descriptions, I would do a short description like you've started... or perhaps use [removeHTML] on your DESCRIPTION block to display your short descriptions... However, the later gets more complicated for a beginner... so I would stick with your "shortdescriptions" idea until you get more familiar with WebDNA. The reason is that you may not close off an HTML element correctly while truncating the text, which will mess up your display of the text.

If you don't have access to the Admin, ask your admin if you are using a SandBox and if you can have access to your SandBox admin. If not, just copy this into a text editor and save it to your site with the name "flush.tpl":


<!--HAS_WEBDNA_TAGS-->

[flushdatabases]

WebDNA databases flushed!


Once saved, just link to it with a browser. That will flush your .db's out of RAM... and no, no worries, your data will be reloaded from your hard drive just fine. (with the updated info this time)

Regarding what to edit WebDNA with.. use any text editor.. no need to get fancy with a WYSIWYG editor. I use BBedit.

Regarding the other questions.. one thing at a time. ;-)

Donovan

DATE: GMT - 02/05/2010 | 08:45 AM    
 
Choose a Catagory
   
Forum Settings: Max Post Edits: 4,   Admin Email: serviceATwebdna.us,   Server GMT Offset: -6     |    EDC Forum V.b2.0 © 2010   |   Powered by WebDNA