Dreamweaver CS4 quirk?

Yes I use DW BUT I code everything - I do not use all of it’s menu stuff.

Hence I wouldn’t be driving all of you nuts all of the time with my questions regarding html and css.

So, is there a quirk that if I copy and paste from an html page that something, formatting or hidden content, is save with the new page?


<iframe width="99.2%" height="1200px" style="border-style: outset"src=[COLOR="#0000FF"]http://www.searchpoint.net/Search/mapSearch.aspx?_account=idd&_new=1&org_id=CARETS&agent_public_id=SSCHRRIC_socal&sponsor_office_id=H631_SOCAL&master_uid=DDA3E921-85C2-488C-8B79-DA50DB9D19BA&criteria=<Search><OrgId>CARETS</OrgId><NELat>33.625340337704586</NELat><NELong>-117.82296180725099</NELong><SWLat>33.582305144936804</SWLat><SWLong>-117.90553092956546</SWLong><LocationType>zip%20code</LocationType><MidLat>33.6038227413207</MidLat><MidLong>-117.864246368408</MidLong><Zoom>14</Zoom><SearchType>1</SearchType><PolygonType>zip</PolygonType><LocationType>zip%20code</LocationType><Location>92625%20(Zip%20Code)</Location><MinPrice>400000</MinPrice><MinBeds>1</MinBeds><Status>A,B</Status><oper_in_misearch_features_2>OR</oper_in_misearch_features_2><oper_in_misearch_features_3>OR</oper_in_misearch_features_3><RESPropertyType>SFR,CON,TWN,CTH,CON,TWN</RESPropertyType><Features></Features></Search>[/COLOR]</iframe>

That’s the only thing I can think of as to why, when I paste a new search link into the “saved as” new name html page that when previewed in IE the original search map appears in stead of the new pasted in link search map.

The links work correctly when I paste them into IE8 directly in the address bar, but not when viewed in my html pages.

There’s got to be something quirky going on here. I went to Adobe but no answers.

Ideas ? ? ?

Rick

outset is not an attribute src is but more importantly the URL needs to be properly encoded considering it contains a bunch of special characters. Not really a software quirk considering the software has no way reliable way to tell whether you are pasting an encoded URL or not. If all URLs were automatically encoded there would be the possibility of encoding them twice.

“outset is not an attribute” what exactly does this mean?

What defines encoded? I don’t know.

As I stated, the http: etc., URL works perfectly when I paste it directly into an address bar of IE8. Shouldn’t it also work in my html page the same way?

Thanks . . . Rick

The quote after the src=" is very important as this allows the <iframe> mapsearch code below to work. Yea!

However, even though it works now, all of this code is highlighted in yellow, meaning there still is a problem.

It’s got to be IN THE QUOTES!

Am I missing quotes? Should there be closing quotes? What about the opening iframe elements?

<iframe width="880" height="1200" style="border:outset"src=[COLOR="#FF0000"]"[/COLOR]http://www.searchpoint.net/Search/mapSearch.aspx?_account=idd&_new=1&org_id=CARETS&agent_public_id=SSCHRRIC_socal&sponsor_office_id=H631_SOCAL&master_uid=DDA3E921-85C2-488C-8B79-DA50DB9D19BA&criteria=<Search><OrgId>CARETS</OrgId><NELat>33.58745334193242</NELat><NELong>-117.53345489501956</NELong><SWLat>33.52994771113065</SWLat><SWLong>-117.69927978515626</SWLong><LocationType>city</LocationType><MidLat>33.5587005265315</MidLat><MidLong>-117.616367340088</MidLong><Zoom>13</Zoom><SearchType>1</SearchType><PolygonType>city</PolygonType><LocationType>city</LocationType><Location>Ladera%20Ranch,%20CA%20(City)</Location><MinPrice>$300,000</MinPrice><MaxPrice>$900,000</MaxPrice><MinBeds>1</MinBeds><Status>A,B</Status><oper_in_misearch_features_2>OR</oper_in_misearch_features_2><oper_in_misearch_features_3>OR</oper_in_misearch_features_3><RESPropertyType>SFR,CON,TWN,CTH,CON,TWN</RESPropertyType><Features></Features></Search>"</iframe>

All of the remaining content below DOES NOT SHOW UP on the parent page ? ? ?

<div class="imgpic"><img src="css/images/sfrlogo.png" width="80" height="70" alt="Short Sale Logo" /></div>

<div class="psmaller">
Only those who have passed the National Association of Realtors&reg; education requirements for their Short Sale and Foreclosure Resource course are allowed to display this logo. Properties With Style, Inc. is a member in good standing of the National Association of Realtors&reg; and is proud to have earned this achievment.
</div>

