In a form, I would like the input:text to fill the remain space after the label to the form is left and right justified.
The label have number of characters so I can't set a fixed width on the label.
Code example:
<fieldset>
<legend>User Info</legend>
<p><label>First Name :</label><input type="text"...></p>
<p><label>Last Name : </lab...
Hey Guys
I got some question about nested javascript objects (is it me, google or is javascript quite poorly documented?). Now, I got the following (nested) object:
obj: { subObj: { foo: 'hello world' } };
next thing I do is to reference the subobject like this:
var s = obj.subObj;
now what I would like to do, is to get a referenc...
This simple js script can't set the value of "para". I guess getElementByName doesn't work. But why?
<script>
function fn()
{
document.getElementById("para").setAttribute("name","hi");
document.getElementByName("hi").setAttribute("value","my value is high");
}
</script>
HTML:
<input type="button" onClick="fn()" v...
hi,
i'm using this code to post to a php page:
var qreq = ".....myurl.php";
$.post(qreq, function(data){alert(data);});
in my PHP file i have this:
......
$prevtopic = $row["topic_id"];
echo $prevtopic;
the alert comes up, but is blank. for some reason data is empty even though i'm echoing from the PHP file. i also tried just echo...
Is there something wrong with the script? or that getElementsbyTagName is deprecated?
<script>
t=document.getElementsByTagName('input')[0];
document.write(t.value);
</script>
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Type here: <input type='text'...
Is it possible to redirect a web apps results to a second application? I cannot parse the html source. It contains the javascript functions that execute the queries but all the content is probably server side.
I hope this makes sense. The owner has made the script available but I am not sure how this helps. Can I using .net call the si...
Is there anything wrong with the code? It's not working.
<script>
t=document.getElementById('good');
document.write(t.value);
</script>
HTML:
Type-here: <input id='good' type='text' value="my value is high">
...
chrome.tabs.executeScript(null, {code:"$.each(selectValues, function(key='" + timestamp + "', value='Custom')
{
$('#expire').
append($(\"<option></option>\").
attr(\"value\",key).
text(value));
});"});
It says that the first line has a syntax error, and the WebKit inspector shows odd highlighting ...
I am having a problem with GameQuery (jQuery) collision detection
Tthey just never seem to fire?!?
I have checked all the .arrow's exist and the same for the .bot's but it just never seems to call the function
I have the below code in my main callback:
$(".bot").each(function(){
$(this).collision(".arrow").each(function(){
alert("T...
Could you provide example of JavaScript function for starting up application installed on your computer from a web browser (eg google chrome 4). It particular if .Net APPs have any special simplifying this process apis of out there are some libs for such staff, please share link with us.
so how to create and store in run on start up p...
i have been looking at jqgrid, telerik.
does anyone have any performance metric comparisons or have any other alternative that they think is faster.
...
Hi,
I seem to not be able to find implementation from the common Ajax libraries (JQuery, mootools, prototypejs...) that would allow the operation of parsing the window.location.href for request parameter. I would expect something like:
$P{"param1"} == "param1_value"
Am I missing something?
p.s. The web does contains implementation ...
I'm trying to figure out a way to extract the information encoded in ttf files. namely: The char-to-glyph table and the individual glyph path data.
Does anyone have a good reference explaining the ttf file structure, or some other solution?
Keep in mind that I'm not interested in any libraries that can do it for me either (unless they ...
I am using the DataTables plugin for jQuery and need to get one of the table rows. DataTables has a fnGetNodes function that returns an Array with all of the DOMElements of the table. I would like to use a jQuery selector to find that row (I know the id of the row), but I need to convert the Array to a jQuery Object, is this possible?
...
Hi
I have created the following effects on the images seen here http://techavid.com/design/test3.html .
You see when you hover and then click on each image, they go from grey to color. When you click on one - the others go grey and the one clicked remains color. That's cool, but now I need the text 1st: Sun for example to display and...
I want to incorporate some Accelerometer code into a Android application im working and want to see if this is possible. Basically what I need is for the code to detect car acceleration motion. I am not wanting to determine speed with the code but just distinguish if the phone is in a car and has accelerated motion (Hence the car is movi...
Hi, I'm currently developing an ajax application and I'm looking for a feature that lets me intercept all static and dynamic links using javascript. The links look like these:
<a href="link1/">link 1</a>
<a href="link2/">link 2</a>
etc.
I then want the browser to redirect to: current.page/#link1/ rather than current.page/link1/. I'm u...
There is a syntax error in the following code:
<!DOCTYPE html>
<html>
<body>
Hello World!
<script type="text/javascript">
var obj = {'a:b': '1'};
alert(obj.a:b); // syntax error
</script>
</body>
</html>
So how to handle JavaScript objects with colons in key names?
I have to do this because I need to ...
Hi
I have a list in a div and I would like to change the background image of the parent div (#homepage_container) when I hover over a list item.
here's the site:-
http://www.thebalancedbody.ca/
Is this possible? I'm guessing I'll have to use javascript.
Thanks
Jonathan
...
Hi,
I'm trying to build some kind of a social game in facebook, where I need that every user that has approved my APP is able to receive notifications from me.
When the user approves my App, I save his UID in the DB for future reference.
At some later time, I want to make it possible for other users find partners for a game - so I nee...