J
jackson.rayne
Hello,
Another newbie question here.
Let me explain my situation first. I have bought a 3rd party tool
that runs a PHP script and gives me some HTML code which I can
directly use in my pages.
The code generated is normal HTML code, example
<<<<<<<<<<<<Example>>>>>>>>>>>>>>>>>>
<table class= "myclass" border="1" width="160" cellspacing="0"
cellpadding="0">
<tr>
<td width="100%">
<table border="0" width="160" cellspacing="0" cellpadding="1"><tr>
<td width="55" valign="top" align="center">
<<<<<<<<<<<<Example Ends>>>>>>>>>>>>>>
Now all the above code is contained in a PHP variable. When I want to
display the above code on my site, all I have to do is insert
%%Variable_Name%%
and it will embed the whole code on my webpage.
Now here's what I want. I need to make some changes in the above HTML
code using Javascript. In particular I want to search for some value
and make replacements.
Since the above code contains text spread across multiple lines, I
don't know whether it would work with Javascript. All I want to do is
put the above code (text) in a Javascript variable and make some
changes. I tried but it is not working.
I contacted the developer but he says that since his tool is being
used by large number of people he can't make changes based on just one
request.
Any ideas on how to proceed ahead..
Thanks in advance,
Rayne
Another newbie question here.
Let me explain my situation first. I have bought a 3rd party tool
that runs a PHP script and gives me some HTML code which I can
directly use in my pages.
The code generated is normal HTML code, example
<<<<<<<<<<<<Example>>>>>>>>>>>>>>>>>>
<table class= "myclass" border="1" width="160" cellspacing="0"
cellpadding="0">
<tr>
<td width="100%">
<table border="0" width="160" cellspacing="0" cellpadding="1"><tr>
<td width="55" valign="top" align="center">
<<<<<<<<<<<<Example Ends>>>>>>>>>>>>>>
Now all the above code is contained in a PHP variable. When I want to
display the above code on my site, all I have to do is insert
%%Variable_Name%%
and it will embed the whole code on my webpage.
Now here's what I want. I need to make some changes in the above HTML
code using Javascript. In particular I want to search for some value
and make replacements.
Since the above code contains text spread across multiple lines, I
don't know whether it would work with Javascript. All I want to do is
put the above code (text) in a Javascript variable and make some
changes. I tried but it is not working.
I contacted the developer but he says that since his tool is being
used by large number of people he can't make changes based on just one
request.
Any ideas on how to proceed ahead..
Thanks in advance,
Rayne