Results 1 to 13 of 13

Thread: I hate frames!!!!

  1. #1
    IBM
    IBM is offline
    there but for the grace of God, go I IBM's Avatar
    Join Date
    Dec 2003
    Location
    West London
    Posts
    4,187
    Thanks
    149
    Thanked
    244 times in 145 posts
    • IBM's system
      • Motherboard:
      • Asus P5K Deluxe
      • CPU:
      • Intel E6600 Core2Duo 2.40GHz
      • Memory:
      • 2x2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR2 PC2-6400
      • Storage:
      • 150G WD SATA 10k RAPTOR, 500GB WD SATA Enterprise
      • Graphics card(s):
      • Leadtek NVIDIA GeForce PX8800GTS 640MB
      • PSU:
      • CORSAIR HX 620W MODULAR PSU
      • Case:
      • Antec P182 Black Case
      • Monitor(s):
      • Dell 2407WPF A04
      • Internet:
      • domestic zoom

    I hate frames!!!!

    For reasons I won't go into, I've been forced into using inline frames for a project....

    Somebody shoot me please.

    That's all. Thank you for your attention.

    Seriously though, I've hit a problem. The frame makes up the interior of the page, while the login boxes reside outside the frame. When the customer logs in as part of the checkout process, the functionality is done within the frame, leaving the login boxes outside the frame unaware of what's going on. So in one part of the page the customer is logged in, but the rest of the page , to all intents and purposes, is logged out.

    I can't find anywhere of targetting frames from within a form submission, so was wondering if there might be a Javascript command which would allow me to refresh the parent frame once the login process is complete.

    Any ideas?
    sig removed by Zak33

  2. #2
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    on your form submit put

    Code:
    onclick="submitForm()";
    create a javascript function

    Code:
    function submitForm()
    {
    window.parent.<name_of_frame>.location.reload();
    }
    substitute <name_of_frame> for your frame

  3. #3
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    or better yet put it on the onsubmit of the form rather than the submit button

  4. #4
    IBM
    IBM is offline
    there but for the grace of God, go I IBM's Avatar
    Join Date
    Dec 2003
    Location
    West London
    Posts
    4,187
    Thanks
    149
    Thanked
    244 times in 145 posts
    • IBM's system
      • Motherboard:
      • Asus P5K Deluxe
      • CPU:
      • Intel E6600 Core2Duo 2.40GHz
      • Memory:
      • 2x2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR2 PC2-6400
      • Storage:
      • 150G WD SATA 10k RAPTOR, 500GB WD SATA Enterprise
      • Graphics card(s):
      • Leadtek NVIDIA GeForce PX8800GTS 640MB
      • PSU:
      • CORSAIR HX 620W MODULAR PSU
      • Case:
      • Antec P182 Black Case
      • Monitor(s):
      • Dell 2407WPF A04
      • Internet:
      • domestic zoom
    Cheers Iain, although if I put it on the submit state, the login action will not yet have taken place....so I'll put it on the onload state of the page after the login screen and see if that works.

    Thanks again.
    sig removed by Zak33

  5. #5
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Just watch you don't end up in an infinite loop then

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    Bournemouth, Dorset
    Posts
    1,631
    Thanks
    13
    Thanked
    2 times in 2 posts
    css/<div> + php = The best way
    cant stand <iframes> they cause some many problems and look crap

  7. #7
    IBM
    IBM is offline
    there but for the grace of God, go I IBM's Avatar
    Join Date
    Dec 2003
    Location
    West London
    Posts
    4,187
    Thanks
    149
    Thanked
    244 times in 145 posts
    • IBM's system
      • Motherboard:
      • Asus P5K Deluxe
      • CPU:
      • Intel E6600 Core2Duo 2.40GHz
      • Memory:
      • 2x2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR2 PC2-6400
      • Storage:
      • 150G WD SATA 10k RAPTOR, 500GB WD SATA Enterprise
      • Graphics card(s):
      • Leadtek NVIDIA GeForce PX8800GTS 640MB
      • PSU:
      • CORSAIR HX 620W MODULAR PSU
      • Case:
      • Antec P182 Black Case
      • Monitor(s):
      • Dell 2407WPF A04
      • Internet:
      • domestic zoom
    Ooops, nope, can't do an onload, 'cause the html header content is in an include file, which means that every time the header include is called for every frame refernce it would reload everything.

    Pllllluuuussss.....if the reload function effects the parent frame, which then reloads the inline frame, the frame content get's reset back to the original screen referenced by the intial frame call....

    Yuk, Yuk, Yuk....why hasn't anybody shot me yet? Please put me out of my misery....

    So, the only way around this as I see it is if I can get the page referenced in the frame to (through the submission of the form) target the parent window, where a new page will open, not in a frame, therefore refreshing the parent window, which then reopens the frame at the correct page.......click.....click.....BOOOOOOOM.....both barrels....

    Anybody got any ideas how one would go about such a prodigious and ultimately pointless activity?
    sig removed by Zak33

  8. #8
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    Quote Originally Posted by ibm
    Anybody got any ideas how one would go about such a prodigious and ultimately pointless activity?
    since you're being a sick puppy? with document.write javascript!

  9. #9
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro
    javascript... *shudder*
    (\__/)
    (='.'=)
    (")_(")

  10. #10
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    just have the iframe thats loaded by the parent be part of an if statement so

    load not logged in page
    enter login details
    post form in iframe to form handler
    form handler logs you in, sets a session var and then calls javascript to load the parent
    parent loads, checks if statement, sees that user is logged in and loads alternative page into iframe

  11. #11
    Does he need a reason? Funkstar's Avatar
    Join Date
    Aug 2005
    Location
    Aberdeen
    Posts
    19,874
    Thanks
    630
    Thanked
    965 times in 816 posts
    • Funkstar's system
      • Motherboard:
      • Gigabyte EG45M-DS2H
      • CPU:
      • Intel Core2Quad Q9550 (2.83GHz)
      • Memory:
      • 8GB OCZ PC2-6400C5 800MHz Quad Channel
      • Storage:
      • 650GB Western Digital Caviar Blue
      • Graphics card(s):
      • 512MB ATI Radeon HD4550
      • PSU:
      • Antec 350W 80+ Efficient PSU
      • Case:
      • Antec NSK1480 Slim Mini Desktop Case
      • Operating System:
      • Vista Ultimate 64bit
      • Monitor(s):
      • Dell 2407 + 2408 monitors
      • Internet:
      • Zen 8mb
    Quote Originally Posted by Ramedge
    css/<div> + php = The best way
    cant stand <iframes> they cause some many problems and look crap
    yeah, what he said. Fake the iFrame and make it all one big page (cuts down on the HTTP requests as well). use the hight attribute for <div> and i think scrolling as well (been a while since i did any of this.

  12. #12
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    I'm sure he's using the iframe as you can define a source for it which you can't do with a div. At least I hope he is, there is no other reason to use an iframe.....

  13. #13
    IBM
    IBM is offline
    there but for the grace of God, go I IBM's Avatar
    Join Date
    Dec 2003
    Location
    West London
    Posts
    4,187
    Thanks
    149
    Thanked
    244 times in 145 posts
    • IBM's system
      • Motherboard:
      • Asus P5K Deluxe
      • CPU:
      • Intel E6600 Core2Duo 2.40GHz
      • Memory:
      • 2x2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR2 PC2-6400
      • Storage:
      • 150G WD SATA 10k RAPTOR, 500GB WD SATA Enterprise
      • Graphics card(s):
      • Leadtek NVIDIA GeForce PX8800GTS 640MB
      • PSU:
      • CORSAIR HX 620W MODULAR PSU
      • Case:
      • Antec P182 Black Case
      • Monitor(s):
      • Dell 2407WPF A04
      • Internet:
      • domestic zoom
    The frames were part of the existing project, and I haven't got enough time to rip them out....

    Eventually got the thing to work, but had to spend an afternoon trying to fix a bug where the reload command reloads the parent page, but the iFrame gets directed to the initial page specified the first time it loaded....despite the use of an IF statement which according to my test outputs is working fully....

    So after three hours of writing out every parameter and stripping out chunks of code, I run it through IE and it works fine. Turns out it's a firefox issue (although more likely a 'my coding' issue) and for the life of me I can't figure out what's going on. I'm going to load it up over the weekend and see if I can't get any Hexites scratching their heads over it too....
    sig removed by Zak33

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Real life versus games?
    By Nick in forum Gaming
    Replies: 20
    Last Post: 11-10-2005, 08:49 AM
  2. Too many frames a second
    By exAndrzej in forum Graphics Cards
    Replies: 33
    Last Post: 17-01-2005, 08:46 PM
  3. I hate zidane.
    By yamangman in forum General Discussion
    Replies: 11
    Last Post: 14-06-2004, 07:31 AM
  4. Any of you still running CRT's
    By TiG in forum Graphics Cards
    Replies: 60
    Last Post: 18-01-2004, 07:02 PM
  5. is this hype?9800 pro owners beware
    By CrapshoT in forum Graphics Cards
    Replies: 9
    Last Post: 16-10-2003, 02:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •