Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DW cutting off code

Status
Not open for further replies.

dmacster

Technical User
Jan 28, 2005
670
US
I was trying to get some weather on a site for a client. I downloaded their file, copied the code and pasted into my DW document. DW kept cutting off.

The page with the problem is
While works.

I ended up having to edit the code in BBEdit Lite. DW just would not put the end of the weather script on.

The weather code should be
Code:
<!-- BEGIN WEATHER -->
					<div id="weather">
						<div style="width: 120px; height: 60px; background-image: url([URL unfurl="true"]http://vortex.accuweather.com/adcbin/netweather_v2/backgrounds/clouds_120x60_bg.jpg%20);[/URL] background-repeat: no-repeat; background-color: #;">
							<div style="height: 48px;">
								<script src="[URL unfurl="true"]http://netweather.accuweather.com/adcbin/netweather_v2/netweatherV2.asp?partner=netweather&tStyle=normal&logo=1&zipcode=19958&lang=eng&size=7&theme=clouds&metric=0&target=_blank"></script>[/URL]
							</div>

							<div style="text-align: center; font-family: arial, helvetica, verdana, sans-serif; font-size: 10px; line-height: 12px; color: #;">
								<a style="color: #" href="[URL unfurl="true"]http://www.accuweather.com/us/DE/LEWES/19958/city-weather-forecast.asp?partner=netweather&traveler=0"[/URL] target="_blank">Weather Forecast</a></div>
						</div>
					</div>
					<!--END WEATHER -->

But DW keeps cutting off after
Code:
lang=eng

as seen in the test3col example.

Even after I have corrected with BBEdit and uploaded, if I open the document in DW, it cuts off.

Has anyone seen this?

I have DW MX on Mac OS 10.3.9.

I've never seen the code being overwritten by DW like that.

Ideas?

Thanks,
Donna
 
I've changed the code in the test3col folder, but still wonder why the script src path would be cut off.

Thanks,
Donna
 
If it helps anyone, I ended up using escape characters in the url for the weather script - works fine now.

donna
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top