PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 01-15-2004, 02:33 PM   #1
paulx82
Green Mole
 
Join Date: Jan 2004
Posts: 1
Indexing javascript links

Hi all.

From the manual, I read:
Links can be in an AreaMap or frames. PhpDig supports relocations. Any syntax of HREF attribute is followed by Phpdig. Simple javascript links like window.open() or window.location() are followed too.

Ok, that is cool, but I just want to check something. I am currently using links, such as below, which change the documents held in two different frames of my web site. Of course, they are not being indexed, so I would like to know what the syntax is for converting them to links that PhpDig can index.

<a href="#" title=" ActiveX " onmouseover="window.status=' ActiveX '; return true" onmouseout="window.status=' '; return true" onclick="parent.frames[1].location='content_sb.php'; parent.frames[2].location='content.php;">ActiveX</a>

Is parent.frame[n].location accepted as well as window.location is?

What about changing two or more documents in different frames, like above, does PhpDig handle that or can it only index links which change the document in only one window?

Will the title attribute or the other javascript events cause problems? Do the events have to come in a particular order?

Could you please convert the link code above to code that PhpDig will accept, as an example?

Thankyou very muchly.
paulx82 is offline   Reply With Quote
Old 01-18-2004, 08:43 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. In robot_functions.php is the following line:
PHP Code:
         while (eregi("(<frame[^>]*src[[:blank:]]*=|href[[:blank:]]*=|http-equiv=['\"]refresh['\"] *content=['\"][0-9]+;url[[:blank:]]*=|window[.]location[[:blank:]]*=|window[.]open[[:blank:]]*[(])[[:blank:]]*[\'\"]?((([[a-z]{3,5}://)+(([.a-zA-Z0-9-])+(:[0-9]+)*))*([:%/?=&;\\,._a-zA-Z0-9\|+-]*))(#[.a-zA-Z0-9-]*)?[\'\" ]?",$eval,$regs)) { 
Not tested, but you might try adding something like the following into that line:
PHP Code:
parent[.]frames[[][0-9]+[]][.]location[[:blank:]]*= 
__________________
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

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
javascript menu not being spidered vuurvos Troubleshooting 1 10-05-2005 06:50 AM
PHP and Javascript in phpdig.html template file jayhawk How-to Forum 1 06-17-2004 05:03 PM
javascript links tomas Troubleshooting 1 02-12-2004 05:26 PM
javascript martin Troubleshooting 2 12-05-2003 08:54 AM
Relative links to follow in meta-refresh and Javascript obottek Mod Requests 4 10-05-2003 10:20 AM


All times are GMT -8. The time now is 07:52 PM.


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