I have some links like this:
<a href="javascript:openNews(1983)">
How can I include them (and just them) on File Includes?
The jscript hrefs are reffering links to files like: "default.asp?NewsID=*"
using this function-
function openNews(sNewsNum)
{
sNewsNum = (sNewsNum == null) ? `` : `?NewsID=` + sNewsNum;
window.location.href = `/news/default.asp` + sNewsNum;
return false;
}
I tried adding the following records to File Includes:
javascript:openNews(*)
default.asp?NewsID=*
But it doesn`t work.
Any help?
Thanks!
Unfortunately, such Java script calculations are not yet supported. Anyway, it should be easy to get these files using URL Macros. For example, if one URL looks like:
http://www.some_server.com/news/default.asp?NewsID=1983
In such case, create a new Project with the following URL:
http://www.some_server.com/news/default.asp?NewsID={:1000..2000}
Replace the above figures with real start/end numbers.
I hope this helps.
Best regards,
Oleg Chernavin
MetaProducts corp.
Unforunallty, this will not work for me. I need only the newest records from the MAIN page.
Thanks anyhow, let us know if and when you are supporting this kind of functions.
Michael.
> Hello,
>
> Unfortunately, such Java script calculations are not yet supported. Anyway, it should be easy to get these files using URL Macros. For example, if one URL looks like:
>
> http://www.some_server.com/news/default.asp?NewsID=1983
>
> In such case, create a new Project with the following URL:
>
> http://www.some_server.com/news/default.asp?NewsID={:1000..2000}
>
> Replace the above figures with real start/end numbers.
>
> I hope this helps.
>
> Best regards,
> Oleg Chernavin
> MetaProducts corp.
Oleg.