CodeChargenewbie
Posts: 114
|
| Posted: 02/14/2008, 6:59 AM |
|
OK, I need to vent here. I'm getting so frustrated with the html editor that I think perhaps my time is better served to use the codecharge plug-in in frontpage to design the pages. In every other program I use, such as Office, you can press ctrl-z to go back till the beginning of time. Meanwhile, if I mess up once in codecharge where, for example, my entire page is deleted (this has happened me to multple times), ctrl-z doesn't do anything. The only recourse is undoing checkout on the page (I use visual sourcesafe). Only in very specific circumstances does the undo button actually function, and no more for one or two times in succession. But a page that somehow gets accidently deleted, no luck there. Is this fixed in 4.0?
|
 |
 |
roeya
Posts: 181
|
| Posted: 02/14/2008, 7:51 AM |
|
CodeChargenewbie Hi,
For historical reasons we change the HTML in HTML source view not is design view. The one thing to really look out is removing those funny < ! - - B E G I N ... HTML remarks and {label} syntax. In HTML source view undo work fine - but whenever you get warning that says something like "XXX missing from the page do you want delete it..." when you go back to design mode press no and go back to the HTML and undo...
Also if the problem with undo returns every time contact support with the scenrio.
I found support very helpful in solving problems if you invest the time in describing how to recreate the problem.
_________________
http://www.infoneto.com/ |
 |
 |
CodeChargenewbie
Posts: 114
|
| Posted: 02/14/2008, 8:12 AM |
|
Quote roeya:
CodeChargenewbie Hi,
For historical reasons we change the HTML in HTML source view not is design view. The one thing to really look out is removing those funny < ! - - B E G I N ... HTML remarks and {label} syntax. In HTML source view undo work fine - but whenever you get warning that says something like "XXX missing from the page do you want delete it..." when you go back to design mode press no and go back to the HTML and undo...
Also if the problem with undo returns every time contact support with the scenrio.
I found support very helpful in solving problems if you invest the time in describing how to recreate the problem.
Hmm, well, I've actually deleted those funny comments in the past and it caused problems. Why? I suspect it's b/c the codecharge engine is looking for those comments and throws its hands up when it doesn't find them. And I do receive those xxx missing messages. Currently, the problem is making an html change in design view that's causing an issue. I have a record and gird forms on one page. I delete the first </form> tag, so that both now are inside one form. It runs fine. However, if I make a change to the page, it MAY give me an error of some sort (meaning, I could make changes and everything works perfectly and then one day, without any pattern, it won't), usually indicating that a control is null. Why is that? Because codecharge puts back the </form> tag and then my code doesn't know where said control value is. I don't know how to manage more than one form on a page without manually deleting form tags in the html view. I don't think this is illegal practice, yet codecharge will complain.
|
 |
 |
roeya
Posts: 181
|
| Posted: 02/14/2008, 8:29 AM |
|
Oops - This is a Real No No with CCS:
The Record and the the grid are special objects from CCS point of view they are "controls"
and are bounded by < ! - - BEGIN ***** - - > and < ! - - END ***** - - > this remarks are actually special markes that let the program "know" where the record and the grid are located on the page, trying to do things like moving the </form> outside the special markers may work but sometimg causes problems when you have more then one form. and in other cases too.
Actually there is no problem putting as many records as you want in the same page but all should have their own fom tag.
If you want a multi sql table update - e.g one form that updates several tables at once then you need an updateable view or stored procedure or read only view that can trigger insert/update/delete - all are database sql solutions.
You can also use custom code for this - but don't do it just learn to do it in SQL
_________________
http://www.infoneto.com/ |
 |
 |
CodeChargenewbie
Posts: 114
|
| Posted: 02/15/2008, 12:16 PM |
|
Quote roeya:
Oops - This is a Real No No with CCS:
The Record and the the grid are special objects from CCS point of view they are "controls"
and are bounded by < ! - - BEGIN ***** - - > and < ! - - END ***** - - > this remarks are actually special markes that let the program "know" where the record and the grid are located on the page, trying to do things like moving the </form> outside the special markers may work but sometimg causes problems when you have more then one form. and in other cases too.
Actually there is no problem putting as many records as you want in the same page but all should have their own fom tag.
If you want a multi sql table update - e.g one form that updates several tables at once then you need an updateable view or stored procedure or read only view that can trigger insert/update/delete - all are database sql solutions.
You can also use custom code for this - but don't do it just learn to do it in SQL
Right, deleting said comments are, indeed, a no-no. Deleting/moving form tags can cause problems, but I think that's a codecharge issue, as it's technically possible to do this in html:
<form>
<form>
submit
</form>
submit
</form>
The outside submit button should submit all the stuff from the inside form. But the way codecharge handles things is you must change the html yourself to combine forms on one page in such a manner, at least that's my understanding. This can cause problems, but there's not really many other options around it, and the page I'm working on requires a record and editable grid, both of which are forms in codecharge. I need to submit both forms simultaneously. I could put both in separate frames, perhaps, but I'd rather not. I might also try using frontpage to manage the html the way I desire and that might avoid any hope of codecharge complaining.
|
 |
 |
datadoit
|
| Posted: 02/15/2008, 1:37 PM |
|
CodeChargenewbie wrote:
>
> Right, deleting said comments are, indeed, a no-no. Deleting/moving form tags
> can cause problems, but I think that's a codecharge issue, as it's technically
> possible to do this in html:
>
> <form>
>
> <form>
> submit
> </form>
>
> submit
> </form>
>
> The outside submit button should submit all the stuff from the inside form.
> But the way codecharge handles things is you must change the html yourself to
> combine forms on one page in such a manner, at least that's my understanding.
> This can cause problems, but there's not really many other options around it,
> and the page I'm working on requires a record and editable grid, both of which
> are forms in codecharge. I need to submit both forms simultaneously. I could
> put both in separate frames, perhaps, but I'd rather not. I might also try
> using frontpage to manage the html the way I desire and that might avoid any
> hope of codecharge complaining.
>
>
> ---------------------------------------
Another "no-no": Nested forms. It's not explicitly -disallowed- per the
HTML specification (http://www.w3.org/TR/html401/), but it seems to me
that making something like this work bug-free and cross-browser
compatible would require a lotta work. Why bother when some simple
Custom Updates or Inserts could be done via CCS with a single CCS form.
|
|
|
 |
CodeChargenewbie
Posts: 114
|
| Posted: 02/20/2008, 6:48 AM |
|
Well, I can get nested forms to work and merge two forms into one, but it does give me headaches. Usually, every time I make a change in design view, it'll put back the </form> tag I deleted and I'll have to delete it again and republish. I need to use a record and a grid form on the same page and it's frustrating that codecharge has to give me problems. There's no reason why a coder cannot combine or use multiple forms. Maybe using include pages might help, but I'm not sure if the main page would submit the data from the other include pages..
|
 |
 |
|