Subscribe Bookmark RSS Feed

Interactive HTML hyperlink doesnt work

tsolomon

Community Trekker

Joined:

Oct 28, 2015

I have a script which combines to vlistboxes with button boxes that have hyperlinks in a data table. I save the data table into a report which is an interactive html file. When I save as interactive html, the hyperlinks are disabled. Is there a way to enable them? When I save the data table as regular html, the hyperlinks work but the vlistboxes have different cell sizes and the report looks awful. Is there a way to fix the cell sizes of vlistboxes? I tried putting the vlistboxes in lineup boxes with a fixed size. It looks fine in the journal but once I save to html the formatting is lost.

 

The code is atttached, any help is greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
John_Powell_JMP

Joined:

May 30, 2014

Solution

After talking with @melaniedrake about JSL, I realised my suggestion wasn't so easy to implement.

With her advice and help from this discussion How-to-generate-buttons-within-a-loop, I figured I should help you out a bit more.

 

Try the following for your first For loop:

For( i = 1, i < 10, i++, ( 
	event = Char( :event_number[i]);
	url = (EvalInsert( "http://test.new.com/^event^"));
	button_expr = evalinsert("\[one_button = button box("^event^", web("^url^"), <<underlinestyle)]\");
       eval(parse(button_expr));
  	v << append(one_button);
  )
);

 

 

 

 

3 REPLIES
John_Powell_JMP

Joined:

May 30, 2014

Interactive HTML can only enable hyperlink buttons with a simple web expression in their script. Your example produces button scripts that look like:

Web("http://test.new.com/" || Char(:event_number[i]));

 

If your script could produce buttons with simple web links in their button script like:

Web("http://test.new.com/");

 

They should work when saved as Interactive HTML.

 

 

John_Powell_JMP

Joined:

May 30, 2014

Solution

After talking with @melaniedrake about JSL, I realised my suggestion wasn't so easy to implement.

With her advice and help from this discussion How-to-generate-buttons-within-a-loop, I figured I should help you out a bit more.

 

Try the following for your first For loop:

For( i = 1, i < 10, i++, ( 
	event = Char( :event_number[i]);
	url = (EvalInsert( "http://test.new.com/^event^"));
	button_expr = evalinsert("\[one_button = button box("^event^", web("^url^"), <<underlinestyle)]\");
       eval(parse(button_expr));
  	v << append(one_button);
  )
);

 

 

 

 

tsolomon

Community Trekker

Joined:

Oct 28, 2015

This works great. I now have active hyperlinks in my intteractive html file. Thanks for the prompt support!!

 

Cheers,

Tesfu