Forum Moderators: open
Below are my codes:
<script language="JavaScript" type="text/JavaScript">
function See_Rates2()
{
var x=document.getElementById("mySelect2")
ct=x.options[x.selectedIndex].text
rt=x.options[x.selectedIndex].text
window.open('rates.asp?ct='+ct+'&rt='+rt,'_top');
}
</script>
<%
ct=request.QueryString("ct")
rt=request.QueryString("rt")
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("abc.mdb"))
%>
.......
<option value='<%=rs("Country")%>'
<%if rs("Country")=ct then response.Write("selected")%>><%=rs("Country")%></option>
<% rs.movenext
loop
%>
</select>
<a href="#" ><img src="images/BT_Search.gif" alt="See Rates" name="Rates" width="38" height="23" border="0" align="top" onClick="See_Rates2()">
Google: Results 1 - 26 of 26 from webmasterworld.com for "break the back button" [google.com]
Browser Side World / HTML and Browsers Mastery, Mystery and Misery - Jakob Nielsen [webmasterworld.com]
tedster said:In his new Alertbox column, Jakob Nielsen serves up some excellent points.
MASTERY: A simple user interface is not boring. It excites users because it lets them connect with the content and engage the company behind the site.MYSTERY: Website designers stare at their designs all day, every day. In contrast, users visit for four minutes and then leave....Don't aim at an exceptional experience for yourself and your team members.
MISERY: ...mainly espoused by certain analysts who wish the Web would turn into television and offer users no real choices at all. Splash pages, pop-ups, and breaking the Back button are typical examples of the misery ideology.
[useit.com...]
Also...
- The syntax for including javascript in (valid) HTML is
<script type="text/javascript">
rather than<script language="JavaScript" type="text/JavaScript">A question:
- What language uses
<%?
I googled and found out that the window.open is not working in Firefox or Safari because the Ad blocker.
Why are you running AD Blocker if it's stopping your code from working?
Your code will work fine for everyone not blocking ads.
For those blocking ads, you're done, using your current methodology.
However, the technology to display tooltips or floating windows inside your current windows seems to bypass ad blockers quite nicely but it's floating within the same window.
For example, the "DHTML Window widget" should solve your problem.
[edited by: incrediBILL at 3:46 am (utc) on June 2, 2009]
Many people has turned on the popup blocker and my targeted customers can't see the result because Firefox prevent the window.open to execute.
In my case, the floating window is not quite fitting. I have a dropdown menu for people to select where is the country to calling to. When they submit the query, the rates will be displayed at the same page.
Try to view the page from IE, you'll see the rates after submit your query. But it's not working at Firefox.
[edited by: incrediBILL at 4:45 pm (utc) on June 2, 2009]
[edit reason] removed URL, see TOS #13 [/edit]
However, the ad blockers are still a small percentage of the total web surfing population and Firefox is also a smaller percentage than MSIE, so the number of people running FF and blocking ads isn't as great as it might seem.
The number of people running MSIE and blocking ads would probably be much higher.
Anyway, you could anchor the floating window in a corner out of the way, or make it pop ON/OFF when the options were selected, it doesn't need to be there all the time, it can just pop up to display as needed and go away.
Also, you could put the data you want to display in an iframe and update it from the server using AJAX, there are lot's of implementation possibilities that avoid popups.