I'm trying to convert a line using a regular expression. The re I am using is this: <div><span>·<span>[s*]</span></span>([^<]*)</div> I'm using the expression in the replace function like this: html = html.replace( /<div><span>·<span>[s*]</span></span>([^<]*)</div>/gi,'<li>$1</li>') ; The line of code I am changing is like this: <div><span>·<span> </span></span>Illness - where a pupil is too ill to leave the house</div> E.g. it should strip out the code and leave <li>Illness - where a pupil is too ill to leave the house</li>. It works fine here [URL] but when used with the replace command it does not? (I'm trying to convert bullet points from word).
i have a problem with a third-party code written using JQuery and i would like to debug it.however, as it is in 1 line (in my classical editor) i would like to know if it exists an editor which explode this 1 line code in a normal Javascript code ...more human readable.
Is it possible to create a pop-up window without putting code in the <HEAD> of the document? I'd like to create a link to a new window but I don't have access to the <HEAD> of the page.
Could somebody please take a look at the lines of coding below and advise on how to complete it? It's a code to translate a piece of text, I kinda figured some of it out, The first part is to translate 'the cat sat on the mat' to 'thube cubat subat ubon thube mubat'. The second part is entering text and clicking a button to translate.
First part - translating cat on the mat: function isVowel(aCharacter) { return ((aCharacter == 'a') || (aCharacter == 'A')|| (aCharacter == 'e') || (aCharacter == 'E')|| (aCharacter == 'i') || (aCharacter == 'I')||
I have a variable that says: Code: var Fname = lalala.js; How do I write a function that moves the variable into a line of code like this? Code: <script type="text/javascript" src="lalala.js"></script> The problem I having is the quotation marks as far as I know. [URL]
When I want to handle html/css code in js/jquery it seems that line breaks aren't allowed. This of course makes the code less readable. Is there a workaround to this or is it simply to accept?This doesn't work:
1. When I have the "<textarea>" code lines in it put a text-area on the page, but it puts all of the code following that first text-area line into the text-area box and doesn't execute that segment of code.
2. When there is no "<textarea>" (for the sake of seeing if the rest of it worked) it doesn't check the survey.
I'm stumped and can't figure out what to do at this point Code and pictures follow:
i want to ask that is it possible that using javascript injection the contents of a web page can be altered (add / edit / deleted) in Line of Code.Since, this has happened with me couple of times,talking to the support team at my hosting provider, they say that its due to the security holes in the Coding, but i think that its the security issue at the hosting side (since modifying the web pages code)i've found this code immediately after the opening of the body tagearlier the page snoofing for the above URL was working, but now its not producing the output. (so can not post whats inside it).My Another website (hosted by the same provider) is also infected. there the code immediately after the body tag is again the page snoofing yeilds no output with the error
Text inside the button is displayed in two lines.However when I try to change text after click event, it shows <br /> tag instead of inserting line break- Here is java script that I am using-
function resetBtnText(idx,txt){ //txt has a vale of - "Clear <br/>Nos" document.getElementById("sel"+idx).innnerHTML =txt;[code]........
It seems like it should be simple, but I don't see what I'm missing. Right now, the search button displays directly under my input field. I've gone through the CSS, but can't figure out where my code is forcing the button onto its own line. What am I missing? How can I bring it up to the same line?
and in this code, it works, the call is made and text is added. in the other code I don't get a change at all. Not even in the database that add.php manipulates.
getting first line coordinates of multiple line inline element.
Example HTML aaa bbb ccc ddd <span id="target">eee fff ggg hhh iii jjj</span>kkk lll mmm nnn ooo ppp qqq $(document).ready(function() {
[Code]....
Assume that span#target has a line break, when I see a browser. Then I click span#target, above function returns the head of coordinates which second line ("hhh") has. I want to have the coordinates which first line ("eee") has. How can I get that?