Go Back > PhpDig Forums > Bug Tracker

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


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,";
[..., "popup", options);

This results in PhpDig trying to get this uris:

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, 05:27 PM   #2
Purple Mole
Join Date: Jan 2004
Posts: 694
Here's what the documentation says about that:
Any syntax of HREF attribute is followed by Phpdig. Simple javascript links like 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, 01:29 AM   #3
Green Mole
Join Date: Sep 2004
Posts: 19
Yes, I understood that. The point was just that phpdig should detect that this is a in a function and _ignore_ it.
blueyed is offline   Reply With Quote
Old 12-04-2004, 06:54 PM   #4
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

Thread Tools

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 04:39 AM
Failed to Open mortickles Troubleshooting 2 05-07-2004 08:48 AM
Open or Close? Charter The Mole Hole 13 03-30-2004 06:48 AM
link open in a new window louie Coding & Tutorials 1 02-19-2004 11:23 AM
Spidering js-Files gunwalt Mod Requests 0 02-04-2004 05:58 AM

All times are GMT -8. The time now is 09:34 PM.

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