I have an <iframe> that uses some variables that are set in an object literal in the parent document. These variables are optional; if they're set, I want to use their values, assigning them to a more succinct global variable; if not, I want to call the function error().
First of all, is this ternary operator statement valid and effecti...
I have a webpage where i am trying to put a search feature.along with the search box, i put an image.When user clicks on the image i want to show a small div with some content(various filter options like "search in contacts,search in emails,search in trash etc").I want to place the div just below the search box. Now i want to know where ...
hi.
i have an 2 "tr" under
tr one have an file upload control
tr two have an textbox control.
so i have an radio button list woth three values
1:image
2:video
3:Audio
by default i need to show file upload control visiable that is the 1"tr". but once user clicks on video/audio option in radio button list then i...
I have sqldatasource which is type store procedure and I want to passing parameters into it but using javascript
"
SelectCommandType="StoredProcedure"
SelectCommand="sp_GetEmployeeByRoleId">
...
Hi to All,
I have a javascript as
<script type="text/JavaScript">
function CalculateDistance (plat1, plon1, plat2, plon2)
{
try
{
:
:
var d = R * c;
return d;
}
catch (error)
{
alert(error);
}
}
</script>
I want to call...
What are the points to bear while designing and coding a web application where the approach is to render components on the client using jQuery/ScriptServices (as data source), similar to an igoogle page?
...
I need to create a CSS stylesheet class dynamically in JavaScript and assign it to some HTML elements like - div, table, span, tr, etc and to some controls like asp:Textbox, Dropdownlist and datalist.
Is it possible?
It would be nice with a sample.
...
I want to find which element is on focus. Also, when a user opens multiple windows/tab, i'd like to know which window/tab is on the focus.
...
Hi,
I need to create a flip book/page application. I have seen flash created flip page, can it be done in any other languages, e.g. jquery or javascript? And also, what are some concepts that I am required to have in mind/knowledge on for creating a flip book?
Thanks.
...
Whether I log into Facebook or Twitter, I'll be bombarded with cookies of the such names as:
__utma
__utmb
__utmc
__utmv
What are their functions ?
Is there a standard that governs how these are used on the serverside ?
...
Hi All,
I am trying to update a textbox within currently edited row within a gridview on when changing items on a dropdownlist and I cant quite get it going in VB. I found this code in c# but dont know if Im on the right track?
Can you please offer some help?
Thanks for your time.
PS this code is for an onmouseover event but the poin...
Hi, I am looking for css layout theme similar to Molio, Pilu’s web-app-theme or Yui App Theme. Anyone got any other recommendations?
...
I want to insert an image tag into a block of text so that the image is, say, 100 pixels down in the DIV.
<div>
A lot of text in a text block and a <img tag> somewhere
that is floated left or right and positioned inside the text block
</div>
So, the tag above is put in the text block to be floated so that it is positioned...
Using the V3 Google Maps API, I've run into a case where it seems that creating the map for .setMap() causes .setPanel() to not do anything. The ultimate goal is to have the map load once. If I create the Map prior to the route call, everything works fine. But I first see the map that is loaded when the Map is created, then the .route ca...
Hi,
How can I realize this solution?
dropdownlist values depend on another dropdownlist in the same form
e.g. :a form contains dropdownlist(car_name),dropdownlist (models of this car),button(search)
notice that :
1)car_model values depend on car_name value
2)car_name dropdownlist and car_model dropdownlist in the same form
thanks
Best R...
I have a string:
var string = "asdasASFASDŞGFSD123435489()/%&&&&&&&&&&&&&&&123435";
I want this string to have a space after any group of ampersands. So in this example, I want the output:
"asdasASFASDŞGFSD123435489()/%&&&&&&&&&&&&&&& 123435";
How can I accomplish this in JavaScript?
...
Hi,
I have done some simple javascript to show and hide some div when you mouse over hot spot on a image map.
<script>
function showDiv(name) {
document.getElementById(name).style.display = "block";
}
function hideDiv(name) {
document.getElementById(name).style.display = "none";
}
</script>
The functions are appropriately called on t...
How do I get the CSS property top from a element in javascript.
I have tried document.getElementById(element).offsetTop however this always returns 0. When I have set top: 500px; in the CSS of element.
...
What I'm trying to do is compile to a file which takes it's version from a constant inside my source files.
I have a setup like this (or at least the significant bits):
tasks/compile.xml
<project name="Compile">
<target name="check.version">
<script language="javascript">
regex = /VERSION.+?"([\d\.]+)";/;
...
Hi All,
unable to get selected value from list box in IE 8
var myvalue= document.getElementById("fileName").value;
alert(myvalue);
...