|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding | |
How can I load a webpage with all tables expanded
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
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.
|
|||||||||||||
|
|
|
|
|
#2 (permalink) | ||||||||||||
|
WaterCooler
![]() |
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.~
Last edited by Spazghost : 08-11-09 at 08:45 AM |
||||||||||||
|
|
|
|
|
#3 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
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.
|
|||||||||||||
|
|
|
|
|
#4 (permalink) | ||||||||||||
|
WaterCooler
![]() |
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.~
|
||||||||||||
|
|
|
|
|
#5 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
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.
|
|||||||||||||
|
|
|
|
|
#6 (permalink) | ||||||||||||
|
WaterCooler
![]() |
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.~
|
||||||||||||
|
|
|
|
|
#7 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
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.
|
|||||||||||||
|
|
|
|
|
#8 (permalink) | ||||||||||||
|
WaterCooler
![]() |
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.~
|
||||||||||||
|
|
|
|
|
#9 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
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.
|
|||||||||||||
|
|
|
|
|
#10 (permalink) | |||||||||||||
|
New to Overclock.net
|
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?
|
|||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|