Print Page | Close Window

Show me the Code storeid Issues in Expression Web

Printed From: RomanCart.com Forum
Category: RomanCart
Forum Name: Administration
Forum Description: Using the Admin Control Panel
URL: http://forums.romancart.com/forum_posts.asp?TID=10870
Printed Date: 03 December 2023 at 12:24am


Topic: Show me the Code storeid Issues in Expression Web
Posted By: stuartvb
Subject: Show me the Code storeid Issues in Expression Web
Date Posted: 20 May 2010 at 4:11pm
I suspect I am not the only one who designs websites using RomanCart on Expression Web or FrontPage.

If one is using the Dynamic Web Template facility, changing the DWT and saving it then saves all pages attached to it. However a problem arises where the RomanCode form code is used as opposed to the hyperlink; the expression "storeid" is changed to "storeid0" this rendering a previously working link out of commission. This does not happen when using the link but of course the link cannot be used where modifiers are present.

As I am mostly a WYSIWYG person with only basic code knowledge I don't know why this happens; maybe because there is a space after the storeid. The only way I have found to correct this is to ensure that after changing the DWT you will have to do a global search of the html of all pages and replace "storeid0" with "storeid".

If support have any ideas as to how the form code could be written to avoid this it would of course be very welcome - especially for those of us using sites that are not dynamically driven with many huindreds or thousands of pages! I don't know if this also happens with other html editing software



Replies:
Posted By: Support
Date Posted: 20 May 2010 at 4:25pm
Hi,

This would be a setting in Expression web you would need to change. Dreamweaver does a similar thing with an option selected (more details on the forum).
Before you do this though, make sure you are not nesting forms (which is not valid html) - i.e. make sure all the forms are separate.

Many Thanks
Support


Posted By: stuartvb
Date Posted: 20 May 2010 at 6:09pm
OK Thanks. All forms are separate. Anybody any idea where this setting might be?


Posted By: wigman
Date Posted: 20 May 2010 at 6:30pm
I have had this problem with Frontage, if the products are same apart from product number I have copied the form and pasted it again and then just change product number I found it inserted 0.
I found long ago to paste into Notepad change product number and copy and paste from there.
Mike

-------------
http://www.classylashes.com - False Eyelashes
http://www.cwretail.co.uk - Grimas Makeup


Posted By: raineshoe
Date Posted: 20 May 2010 at 9:08pm
Yep, had a nightmare with this and Dreamweaver until I found you had to untick a box and all my nighmares were solved. Hope you find your solution.


Posted By: ponyandcarriage
Date Posted: 20 May 2010 at 9:36pm
Hi
I hope this may help you a little, I do use expression web but I am by no means a master of it.
Basically the script that contains both your storeid and the catedory no should not really be going in the dynamic template portion, it should be in main page editable body perhaps body 2 or 3 but as high as you can go in that body Ė basically when you save your webpage if it asks to make global changes to a DWT template itís in the wrong position.
<SCRIPT LANGUAGE="JavaScript" SRC="http://remote.romancart.com/datacache.asp?storeid=yourid&categoryid=yourcategoryno"></script>
The script similar to above should be put on each page (in the html view) and not in the dwt portion
Humm just read this back and it reads as clear as mud, let me know if this isnít clear enough.
Ps I have never had to make any settings change to expression web 2 or three

Martin


Posted By: John Pye
Date Posted: 31 May 2010 at 6:26am
Originally posted by Support Support wrote:

Hi,

This would be a setting in Expression web you would need to change. Dreamweaver does a similar thing with an option selected (more details on the forum).
Before you do this though, make sure you are not nesting forms (which is not valid html) - i.e. make sure all the forms are separate.

Many Thanks
Support

Can anyone point to the info about Dreamweaver settings in the forum please - I can't seem to find it
Thanks
John

-------------
Tyre Pressure monitoring systems
www.TyrePal.co.uk - www.TyrePal.co.uk
Brilliant boat care products
www.BoatSheen.com - www.BoatSheen.com


Posted By: Dave P
Date Posted: 31 May 2010 at 8:44am
Hi John,

On DW4, it's 'Edit / preferences' and then untick the check box which says "Rename form items when pasting".

I thinks it's in a different place in later versions but it's called something similar.

-------------
Regards,

Dave P.
http://www.honeypotgifts.co.uk - Gifts for all at HoneyPotGifts


Posted By: raineshoe
Date Posted: 31 May 2010 at 9:16am
Its under edit/preferences/code rewriting in CS3.


Posted By: stuartvb
Date Posted: 31 May 2010 at 9:24am
Does anybody who uses Expresson Web know if this would be the same as:

In Expression Web 3:

Tools > Page Editor Options > General

Then Uncheck:

"Automatically enclose form field within a form"

and/or uncheck

"Make ID unique on paste"



Posted By: ponyandcarriage
Date Posted: 31 May 2010 at 10:28am
Hi,
I use expression web 3, both those settings for me are checked (ticked).
Martin



Print Page | Close Window