Hi,
I designing a page with CSS, which has a header, footer, and a left sidebar, and the main content section on the right.
I have a bunch of link on the left sidebar, and am not sure how I can "target" them to open only in the main content section.
For example, if using frames, I would use :<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.mywebsite.com/" target ="framename">click here</a>
since there is no "target" , and the content side is defined by #content , how do i get this to work.
Any help would be appreciated.You could use an iframe.You could just reload the page with the new content and use server side includesActually - that's a better idea, but if you don't want the page to reload for some reason then it's the iframe or possibly hidden divs which are called up with a little javascript.Thanks all for such a prompt response.
Unfortunately SSI is not an option.... simply there is no server. This particular module is stand alone...just 2 pages, which get called, and updated from a Foxpro application.
Maybe I should explain my reason for going the CSS way rather than actual frames. Initially I had used frames and iFrames, but then I was not able to use CSS to control how the content of the target frame prints.
Let me give you an example:
The link on the left side has a link <!-- m --><a class="postlink" href="http://okcity.nationalfs.com/imagsrvr/t.php?account=3098&trace=0013566470&check=&date=09132004&chk=75&mysubmit=go">http://okcity.nationalfs.com/imagsrvr/t ... ysubmit=go</a><!-- m -->
As you can see this link produces an image, which I open on the right side. Since this image link is dynamic, and will depend on whatever the variables are, I can't control the image. (the links on the left side are created by the foxpro application using the variables the user has requested.) Ideally, I would like to trim all elements and just display the image on the right side, however, the only way I am able to display is to display the entire page. And when the user tries to print the image, it most often does not print on one page, (it prints on 2 pages). I would really like to be able to print the image on one sheet (resized if necessary).
Btw, the actual URL of the image that is created is
<!-- m --><a class="postlink" href="http://okcity.nationalfs.com/imagsrvr/img.php?file=tmp/xaaa.jpg">http://okcity.nationalfs.com/imagsrvr/i ... p/xaaa.jpg</a><!-- m --> This intself means nothing, unless I have clicked on the appropriate link to generate the image in the first place.
This is driving me nuts, and if my problem can be solved by any other means (except SSI), please let me know.
I have attached a screen shot of the web page using regular frames. FYI- The right frame actually has an additional Frame (iFrame) in which the actual link is displayed. The users would need to print this image.
If more info is required, I would gladly zip up these few pages, so you can see what I mean.
Again, Thanks.Can you place a blank image on the right and use some javascript to change the src of the img file when the button's clicked? To be honest, I don't know that program you're using, so I'm not sure. Not too much help, am I?Now that's a thought.... though how would I go about replacing the image (i know via javascript), but there is not going to be one link on the left. There may be as many as a a hundred links on the left, which would include different variables which would enable for the remote server (not controlled by me) to display the appropriate image.
I am attaching a zip file which has all my files, simply extract using the folder name option, (it should extract a file called images.htm, and a support folder which contains other pages, and images) and view the images.htm file to see the page.OK. Firstly, let me make it clear that I'm no expert and I'm basically making this stuff up, so bear that in mind.
I've been trying to do this and I've realised I have a problem...
I did what I suggested above - I found some script that will get the href of the link and I was able to put that together with the idea I mentioned about changing the src of an image that's used as a base. This works. The problem is that the links you have are links to pages rather than images, so the whole think falls down. Can you make it so that the links are to the images?
I couldn't view the image you linked to by the way - I guess it was a temporary file or a temporary link.
There's also a strange problem I encountered with this code - the first time you click the link the image resizes or something. You have to double-click it to get the image to look right.
So, having said that, take a look (<!-- m --><a class="postlink" href="http://cheers-sendai.com/test/cheque.htm">http://cheers-sendai.com/test/cheque.htm</a><!-- m -->) at what I got up to. (I made the image links absolute URLs linking to a couple of pictures (not yours) just to show the idea...)Hey, Thanks for taking the time to lookn at my problem.
Since the image is temp, you have to go to the first link (the long one)link to generate the image (<!-- m --><a class="postlink" href="http://okcity.nationalfs.com/imagsrvr/t.php?account=3098&trace=0013566470&check=&date=09132004&chk=75&mysubmit=go">http://okcity.nationalfs.com/imagsrvr/t ... ysubmit=go</a><!-- m -->)
I believe what happens that the server recognizes that you just requested the image, and then if you click here (<!-- m --><a class="postlink" href="http://okcity.nationalfs.com/imagsrvr/img.php?file=tmp/xaaa.jpg">http://okcity.nationalfs.com/imagsrvr/i ... p/xaaa.jpg</a><!-- m -->) , you will be able to see just that image.
Unfortunately, I have no control over the server, so cannot make that a absolute URL. You did give me an idea though, and you can try this:
First request the image via the first URL, then open the 2nd URL (image) into a another browser window. I bet you'll be able to view the image. It must be a session thing from the server.
Perhaps we can take advantage of this, and open the actual link (the first one) in a hidden windows?? or background?? (not sure if it'll work), and then for the actual display, use the absolute URL (the 2nd one). From what I understand, the absolute URL (the 2nd one) will bring up the last requested image from the server.
Is this possible??Hey threet,
Bad news. Firstly, I don't think what you're suggesting is possible.
Good news. I've been wrong so many times before...
More bad news. I really don't think I can help you here. This is a lot more complicated than the title of your thread suggests. I wonder if it would be frowned upon to post your question again in a different forum with a different title...?
Erm, I'm sorry, I'd love to help but I don't think I'm able to.
Good luck.Hi,
hanks for all the suggestions so far...
Any more takers??
If a page is created with CSS to emulate frames, is it possible to open a link in a different section (say the right side), such as you would with actual frames?
I designing a page with CSS, which has a header, footer, and a left sidebar, and the main content section on the right.
I have a bunch of link on the left sidebar, and am not sure how I can "target" them to open only in the main content section.
For example, if using frames, I would use :<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.mywebsite.com/" target ="framename">click here</a>
since there is no "target" , and the content side is defined by #content , how do i get this to work.
Any help would be appreciated.You could use an iframe.You could just reload the page with the new content and use server side includesActually - that's a better idea, but if you don't want the page to reload for some reason then it's the iframe or possibly hidden divs which are called up with a little javascript.Thanks all for such a prompt response.
Unfortunately SSI is not an option.... simply there is no server. This particular module is stand alone...just 2 pages, which get called, and updated from a Foxpro application.
Maybe I should explain my reason for going the CSS way rather than actual frames. Initially I had used frames and iFrames, but then I was not able to use CSS to control how the content of the target frame prints.
Let me give you an example:
The link on the left side has a link <!-- m --><a class="postlink" href="http://okcity.nationalfs.com/imagsrvr/t.php?account=3098&trace=0013566470&check=&date=09132004&chk=75&mysubmit=go">http://okcity.nationalfs.com/imagsrvr/t ... ysubmit=go</a><!-- m -->
As you can see this link produces an image, which I open on the right side. Since this image link is dynamic, and will depend on whatever the variables are, I can't control the image. (the links on the left side are created by the foxpro application using the variables the user has requested.) Ideally, I would like to trim all elements and just display the image on the right side, however, the only way I am able to display is to display the entire page. And when the user tries to print the image, it most often does not print on one page, (it prints on 2 pages). I would really like to be able to print the image on one sheet (resized if necessary).
Btw, the actual URL of the image that is created is
<!-- m --><a class="postlink" href="http://okcity.nationalfs.com/imagsrvr/img.php?file=tmp/xaaa.jpg">http://okcity.nationalfs.com/imagsrvr/i ... p/xaaa.jpg</a><!-- m --> This intself means nothing, unless I have clicked on the appropriate link to generate the image in the first place.
This is driving me nuts, and if my problem can be solved by any other means (except SSI), please let me know.
I have attached a screen shot of the web page using regular frames. FYI- The right frame actually has an additional Frame (iFrame) in which the actual link is displayed. The users would need to print this image.
If more info is required, I would gladly zip up these few pages, so you can see what I mean.
Again, Thanks.Can you place a blank image on the right and use some javascript to change the src of the img file when the button's clicked? To be honest, I don't know that program you're using, so I'm not sure. Not too much help, am I?Now that's a thought.... though how would I go about replacing the image (i know via javascript), but there is not going to be one link on the left. There may be as many as a a hundred links on the left, which would include different variables which would enable for the remote server (not controlled by me) to display the appropriate image.
I am attaching a zip file which has all my files, simply extract using the folder name option, (it should extract a file called images.htm, and a support folder which contains other pages, and images) and view the images.htm file to see the page.OK. Firstly, let me make it clear that I'm no expert and I'm basically making this stuff up, so bear that in mind.
I've been trying to do this and I've realised I have a problem...
I did what I suggested above - I found some script that will get the href of the link and I was able to put that together with the idea I mentioned about changing the src of an image that's used as a base. This works. The problem is that the links you have are links to pages rather than images, so the whole think falls down. Can you make it so that the links are to the images?
I couldn't view the image you linked to by the way - I guess it was a temporary file or a temporary link.
There's also a strange problem I encountered with this code - the first time you click the link the image resizes or something. You have to double-click it to get the image to look right.
So, having said that, take a look (<!-- m --><a class="postlink" href="http://cheers-sendai.com/test/cheque.htm">http://cheers-sendai.com/test/cheque.htm</a><!-- m -->) at what I got up to. (I made the image links absolute URLs linking to a couple of pictures (not yours) just to show the idea...)Hey, Thanks for taking the time to lookn at my problem.
Since the image is temp, you have to go to the first link (the long one)link to generate the image (<!-- m --><a class="postlink" href="http://okcity.nationalfs.com/imagsrvr/t.php?account=3098&trace=0013566470&check=&date=09132004&chk=75&mysubmit=go">http://okcity.nationalfs.com/imagsrvr/t ... ysubmit=go</a><!-- m -->)
I believe what happens that the server recognizes that you just requested the image, and then if you click here (<!-- m --><a class="postlink" href="http://okcity.nationalfs.com/imagsrvr/img.php?file=tmp/xaaa.jpg">http://okcity.nationalfs.com/imagsrvr/i ... p/xaaa.jpg</a><!-- m -->) , you will be able to see just that image.
Unfortunately, I have no control over the server, so cannot make that a absolute URL. You did give me an idea though, and you can try this:
First request the image via the first URL, then open the 2nd URL (image) into a another browser window. I bet you'll be able to view the image. It must be a session thing from the server.
Perhaps we can take advantage of this, and open the actual link (the first one) in a hidden windows?? or background?? (not sure if it'll work), and then for the actual display, use the absolute URL (the 2nd one). From what I understand, the absolute URL (the 2nd one) will bring up the last requested image from the server.
Is this possible??Hey threet,
Bad news. Firstly, I don't think what you're suggesting is possible.
Good news. I've been wrong so many times before...
More bad news. I really don't think I can help you here. This is a lot more complicated than the title of your thread suggests. I wonder if it would be frowned upon to post your question again in a different forum with a different title...?
Erm, I'm sorry, I'd love to help but I don't think I'm able to.
Good luck.Hi,
hanks for all the suggestions so far...
Any more takers??
If a page is created with CSS to emulate frames, is it possible to open a link in a different section (say the right side), such as you would with actual frames?