|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
||||
|
||||
|
tferring textfield value from parent to child
hi guys
I've exhausted my usual mates with this problem, so I've arrived at ur doorstep in search of some answers. The purpose of this script is the same as a 'preview post' we get in forums. Users add text to a textarea then format it using schmick buttons to insert tags. The function I'm using to set up the preview pop-up is: Quote:
This function is called by the preview button and the preview window opens up fine. However the problem lies with my being able to insert the text from the parent textfield into some span tags of the child. I've tried far too many various functions, none seem to work and I'm not sure if Im targeting the opener's textfield ID correctly either. The POS script in the child window looks like this atm.. Quote:
and it called by onLoad="start()" in the head tags. I've ID'd some span tags further down the child page as "insertHere" :-| The site's using asp/javascript and I wont use cookies to solve this problem, nor session variables. Im sure the idea behind this script is sound, I just dont know the syntax. p.s. innerHTML is out since it IE specific, I'd prefer a cross browser solution... thx in advance guys. |
|
#2
|
|||
|
|||
|
Interesting, thanks for indirectly pointing me to this
Web Page Here So there is a whole world of DOM I didn't know about. I think you will be able to get some ideas out of the above web page. good luck |
|
#3
|
|||
|
|||
|
innerHTML and outerHTML are more reliable in IE I have varied results in netscape mozilla and others.
I find it a solution only when designing for intranets run on IE. Still haven't found a solution yet. It's a simple preview of a gad damn text field !! oh well - perhaps I need to escape the chars b4 their tferred to child window then unescaped.... Last edited by meth : January 24th, 2003 at 01:51 AM. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > tferring textfield value from parent to child |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|