<div id="footer"><hr />Copyright, Properties With Style Inc., a Real Estate Corporation&copy;. The information being provided by CARETS&reg; is for the visitor's personal, non-commercial use and may not be used for any purpose other than to identify prospective properties visitor may be interested in purchasing. Any information relating to a property referenced on this web site comes from the Internet Data Exchange (IDX) program of the CARETS&reg; MLS. This web site may reference real estate listing(s) held by a brokerage firm other than the broker and/or agent who owns this web site. Any information relating to a property, regardless of source, including but not limited to square footages and lot sizes, is deemed reliable but not guaranteed and should be personally verified through personal inspection by and/or with the appropriate professionals. The data contained herein is copyrighted by CARETS&reg; and is protected by all applicable copyright laws. Any dissemination of this information is in violation of copyright laws and is strictly prohibited. CRMLS, Inc., data content displayed on this site is deemed reliable but is not guaranteed accurate by the MLS. Information of sellers and others have not been verified. Data maintained by the Associations or their MLS may not reflect all activity in the market. DRE License: 01408382<hr /></div><!--eND Footer-->

	</div><!--enDmaincontent-->
   </div><!--outer-->   
 </body>
</html>

I just believe it’s got to be in the quote placement somewhere?

I also get this error . . .No starting tag found for: “html”, or it was closed too many times

As always . . . thanks much.

Rick

like this:


<iframe width="880" height="1200" style="border: outset;" src="http://www.searchpoint.net/Search/mapSearch.aspx?_account=idd&amp;_new=1&amp;org_id=CARETS&amp;agent_public_id=SSCHRRIC_socal&amp;sponsor_office_id=H631_SOCAL&amp;master_uid=DDA3E921-85C2-488C-8B79-DA50DB9D19BA&amp;criteria=%3CSearch%3E%3COrgId%3ECARETS%3C/OrgId%3E%3CNELat%3E33.58745334193242%3C/NELat%3E%3CNELong%3E-117.53345489501956%3C/NELong%3E%3CSWLat%3E33.52994771113065%3C/SWLat%3E%3CSWLong%3E-117.69927978515626%3C/SWLong%3E%3CLocationType%3Ecity%3C/LocationType%3E%3CMidLat%3E33.5587005265315%3C/MidLat%3E%3CMidLong%3E-117.616367340088%3C/MidLong%3E%3CZoom%3E13%3C/Zoom%3E%3CSearchType%3E1%3C/SearchType%3E%3CPolygonType%3Ecity%3C/PolygonType%3E%3CLocationType%3Ecity%3C/LocationType%3E%3CLocation%3ELadera%20Ranch,%20CA%20%28City%29%3C/Location%3E%3CMinPrice%3E$300,000%3C/MinPrice%3E%3CMaxPrice%3E$900,000%3C/MaxPrice%3E%3CMinBeds%3E1%3C/MinBeds%3E%3CStatus%3EA,B%3C/Status%3E%3Coper_in_misearch_features_2%3EOR%3C/oper_in_misearch_features_2%3E%3Coper_in_misearch_features_3%3EOR%3C/oper_in_misearch_features_3%3E%3CRESPropertyType%3ESFR,CON,TWN,CTH,CON,TWN%3C/RESPropertyType%3E%3CFeatures%3E%3C/Features%3E%3C/Search%3E"></iframe>

All those special characters need to be properly encoded specifically < and >. I merely took the URL and passed it through the PHP htmlentities() function to get the proper output.

oddz . . . it worked perfectly.

Questions . . . this code that I have is generated by my MLS (Multiple Listing Service and LPS software) on their computer.

I don’t know PHP and am just learning html, css and javaScript.

I noticed many of these & is that ampersand?

I also noticed a lot of these %, the percent sign.

Does the PHP utility automatically find and correct for these?

How can I, and should I being a neophyte, run code through PHP htmlentities() function to get the proper output. If so, where do I get PHP htmlentities()?

Thanks oddz . . . Rick

OK - I looked up PHP html entities function.

It doesn’t seem like a ready made snippet or application.

Is there a basic example of a method to replace most used characters, ie > or < or space, & etc?

All I know it that oddzs’ transformation of my html code worked very well and I would like to be able to have a small PHP htmlentities function to run my html code through.

Thanks . . . Rick

oddz quoted above “All those special characters need to be properly encoded specifically < and >. I merely took the URL and passed it through the PHP htmlentities() function to get the proper output.”

Can someone provide me with some help on the PHP html entities function()

I will have approximately done for all 16 or 18 different map searches that will need to be run through the PHP htmlentities()!

I searched on the Internet but I can’t find this anywhere.

I kind of understand the theory I think.

Thanks . . . Rick