$TEXT will only be a variable inside PHP code, which will never be visible to the Javascript in the browser.
Do you mean you want to do
echo " $TEXT$ ";
?
Would
echo ' $TEXT$ ';
do what you want?
What are you really trying to achieve, without talking of # and $ ?
User Profile
Collapse
-
Indeed. That's probably why my usage of ASP.NET (as and when I must) is certainly heretical to those mind-tyrants of Redmond :-)Leave a comment:
-
Something like:
Code:<input type="text" name="text1" onchange="this.form.text2.value = this.value;" /> <input type="text" name="text2" />
Leave a comment:
-
Just to confirm; why can't you put the popup calendar code inline?...Leave a comment:
-
-
DMsy2 replied to $("td").click(function() { $(this).empty(); } will work for table in html but not phpin JavascriptAh yes, I can see that page okay.
I have no idea why it doesn't work.Leave a comment:
-
DMsy2 replied to $("td").click(function() { $(this).empty(); } will work for table in html but not phpin JavascriptI can't actually *see* anything on your PC :-)
Re-writing innerHTML seems a bit of a minefield, in general.
Try operating on #tbl and see it if it 'found' ???Leave a comment:
-
A simpler way could be
Code:<input type='button' value='A' onclick="this.form.searchbox.value=this.value;" />
Leave a comment:
-
How about having the browser store the all passwords to autofill like normal and then re-writing the browser's datafile with external software to change the passwords?
If it's FireFox you may even be able to just get it to output a text file that you can change and email to all the user's to install?
How do you change the passwords on the many sites?Leave a comment:
-
It is crude but effective to put an alert() in the loop to show the data being set so you can actually see what data IE is using.
If it is caching then the webservice sending the data needs to add a no-cache meta or something like that.Leave a comment:
-
DMsy2 replied to $("td").click(function() { $(this).empty(); } will work for table in html but not phpin JavascriptI've never used JQuery itself but it seems likely that when you put the click event on "all the TD elements" it only does it for those which exist at that time.
When getdata.click adds another table with new TD elements those new TD elements have no click event defined.
How about putting the "set td.click" code inside the getdata.click function?
And perhaps set on "#container td" so you only...Leave a comment:
-
Could you encode some session identifier into the URL, so that different tab environments have different URLs.
Depending on the lifecycle of the page you could use a timestamp and then alsocheck if the page had been "backed".Leave a comment:
-
It would in the restricted case of a single select.
If however you were traversing a multiple selection list, or some other scenario, then knowing the full derivation would help.
I'm sorry, you seem to be giving me a hard time for just trying to help people?Leave a comment:
-
1/ CDATA
It is good practice to do ths and allows for validation tools to run properly. So I use it.
2/ not just "el.value"
This is an example, so I've written it to show what is happening and how/why, in case of future extension.Leave a comment:
-
Consider;
...Code:<select on{event}="GetValues(this);" > <option value="mark|Mark Jones|mark@example.org">Mark</option> <option value="jane|Jane Smith|jane@example.org">Jane</option> … </select> <script type="text/javascript"> // <![CDATA[ function GetValues(el) {Leave a comment:
No activity results to display
Show More
Leave a comment: