Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2015-05-03, 12:39 PM   #1
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Question non-javascript help

Anyone know how I can do this without using javascript?

Code:
<a href="bondage-movies/bdsm-videos-0002.shtml" onclick="window.open(this.href, 'mywin',
'width=600,height=400,toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no, resizable=yes'); return false;">
Basically I need to create a resizable new window without any toolbars, status data, menus, etc. but without using javascript. Oh and it has to work across all browsers and tablets (not too worried about 'phones as the site will not really shrink enough for 'phones).

The reason being that I need to check any clicks on the new window for the ability to carry a referrer, and there is a bug in all versions of IE from 98 onwards (Microsoft claim it is a "feature" everyone else calls it a "bug") that means you always get "no referrer" from a javascript generated window.
ecchi is offline   Reply With Quote
Old 2015-05-03, 04:57 PM   #2
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,929
Send a message via ICQ to Greenguy
I tried doing it in Namo (see the option before, but never played around with it) and it gave me this:
Code:
<a href="javascript:na_open_window('win', 'http://www.link-o-rama.com/', 0, 0, 300, 200, 0, 0, 0, 0, 0)" target="_self">Testing 1 2 3</a>
Now, I know you said no java, but I've never seen html coding like this where the javascript command is inside a link/href tag, so I thought I'd post it

If you need to know what each number does, LMK & I'll post a list.

OR

Just tell me how you asked about doing this without using javascript & I'll shut up
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2015-05-03, 10:51 PM   #3
Toby
Lonewolf Internet Sales
 
Toby's Avatar
 
Join Date: Mar 2005
Location: Houston
Posts: 4,826
Send a message via ICQ to Toby
Code:
<a href="bondage-movies/bdsm-videos-0002.shtml" target="_blank">
That's the best you can do without using javascript. You can't control the window attributes without it.
Toby is offline   Reply With Quote
Old 2015-05-04, 11:03 AM   #4
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Thanks for your help.

GreenGuy - I can't get this to work, no idea why because it should work.

Toby - I was afraid of that, it means "back to the drawing board" for my tube site. Fuck it!
ecchi is offline   Reply With Quote
Old 2015-05-04, 11:06 AM   #5
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,929
Send a message via ICQ to Greenguy
Quote:
Originally Posted by ecchi View Post
GreenGuy - I can't get this to work, no idea why because it should work.
You mean you can't get the code I posted to work?
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2015-05-05, 02:50 AM   #6
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Quote:
Originally Posted by Greenguy View Post
You mean you can't get the code I posted to work?
Sorry, yes.
ecchi is offline   Reply With Quote
Old 2015-05-05, 09:25 AM   #7
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,929
Send a message via ICQ to Greenguy
After I put this little page together, I noticed that Namo threw some java code up in the <head>
Code:
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

// -->
</script>
So I apologize for confusing you - I just threw it up on a cluttered test page I had open & never thought to look up top
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2015-05-06, 03:33 AM   #8
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Thanks. That works. Unfortunately IE still sees it as a security risk and refuses to carry referrer details out of the produced page.

I'm guess I'll have to go without using a "video window" and just go with "target=_blank", which will not look as good.

But thanks for your help, both of you.
ecchi is offline   Reply With Quote
Old 2015-05-06, 08:21 AM   #9
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,929
Send a message via ICQ to Greenguy
Maybe if you upgraded your browser...
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2015-05-07, 03:54 AM   #10
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Quote:
Originally Posted by Greenguy View Post
Maybe if you upgraded your browser...
The problem exists in all IE versions from W98 up to W8, and it is believed that the problem will exist in W10 when it comes out too (it has existed for 17 years in God knows how many updates of IE). It is caused (I'm told) by the fact that interpreting javascript is an "add on" for IE, and they never bothered to make it secure, so deliberately limit what it can do if you surf using any version of IE.
ecchi is offline   Reply With Quote
Old 2015-05-07, 09:23 AM   #11
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,929
Send a message via ICQ to Greenguy
I did not know that - and I just now verified it by testing it with my handy IE Tab Chrome Extension

BUT...in theory, if you can't find a way to have it work in IE (other than it just popping a new window) you could still use it for those with FireFox & Chrome so that at least some of your visitors see it that way you want it
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2015-05-07, 03:51 PM   #12
ecchi
Banned
 
ecchi's Avatar
 
Join Date: Oct 2003
Location: About to be evicted!!!!
Posts: 4,082
Quote:
Originally Posted by Greenguy View Post
BUT...in theory, if you can't find a way to have it work in IE (other than it just popping a new window) you could still use it for those with FireFox & Chrome so that at least some of your visitors see it that way you want it
Won't work unfortunately. The problem is I need to know if the surfer is a non-referrer type surfer so that I can do evil things to them if they don't click where I want them to click. With a javascript window, all IE traffic (over 50% of it) will be wasted as my script will assume them to be no referrer types.
ecchi is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 -4. The time now is 02:59 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc