-
Target Frame in Magic Cell
I am trying to target a pdf document to load into a new window. When I code it to target _blank it does not seem to work - the browsers just does nothing. But when I code it as below to target an existing frame name, in this case "main" - it works just fine.
MyDb.dbmagicCell = "project_number,,<a href= documents/plans/" & mplan & "pln.pdf target=main>#Project_number# </a>;construction_estimate,,format=[currency];plan_fee,,format=[currency]"
Is there a special way to target a new window? Is the problem related to a PDF being referenced?
Thanks for any help you can provide.
Mike
-
Target Frame in Magic Cell (reply)
Hi Mike,
ASP-db doesn't do anything special with frames, so when we're done, it's just straight HTML. I suggest you replace the PDF with a HTML file and see if the targeting works. If so, then your suspicion was correct. Also, be sure to test it in both browsers (IE & NS) as they can handle PDFs differently (embedded vs. external display).
Also, you can always View Source to see the HTML you've created with the MagicCell. Take just that line out and play with it in a separate file until you get the syntax working the way you want, then put that into your MagicCell - if it will work at all with PDFs of course.
Thanks,
John
On 2/12/99 1:04:53 PM, Mike Cohen wrote:
> I am trying to target a pdf document to load into a new window. When I
> code it to target _blank it does not seem to work - the browsers just does
> nothing. But when I code it as below to target an existing frame name, in
> this case "main" - it works just fine.
MyDb.dbmagicCell =
> "project_number,,<a href= documents/plans/" & mplan & "pln.pdf
> target=main>#Project_number#
> </a>;construction_estimate,,format=[currency];plan_fee,,format=[currency]
> 4;
Is there a special way to target a new window? Is the problem
> related to a PDF being referenced?
Thanks for any help you can provide.
Mike
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|