Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-23-2015, 06:34 AM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help me to figure out why the URL is opening in both windows, instead of just the new window, in both IE and FireFox?

ArcadeSyndicate has bailed on me (after I paid him too).

Thanks for any help!

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
   <script type="text/javascript">
    function WebseiteAufrufen () {
     window.open(location.href = document.getElementsByName("webseite")[0].value);
     return false;
    }
   </script>
  </head>
  <body>
    <form action="" onsubmit="return WebseiteAufrufen();">
      <input type="text" name="webseite"  size="50" />
      <input type="submit" value=" GO! " />
    </form>
  </body>
</html>
Reply With Quote
  #12  
Old 12-23-2015, 12:11 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
   <script type="text/javascript">
    function WebseiteAufrufen () {
     window.open(href = document.getElementsByName("webseite")[0].value);
	 return false;
    }
   </script>
  </head>
  <body>
    <form name="form1" action="#" onsubmit="return WebseiteAufrufen();" target="_blank">
      <input type="text" name="webseite"  size="50" />
      <input type="submit" value=" GO! " />
    </form>
  </body>
</html>
Reply With Quote
  #13  
Old 12-23-2015, 07:54 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for helping, I really appreciate it!

However, now I get a ERROR 403 - FORBIDDEN in the new window.
Reply With Quote
  #14  
Old 12-23-2015, 10:04 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shibby2 View Post
Thank you for helping, I really appreciate it!

However, now I get a ERROR 403 - FORBIDDEN in the new window.
That is on the server you are trying to go to with the form, I cannot help with that one, sorry. Try putting http://www.google.com in the form
Reply With Quote
  #15  
Old 12-23-2015, 11:17 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I was trying to go to http://www.ebay.com

It does the same with Google.
Reply With Quote
  #16  
Old 12-24-2015, 01:00 AM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shibby2 View Post
Hmm, I was trying to go to http://www.ebay.com

It does the same with Google.
not sure, it works perfectly fine on my site: http://dragonsys.noip.me/test.htm
Reply With Quote
  #17  
Old 12-24-2015, 11:33 AM
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
Location: Germany
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dragonsys View Post
not sure, it works perfectly fine on my site: http://dragonsys.noip.me/test.htm
i don't understand what the problem is too.
Reply With Quote
  #18  
Old 12-26-2015, 04:53 AM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dragonsys View Post
not sure, it works perfectly fine on my site: http://dragonsys.noip.me/test.htm
Hmm, works for me on your site, but not mine. :/

I copied the code right from your site, and will replace it with my code and see if that makes a difference.

Thanks!
Reply With Quote
  #19  
Old 12-26-2015, 03:03 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dragonsys View Post
Code:
<head>
   
<script type="text/javascript">
    function WebseiteAufrufen () {
     window.open(href = document.getElementsByName("webseite")[0].value);
	 return false;
    }
   </script>
  </head>
  <body>
    <form name="form1" action="#" onsubmit="return WebseiteAufrufen();" target="_blank">
      <input type="text" name="webseite"  size="50" />
      <input type="submit" value=" GO! " />
    </form>
  </body>
Quote:
Originally Posted by shibby2 View Post
Hmm, works for me on your site, but not mine. :/

I copied the code right from your site, and will replace it with my code and see if that makes a difference.

Thanks!
Hey shibby2, try this.

Add the head code above to your header template and add the body code to the template you want the URL input box to show, both without the head and body brackets.
Reply With Quote
  #20  
Old 12-27-2015, 08:20 PM
Wmteknik Wmteknik is offline
 
Join Date: Dec 2015
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04932 seconds
  • Memory Usage 2,265KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete