Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
jscript: kako prenjeti vrijednost inputa?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side
View previous topic :: View next topic  
Author Message
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 09.07.2004 16:31    Post subject: jscript: kako prenjeti vrijednost inputa? Add user to your forum ignore list Reply with quote

Imam frameset koji se sastoji od frame-ova 'control' i 'display'.

Ako u 'control' imam:
Code:
<input name="orig" type="text">
što bi trebala biti njegova onChange naredba, da bi u 'display'-u
Code:
<input name="copy" type="text">
imao istu vrijednost kao i 'orig'?

valjd ce neko shvatit...

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 09.07.2004 18:19    Post subject: Add user to your forum ignore list Reply with quote

Very Happy uspio sam rjesit to u jednom dokumentu Dancing

...ak nekom treba:
Code:
<form name="control">
  <input name="orig" type="text" onChange="display.copy.value=this.value">
  <input name="ispis" type="button" value="Ispi&scaron;i" onClick="document.control.style.visibility='hidden';window.print();">
</form>

<form name="display">
<input name="copy" type="text" class="pravo" value="">
</form>


Iako bih jos molio da netko tko se "razumije" Very Happy pogleda...

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
lekke



Joined: 17 Jun 2004
Posts: 860
Location: 25th floor

PostPosted: 09.07.2004 20:26    Post subject: Add user to your forum ignore list Reply with quote

Iako ti ovo mozda radi, bilo bi pametno kretati od vrha DOMa

dakle document.display.copy.value

_________________
You need more bass.
Back to top
View user's profile Send private message
budha



Joined: 02 Mar 2004
Posts: 1377
Location: Osijek

PostPosted: 09.07.2004 20:34    Post subject: Add user to your forum ignore list Reply with quote

danke!

_________________
I hate to advocate drugs, alcohol, violence, or insanity to anyone, but they've always worked for me.
Back to top
View user's profile Send private message Visit poster's website
retro_one



Joined: 16 Sep 2003
Posts: 880
Location: DUBRAVA.

PostPosted: 09.07.2004 21:08    Post subject: Add user to your forum ignore list Reply with quote

a jos bolje bi ti bilo da elementu pristupas preko id-a
znaci document.getElementByID("id_elementa_kojem_pristupas")

_________________
Just your average eccentric programmer.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Client-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group