<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
IE error with outgoing links (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: IE error with outgoing links
#1154
dkostas (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
IE error with outgoing links 2 Years, 3 Months ago Karma: 0  
When I use internet explorer 8 and I click on a link of a web site on the directory is opening the first page of the directory and not the web site.

The Mozilla works fine but the internet explorer not.

The same problem is on the demo on your server. http://www.dew-code.com/demo/directory/

Example.

On internet explorer 8 suppose you open the Arts and Culture and then the Halloween.com link. The next thing that is open is the main page of the directory and I get the http://www.dew-code.com/demo/directory/out.php?ID=8 link on the top.

If you do the same with the Mozilla everything is working fine.
I see that the browser with Mozilla open the http://www.dew-code.com/demo/out.php?ID=8 link that is deferent from the first.

On the internet explorer tryng to open the link inside of the /directory and on Mozilla open the link on the root of the web site that is working correctly.

The same problem is on my server.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1155
Dewed (Admin)
Admin
Posts: 603
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:IE error with outgoing links 2 Years, 3 Months ago Karma: 9  
Thanks for supplying the detailed explanation of what is happening.

Odd that Internet explorer 8 doesn't treat a relative link correctly when previous versions did. I suppose the fix for all browsers is a full URL to out.php

Editing /include/unctions.php file, locate both instances of out.php,
One near line # 1234

Code:

<a target=\"blank\" href=./out.php?ID=" . $sites_array[site_id] . ">";
and edit the href portion to include http:// and your domain name so it looks like this.
Code:

<a target=\"blank\" href=http://www,yoursite.com/out.php?ID=" . $sites_array[site_id] . ">";
Double check that the resulting URL does indeed point to the out.php file Further down, in the search results function, locate near line # 1416
Code:

$htmlsrc .= "<a class=\"siteName\" href=\"out";
again modify to include http:// and your domain name
Code:

$htmlsrc .= "<a class=\"siteName\" href=\"out";
Code:

$htmlsrc .= "<a class=\"siteName\" href=\"http://www.yourdomain.com/out";
and that should do it.. but to be honest.. this is really a bug in IE8, it either disregards the BASE HREF in the head tag of the page, or doesn't understand what ./filename means, or possibly both.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1156
dkostas (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:IE error with outgoing links 2 Years, 3 Months ago Karma: 0  
thanks !!!

i change the: $htmlsrc .= "<a class=\"siteName\" href=\"" . $sites_array['site_url'] . "\" onclick=\"location.href='./out.php?ID=" . $sites_array[site_id] ."';return false;\">";

to : $htmlsrc .= "<a class=\"siteName\" href=\"" . $sites_array['site_url'] . "\" onclick=\"location.href='http://www.mywebsite.com/out.php?ID=" . $sites_array[site_id] ."';return false;\">";

And everything is looking good now

Thanks again!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008