Moving Variable Into Line Of Code
Feb 22, 2011
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]
View 3 Replies
ADVERTISEMENT
May 13, 2010
I have been trying to write a java scrip that will move an image (image1) to the pixel location that the user inputs into a text box.
Here is what i have so far:
HTML Code:
I am not sure if the problem is in the variables or setting the variables based on the numbers in the text box.
View 1 Replies
View Related
Apr 25, 2011
I tried many ways to do it .. but didn't work any of them ..
The idea is move the foot to room no.1 .. but i want to see the foot moving on the red line to the room
like this pic : [url]
View 7 Replies
View Related
Jan 13, 2011
I have a user that insists they have web applications that do this, and wants the one I'm building to do it too...
You have a table on an html form. As the user changes one or more fields in a table row and moves to the next line, the changed row should AUTOMATICALLY be sent back to the server and updated in the database.
If the user moves BACK to a line that's already been changed, and changed a field, a popup should display and ask "if the user really wants to change the field". If so, again, it should AUTOMATICALLY be sent to the server and updated in the database...
Ignoring the horridness of making that many round trips to the server and banging the database for every line, is there a way to AUTOMATICALLY do the equivalent of a submit and post the changed table row back to the php script?
View 3 Replies
View Related
Feb 18, 2006
I have the code below ***within <head> section. It's for making fancy
buttons, and it works great. What I was wondering was this.
I also have in <head> the following line: <SCRIPT TYPE="text/javascript"
src=/js/javas.js></SCRIPT> which essentially has a bunch of unrelated
javascript functions.
What I would like to do is move the code below into my javas.js file, but am
unsure what is the proper format since it doesn't seem to me a function by
name. Code:
View 2 Replies
View Related
Jun 6, 2009
I have a problem that 'test' is not passed. The following function alert undefined, but it should alert test. Why that?
PHP Code:
View 1 Replies
View Related
Jun 7, 2009
I have a problem that 'test' is not passed. The following function alert undefined, but it should alert test. Why that?
View 1 Replies
View Related
Mar 23, 2011
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.
View 2 Replies
View Related
Oct 22, 2002
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.
View 2 Replies
View Related
Jun 26, 2011
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')||
[Code]...
View 14 Replies
View Related
Jan 10, 2012
I have the following function:
function showValues() {
var searchName=$('#partnm').val();
var str = $("form").serialize();
[code]....
View 4 Replies
View Related
Jul 4, 2011
With the exception of the boolean variable, I'm wondering if it's possible to combine the bottom 2 into one statement, so s exists in the current scope
Code:
var boolean = (true or false)
var s;
boolean ? s = 40 : s = 80;
View 3 Replies
View Related
Aug 2, 2011
I have some code that works great when used inline (inside of an html page). The inline code looks like this and has an onchange = "gotoTest(this);" as part of the select element
<script type="text/javascript">
$(document).ready(function () {
$("select#RU").bind("change", gotoTest);
[code].....
View 6 Replies
View Related
Aug 12, 2011
How can I change the line "Re-record this video" to a button. And How can I change it's location on the page?
Code:
document.write("<p><a href='index.html?filename="+my_filename+"'>Re-record this video</a><br/><br/>");
View 4 Replies
View Related
Nov 12, 2006
How to code this line of javascript for Firefox.. Code:
if (document.all) fader.innerHTML = text_out; // document.all = IE only
View 5 Replies
View Related
Jul 20, 2010
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:
$("head").append("<style type='text/css'>
#table {table-layout: fixed;width:650px;text-align: left;border-collapse: collapse;}
</style>");
This works:
$("head").append("<style type='text/css'>#table {table-layout: fixed;width:650px;text-align: left;border-collapse: collapse;}</style>");
View 3 Replies
View Related
Aug 29, 2009
This may seem like a silly question...
What are the rules for putting a semicolon at the end of a line of code?
View 6 Replies
View Related
Aug 19, 2009
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).
View 2 Replies
View Related
Jan 25, 2010
I'm using jQuery+drupal and some jQuery plugins. All is ok with Firefox. But in IE's i'm receiving problem like this.
Line: 1
Char: 1
Error: object expected
URL: /
I have included .js files. How to know where is the problem? In which file? Line 1? Which file? If you need source code say me I'll PM you address.
View 7 Replies
View Related
Nov 13, 2011
How do I get the line break to work in an alert box based on data from this php variable?
[code]....
View 3 Replies
View Related
Nov 1, 2010
I paid for some to create a slideshow, and it works fine in the orginial html document but when i copy and paste the code into my html document the scroller to the left of the image stops moving up and downI put the working file at thisthe guy i paid to do work refuses to help even those i advertised the price in my ad and he wanted me to give to pay him more to tell which code to change
View 10 Replies
View Related
Oct 10, 2011
I have the following line of code in a page and I need to 'hide' the entire row [code]...
Is there a way to do that?
View 1 Replies
View Related
Apr 2, 2011
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:
[Code]....
View 9 Replies
View Related
Jul 6, 2011
I have a problem with quotes.
$(document).ready(function(){
$('#txtValue').keyup(function(){
sendValue($(this).val()); [code]....
if $T contains just "text", the code works perfectly.
if $T contains line break, quotes " or ', the code doesn't work.
View 3 Replies
View Related
Jun 6, 2009
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
View 6 Replies
View Related
Dec 13, 2011
I want to load an html div in a variable, modify it in another variable; and then change the document injecting the contents.
1. I load the html to be changed in a variable (code)
2. I modify an attribute of <param> using attr() and I put the result in a var (newcode)
3. I change the html in the doc
I've used the debugger, and all steps give the expected results, except of newcode.html(), which is a null string. Why?
[Code]....
View 8 Replies
View Related