How do you make variable text?
Hey all,
I'm working on a site that has a page with a few variables on it. There is a picture variable and two text variables. The info is entered from a separate database server. I have the image variable working, since all i have to do is src="server/action"
The text variable, however, i don't know how to do.
I need to be able to place a marker and then dictate where the text will come from. But, it is just text, not an image -- so that i can format it and what not.
Hopefully that makes sense? If anyone has any ideas, i would really appreciate it.
Thanks a bunch.
DDoSAttack posted this at 16:18 — 25th October 2006.
He has: 38 posts
Joined: Oct 2006
What language are you using? What DB are you using?
You will need to query the DB to get the text then use whatever language you are using to display the results.
It should be basically the same as your image result except instead of putting it into the src="" attribute you put the variable into the (X)HTML
So for PHP it would be something like
<?php
<p>The text to print to screen is =$resultText</p>
?>
msaz87 posted this at 18:45 — 25th October 2006.
They have: 68 posts
Joined: Jun 2006
I'm just using HTML and was hoping there'd be a way to do it with javascript. The database is 4D -- not a popular one i don't think?
Essentially, i need to figure out a way to simply put in that marker and then dictate somewhere what process it runs to find the text. All i have to do to call the text is input the IP and action:
http://serverIP/4DACTION/SOMETHING/1000
So i wasn't sure if there wasn't a simple javascript to place that marker and then put the action address in my .js file with the rest of the script?
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.