Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Body Onload Is Blocked By POPUP Blocker [HELP]


  • Please log in to reply

#1
ArmandFilth

ArmandFilth

    New Member

  • Member
  • Pip
  • 6 posts
http://armandfilth.com/ridercp.php

i own and operate a myspace [bleep] train
i recently coded a page to auto open the post bulletin window while the riders control panel is opened

when most people view the page though, it says the popup blocker has blacked the window being popped up
i dont want my users thinking my site ocntains trojans or viruses, so they will come back and re-use it

any suggestions?

this is the code im currently using to open the window

<body onload=window.open('bulletin.php');return
true;>

Edited by ArmandFilth, 27 December 2008 - 04:45 PM.

  • 0

Advertisements


#2
ArmandFilth

ArmandFilth

    New Member

  • Topic Starter
  • Member
  • Pip
  • 6 posts
bump
  • 0

#3
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
If it is a MySpace page, MySpace does not allow JavaScript which the onLoad event is. It was either filtered out or thoroughly messed up when saved to Profile.
  • 0

#4
ArmandFilth

ArmandFilth

    New Member

  • Topic Starter
  • Member
  • Pip
  • 6 posts
its not a myspace page

its my train

armandfilth.com

and the page im talking about is armandfilth.com/ridercp.php
  • 0

#5
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Sorry about that. Didn't check link or notice it. Typing "myspace" together always triggers the MySapce site in my mind.

Looked at your page and I see a totally non-standard HTML page. I realize you use PHP, but the HTML structure for the page MUST adhere to HTML 4.01 Coding standards or you will cause all kinds of browser problems. Most will be in Quirks Mode and have no idea how to parse your page and thus fall back on the browser developer's idea of what your page should look like. Therefore, any script events may really trip up other people trying to view your site.

HTML Errors that NEED to be corrected. Couple of CSS Errors.

Might want to look into "New Window OnLoad" and see if that would work for you better than what you have.

Related: Window Object

Edited by Major Payne, 27 December 2008 - 05:46 PM.

  • 0

#6
ArmandFilth

ArmandFilth

    New Member

  • Topic Starter
  • Member
  • Pip
  • 6 posts
lol
yeah
im using PHP HTML and javascript
my friend wrote out the whole script
i have no clue about php, just some basic stuff like writing dbs and tables and connecting to them
what exactly is wrong with it?
  • 0

#7
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
The links I gave are to the HTML/CSS errors and will have to be corrected on the PHP files. It is NOT proper coding for a web page. The PHP I do not have access to that writes the HTML/CSS for your pages.

Edited by Major Payne, 27 December 2008 - 08:31 PM.

  • 0

#8
ArmandFilth

ArmandFilth

    New Member

  • Topic Starter
  • Member
  • Pip
  • 6 posts
oh i gotcha

yeah i get lazy with HTML

i never add " to img srcs and a hrefs
like for width= i just put the number and no "
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP