PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Bug Tracker

Reply
 
Thread Tools
Old 09-24-2004, 06:05 AM   #1
blueyed
Green Mole
 
Join Date: Sep 2004
Posts: 19
JS window.open link followed, though it's in a function

Hi.

We have a JS function like this, which gets written into the header of some pages:

function popupURL(url_to_open, w, h) {
var options = "toolbar=no,";
[...
window.open(url_to_open, "popup", options);
}


This results in PhpDig trying to get this uris:
/path/url_to_open,%20
/path/url_to_open,%20/

I think the search for links in JS should check if it's inside a function..
blueyed is offline   Reply With Quote
Old 09-24-2004, 06:27 PM   #2
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Here's what the documentation says about that:
Quote:
Any syntax of HREF attribute is followed by Phpdig. Simple javascript links like window.open() or window.location() are followed too.
However, phpdig does not follow every single flavor of javascript link. That's why you get those seemingly weird messages.
vinyl-junkie is offline   Reply With Quote
Old 10-08-2004, 02:29 AM   #3
blueyed
Green Mole
 
Join Date: Sep 2004
Posts: 19
Yes, I understood that. The point was just that phpdig should detect that this is a window.open() in a function and _ignore_ it.
blueyed is offline   Reply With Quote
Old 12-04-2004, 07:54 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
True, but there are people who want PhpDig to crawl various links, such as those with JavaScript, spaces, or quotes, so an overall general rule is hard to come by to please all, but feel free to pose a "general" rule. Otherwise, set SILENCE_404S to true in the config file.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search box opening a new window? llawrence Troubleshooting 0 05-23-2007 05:39 AM
Failed to Open mortickles Troubleshooting 2 05-07-2004 09:48 AM
Open or Close? Charter The Mole Hole 13 03-30-2004 07:48 AM
link open in a new window louie Coding & Tutorials 1 02-19-2004 12:23 PM
Spidering js-Files gunwalt Mod Requests 0 02-04-2004 06:58 AM


All times are GMT -8. The time now is 01:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.