Clearline
06-06-2003, 07:37 PM
I am not used to using java, and amd having trouble figuring out the syntax for transferring variables to another page.
Problem:
<base target=DisplayFrame>
In a frame I have an htm with pictures listed as:
<a href=PIC><img src PIC width%>PicData</a>
As the pictures are different sizes, the width % displays the PICs, in the frame, with auto-sizing (frame width is fixed)
When I clk the PICs to have them load full size to the Display frame, I have no size or alignment control.
A workaround is to have the anchor point to an htm, with the PIC in it; where I can then control how the frame is to display, but in this scenario, I have to have an individual htm file for each PIC.
What I want to do is have one htm file that accepts the input of the anchor references as variables.
Although this code doesn't work this is what I am tring to do:
<a href=open.Display.htm .with var_Pic, var_PICData ><img src PIC width%>PicData</a>
I am used to writing code with variables (dBase, Works, Access), but for the last 2 weeks, I haven't been able to figure this java or script version out. I realize I could also use an array (although I would have to learn that too), but I still don't understand how to transfer the variable data to another page for its use.
Would appreciate a concise explanation of how to use variables, and transfer their values (or a pointer to a good reference).
Thanks
:confused:
Addendum:
1/2 of my experiments were on how to write the image directly to the frame display, with the controls needed to format the picture setup. I tried diferent mouse-over systems, but usually any interference within the anchor (extra code) causes the image in current frame to not load, or the anchors display frame to error.
The control I use with the anchor-htm-frame method is simply a height %. That way, any size image will display completely, within the display frame. The combination of these 2 different screen-image calls permits me to use just a single image-file for the 2 different frame views, which is not effected by user resolution or windows size (or resizes in any browser use).
Problem:
<base target=DisplayFrame>
In a frame I have an htm with pictures listed as:
<a href=PIC><img src PIC width%>PicData</a>
As the pictures are different sizes, the width % displays the PICs, in the frame, with auto-sizing (frame width is fixed)
When I clk the PICs to have them load full size to the Display frame, I have no size or alignment control.
A workaround is to have the anchor point to an htm, with the PIC in it; where I can then control how the frame is to display, but in this scenario, I have to have an individual htm file for each PIC.
What I want to do is have one htm file that accepts the input of the anchor references as variables.
Although this code doesn't work this is what I am tring to do:
<a href=open.Display.htm .with var_Pic, var_PICData ><img src PIC width%>PicData</a>
I am used to writing code with variables (dBase, Works, Access), but for the last 2 weeks, I haven't been able to figure this java or script version out. I realize I could also use an array (although I would have to learn that too), but I still don't understand how to transfer the variable data to another page for its use.
Would appreciate a concise explanation of how to use variables, and transfer their values (or a pointer to a good reference).
Thanks
:confused:
Addendum:
1/2 of my experiments were on how to write the image directly to the frame display, with the controls needed to format the picture setup. I tried diferent mouse-over systems, but usually any interference within the anchor (extra code) causes the image in current frame to not load, or the anchors display frame to error.
The control I use with the anchor-htm-frame method is simply a height %. That way, any size image will display completely, within the display frame. The combination of these 2 different screen-image calls permits me to use just a single image-file for the 2 different frame views, which is not effected by user resolution or windows size (or resizes in any browser use).