CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Modifying Templates

Print topic Send  topic

Author Message
Dustin
Posted: 02/25/2001, 12:24 PM

Continuing on Michael Simcich's earlier post about post-generation
tweaking...

After I create my DB access pages using CC, I then take the HTML templates
and move it to another directory so that I can modify. (I then modify the
ASP to point to the HTML file -- great suggestion MichaelW).

Here is my problem... no matter what editor I enhance the HTML template
with, the <input> tags are broken as soon as I switch to the "Design" mode.
For example, the following line in a simple login page is reformatted:

What is originally:
<input name="Login" value="{Login}" maxlenght="20" >

Is now:
<input name="Login" value={"Login}" maxlenght="20" >

(notice the "{" is outside the quotes..... and is "maxlenght" spelled
right??.... that's what gets output by CC though)

I have tried to edit my Template files in both Visual Studio 6.0 and
HomeSite 4.5.2 and the same thing happened. Since both these editors did
this, I suspect that it's something I am missing. (or something that would
make sense to someone else... but I am not getting it). One thing I thought
I would do is just generate the ASP code... and not ASP with Templates...
but I guess because there is display code under the </html> tag... the
editors have a problem displaying it.... not too sure... I am not the most
ASP savvy person. I just know that tweaking the ASP files with a GUI editor
seems to be very difficult.

Does anyone have any advice on how to go about modifying the templates?

Thanks,
Dustin

Roger Rabbit
Posted: 02/25/2001, 5:17 PM

Dustin;

I too am using HomeSite 4.5.2 to edit my html templates and have as yet not
experienced any problem at all. What exactly is it that your editing that
is causing this? Are you perhaps editing in HomeSite and then pulling your
code back into CodeCharge? I've not done this, but I wouldn't think that
would be a very good idea. I would think that results could be rather
unpredictable.

I get everything working exactly as I want, from the CodeCharge view point,
and only then do I start dinking with templates in HomeSite. And even then
I put the original Templates into a seperate directory (I call this
Directory HOLD) before making any changes. This way if I muck things up I
still have my original template to fall back on. So far I haven't needed to
use these originals once my changes have been made.

I don't know if any of this helps you. But hopefully I've been able to give
you something to consider when modifing templates.

Best Wishes;

Paul
"Dustin" <dustinds@erols.com> wrote in message
news:97bpl6$4ph$1@news.codecharge.com...
> Continuing on Michael Simcich's earlier post about post-generation
> tweaking...
>
> After I create my DB access pages using CC, I then take the HTML templates
> and move it to another directory so that I can modify. (I then modify the
> ASP to point to the HTML file -- great suggestion MichaelW).
>
> Here is my problem... no matter what editor I enhance the HTML template
> with, the <input> tags are broken as soon as I switch to the "Design"
mode.
> For example, the following line in a simple login page is reformatted:
>
> What is originally:
> <input name="Login" value="{Login}" maxlenght="20" >
>
> Is now:
> <input name="Login" value={"Login}" maxlenght="20" >
>
> (notice the "{" is outside the quotes..... and is "maxlenght" spelled
> right??.... that's what gets output by CC though)
>
> I have tried to edit my Template files in both Visual Studio 6.0 and
> HomeSite 4.5.2 and the same thing happened. Since both these editors did
> this, I suspect that it's something I am missing. (or something that
would
> make sense to someone else... but I am not getting it). One thing I
thought
> I would do is just generate the ASP code... and not ASP with Templates...
> but I guess because there is display code under the </html> tag... the
> editors have a problem displaying it.... not too sure... I am not the most
> ASP savvy person. I just know that tweaking the ASP files with a GUI
editor
> seems to be very difficult.
>
> Does anyone have any advice on how to go about modifying the templates?
>
> Thanks,
> Dustin
>
>

Dustin
Posted: 02/25/2001, 7:56 PM

In order to reproduce the problem, I meticulously followed the below steps
and the same thing happened over and over.

On the following:
Windows 98
CodeCharge 1.0.103
HomeSite 4.5.2

I took these following steps:
1. Open CC and created a simple Login page.
2. Generated the files with ASP 2.0 & Templates
3. Opened Homesite and opened the Login.html file that was created in Step
2.
4. Clicked on the Design tab (the Page looks fine, text boxes show
{ret_page}, {querystring}... etc)
5. Placed my cursor at the end of {Header}
6. Hit the Enter key and typed "This is a test" (without the quotes :) ).
7. Clicked on the Edit tab....

The Input values and Form Action value has changed!

(and further editing of the page makes it worse.)

Well, of course everyone hates to hear the "It works for me"... but if
that's the case... please let me know. Maybe it's something with my box...
I have searched for a setting in HS that would prevent it from modifing the
code but didn't find anything (I'm not an expert at HS by any means... I am
just looking for something to help me with the layout of pages... something
better than Visual Studio).

