pop up window query

This is a discussion on "pop up window query" within the JavaScript Forum section. This forum, and the thread "pop up window query are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 29th, 2004, 12:47
New Member
Join Date: May 2004
Location: Australia
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
pop up window query

I am having a bit of trouble with getting pop up windows

www.grotec.com.au/p3dummy.htm


the problem I am having is the annoying factor that when you click on the thumbnails at the bottom of the page it sends that page back to the top leaving the user to have to scroll back down again & again...the pop up browser itself is no worries...

I have not had any luck with javascript in the past...I use dreamweaver 3 to add all the behaviours I need...I am still a bit of a novice tho I'm starting to become a bit more familiar with the HTML architecture as such...

I am ready to learn if someone can help me with getting the right script...and where exactly I am to paste it...

Thanks heaps
jase

  #2 (permalink)  
Old May 29th, 2004, 15:08
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
its because you have in the links href="#" and its the # that is sending the page to the top... you need a way of getting rid of that #.

if you add a <a name="thumbnails"></a> right before your thumbnails, and then change the href="#" in each link to href="#thumbnails" it should solve this problem
  #3 (permalink)  
Old May 29th, 2004, 16:59
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I think benbacardi's solution should work. This is (I think) an IE-only bug, as it doesn't happen in Opera and probably doesn't happen in Mozilla/Netscape either.
  #4 (permalink)  
Old May 30th, 2004, 06:33
New Member
Join Date: May 2004
Location: Australia
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
...such an easy answer to a long search to find this out...I was dreading some long winded javascript tuition to take place...I have found a few clues all relating to adding X & Y coordinates to the open browser command but had no luck...not even sure if it was for what I wanted...how do you guys work this stuff out...???

anyway thanks heaps (sigh of relief)...muchos muchos gracios...
  #5 (permalink)  
Old May 30th, 2004, 16:46
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
yay the first time i've given a solution *coz usually im a dumbass* and it works
  #6 (permalink)  
Old Jun 1st, 2004, 08:44
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
use: javascript:void(0) instead of: #
  #7 (permalink)  
Old Jun 1st, 2004, 12:47
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
and it gets overruled lmao
  #8 (permalink)  
Old Jun 2nd, 2004, 10:23
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
sorry mate!!!
  #9 (permalink)  
Old Jun 2nd, 2004, 10:26
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
no problem your the expert im just the one who usually needs help!
Closed Thread

Tags
pop, window, query

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open another new window from javascript window thehermitage JavaScript Forum 10 Jan 27th, 2008 19:42
Change open in new window to open in same window nsr500rossi JavaScript Forum 2 Jan 18th, 2008 14:13
[SOLVED] open new window from main window AdRock Other Programming Languages 1 Nov 1st, 2007 02:45
MySQL query query dangergeek Databases 3 Apr 12th, 2007 12:45
Query accessman Databases 0 Sep 22nd, 2005 19:48


All times are GMT. The time now is 00:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43