Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding

Reply
 
LinkBack Thread Tools
Old 08-11-09   #1 (permalink)
Intel Overclocker
 
PeaceMaker's Avatar
 
intel nvidia

Join Date: May 2007
Location: New Jersey
Posts: 2,348

Rep: 66 PeaceMaker is acknowledged by some
Unique Rep: 63
Trader Rating: 6
Default How can I load a webpage with all tables expanded

Hey guys,

Does anyone know how to load a webpage with all of the tables expanded? For example:
http://www.allatini.com.gr/ependites.asp

If you click on any of those links, it expands a table with the code: javascript:showHide('sub9')

Is there anyway to incorporate that code into the URL?
__________________
We Are Gr33n Machine
Project Atlantis
"Signature your on it put, backwards this read to enough dumb were you if."

Disclaimer: Everything I say is my own opinion unless I provide evidence.

System: Atlantis
CPU
Q6600 "G0" 1.23v@3.2GHz
Motherboard
ASUS P5K Deluxe/WiFi AP
Memory
2x2GB G.Skill DDR2-1000
Graphics Card
eVGA 8800GTX
Hard Drive
2x320GB 7200.10 (Raid 0), 2x1TB + 320GB
Sound Card
Creative SB X-Fi XtremeMusic
Power Supply
Corsair HX620 Modular
Case
Antec 900
CPU cooling
Tuniq Tower 120 (lapped)
GPU cooling
eVGA
OS
Win 7 Pro
Monitor
Samsung 204BW (20")
PeaceMaker is offline PeaceMaker's Gallery   Reply With Quote
Old 08-11-09   #2 (permalink)
WaterCooler
 
Spazghost's Avatar
 
intel nvidia

Join Date: Aug 2008
Location: Michigan
Posts: 572

Rep: 40 Spazghost is acknowledged by some
Unique Rep: 38
Trader Rating: 5
Default

Javascript.

If you look at the source, each one of those tables is a <div> with a different id flag.
i.e. <div id="sub10" style="display:none">

The links are javascript to display those via their id: <a href="javascript:showHide('sub10')">

Oops... didn't even read your post fully...

You could use $_POST data in php to tell it which page to load, and then use the php to execute the javascript I guess.
__________________

~The purpose of an arguement is not victory, but rather progress.~

System: GhostBox
CPU
Q9550 (Lapped) @ 3825MHz
Motherboard
EVGA 780i FTW
Memory
4x2GB OCZ Reaper @ 5-5-5-18 2.1V
Graphics Card
2xSLI - EVGA GTX260 (216)
Hard Drive
320GB Seagate RAID 1: 1TB WD
Sound Card
Creative X-Fi Titanium
Power Supply
Corsair 850HX
Case
CoolerMaster Stacker 810 (Modded)
CPU cooling
Swiftech Apogee GTZ
OS
Vista Ultimate x64, Ubuntu 8.10 x64
Monitor
Acer P244W

Last edited by Spazghost : 08-11-09 at 08:45 AM
Spazghost is offline Spazghost's Gallery   Reply With Quote
Old 08-11-09   #3 (permalink)
Intel Overclocker
 
PeaceMaker's Avatar
 
intel nvidia

Join Date: May 2007
Location: New Jersey
Posts: 2,348

Rep: 66 PeaceMaker is acknowledged by some
Unique Rep: 63
Trader Rating: 6
Default

Uh... That's a bit over my head. I'm only familiar with HTML... Could you post a link to show me what you mean?
__________________
We Are Gr33n Machine
Project Atlantis
"Signature your on it put, backwards this read to enough dumb were you if."

Disclaimer: Everything I say is my own opinion unless I provide evidence.

System: Atlantis
CPU
Q6600 "G0" 1.23v@3.2GHz
Motherboard
ASUS P5K Deluxe/WiFi AP
Memory
2x2GB G.Skill DDR2-1000
Graphics Card
eVGA 8800GTX
Hard Drive
2x320GB 7200.10 (Raid 0), 2x1TB + 320GB
Sound Card
Creative SB X-Fi XtremeMusic
Power Supply
Corsair HX620 Modular
Case
Antec 900
CPU cooling
Tuniq Tower 120 (lapped)
GPU cooling
eVGA
OS
Win 7 Pro
Monitor
Samsung 204BW (20")
PeaceMaker is offline PeaceMaker's Gallery   Reply With Quote
Old 08-11-09   #4 (permalink)
WaterCooler
 
Spazghost's Avatar
 
intel nvidia

Join Date: Aug 2008
Location: Michigan
Posts: 572

Rep: 40 Spazghost is acknowledged by some
Unique Rep: 38
Trader Rating: 5
Default

I actually tried editing the source for that page.

By changing the div tag from <div id="sub10" style="display:none">

to <div id="sub10" style="display">

I was able to make the tables display by default, yet allow you to still hide/show them using the link.

Is that closer to what you wanted?
__________________

~The purpose of an arguement is not victory, but rather progress.~

System: GhostBox
CPU
Q9550 (Lapped) @ 3825MHz
Motherboard
EVGA 780i FTW
Memory
4x2GB OCZ Reaper @ 5-5-5-18 2.1V
Graphics Card
2xSLI - EVGA GTX260 (216)
Hard Drive
320GB Seagate RAID 1: 1TB WD
Sound Card
Creative X-Fi Titanium
Power Supply
Corsair 850HX
Case
CoolerMaster Stacker 810 (Modded)
CPU cooling
Swiftech Apogee GTZ
OS
Vista Ultimate x64, Ubuntu 8.10 x64
Monitor
Acer P244W
Spazghost is offline Spazghost's Gallery   Reply With Quote
Old 08-11-09   #5 (permalink)
Intel Overclocker
 
PeaceMaker's Avatar
 
intel nvidia

Join Date: May 2007
Location: New Jersey
Posts: 2,348

Rep: 66 PeaceMaker is acknowledged by some
Unique Rep: 63
Trader Rating: 6
Default

This isn't my website... I am just trying to open this webpage up with that table opened already. Thought there may have been a way to add like &sub=show or something
__________________
We Are Gr33n Machine
Project Atlantis
"Signature your on it put, backwards this read to enough dumb were you if."

Disclaimer: Everything I say is my own opinion unless I provide evidence.

System: Atlantis
CPU
Q6600 "G0" 1.23v@3.2GHz
Motherboard
ASUS P5K Deluxe/WiFi AP
Memory
2x2GB G.Skill DDR2-1000
Graphics Card
eVGA 8800GTX
Hard Drive
2x320GB 7200.10 (Raid 0), 2x1TB + 320GB
Sound Card
Creative SB X-Fi XtremeMusic
Power Supply
Corsair HX620 Modular
Case
Antec 900
CPU cooling
Tuniq Tower 120 (lapped)
GPU cooling
eVGA
OS
Win 7 Pro
Monitor
Samsung 204BW (20")
PeaceMaker is offline PeaceMaker's Gallery   Reply With Quote
Old 08-11-09   #6 (permalink)
WaterCooler
 
Spazghost's Avatar
 
intel nvidia

Join Date: Aug 2008
Location: Michigan
Posts: 572

Rep: 40 Spazghost is acknowledged by some
Unique Rep: 38
Trader Rating: 5
Default

Well...

If the page is already loaded, you can just execute the javascript inline by putting:
javascript:showHide('sub10');showHide('sub8');show Hide('sub5');showHide('sub9');showHide('sub1');sho wHide('sub2');showHide('sub3');showHide('sub4');sh owHide('sub6');showHide('sub7');

Into the address bar...

Let me see if there is a way that I could link to that page and execute the javascript at the same time.
__________________

~The purpose of an arguement is not victory, but rather progress.~

System: GhostBox
CPU
Q9550 (Lapped) @ 3825MHz
Motherboard
EVGA 780i FTW
Memory
4x2GB OCZ Reaper @ 5-5-5-18 2.1V
Graphics Card
2xSLI - EVGA GTX260 (216)
Hard Drive
320GB Seagate RAID 1: 1TB WD
Sound Card
Creative X-Fi Titanium
Power Supply
Corsair 850HX
Case
CoolerMaster Stacker 810 (Modded)
CPU cooling
Swiftech Apogee GTZ
OS
Vista Ultimate x64, Ubuntu 8.10 x64
Monitor
Acer P244W
Spazghost is offline Spazghost's Gallery   Reply With Quote
Old 08-11-09   #7 (permalink)
Intel Overclocker
 
PeaceMaker's Avatar
 
intel nvidia

Join Date: May 2007
Location: New Jersey
Posts: 2,348

Rep: 66 PeaceMaker is acknowledged by some
Unique Rep: 63
Trader Rating: 6
Default

That didnt work for me when I copied it into the address bar. But it has to be in a link because I'm trying to write a macro to automatically look at this address w/ that table open.
__________________
We Are Gr33n Machine
Project Atlantis
"Signature your on it put, backwards this read to enough dumb were you if."

Disclaimer: Everything I say is my own opinion unless I provide evidence.

System: Atlantis
CPU
Q6600 "G0" 1.23v@3.2GHz
Motherboard
ASUS P5K Deluxe/WiFi AP
Memory
2x2GB G.Skill DDR2-1000
Graphics Card
eVGA 8800GTX
Hard Drive
2x320GB 7200.10 (Raid 0), 2x1TB + 320GB
Sound Card
Creative SB X-Fi XtremeMusic
Power Supply
Corsair HX620 Modular
Case
Antec 900
CPU cooling
Tuniq Tower 120 (lapped)
GPU cooling
eVGA
OS
Win 7 Pro
Monitor
Samsung 204BW (20")
PeaceMaker is offline PeaceMaker's Gallery   Reply With Quote
Old 08-11-09   #8 (permalink)
WaterCooler
 
Spazghost's Avatar
 
intel nvidia

Join Date: Aug 2008
Location: Michigan
Posts: 572

Rep: 40 Spazghost is acknowledged by some
Unique Rep: 38
Trader Rating: 5
Default

Ya... I don't know if there is anyway to make the browser load that page and then execute the javascript after it loads...

I was able to use javascript:window.location.replace('http://www.allatini.com.gr/ependites.asp'); to make it load the page but it doesn't open the tables if I try the javascript from before in the same url right after the replace.

javascript:showHide('sub10');showHide('sub8');show Hide('sub5');showHide('sub9');showHide('sub1');sho wHide('sub2');showHide('sub3');showHide('sub4');sh owHide('sub6');showHide('sub7'); (for some reason it's adding spaces to it in wierd places when I post it...)
__________________

~The purpose of an arguement is not victory, but rather progress.~

System: GhostBox
CPU
Q9550 (Lapped) @ 3825MHz
Motherboard
EVGA 780i FTW
Memory
4x2GB OCZ Reaper @ 5-5-5-18 2.1V
Graphics Card
2xSLI - EVGA GTX260 (216)
Hard Drive
320GB Seagate RAID 1: 1TB WD
Sound Card
Creative X-Fi Titanium
Power Supply
Corsair 850HX
Case
CoolerMaster Stacker 810 (Modded)
CPU cooling
Swiftech Apogee GTZ
OS
Vista Ultimate x64, Ubuntu 8.10 x64
Monitor
Acer P244W
Spazghost is offline Spazghost's Gallery   Reply With Quote
Old 08-11-09   #9 (permalink)
Intel Overclocker
 
PeaceMaker's Avatar
 
intel nvidia

Join Date: May 2007
Location: New Jersey
Posts: 2,348

Rep: 66 PeaceMaker is acknowledged by some
Unique Rep: 63
Trader Rating: 6
Default

It's okay. I appreciate the effort. Guess it can't be done.
__________________
We Are Gr33n Machine
Project Atlantis
"Signature your on it put, backwards this read to enough dumb were you if."

Disclaimer: Everything I say is my own opinion unless I provide evidence.

System: Atlantis
CPU
Q6600 "G0" 1.23v@3.2GHz
Motherboard
ASUS P5K Deluxe/WiFi AP
Memory
2x2GB G.Skill DDR2-1000
Graphics Card
eVGA 8800GTX
Hard Drive
2x320GB 7200.10 (Raid 0), 2x1TB + 320GB
Sound Card
Creative SB X-Fi XtremeMusic
Power Supply
Corsair HX620 Modular
Case
Antec 900
CPU cooling
Tuniq Tower 120 (lapped)
GPU cooling
eVGA
OS
Win 7 Pro
Monitor
Samsung 204BW (20")
PeaceMaker is offline PeaceMaker's Gallery   Reply With Quote
Old 08-11-09   #10 (permalink)
New to Overclock.net
 
intel nvidia

Join Date: Apr 2009
Posts: 98

Rep: 4 Agshlee Unknown
Unique Rep: 4
Trader Rating: 0
Default

So, if I am understanding correctly you are writing some macro that does something with the data on that page, yes? If so I don't see why the tables need to be visible; all the data can be found in the source of the page regardless of its visibility. ( Ctrl + U if you're using Firefox/Chrome/... )

If that's not what you are trying to do, could you please explain exactly what it is you are trying to achieve?
__________________
System: T3h i7
CPU
Intel i7 920 D0 @ 4.1GHz
Motherboard
Asus Rampage II Extreme
Memory
Corsair Dominator 1600MHz 6GB
Graphics Card
2x Point of View GTX 275
Hard Drive
VelociRaptor 300GB + WDGreen 1TB
Sound Card
SupremeFX X-Fi
Power Supply
Corsair HX1000w
Case
Lian Li PC-A7010b
CPU cooling
Megahalems + 2x Scythe S-Flex 1900 RPM
GPU cooling
Stock
OS
Windows 7 RC1 x64
Monitor
Samsung SyncMaster T240
Agshlee is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 09:04 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.16687 seconds with 8 queries