Thanks....
Dustin

Here are the before and after content:

Before Editing:
=============
<!--BeginLoginAct-->
<tr>
<td style="border-style: inset; border-width: 1">
<font style="font-size: 10pt; color: #000000; font-weight:
bold">Login</font>
</td>
<td style="border-style: inset; border-width: 1">
<input type="text" name="Login" value="{Login}" maxlenght="20"/>
</td>
</tr>
<tr>
<td style="border-style: inset; border-width: 1">
<font style="font-size: 10pt; color: #000000; font-weight:
bold">Password</font>
</td>
<td style="border-style: inset; border-width: 1">
<input type="password" name="Password" maxlenght="20"/>
</td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="FormAction" value="login"/>
<input type="submit" value="Login"/>
</td>
</tr>
<!--EndLoginAct-->

After Editing:
==========
</tr><!--EndUserInd--><!--BeginLoginAct-->
<tr>
<td style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset;
BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"
>
<font style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR:
#000000">Login</font>
</td>
<td style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset;
BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"
>
<input name="Login" value={"Login}" maxlenght="20" >
</td>
</tr>
<tr>
<td style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset;
BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"
>
<font style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR:
#000000">Password</font>
</td>
<td style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset;
BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"
>
<input type="password" name="Password" maxlenght="20">
</td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="FormAction" value="login">
<input type="submit" value="Login">
</td>
</tr><!--EndLoginAct-->



"Roger Rabbit" <rrabbit@bunnyville.com> wrote in message
news:97caro$31n$1@news.codecharge.com...
> Dustin;
>
> I too am using HomeSite 4.5.2 to edit my html templates and have as yet
not
> experienced any problem at all. What exactly is it that your editing that
> is causing this? Are you perhaps editing in HomeSite and then pulling
your
> code back into CodeCharge? I've not done this, but I wouldn't think that
> would be a very good idea. I would think that results could be rather
> unpredictable.
>
> I get everything working exactly as I want, from the CodeCharge view
point,
> and only then do I start dinking with templates in HomeSite. And even
then
> I put the original Templates into a seperate directory (I call this
> Directory HOLD) before making any changes. This way if I muck things up I
> still have my original template to fall back on. So far I haven't needed
to
> use these originals once my changes have been made.
>
> I don't know if any of this helps you. But hopefully I've been able to
give
> you something to consider when modifing templates.
>
> Best Wishes;
>
> Paul
> "Dustin" <dustinds@erols.com> wrote in message
>news:97bpl6$4ph$1@news.codecharge.com...
> > Continuing on Michael Simcich's earlier post about post-generation
> > tweaking...
> >
> > After I create my DB access pages using CC, I then take the HTML
templates
> > and move it to another directory so that I can modify. (I then modify
the
> > ASP to point to the HTML file -- great suggestion MichaelW).
> >
> > Here is my problem... no matter what editor I enhance the HTML template
> > with, the <input> tags are broken as soon as I switch to the "Design"
> mode.
> > For example, the following line in a simple login page is reformatted:
> >
> > What is originally:
> > <input name="Login" value="{Login}" maxlenght="20" >
> >
> > Is now:
> > <input name="Login" value={"Login}" maxlenght="20" >
> >
> > (notice the "{" is outside the quotes..... and is "maxlenght" spelled
> > right??.... that's what gets output by CC though)
> >
> > I have tried to edit my Template files in both Visual Studio 6.0 and
> > HomeSite 4.5.2 and the same thing happened. Since both these editors
did
> > this, I suspect that it's something I am missing. (or something that
> would
> > make sense to someone else... but I am not getting it). One thing I
> thought
> > I would do is just generate the ASP code... and not ASP with
Templates...
> > but I guess because there is display code under the </html> tag... the
> > editors have a problem displaying it.... not too sure... I am not the
most
> > ASP savvy person. I just know that tweaking the ASP files with a GUI
> editor
> > seems to be very difficult.
> >
> > Does anyone have any advice on how to go about modifying the templates?
> >
> > Thanks,
> > Dustin
> >
> >
>
>

Michael Weaver
Posted: 02/25/2001, 10:40 PM

That is really very strange. I tried it after your message, and I achieved
the same results as you. I believe that the problem is through Codesweeper.
You might want to try turning off Codesweeper when you switch from Design to
Edit views, but I don't know if it'll work. To do that, hit F8, Go to
Design, and unselect "Apply Codesweeper." The only real advice I could give
is just try to steer clear of HomeSite's Design view. I've found it to be
rather buggy.

Sorry I can't be more helpful.

michael

Alexey Alexapolsky
Posted: 02/26/2001, 2:45 AM

Also please make sure when you modify HTML templates that
you don't modify or delete CodeCharge comments
and don't modify {things} in braces.

--
Regards,
Alexey
CodeCharge Support


Michael Weaver <michaelw@sc.rr.com> wrote in message
news:97ctpb$3tv$1@news.codecharge.com...
> That is really very strange. I tried it after your message, and I achieved
> the same results as you. I believe that the problem is through
Codesweeper.
> You might want to try turning off Codesweeper when you switch from Design
to
> Edit views, but I don't know if it'll work. To do that, hit F8, Go to
> Design, and unselect "Apply Codesweeper." The only real advice I could
give
> is just try to steer clear of HomeSite's Design view. I've found it to be
> rather buggy.
>
> Sorry I can't be more helpful.
>
> michael
>
>

Paul
Posted: 02/26/2001, 4:10 AM

Dustin;

You just explained your results. Design View in HomeSite is a mess. It's
so bad that Allaire give you a worning before going into it that it can
screwup your work and that you should save the page before using it. Do
yourself a favor and pretend that Design View doesn't exist. In playing with
it I've experienced all manner of strange behavior.

Dustin wrote in message <97ck69$j3i$1@news.codecharge.com>...
>In order to reproduce the problem, I meticulously followed the below steps
>and the same thing happened over and over.
>
>On the following:
>Windows 98
>CodeCharge 1.0.103
>HomeSite 4.5.2
>
>I took these following steps:
>1. Open CC and created a simple Login page.
>2. Generated the files with ASP 2.0 & Templates
>3. Opened Homesite and opened the Login.html file that was created in Step
>2.
>4. Clicked on the Design tab (the Page looks fine, text boxes show
>{ret_page}, {querystring}... etc)
>5. Placed my cursor at the end of {Header}
>6. Hit the Enter key and typed "This is a test" (without the quotes :) ).
>7. Clicked on the Edit tab....
>
>The Input values and Form Action value has changed!
>
>(and further editing of the page makes it worse.)
>
>Well, of course everyone hates to hear the "It works for me"... but if
>that's the case... please let me know. Maybe it's something with my box...
>I have searched for a setting in HS that would prevent it from modifing the
>code but didn't find anything (I'm not an expert at HS by any means... I am
>just looking for something to help me with the layout of pages... something
>better than Visual Studio).
>
>Thanks....
>Dustin
>
>Here are the before and after content:
>
>Before Editing:
>=============
><!--BeginLoginAct-->
> <tr>
> <td style="border-style: inset; border-width: 1">
> <font style="font-size: 10pt; color: #000000; font-weight:
>bold">Login</font>
> </td>
> <td style="border-style: inset; border-width: 1">
> <input type="text" name="Login" value="{Login}" maxlenght="20"/>
> </td>
> </tr>
> <tr>
> <td style="border-style: inset; border-width: 1">
> <font style="font-size: 10pt; color: #000000; font-weight:
>bold">Password</font>
> </td>
> <td style="border-style: inset; border-width: 1">
> <input type="password" name="Password" maxlenght="20"/>
> </td>
> </tr>
> <tr>
> <td colspan="2">
> <input type="hidden" name="FormAction" value="login"/>
> <input type="submit" value="Login"/>
> </td>
> </tr>
> <!--EndLoginAct-->
>
>After Editing:
>==========
> </tr><!--EndUserInd--><!--BeginLoginAct-->
> <tr>
> <td style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset;
>BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"
> >
> <font style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR:
>#000000">Login</font>
> </td>
> <td style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset;
>BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"
> >
> <input name="Login" value={"Login}" maxlenght="20" >
> </td>
> </tr>
> <tr>
> <td style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset;
>BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"
> >
> <font style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR:
>#000000">Password</font>
> </td>
> <td style="BORDER-RIGHT: 1px inset; BORDER-TOP: 1px inset;
>BORDER-LEFT: 1px inset; BORDER-BOTTOM: 1px inset"
> >
> <input type="password" name="Password" maxlenght="20">
> </td>
> </tr>
> <tr>
> <td colspan="2">
> <input type="hidden" name="FormAction" value="login">
> <input type="submit" value="Login">
> </td>
> </tr><!--EndLoginAct-->
>
>
>
>"Roger Rabbit" <rrabbit@bunnyville.com> wrote in message
>news:97caro$31n$1@news.codecharge.com...
>> Dustin;
>>
>> I too am using HomeSite 4.5.2 to edit my html templates and have as yet
>not
>> experienced any problem at all. What exactly is it that your editing
that
>> is causing this? Are you perhaps editing in HomeSite and then pulling
>your
>> code back into CodeCharge? I've not done this, but I wouldn't think that
>> would be a very good idea. I would think that results could be rather
>> unpredictable.
>>
>> I get everything working exactly as I want, from the CodeCharge view
>point,
>> and only then do I start dinking with templates in HomeSite. And even
>then
>> I put the original Templates into a seperate directory (I call this
>> Directory HOLD) before making any changes. This way if I muck things up
I
>> still have my original template to fall back on. So far I haven't needed
>to
>> use these originals once my changes have been made.
>>
>> I don't know if any of this helps you. But hopefully I've been able to
>give
>> you something to consider when modifing templates.
>>
>> Best Wishes;
>>
>> Paul
>> "Dustin" <dustinds@erols.com> wrote in message
>>news:97bpl6$4ph$1@news.codecharge.com...
>> > Continuing on Michael Simcich's earlier post about post-generation
>> > tweaking...
>> >
>> > After I create my DB access pages using CC, I then take the HTML
>templates
>> > and move it to another directory so that I can modify. (I then modify
>the
>> > ASP to point to the HTML file -- great suggestion MichaelW).
>> >
>> > Here is my problem... no matter what editor I enhance the HTML template
>> > with, the <input> tags are broken as soon as I switch to the "Design"
>> mode.
>> > For example, the following line in a simple login page is reformatted:
>> >
>> > What is originally:
>> > <input name="Login" value="{Login}" maxlenght="20" >
>> >
>> > Is now:
>> > <input name="Login" value={"Login}" maxlenght="20" >
>> >
>> > (notice the "{" is outside the quotes..... and is "maxlenght" spelled
>> > right??.... that's what gets output by CC though)
>> >
>> > I have tried to edit my Template files in both Visual Studio 6.0 and
>> > HomeSite 4.5.2 and the same thing happened. Since both these editors
>did
>> > this, I suspect that it's something I am missing. (or something that
>> would
>> > make sense to someone else... but I am not getting it). One thing I
>> thought
>> > I would do is just generate the ASP code... and not ASP with
>Templates...
>> > but I guess because there is display code under the </html> tag... the
>> > editors have a problem displaying it.... not too sure... I am not the
>most
>> > ASP savvy person. I just know that tweaking the ASP files with a GUI
>> editor
>> > seems to be very difficult.
>> >
>> > Does anyone have any advice on how to go about modifying the templates?
>> >
>> > Thanks,
>> > Dustin
>> >
>> >
>>
>>
>
>

Dustin
Posted: 02/26/2001, 5:29 AM

Hello all, thanks for the response/advice... one other thing I can confirm
is that the same thing happens when I perform the same steps in Visual
Studio. I guess it's just something with editing the Templates in a GUI
editor.

I thought that maybe the miss-spelled "maxlength" had something to do with
it... but got the same results when editing the template by hand before
opening it in the editors.

It appears that no one else is using a GUI layout editor to build their
pages? Maybe it's just me, event though I don't mind writing a little code,
I like to have a GUI editor to lay out my pages.

Thanks....
Dustin



"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:97dc3j$u4c$1@news.codecharge.com...
> Also please make sure when you modify HTML templates that
> you don't modify or delete CodeCharge comments
> and don't modify {things} in braces.
>
> --
> Regards,
> Alexey
> CodeCharge Support
>
>
> Michael Weaver <michaelw@sc.rr.com> wrote in message
>news:97ctpb$3tv$1@news.codecharge.com...
> > That is really very strange. I tried it after your message, and I
achieved
> > the same results as you. I believe that the problem is through
> Codesweeper.
> > You might want to try turning off Codesweeper when you switch from
Design
> to
> > Edit views, but I don't know if it'll work. To do that, hit F8, Go to
> > Design, and unselect "Apply Codesweeper." The only real advice I could
> give
> > is just try to steer clear of HomeSite's Design view. I've found it to
be
> > rather buggy.
> >
> > Sorry I can't be more helpful.
> >
> > michael
> >
> >
>
>

Roger
Posted: 02/26/2001, 8:04 AM

I remember reading about a "maxlength" mistake in spelling generated by CC.
Either in eGroup or CC's own discussion.

--
Rgds
Roger Tng


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.