Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Opening a page with transferred information
Old 04-12-2005, 01:07 AM Opening a page with transferred information
larryweiss's Avatar
Super Talker

Posts: 117
Location: NEW YORK
Trades: 0
The goal;

To open a page (target="_self")
To pass some data from the first page to the new one.
To use the passed data to create css classes in the head of the new page.

It sounds easy, but I am stumped.

Here is the way I (think) I am passing the data (To a new window at present ).

<form>

<input value="submit" onclick="parent.main.class.painting;(painting='Roc kland_Fishing_Boat.htm';
window.open('http://mysite.com/directory/mypage.htm','mywin','width=750,height=550',toolbar =0,menubar=0,status+0)"; type="button">

<input type="hidden" name="painting" value="Boat.jpg">

</form>

Its apparent that I am trying to pass the information twice, but do not really know if its passing at all.

Once the new window is open, and the data is passed to it, how would you turn that into something like:

.painting{background-img: Boat.jpg}

Also, assuming that all of this is possible, can I pass many items, say with multiple input lines in the form?
__________________
Larry Weiss


Please login or register to view this content. Registration is FREE
| |
Please login or register to view this content. Registration is FREE
| |
Please login or register to view this content. Registration is FREE
larryweiss is offline
Reply With Quote
View Public Profile Visit larryweiss's homepage!
 
 
Register now for full access!
Old 04-12-2005, 01:36 AM
Jared's Avatar
Skilled Talker

Posts: 52
Location: St. Anthony, ID
Trades: 0
Check out this page, it should have what you're looking for:

http://www.chipchapin.com/WebTools/J...ample3-02.html

It tells you how to write to the child window.
Jared is offline
Reply With Quote
View Public Profile Visit Jared's homepage!
 
Old 04-12-2005, 01:39 AM
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Trades: 0
I know this doesn't directly answer your question, but it's pretty easy to change classes dynamically without reloading the page.

You could have some links that changed the class of something else on the page:

HTML Code:
<a href="#" onclick="document.getElementById('whatever').className='p1'>Painting 1</a>
<a href="#" onclick="document.getElementById('whatever').className='p2'>Painting 2</a>
<a href="#" onclick="document.getElementById('whatever').className='p3'>Painting 3</a>
Disregard this If you already knew it, or if it doesn't help you at all This post will self-destruct in five seconds.
__________________

Please login or register to view this content. Registration is FREE
Phaedrus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Opening a page with transferred information
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20772 seconds with 12 queries