Javascript Hrefs include

Author Message
Michael 03/29/2006 07:01 am
Hi there,

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!

Oleg Chernavin 03/29/2006 07:01 am
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.
Michael 03/29/2006 07:01 am
Oleg hi,

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 Chernavin 03/29/2006 07:01 am
Well, I started working on that in August, but then the code development was suspended because of a big amount of support. I hope to continue that work soon, anyway.

Oleg.