This topic is locked

HTML Pop Up Window

8/20/2007 9:31:40 AM
ASPRunnerPro General questions
D
dlangham author

Hi,
I am trying to create a new _blank window from a link that WILL NOT show the URL Field and so I can set the size of the window (800x600).

I know this can be done using Javascript but I am not sure where or what code to add, I am using ASPRunner Pro 5.0, any help would be appreciated.
Regards

Dale

Sergey Kornilov admin 8/20/2007

Use "View as" type Custom and put your code there.

D
dlangham author 8/21/2007

Hi Sergey,
I am trying to add the following code into the custom section, but just getting errors, can you help?

" <a href=""#"" onClick=""java script: pwin = window.open('',null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location

=no,left=150,top=200,scrollbars=yes');"


Regards

Dale

J
Jane 8/21/2007

Dale,
try to use this code:

strValue = " <a href=""#"" onClick=""java script: pwin = window.open('',null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location

=no,left=150,top=200,scrollbars=yes');"""

D
dlangham author 8/21/2007

Hi jane,
I have tried that and the Hyperlink just doesnt show up anymore, there are no errors as such now but no link.
Regards

Dale

Sergey Kornilov admin 8/21/2007

Dale,
try this one:

strValue = " <a href=""#"" onClick=""pwin = window.open('',null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location

=no,left=150,top=200,scrollbars=yes');"">Click here</a>"


If this doesn't help show HTML code generated by this snippet.

D
dlangham author 8/22/2007

Hi Sergey,
That works, but originally I had the hyperlink showing a report name, when clicked it would bring up an external report where the url is stored in a field call "Report URL", now this is just showing "Click Here" and does not point to anything.

If possible I would still like the Report Name to show as a Hyperlink and still point to the "Report URL" db field, but open up a new window using something like the above code, would this be hard coding somewhere for the hyperlink function...any ideas?
Regards

Dale

D
dlangham author 8/22/2007

Hi Sergey,
I have managed to get it to work except for one minor issue, I have now lost the Report Name, I am just showing the Report URL as the Link, below is the code I am using with the section where the report name should go...I think, as you can see this is showing the Report URL as a link using strValue. Can you help on this so that the Report Name is showing again as a Link?

strValue = " <a href=""#"" onClick=""pwin = window.open('"&strValue&"',null,'status=yes,resizable=yes,toolbar=no,menubar=no,location=no,scrollbars=yes');"">"&strValue&"</a>"


Regards

Dale

D
dlangham author 8/22/2007

OK, I have got this to work correctly now, thanks for all your help.
Regards

Dale