Hi Guys,
I am trying to add a prepend of an image and then define it's attributes. Little confused as how to do this - currently I have the following but it's not working. The HTML is
<div id="testID" class="test1">
<div id="testID2" class="test2" ></div>
</div>
And the JS is
var test123 = somecode{}
jQuery(test123).find...
What is the simplest way to dynamically create a hidden input form field using jquery?
...
Client side javascript code create some elements (about 50-100) in cycle:
for (var i = 0; i < list.length; i++) {
var obj = document.createElement("DIV");
obj.innerHTML = "<span class=\"itemId\">" + list[i].Id
+ "</span><!-- some more simple code --> ";
mainObj.appendChild(obj);
}
There is some problem wi...
Hi,
I’m trying to set up a range with a slider. I would prefer if both cursors did not overlap in the same value. In other words, how do I get the sliders to freeze and stay put when the minimum value slider and the maximum value slider come next to each other. Any ideas? Thank you in advance.
...
I have a form that I am validating with JS and PHP. Everything is going well so far apart from when I try to check if the passwords match.
Here is the form:
<div>
<label for="passlength">Password, valid: 0-9</label>
<input type="text" name="passlength" value="<?=@$_REQUEST['passlength']?>" id="p...
Is it really possible to achieve grade "A" in yslow for all things for a dynamic and CMS(PHP/Asp.net) based websites? and using same server.
http://developer.yahoo.com/yslow/help/index.html#performance_view
...
Is there a way to test to see if javascript is enabled to ensure an application that required javascript is not initiated when it is disabled or otherwise not available?
...
In javascript I check for some characters but I want to allow underscores and slashes but I don't know how.
alias: /^[a-z-Z0-9]{2,35}$/
How to put / and _ so it has not special meaning to Regexes.
...
I have an embeded browser in C# application which I am displaying static webpages in. Can I call a function of the app by pressing a button in a webpage inside of the embeded browser via javascript?
...
When should you use document.all vs. document.getElementById
What is your answer?
...
I'm trying to generate dynamic video playlists for Silverlight, to be able enable playback from several diffent video files.
E.g. I need to tell Silverlight to play 10 seconds of video 1, starting at timecode 1 minute 15 seconds and then seamlessly change to play 60 seconds of video 2 starting at timecode 5 minutes 2 seconds.
It has to p...
Hi there all :)
Made this nice little loop for hiding and showing div's, works as a charm in firefox and opera, but IE, safari and chrome say's no....
So my question is; why?
function theme(nr){
document.getElementById(nr).style.display = "block";
for (i = 0;i <= 28; i++) {
if (i != nr) {
document.getElementById(i).style...
Inside fancybox window I would like to retrieve html element (anchor probably) from which fancybox was called. How can this be done?
...
In my aspx page i have a tr which is set visible="false" by default... But on a selected index of a dropdown i make it visible="true" ..... On the form submit i am validating the control within the tr but couldn't find whether the tr is visinle or not using javascript...
My aspx:
<tr id="MeasurementTr" runat="server" visible="false">
<...
Hi Guys,
i am populating country dropdownlist from database.i need to select a value from dropdown list and assign it to textbox by using javascript.
Code:
var textboxId = document.getElementById("txtCountry");
var dropdownListId =document.getElementById("ddlLocation");
var e = document.getElementById("ddlLocation");
var strUser ...
I am building some html in a php script in order to send it back to a page via Ajax.
$other_content = Model_Db::dbSelect($query);
$div_center .= "<table>";
for($i = 0;$i<sizeof($other_content);$i++) {
$div_center .= "<tr>";
$div_center .= "<td><a href='#' onclick='changediv('test','0')'>".$other...
I have many elements positioned absolutely in my page. What is the best practice method to re-adjust its position on window resize(all of them)?
...
I have a product website on the domain:
http://www.example.com
and I have my secure shopping cart on
https://secure.example.com/checkout
I have used the pageTracker._setDomainName(".example.com") method on both sites to set the main domain the same on both sides.
Using firecookie I can see that the cookies are all set to .example.co...
I'm new to jQuery and would like to know if it is possible to create and edit-in-place div that I can click on, type some text, have it save and immediately have another div dynamically pop up beneath it that will allow the same capability to type in and save, so on and so forth. If anyone has any ideas it would be greatly appreciated.
...
Hi,
having some real problems with jquery at the moment. Basically what I have so far is. The form is submitted once the form is submitted a grey box pop's up with the relevant infomation.
What I need to do though is refresh the whole page then allow the grey box to appear.
I have the following code
$("#ex1Act").submit(function() {...