TinyBox with external input

Hi,
I am using TinyBox (http://www.experts-exchange.com/Web_Development/Web_Languages-Stan).
I need to put in an input-box that has a text that is received from my main page (the page that ivokes the TinyBox.
How do I do it?

<div id="testdiv">
<h2>
<b>Add Filter-Name</b>
</h2>
<p>
This filter-name belongs to other subjects that are listed in the right list.<br><br>

<a href="javascript:copy_filter()"><b>Copy</b></a><br> 
&nbsp;&nbsp;&nbsp;Copy this filter with all its filter-values (that are listed in the right list),<br>
&nbsp;&nbsp;&nbsp;To the current selected subject (selected in the top-righ list).<br><br>

<a href="javascript:add_new_filter()"><b>New</b></a><br> 
&nbsp;&nbsp;&nbsp;Add this as a new Filter-Name and then create new Filter-Values for it.<br>
<input  style="width: 200px;" id="NewFilter"  value=""><br><br>
<br>

<a href="javascript:javascript:TINY.box.hide()"><b>Cancel</b></a>
</p>
</div>

Open in new window

VapiSoftAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

scooby_56Commented:
you need to ensure you are linking correctly to the tinybox.js and style.css

The following snippet shows how to
1) load a dynamic snippet of markup
2) load from an external doc - i took your code and put it in a file called 'ee.html' for this example.

It wasnt totally clear to me which of these you needed - but hope it helps
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<link rel="stylesheet" href="style.css" /> 
<script type="text/javascript" src="tinybox.js"></script>
<script type="text/javascript"> 
function init(){
	T$('clickMe1').onclick = function(){TINY.box.show('ee.html',1,650,300,1)}
	
	var myContent = '<input type="text" value="whatever u vant"></input>';
	T$('clickMe2').onclick = function(){TINY.box.show(myContent,0,0,0,1)}
	
}
</script>
</head>

<body onLoad="init()">


<div id="clickMe1">click me</div> - this makes an ajax call thus will not work on local machine unless running via localhost
<div id="clickMe2">click me</div> - this puts dynamically created content into tinybox
</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.