Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 20-11-2008, 11:13 AM   #1 (permalink)
The Boy Who Lived
 
hjpotter92's Avatar
 
Join Date: Apr 2008
Location: Kharagpur, Rajasthan, Godric's Hollow
Posts: 409
Default HTML Troubles


I have thepic of the file here which I am creating....



The extreme left menu is the list of the items.
the top right is the item
and bottom right is the description.

Now, the trouble is that, I want it such that If I press any thing in MENU, then the description and item both should comeat once. It is based on frames. and the list is of games.... Please suggest me something in HTMLs... Don't use Javascripts please...
__________________
Spoiler:

Core i7 920 @ 2.67 GHz
Intel DX58SO
3 GB DDR3 1600 MHz RAM
nVIDIA GeForce 9600 GS
Razer Arctosa + Abyssus


Please help: http://www.thinkdigit.com/forum/prog...p-windows.html
hjpotter92 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 21-11-2008, 12:06 AM   #2 (permalink)
Broken In
 
Join Date: Aug 2008
Location: Mumbai, India
Posts: 169
Default Re: HTML Troubles

Share some code as well and the part where you are facing trouble.

What frames are you using? iframes? or just plain old frames?

IMO, some javascript would be required.

Edit:

Here you go. I quickly wrote down something, but unfortunately, it uses javascript.
If you are so adamant about not using javascript, do let me know, and we can try and figure out a non-js solution.

Here is the snap:


Code from the main html page:
Code:
<html>
    <frameset rows="90%,10%">
            <frameset cols="25%,75%">
                <frame src="frame_b.htm" name='frameb'>
                <frame src="frame_c.htm" name='framec'>
            </frameset>
            <frame src="frame_a.htm"  name='framea'>
    </frameset>
</html>
Code from frame_a.htm
Code:
<html>
    <head>
    <title>Frame_A</title>
    </head>
    <body>
        This is Frame A
    </body>
</html>
Code from frame_b.htm
Code:
<html>
    <head>
        <title>Frame_B</title>
        <script language='Javascript'>
        function onItemClick()
        {
            window.parent.frames[1].document.writeln("<BR>Hey, you clicked. I am the image");
            window.parent.frames[2].document.writeln("<BR>Hey, you clicked. I'm the description.");
        }
        </script>
    </head>
    <body>
        This is Frame B<BR>
        <a href='javascript:void(0)'; onclick='onItemClick()'>I am an item. click me</a>
    </body>
</html>
Code from frame_c.htm
Code:
<html>
    <head>
        <title>Frame_C</title>
    </head>
    <body>
        This is Frame C
    </body>
</html>

Last edited by Bandu; 21-11-2008 at 12:44 AM. Reason: Automerged Doublepost
Bandu is offline  
Old 21-11-2008, 01:22 PM   #3 (permalink)
The Boy Who Lived
 
hjpotter92's Avatar
 
Join Date: Apr 2008
Location: Kharagpur, Rajasthan, Godric's Hollow
Posts: 409
Default Re: HTML Troubles

Code:
       <script language='Javascript'>
        function onItemClick()
        {
            window.parent.frames[1].document.writeln("<BR>Hey, you clicked. I am the image");
            window.parent.frames[2].document.writeln("<BR>Hey, you clicked. I'm the description.");
        }
        </script>
        This is Frame B<BR>
        <a href='javascript:void(0)'; onclick='onItemClick()'>I am an item. click me</a>
This is the problem area in Frame B. I have more than 30 items in Frame 'B'. So assigning Java to each of them would make the file more than 60 MB large. They are simple and old frames. I don't have a trouble with Java.
__________________
Spoiler:

Core i7 920 @ 2.67 GHz
Intel DX58SO
3 GB DDR3 1600 MHz RAM
nVIDIA GeForce 9600 GS
Razer Arctosa + Abyssus


Please help: http://www.thinkdigit.com/forum/prog...p-windows.html
hjpotter92 is offline  
Old 21-11-2008, 03:09 PM   #4 (permalink)
Broken In
 
Join Date: Aug 2008
Location: Mumbai, India
Posts: 169
Default Re: HTML Troubles

No, thats not true. We can assign each element a unique ID, or name, and devise a JS function that would do the rest. That way, we will be reducing the file size.

I have some questions though. Is this static HTML or the content is being pulled dynamically and rendered?

If you can share the source here, please do so. That way, we can work on the actual sources. If not, give some ideas / snippets about your source.
Bandu is offline  
Old 21-11-2008, 05:47 PM   #5 (permalink)
The Boy Who Lived
 
hjpotter92's Avatar
 
Join Date: Apr 2008
Location: Kharagpur, Rajasthan, Godric's Hollow
Posts: 409
Default Re: HTML Troubles

OK. I will give it. Suppose my index file which stores the info about the frames is in main folder where I am working. I have another 3-4 folders inside it.
  1. SWF GAMES
  2. CSS
  3. Pics
  4. Description
  5. Sources

In SWF Games I have 32 games. Each of them has been embedded in separate HTML file and similarly is the description. I tried to use the java code:
Code:
function change_and_disp(var ID_name, var desc)
{
        window.parent.frames['game'].src="SWF GAMES/"+ID_name+".html";
        window.parent.frames['desc'].src="Description/"+desc+".html";
}
__________________
Spoiler:

Core i7 920 @ 2.67 GHz
Intel DX58SO
3 GB DDR3 1600 MHz RAM
nVIDIA GeForce 9600 GS
Razer Arctosa + Abyssus


Please help: http://www.thinkdigit.com/forum/prog...p-windows.html
hjpotter92 is offline  
Old 24-11-2008, 04:35 PM   #6 (permalink)
Broken In
 
Join Date: Aug 2008
Location: Mumbai, India
Posts: 169
Default Re: HTML Troubles

^I don't see any problem using it that way. Are you still looking for a solution? Your last post is not very clear. You said "tried to use..."
Bandu is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML to Compiled HTML(.chm) [A]bu QnA (read only) 3 20-04-2007 10:08 PM
RAM troubles... raskal00 Hardware Q&A 10 18-02-2007 08:44 AM
LAN disconnection troubles Anand_RF Software Q&A 6 29-08-2006 03:54 PM
ASP.Net troubles vuttu Software Q&A 5 16-07-2006 11:19 AM
DOS troubles deepakuma QnA (read only) 3 20-12-2004 12:21 AM

 
Latest Threads
- by gforz
- by soumya
- by Sujeet
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 02:59 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2