
Originally Posted by
bradymc
I was trying to keep the calls all the same as instructed. And since all of the content for each resort ends up being very miniscule in quantity, I was going to just use the div method. I have 30 resorts with a couple of sentences of info and a pic. I'm trying to avoid making 30 new pages for the info.
Can I call an external file that contains the resort_details div info and still call all of the resort info via the div method? In other words, can I use the IFRAME method followed by the DIV method and get away with it?
I see, in that case, it makes sense to do what you're currently doing already. I looked into the problem in more detail. There's definitely something specific to your page that's causing IE to not register a variable when it's being created via the onClick event. For example, this is your initial HTML to launch the DHTML window:
Code:
<td width="185"><a onclick="resortwin=dhtmlmodal.open('divbox2', 'div', 'resort_details', 'Resort Details', 'width=480px,height=360px,center=1,resize=1,scrolling=1'); return false">View resort details</a></td>
Which I replaced with something much simpler to try and catch the problem:
Code:
<td width="185"><a href="#" onClick="george=5; return false">View resort details</a> <a href="javascript:alert(george)">Report</a></td>
When I click "view resort", then "report", 5 should be alerted, signaling that variable george was correctly defined. In IE, however, it returns undefined. This is the same issue causing IE to return "resortwin" not found.
Most likely the problem is due to some unclosed or invalid HTML on your page throwing IE off. At first I thought it's because your <a> tags are all missing the href attribute, but even adding it in didn't help. I'd start by stripping your page first of everything except the relevant parts to do with this script, and see if you can isolate what HTML (or lack thereof) is causing the problem.
Bookmarks