Closed Thread Icon

Topic awaiting preservation: Possible to make Input/Form Field Stay Fixed? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9056" title="Pages that link to Topic awaiting preservation: Possible to make Input/Form Field Stay Fixed? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Possible to make Input/Form Field Stay Fixed? <span class="small">(Page 1 of 1)</span>\

 
Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 03-30-2004 23:48

I have a configurator type thing for building a computer...and I want the price to stay fixed on top so as you scrolle down the page you can still see it above the other stuff (similar to having 2 frames..but without frames. It seems iframes do this, that I have done it before but I can't find the info on it so forgive the stupid question)


Edit://
I don't think after looking into that Iframes or even Frames will work. The thing I want fixed is an Iput field that gets updated by the JS and when putting that in a seperate frame..it makes the script not work..
So is there another way?
I'd think it would be possible using Divs but I can't make it work right..

Iframes would work but I don't know how to link the html in the Iframe with the other html page so that the javascript works (If that makes sense). The Javascript sends new values to an input box when you change things..and putting that input box in an iframe makes it not work..

I give up for now..any help would be appreciated.



[This message has been edited by Shifter (edited 03-31-2004).]

sonicsnail
Bipolar (III) Inmate

From: Scotland
Insane since: Jun 2001

posted posted 03-31-2004 13:08

I recall lots of old JS scripts that were referred to as "Geocities floating logos" or something.. as they held an image in the corner of your screen regardless of scrolling. Never well liked though.

If you're happy to use frames, you CAN use JS across frame borders..

Using the Document Object Model, reference:

top.windowname.formname.fieldname.value = CostVariable

Now that is probably very wrong, but type "reference a form field across frames" into google and I'm sure someone will have the correct syntax. You'll find the "top" part tells the browser to go up a level (out of that window and into the frameset).

Good luck,

Pete

edit:: or is it "PARENT.windowname.formname.fieldname.value..." ??

[This message has been edited by sonicsnail (edited 03-31-2004).]

Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 03-31-2004 14:44

Ah, that at least points me in the right direction..a small frame on top with one lil input field isnt too bad....

I will check into that..thanks :P

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 03-31-2004 15:05

What I hated about the floating logos was the jumpy behavior as it tried to keep up with your scrolling. If you still want a div that is positioned like that using javascript, you can make the repositioning smooth. It's a nice compromise and it looks ok to some.

ZOX has a floating menu on this page: http://www.webwhirlers.com/colors/coloursphysics.asp


. . : DHTML Slice Puzzle : . . . : Justice 4 Pat Richard : . .

Shifter
Bipolar (III) Inmate

From: Mesquite, TX 75149
Insane since: Aug 2000

posted posted 03-31-2004 19:43

The floating geocities type scripts are actually perfect..except..I don't want a logo I want a form field or to call from a form field..but I dunno how to make it do that :P

Hrm. Divs would work..but I am not very good with divs.

Is it possible to make 2 divs..the top one would have the field I want and it stays there. The second scrolls the content.

Okay let me rephrase..I know this is possible because I made it..and it worked great. The problem is I can't cleanly make the bottom div. I want that div to fill out the rest of the page (regardless of Windows Resolution). That's where I have problems. I can set that div to say 500 height and then it works well for 800x600 but of course at higher res's the div is too small and looks odd...

I can't for th elife of me figure out how to make the div kinda conform to the resolution of the user.

The other method would be to put the top part (the form field) in its own div...IF it is possible to make a div "float" and stay even when you scroll the main page...but I can't figure out how..if possible.

I've looked at tons of div tutorials and such but I can't find anything..

And I also did try the using JS across frames stuff..but all the info I found acted as if the user knew javascript as well...which I don't..so know where to put what and how to make it work was impossible for me..been messing withi it all day at work..but I have to actually get work done.

Hopyfully what I said abou Divs is possible because that would really be ideal.

Its a shame I happen to be using a JS which is what determines the value of the form vield I'm trying to get to be floating/static..because otherwise I'd have figured it out or used methods of floating..I just cant figure out how to make it work since the JS will only work if that field is on the same page..and on the top.
I think to make it work I'd have to modify the JS it uses to write that input field..which is way out of my reach..thus why the divs method is probably the way to go..if someone can just help with Div setups as I mentioned before..

Thanks again sorry about all the ramblind to myself..I like to work myself through stuff when none else is around at least til they reply :P


[This message has been edited by Shifter (edited 03-31-2004).]

[This message has been edited by Shifter (edited 03-31-2004).]

[This message has been edited by Shifter (edited 03-31-2004).]

« BackwardsOnwards »

Show Forum Drop Down Menu