Forum Moderators: open
Anyone have the solution?
a visitor clicks on one of the mls listing numbers which displays a new window with the full listing
Given that fact, I don't understand why the original window refreshs when it regains focus, unless you already have a script on the original page that's generating that specific behavior.
Rather than fight against it, doesn't it make more sense to find the cause of the refresh behavior and eliminate it.
Or perhaps I misunderstand, and the full listing appears as a new document, but loaded in the SAME window? Even then, I think the Back Button normally returns to the identical spot in the document previously loaded.
The content (tables) aren't written by me but are generated by our mls system. I copy and paste the updated contents as necessary updates to each page. I've looked at their script and it's rather messy indeed since auto generated by my queries.
<a href="#" onClick=javascript:window.open*
('http://www.example.com/CharlestonReports/ListitLib/report_builder.aspx?*
report=public_full_prop1_con&footer=57505157&mls_acct=12210048','RptWin',*
'left=1,top=1,width=750,height=550,toolbar=0,location=0,directories=0,*
resizable=1,status=0,menubar=1,scrollbars=1');return false;">2210048</a>* line breaks added to prevent side-scroll
Nothing above references my website by the way.
If I could employ a (find and replace) to remove the culprit and still have my page work - I'd be grateful.
Ideas? I'm creative but NOT a webmaster. I'm thrilled to say my sites (after months of reworking) are back in the top 10 since Google blasted me with Florida! I done good.....
Hopefully I'll solve this irritating problem. Folks hate losing their place when dealing with lists of 100's of real estate listings.
I just really looked at the above script - is the return false the culprit? What should it be?
true? I need a pro.....
[edited by: tedster at 6:58 am (utc) on Jan. 19, 2004]
<a href="#" onClick="javascript:window.open
When I added that it worked fine. Without it I think the return false is not getting executed so the link to "#" will execute, which takes you to the top of the page.
Hope that helps.
This is simple and just one more step to make my pages work in my update process. My visitors will be happier I'm sure.
"C'es La Vie" in the world of code - one small error makes for BIG problems.
THANKS.........
There is a simpler solution to your problem. You don't actually need the javascript: protocol part in your onClick handler, in fact I'd go as far as saying it shouldn't even be there at all. You can ditch it, and the href="#".
The javascript protocol and the rest of the code is a kind of dummy 'address', and, on the page, is (perhaps I should say was) used only in an href attribute. There's really no need for it in today's browsers.
It's late at night, and I'm getting paranoid about whether every one of the above statements is correct. So here's a link to a similar discussion.
[faqts.com ]